
var name = "#functionmenu";  
var menuYloc = 20;  //offset from top (of #contentwrapper) in px, see also line 156 stylesheet_modules.css

$(window).load(function(){  
	if($(name).css("top")){
	menuYloc = parseInt($(name).css("top").substring(0,$(name).css("top").indexOf("px")))  
	}
						   
	$(window).scroll(function () {   
		var offset=$(document).scrollTop();
		offset = menuYloc+$(document).scrollTop()+"px";
		$(name).animate({top:offset},{duration:500,queue:false});
		});  
	

 }); 

//Older functions needded for showing search and mail
//if (document.all||document.getElementById||document.layers)
//setInterval("initializeIT()",20)

function ShowHideIDArrow(Element,ShowHide){
	if (ShowHide == 1){
		Element.style.display='block';
		Element.style.visibility='visible';
	}else if (ShowHide == 0){
		Element.style.display='none';
		Element.style.visibility='hidden';
	}
}

function ShowHideID(Element,ShowHide){
	if (ShowHide == 1){
		Element.style.display='block';
		Element.style.visibility='visible';
	}else if (ShowHide == 0){
		Element.style.display='none';
		Element.style.visibility='hidden';
	}
}


function getElt(eltId) {
    return document.getElementById(eltId);
}




