// javascript dropdown 


var timeout = 600;
var closetimer;

function show_drop(id){
	clearTimeout(closetimer);
	
	if ($(id)){
       $(id).style.display = "block";
       }
       
    close_all(id);       
}


function closing_time(id) {
	closetimer = setTimeout('hide_drop("'+id+'")', timeout);		
}

function hide_drop(id) {
	if ($(id)){
       $(id).style.display = "none";
       }
}

function close_all(exception_id)    {
   for (i=0; i<6; i++)    {
       if ( (exception_id != "submenu_" + i) && $("submenu_" + i) )
           $("submenu_" + i).style.display = "none";
   }//end for
}//end close_all function