// JavaScript Document
if(typeof(curTop)!="function"){
 function curTop(obj){
	toreturn = 0;
	while(obj){
		toreturn += obj.offsetTop;
		obj = obj.offsetParent;
	}
	return toreturn;
 }
 function curLeft(obj){
	toreturn = 0;
	while(obj){
		toreturn += obj.offsetLeft;
		obj = obj.offsetParent;
	}
	return toreturn;
 }
}
Menu=function(){
 Menu.Area=null; 
}

Menu.Show=function(elem){ 
 if(elem){ 
  Menu.Parent=document.getElementById(elem.id); 
  Menu.Area=document.getElementById(elem.id+"_area"); 
  Menu.Top=eval(curTop(elem) + elem.offsetHeight) + "px";
  Menu.Left=curLeft(elem) + "px";  
 }
 if(Menu.Area){
  Menu.Area.style.position='absolute';
  //Menu.Area.style.width=100;
  Menu.Area.style.height='auto';
  Menu.Area.style.top = Menu.Top;
  Menu.Area.style.left = Menu.Left; 
  //Menu.Area.style.backgroundColor='#e2e2e2';
  Menu.Area.style.display='block'; 
  //Menu.TimeOut(4000);
 }
}

Menu.TimeOut=function(timelim){
  window.setTimeout(Menu.Hide,timelim);
}

Menu.Hide=function(){
 if(Menu.Area && Menu.Area.style.display=='block'){
  Menu.Area.style.display='none';
 }
}

MenuOver=function(object){  
  if(object.className == 'menutabpop-off') object.className = 'menutabpop-on';    
}

MenuOut=function(object){  	
  if(object.className == 'menutabpop-on') object.className = 'menutabpop-off';
}