// JavaScript Document
function preloadImages()
{
    images = new Array("images/mainmenu_compania_hover.jpg", "images/mainmenu_oferta_hover.jpg", "images/mainmenu_parteneri_hover.jpg", "images/mainmenu_sitemap_hover.jpg", "images/mainmenu_contact_hover.jpg") ; 
    imgObjs = new Array() ; 
    for (i = 0; i < images.length; i++)
	{
	    imgObjs.push(new Image()) ;
	    imgObjs[ i ].src = images[ i ] ;
	}
}

function enableDropDown(id)
{
    if (document.getElementById) 
	{
	    menubar = document.getElementById(id);
	    if (menubar == null) return ;
	    menubar.onmouseover=function() {
		this.className+=" menubar-over";			 
	    }
	    menubar.onmouseout=function() {
		this.className=this.className.replace(" menubar-over", "");			 
	    }
   	} 		
}

function enableDropDownMenus()
{	 
    enableDropDown("menu-panze") ;
}

function loadTasks()
{
    preloadImages() ; 
    enableDropDownMenus();
}

window.onload = loadTasks() ; 
 