var SM_Bounding_Rect;var SM_Bounding_Top;var SM_Bounding_Bottom;var SM_Bounding_Left;var SM_Bounding_Right;var SM_Visible=0;var SM_Obj;var SM_Text=new Array();var SM_Link=new Array();var a=0;var b=0;var OutTime=0;var SubMenuTimeOut=500;ns4 =(navigator.appName =="Netscape"&&parseInt(navigator.appVersion)==4);ns5 =(navigator.appName =="Netscape"&&parseInt(navigator.appVersion)>=5);ie4 =(navigator.appName =="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)>=4);ie5 =(navigator.appVersion.indexOf('MSIE 5')>0);ie6 =(navigator.appVersion.indexOf('MSIE 6')>0);ElById =document.getElementById;CatchMouse();function WriteInElem(ID_Name,Text){if(ns4){var Layer =document.layers[ID_Name].document;Layer.write(Text);Layer.close();return;}if(ElById){document.getElementById(ID_Name).innerHTML =Text;return;}if(ie4){document.all(ID_Name).innerHTML =Text;return;}}function ShowElem(Name){if(ns4)document.layers[Name].visibility='show';if(ElById){Obj=document.getElementById(Name);if(Obj!=null)Obj.style.visibility="visible";}}function HideElem(Name){if(ns4)document.layers[Name].visibility='hide';if(ElById){Obj=document.getElementById(Name);if(Obj!=null)Obj.style.visibility="hidden";}}function MoveElem(Name,xPos,yPos){var zeElem;if (ns4)zeElem =document.layers[Name];if (ElById)zeElem =document.getElementById(Name).style;zeElem.left =xPos;zeElem.top =yPos;}function CatchMouse(){if((ns4)||(ElById)){document.onmousemove =mouseMove;if (ns4 ||ns5)document.captureEvents(Event.MOUSEMOVE);}}function mouseMove(e){if(ns4){x=e.pageX;y=e.pageY;}if(ns5){x=e.pageX;y=e.pageY;}if(ie4){x=event.clientX;y=event.clientY;}if(SM_Visible){if((x>SM_Bounding_Right)||(x<SM_Bounding_Left)||(y>SM_Bounding_Bottom)||(y<SM_Bounding_Top)){var Tmp=new Date;if(OutTime==0){OutTime=Tmp.getTime();}else {if(Tmp.getTime()-OutTime>SubMenuTimeOut)HideSubMenu();}}else {OutTime=0;}}}function SM_GetBoundingRect(Obj){if(ie6){SM_Bounding_Rect=Obj.getBoundingClientRect();SM_Bounding_Right=SM_Bounding_Rect.right;SM_Bounding_Left=SM_Bounding_Rect.left;SM_Bounding_Bottom=SM_Bounding_Rect.bottom;SM_Bounding_Top=SM_Bounding_Rect.top;}else {var offx =0;var offy =Obj.offsetHeight;var ndObject =Obj;while (ndObject.nodeName !="BODY"){offx +=ndObject.offsetLeft;offy +=ndObject.offsetTop;ndObject =ndObject.offsetParent;}offx+=2;offy+=2;SM_Bounding_Left=offx;SM_Bounding_Right=offx+Obj.offsetWidth;SM_Bounding_Top=offy-Obj.offsetHeight;SM_Bounding_Bottom=offy;}}function ShowSubMenu(Num,Obj){SM_Obj=Obj;SM_GetBoundingRect(Obj);OutTime=0;Text ="<Table onmouseover='MouseOverSubMenu(this);' onmouseout='MouseOutSubMenu();' border=0 cellpadding=0 cellspacing=0 style=\"border-top: 1px solid #000000\">";for(TextID in SM_Text[Num]){Text +="<Tr>";Text +="<Td height=20 onclick=\"window.location='"+SM_Link[Num][TextID]+"';\" "+"onmouseover=\"this.className='SubMenuOver';\" "+"onmouseout=\"this.className='SubMenu';\" "+"class=SubMenu width=114 align=center>";Text +=SM_Text[Num][TextID];Text +="</Td>";Text +="</Tr>";}Text +="</Table>";WriteInElem("SubMenu",Text);if((ie5)||(ie6)){x_ofs=document.body.scrollLeft;y_ofs=document.body.scrollTop;}else {x_ofs=0;y_ofs=0;}MoveElem("SubMenu",SM_Bounding_Right-118+x_ofs,SM_Bounding_Top+17+y_ofs);ShowElem("SubMenu");SM_Visible=1;CatchMouse();}function HideSubMenu(){SM_Visible=0;HideElem("SubMenu");if(!ie6)ShowElem("TxtFrameID");}function MouseOverSubMenu(Obj){OutTime=0;SM_GetBoundingRect(Obj);}function MouseOutSubMenu(){var Tmp=new Date;if(OutTime==0){OutTime=Tmp.getTime();}else {if(Tmp.getTime()-OutTime>SubMenuTimeOut)HideSubMenu();}}