
NS6 = (document.getElementById&&!document.all)
IE = (document.all);
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")

tempBar='';
barBuilt=0;
var winY,lastY,smooth;
//moving=setTimeout('null',1000)




function makeStatic() {
	if (IE) {
		winY = document.body.scrollTop;
		//alert("winY: "+winY);
		//alert("winY: "+winY+"\n lastY: "+lastY+"\n YOffset: "+YOffset+"\n staticYOffset: "+staticYOffset);
	}

	if (NS6||IE||NS) {
	/*			if (winY!=lastY&&winY>YOffset-staticYOffset) {
			smooth = 0.2* (winY - lastY - YOffset + staticYOffset);//alert(winY);
			alert("winY: "+winY+"\n lastY: "+lastY+"\n YOffset: "+YOffset+"\n staticYOffset: "+staticYOffset+"\n smooth: "+smooth);
		}
		else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
			smooth = 0.2* (winY - lastY - (YOffset-(YOffset-winY)));
			
			}*/
		if (winY!=lastY&&winY>YOffset) {
			smooth = 0.2* (winY - lastY - YOffset);//alert(winY);
			//alert("winY: "+winY+"\n lastY: "+lastY+"\n YOffset: "+YOffset+"\n staticYOffset: "+staticYOffset+"\n smooth: "+smooth);
		}
		else if (lastY>0) {
			smooth = 0.2* (- lastY );
			
			}
		else {
			smooth=0
		}

		if(smooth > 0){ 
			smooth = Math.ceil(smooth);
			hde();
		}
		if(smooth < 0){ 
			smooth = Math.floor(smooth);
			hde();
		}
		if(smooth == 0){
			smooth = Math.floor(smooth);
			}

		if (IE) bssm.pixelTop+=smooth;
		
		//if (NS6||NS) bssm.top=parseInt(bssm.top)+smooth
		
		lastY = lastY+smooth;
		
		setTimeout('makeStatic()', 1)
	}
}




function initSlide() {

//if (IE) {
		//ssm=document.all("thessm").style;
		bssm=document.all("menu").style;

		//bssm.clip="rect(0 "+thessm.offsetWidth+" "+thessm.offsetHeight+" 0)";
		bssm.visibility = "visible";
//	}
	
	if (menuIsStatic=="yes") 
		makeStatic();
}



