var isDOM = (document.getElementById ? true : false);  
	var isIE4 = ((document.all && !isDOM) ? true : false); 
	var isNS4 = (document.layers ? true : false);  
	
	function getRef(id) { 
		if (isDOM) return document.getElementById(id); 
		if (isIE4) return document.all[id]; 
		if (isNS4) return document.layers[id]; 
	}  
	
var isNS = navigator.appName == "Netscape";
	
function moveRightEdge() { 
		var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;  
	
		if (isNS4) { 
			yMenuFrom   = divMenu.top; 
			yMenuTo     = windows.pageYOffset + 50; 
		} else if (isDOM) { 
			yMenuFrom   = parseInt (divMenu.style.top, 00); 
			yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 116; 
		} 
		timeoutNextCheck = 30;  
	
		if (yMenuFrom != yMenuTo) { 
			yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 3); 
			if (yMenuTo < yMenuFrom) 
				yOffset = -yOffset; 
			if (isNS4) 
				divMenu.top += yOffset; 
			else if (isDOM) 
				divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset; 
				timeoutNextCheck = 30; 
		} 
		setTimeout ("moveRightEdge()", timeoutNextCheck); 
	}