
var tID="";var Clkd=-1;var PI=new Array();var Px=new Array();var Py=new Array();var NH=new Array();var PW=0;var PH=0;var SPnt="";var Dir="";var MB=0;var SI="";var SE=new Object();var SEL=0;var SET=0;var SEH=0;var SEW=0;var BW=0;var BH=0;var AR=0;var AB=0;var SLA=0;var STA=0;var CTH=true;var XOff=0;var YOff=0;var FP=0;var SH=false;var STI=0;var TS=0;var TL=0;var TTI="";var PR="";var SA=0;var SIP=0;var SS=0;function T(ms){if(ms!="off"){if(CTH!=0){tID=setTimeout("HP(0);TS=0;",ms);}}
else{clearTimeout(tID);}}
function ST(l,g,i){if(i){STI=setTimeout("HP("+l+");SP("+g+",'"+i+"');",350);}
else
if(l){STI=setTimeout("HP("+l+");",350);}
else{clearTimeout(STI);}}
function Show(id,srcid,relpos,offsetX,offsetY,fixedpos){clearTimeout(tID);if(Clkd!=id){HP(0);SI=srcid;SPnt=relpos;Clkd=id;Dir="right";if(document.all["Popup"+id]){if(offsetX)XOff=offsetX;if(offsetY)YOff=offsetY;if(fixedpos)FP=fixedpos;SP(id);}}}
function Hide(){tID=setTimeout("HP(0);TS=0;",250);}
function HideNow(){HP(0);}
function HiI(id,l){var d;d=document;var item=d.all['Item'+id];if(!item){return;}
else{item=d.all['Item'+id];var expand=d.all['Expand'+id];var expandIc=d.all['ExpandIc'+id];var icoOn=d.all['IcoOn'+id];}
var bgco;try{bgco=item.getAttribute('SelColor');}
catch(e){bgco=false;}
if(icoOn){d.all['Ico'+id].style.display='none';icoOn.style.display='inline';}
item.style.color='#FFFFFF';expand.style.color='#FFFFFF';if(bgco){item.style.backgroundColor=bgco;expand.style.backgroundColor=bgco;}
else{item.style.backgroundColor='#C4CBCD';expand.style.backgroundColor='#C4CBCD';}
NHM(id,l);NH[l-1]=id;}
function NHM(id,l){if(NH[l-1]!=id){var count=l-1;for(count=l-1;count<NH.length;count++){DiI(NH[count]);}
NH.length=l;}}
function DiI(id){var d;d=document;var item=d.all['Item'+id];if(!item){return;}
else{item=d.all['Item'+id];var expand=d.all['Expand'+id];var expandIc=d.all['ExpandIc'+id];var icoOn=d.all['IcoOn'+id];}
var bgco;try{bgco=item.getAttribute('UnSelColor');}
catch(e){bgco=false;}
if(icoOn){d.all['Ico'+id].style.display='inline';icoOn.style.display='none';}
item.style.color='#222222';expand.style.color='#222222';if(bgco){item.style.backgroundColor=bgco;expand.style.backgroundColor=bgco;}
else{item.style.backgroundColor='#FFFFFF';expand.style.backgroundColor='#FFFFFF';}}
function HideSelectBox(boolHide,arrSelectList){if(navigator.platform!="MacPPC"){if(arrSelectList){document.Selects=new Array();var SelectID=new String();var iCount=0;for(iCount=0;iCount<arrSelectList.length;iCount++){SelectID=arrSelectList[iCount];document.Selects[iCount]=document.all[SelectID];}}
if(!document.Selects){document.Selects=new Array();}
if(boolHide==true&&!SH){document.Selects=new Array();var iCount=0;var iCount2=0;var Selects=document.getElementsByTagName("select");for(iCount=0;iCount<Selects.length;iCount++){if(Selects[iCount].style.visibility!="hidden"){document.Selects[iCount2]=Selects[iCount];iCount2++;}}}
var iCount=0;if(boolHide==true){for(iCount=0;iCount<document.Selects.length;iCount++){document.Selects[iCount].style.visibility="hidden";}
SH=true;}
if(boolHide==false){for(iCount=0;iCount<document.Selects.length;iCount++){document.Selects[iCount].style.visibility="visible";}
SH=false;}}}
function SP(id,itemid){if(!itemid){if(FP){SEL=XOff;SET=YOff;SEH=1;SEW=1;FP=0;}
else{if(!document.all[SI]){return;}
SE=new Object(document.all[SI]);var PrO=SE;var PrT="";SEL=SE.offsetLeft+XOff;SET=SE.offsetTop+YOff;SEH=SE.offsetHeight;SEW=SE.offsetWidth;while(PrT!="BODY"){PrO=PrO.offsetParent;if(PrO.style.position=='absolute'){break;}
SEL+=PrO.offsetLeft;SET+=PrO.offsetTop;PrT=PrO.tagName;}}
document.all["Popup"+id].style.display="block";PW=document.all["Popup"+id].clientWidth;PH=document.all["Popup"+id].clientHeight;BW=document.body.clientWidth;BH=document.body.clientHeight;SLA=document.body.scrollLeft;STA=document.body.scrollTop;switch(SPnt){case"above":Px[Px.length]=SEL;Py[Py.length]=SET-PH;CA();CR();break;case"below":Px[Px.length]=SEL;Py[Py.length]=SET+SEH;CB();CR();break;case"right":Px[Px.length]=SEL+SEW;Py[Py.length]=SET;CR();CB();break;case"left":Px[Px.length]=SEL-PW;Py[Py.length]=SET;CL();CB();Dir="left";break;}
XOff=0;YOff=0;document.all["Popup"+id].style.left=Px[Px.length-1];document.all["Popup"+id].style.top=Py[Py.length-1];PI[PI.length]=id;document.all["Popup"+id].style.clip="rect(auto)";if(TS==0){PR=new Object(document.all["Popup"+id]);SA=true;switch(SPnt){case"below":SIP=Py[Py.length-1];SS=PH/4;ScI(PH);TS=1;break;case"right":SIP=Px[Py.length-1];SS=PW/4;ScI(PW);TS=1;break;case"above":SIP=Py[Py.length-1];SS=PH/4;ScI(PH);TS=1;break;case"left":SIP=Px[Py.length-1];SS=PW/4;ScI(PW);TS=1;break;}}}
else{var d;d=document;if(SA==true){return;}
Px[Px.length]=document.all["Popup"+PI[PI.length-1]].clientWidth+Px[Px.length-1]-4;var szPrE="";if(d.all["Item"+itemid].parentElement.offsetTop==0){if(navigator.platform=="MacPPC"){var szPrE="parentElement.parentElement.";}
else
if(d.all["Item"+itemid].parentElement.parentElement.parentElement.parentElement.className!="PopupBox"){var szPrE="parentElement.parentElement.parentElement.";}}
Py[Py.length]=eval("d.all[\"Item"+itemid+"\"].parentElement."+szPrE+"offsetTop")+Py[Py.length-1];document.all["Popup"+id].style.display="block";PW=document.all["Popup"+id].clientWidth;PH=document.all["Popup"+id].clientHeight;var PrW=document.all["Popup"+PI[PI.length-1]].clientWidth;AR=BW-Px[Px.length-1]+SLA;AB=BH-Py[Py.length-1]+STA;if(Px[Px.length-2]==SLA){Dir="right";}
if((AR<PW)||(Dir=="left")){MB=(Px[Px.length-1]-PW-PrW)+8;if((MB>=0)&&(MB>SLA)){Dir="left";}
else{MB=SLA;}
Px[Px.length-1]=MB;}
if(AB<PH){MB=Py[Py.length-1]-(PH-AB);if(MB<STA){MB=STA;}
Py[Py.length-1]=MB;}
document.all["Popup"+id].style.left=Px[Px.length-1];document.all["Popup"+id].style.top=Py[Py.length-1];PI[PI.length]=id;}}
function HP(level){if(Clkd==-1){return false;}
else
if(level==0){clearTimeout(STI);Clkd=-1;var id=PI[0];var count=0;for(count=0;count<NH.length;count++){DiI(NH[count]);}
NH.length=0;}
var count=level;for(count=level;count<PI.length;count++){document.all["Popup"+PI[count]].style.display="none";}
PI.length=level;Px.length=level;Py.length=level;}
function CR(){AR=(BW+SLA)-Px[Px.length-1];if(AR<PW){if(SPnt=="below"||SPnt=="above"){MB=Px[Px.length-1]-(PW-AR);if(MB<0||MB<SLA){MB=SLA;}
Px[Px.length-1]=MB;}
else{MB=SEL-PW;if(MB>=0){Px[Px.length-1]=MB;}}}}
function CL(){if(Px[Px.length-1]<(SLA)){Px[Px.length-1]=SEL+SEW;CR();}}
function CB(){AB=(BH+STA)-Py[Py.length-1];if(AB<PH){if(SPnt=="below"){MB=Py[Py.length-1]-PH-SEH;if(MB>=0){Py[Py.length-1]=MB;}}
else{MB=Py[Py.length-1]-(PH-AB);if(MB<0||MB<STA){MB=STA;}
Py[Py.length-1]=MB;}}}
function CA(){if(Py[Py.length-1]<(STA)){Py[Py.length-1]=SET+SEH;CB();}}
function ScI(level){TL=level;switch(SPnt){case"below":if(level>=0){PR.style.clip="rect("+level+" "+PW+" "+PH+" 0)";PR.style.top=(SIP-PH)+(PH-level);setTimeout("ScI(TL-SS);",50);}
else{PR.style.clip="rect(0 "+PW+" "+PH+" 0)";PR.style.top=SIP;SA=false;}
break;case"right":if(level>=0){PR.style.clip="rect(0 "+PW+" "+PH+" "+level+")";PR.style.left=(SIP-PW)+(PW-level);setTimeout("ScI(TL-SS);",50);}
else{PR.style.clip="rect(0 "+PW+" "+PH+" 0)";PR.style.left=SIP;SA=false;}
break;case"above":if(level>=0){PR.style.clip="rect(0 "+PW+" "+(PH-level)+" 0)";PR.style.top=SIP+level;setTimeout("ScI(TL-SS);",50);}
else{PR.style.clip="rect(0 "+PW+" "+PH+" 0)";PR.style.top=SIP;SA=false;}
break;case"left":if(level>=0){PR.style.clip="rect(0 "+(PW-level)+" "+PH+" 0)";PR.style.left=SIP+level;setTimeout("ScI(TL-SS);",50);}
else{PR.style.clip="rect(0 "+PW+" "+PH+" 0)";PR.style.left=SIP;SA=false;}
break;}}
function ShowInFrame(MenuID,x,y){x+=document.body.scrollLeft;y+=document.body.scrollTop;Show(MenuID,'','below',x,y,1);}
function Refresh(){}
function MenuBarInit(){}