//Menu Controls
var int = 100;
var mh = 70;
var maxS = getDH();

var docH = getDH();


function getTB(){
	var tbody = (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;	
	return tbody;
}
function getDW(){
	var tbody = getTB();
	var docwidth=document.all? tbody.scrollLeft+tbody.clientWidth : pageXOffset+window.innerWidth;
	return docwidth;
}
function getDH(){
	var tbody = getTB();
	var docheight=document.all? Math.min(tbody.scrollHeight, tbody.clientHeight) : Math.min(window.innerHeight);
	return docheight;
}
function chkscroll(){
	var wH = window.outerHeight;
	if(wH <=750){
		if($("menu_span").style.height != 0){
			$("menu_span").style.height = "0px";	
		}
		return;
	}
	
	
	var tbody = getTB();
	var top= tbody.scrollTop;
	var pos = top - mh;

	if(top > mh){
		$("menu_span").style.height = pos+"px";
	}else{
		$("menu_span").style.height = "0px";	
	}
}
var schk = setInterval("chkscroll()",int);