function addOnLoad(func) {
	var oldonload = window.onload;

	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}

//==================== CSS drop menu
function activateMenu() {  

	nav = document.getElementById('menu_nav');  
	if (document.all && nav.currentStyle) {    
	    var navroot = nav;
	    var lis=navroot.getElementsByTagName("LI");  
	    for (i=0; i<lis.length; i++) {
	        if(lis[i].lastChild.tagName == "UL"){
	         	lis[i].onmouseover = function() 
					{
						this.lastChild.style.display="block"; 
						this.lastChild.style.left="134px"; 
					}
	            lis[i].onmouseout=function()    
					{
						this.lastChild.style.display="none";
						this.lastChild.style.left="-999em"; 
					}
	        }
	    }
	}
}
addOnLoad(activateMenu);  





function getMenu(id, item) {   
  if($(id).style.display == 'none')
  	item.className = 'menu_nav_opened';
  else	
  	item.className = '';
  	
  Effect.toggle(id, 'blind', {duration: 0.2}); 
}





