function ElevateNavi() { 
ENTopBlank=10; 
elevatenaviTop=10; 
Exec_ElevateNavi(); 
} 

IE=(document.all)?1:0;
IE5=(IE&&document.getElementById)?1:0;
NN4=(document.layers)?1:0;
NN6=(document.getElementById&&!IE)?1:0;

yz=NN4?"":NN6?"window.pageYOffset":IE5?"document.body.scrollTop":0;
var yp=0;

function Exec_ElevateNavi() {
	if(IE5 || NN6){
		yy=eval(yz);
		divname=NN6?document.getElementById("sidebar"):IE?document.all("sidebar"):0;
		object=NN6?document.getElementById("sidebar").style:IE?document.all("sidebar").style:0;
		CheckENDIVHeight();
	}
	else{return false;}
}

function CheckENDIVHeight(){
	if(IE5){
		DIVHeight=divname.offsetHeight;
		WinHeight=document.body.clientHeight;
		if(DIVHeight>=WinHeight){return false;}
		else {SetENPositioning()}
	}
	if(NN6){SetENPositioning()}
}

function SetENPositioning(){object.position='absolute';CalcuPixel();}

function CalcuPixel(){SmoothMove();setTimeout("CalcuPixel()",1.0);}

function SmoothMove(){
	yd=Math.abs(eval(yz)-yy);yp=yd*0.9;
	if(eval(yz)<yy){yy-=yp}
	else if(eval(yz)>yy){yy+=yp}
	MoverENDIV()
}

function MoverENDIV(){
	if(yy>elevatenaviTop){object.top=yy+ENTopBlank}
	if(yy<elevatenaviTop){ENDIVTopPosition()}
}

function ENDIVTopPosition(){
	object.top=elevatenaviTop
}