var activePC="";
_m_menu_id="";
_c_menu_id="";
function set_active_menu(_1,_2){
if(_m_menu_id!=null&&_m_menu_id.length>0){
$(_m_menu_id).removeClassName("active");
}
if(_c_menu_id!=null&&_c_menu_id.length>0){
$(_c_menu_id).removeClassName("active");
}
if(_1!=null&&_1.length>0){
$(_1).addClassName("active");
}
if(_2!=null&&_2.length>0){
var el=$(_2);
if(el!=null){
el.addClassName("active");
}
}
_m_menu_id=_1;
_c_menu_id=_2;
}
function get_active_menu(){
return new Array(_m_menu_id,_c_menu_id);
}
function at_show(){
if(activePC!=""){
$(activePC).hide();
}
var p=document.getElementById(this["at_parent"]);
var c=document.getElementById(this["at_child"]);
var _6=Position.cumulativeOffset($(p.id));
$(c.id).setStyle({width:$("measurer").clientWidth});
var _7=$(c.id).firstDescendant();
if(!Prototype.Browser.IE){
var w=$("measurer").clientWidth-_6[0];
if(_7!=null){
_7.setStyle({paddingLeft:_6[0].toString()+"px",width:w.toString()+"px"});
}
}else{
if(_7!=null){
_7.setStyle({paddingLeft:_6[0].toString()+"px"});
}
}
$(c.id).show();
clearTimeout(c["at_timeout"]);
activePC=c.id;
}
function at_hide(){
var p=document.getElementById(this["at_parent"]);
var c=document.getElementById(this["at_child"]);
}
function at_attach(_b,_c){
var p=document.getElementById(_b);
var c=document.getElementById(_c);
p["at_parent"]=p.id;
c["at_parent"]=p.id;
p["at_child"]=c.id;
c["at_child"]=c.id;
$(c).hide();
p.onmouseover=at_show;
p.onmouseout=at_hide;
c.onmouseover=at_show;
c.onmouseout=at_hide;
}

