<!--
	function ShowLayerFromImage(objImg, objDiv){
		//objImg = document.getElementById('img' + number);
		x = findPosX(objImg);
		y = findPosY(objImg) + 35;
		//alert(x);
		//objDiv = document.getElementById('div' + number.toString());
		
		if (bv.dom){
			document.getElementById(objDiv).style.visibility = "visible";
			document.getElementById(objDiv).style.left = x;
			document.getElementById(objDiv).style.top = y;
		}
		else{		
			if (bv.ie4){
				document.all[objDiv].style.visibility = "visible";
				document.all[objDiv].style.left = x;
				document.all[objDiv].style.top = y;
			}
			else{		
				if (bv.ns4){
					document.layers[objDiv].visibility = "visible";
					document.layers[objDiv].left = x;
					document.layers[objDiv].top = y;
				}
			}
		}
	}
	
	function HideLayerFromImage(objDiv){
		if (bv.dom){
			document.getElementById(objDiv).style.visibility = "hidden";
		}
		else{		
			if (bv.ie4){
				document.all[objDiv].style.visibility = "hidden";
			}
			else{		
				if (bv.ns4){
					document.layers[objDiv].visibility = "hidden";
				}
			}
		}
	}
	
	function ShowLayer(obj){
		obj.style.visibility = "visible";
	}
	
	function HideLayer(obj){
		obj.style.visibility = "hidden";
	}
	
	function ImageSwap(obj, imageName){
		obj.src = "images/" + imageName;
	}
	
	function findPosX(obj)
	{
		var curleft = 0;
		if (obj.offsetParent)
		{
			while (obj.offsetParent)
			{
				curleft += obj.offsetLeft
				obj = obj.offsetParent;
			}
		}
		else if (obj.x)
			curleft += obj.x;
			
		return curleft;
	}

	function findPosY(obj)
	{
		var curtop = 0;
		if (obj.offsetParent)
		{
			while (obj.offsetParent)
			{
				curtop += obj.offsetTop
				obj = obj.offsetParent;
			}
		}
		else if (obj.y)
			curtop += obj.y;
		
		return curtop;
	}
	function browserVersion(){ 

	    this.ver=navigator.appVersion;
	    this.dom=document.getElementById?1:0;
	    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 
		this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0; 	
	    this.ie4=(document.all && !this.dom)?1:0; 
	    this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	    this.ns4=(document.layers && !this.dom)?1:0; 
	    this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns5);

		this.safari=(this.ver.indexOf('Safari') != - 1)?1:0;	
		
	    return this;

	}

	bv = new browserVersion();


//-->


