	self.onError=null;
	
	currentX = currentY = 0;  
	lastScrollX = 0; lastScrollY = 0;
	YOffset=0; // no quotes!!
	staticYOffset=-1; // no quotes!!

	NS6 = (document.getElementById&&!document.all) ? 1: 0;
	NS = (document.layers) ? 1 : 0;
	IE = (document.all) ? 1: 0;
	
	function getWinWidth() 
	{
	  if (NS||NS6)
	    return(window.innerWidth);
	  else if (IE)
	    return(document.body.clientWidth);
	  else
	    return(null);
	}
		
	function getWinHeight() 
	{
	  if (NS||NS6)
	    return(window.innerHeight);
	  else if (IE)
	    return(document.body.clientHeight);
	  else
	    return(null);
	}

	function floatmenu() {
		if(!(IE||NS||NS6)) return
		
		if (NS||NS6) { diffY = window.pageYOffset;}
		if (IE) {diffY = document.body.scrollTop;}
		
		if(diffY!=lastScrollY&&diffY>YOffset-staticYOffset) {
	   		percent= .1 * (diffY-lastScrollY-YOffset+staticYOffset);
	   	} else if (YOffset-staticYOffset+lastScrollY>YOffset-staticYOffset) {
	   		percent= .1 * (diffY-lastScrollY-(YOffset-(YOffset-diffY)));
	   	}
	   	else {percent=0}
      		if(percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);
		if(IE) document.all.floater.style.pixelTop+=percent;
		else if(NS) document.floater.top+=percent;
		else if(NS6) document.getElementById('floater').style.top=parseInt(document.getElementById('floater').style.top)+percent;
      		lastScrollY += percent;
	}


	function setPos()
	{
		if(!(IE||NS||NS6)) return
		
		curentX = 0;
		currentY = 0;
			
		if(IE) 
		{
			document.all.floater.style.pixelLeft = curentX
			document.all.floater.style.pixelTop = currentY
			document.all.floater.style.visibility = "visible"
		} 
		else if(NS)
		{
			document.floater.left = curentX
			document.floater.visibility = "show"
		}
		else if(NS6)
		{
			document.getElementById('floater').style.left = curentX
			document.getElementById('floater').style.top = currentY
			document.getElementById('floater').style.visibility = "visible"
		}
		if(NS||IE||NS6) action = window.setInterval("floatmenu()",1);
	}
	
	function printWindow() {
	bV = parseInt(navigator.appVersion);
	if (bV >= 4) window.print();
	}

