ctmenu={count:0,show:function(aa,ba,ca,da,ea){if(typeof da=="undefined")da=200;omenu=document.getElementById(aa);if(!omenu)return;if(omenu.style.visibility=='visible'){this._clear_hide(omenu);return;} omenu.menu_data={delay:da,homing:ba,otimeout:'none'} omenu.onmouseover=this._onmouseover;omenu.onmouseout=this._onmouseout;pos=this._get_edges(ba);switch(ca){case 'right':kl=omenu.style.left=pos.right;kt=omenu.style.top=pos.top;break;case 'top':kl=omenu.style.left=pos.left;kt=omenu.style.top=pos.top-omenu.offsetHeight;break;case 'left':kl=omenu.style.left=pos.left-omenu.offsetWidth;kt=omenu.style.top=pos.top;break;default:kl=omenu.style.left=pos.left;kt=omenu.style.top=pos.bottom;} omenu.style.visibility='visible';this.count++;if(typeof ea=="undefined")this._ie6_fix_input();else if(!ea)this._ie6_fix_input();if(this._browser_type=='ie'){oshade=document.getElementById("shade_img_ie");kt+=0;kl+=0;kw=omenu.offsetWidth-0;kh=omenu.offsetHeight-0;} else{oshade=document.getElementById("shade_img_ff");kt+=2;kw=Math.max(Math.round(omenu.offsetWidth*1.18),omenu.offsetWidth+8);kh=Math.max(Math.round(omenu.offsetHeight*1.18),omenu.offsetHeight+8);} if(oshade){omenu.parentNode.appendChild(oshade);oshade.style.top=kt;oshade.style.left=kl;oshade.style.width=kw;oshade.style.height=kh;oshade.style.visibility='visible';}},hide:function(fa){omenu=document.getElementById(fa);if(!omenu)return;omenu.menu_data.otimeout=setTimeout("ctmenu._really_hide('"+fa+"')",omenu.menu_data.delay);},float:function(ga,ha){omenu=document.getElementById(ga);if(!omenu)return;switch(ha){case 'NE':default:omenu.style.left=document.body.scrollLeft+document.body.clientWidth-omenu.offsetWidth-5;omenu.style.top=document.body.scrollTop+2;break;}},dispatch_key:function(e){if(typeof e!='String'){if(ctmenu._browser_type=='ie')e=window.event;if(!e.ctrlKey)return 0;ch=String.fromCharCode(e.keyCode);} else{ch=e;} ch=ch.toLowerCase();arr=document.getElementsByName('ctrl-'+ch);if(arr[0]){if(cmd=arr[0].href)document.location=cmd;else arr[0].onclick();}},_really_hide:function(ia){omenu=document.getElementById(ia);this._clear_hide(omenu);omenu.style.visibility='hidden';this.count--;this._ie6_fix_input('visible');oshade=document.getElementById((this._browser_type=='ie')?"shade_img_ie":"shade_img_ff");if(oshade&&this.count==0){oshade.style.visibility='hidden';}},_dynamic_hide:function(ja,e){if((this._browser_type=='ie')&&!ja.contains(e.toElement))this.hide(ja.id);else{if((this._browser_type=='ff')&&e.currentTarget!=e.relatedTarget&&!this._contains_ff(e.currentTarget,e.relatedTarget))this.hide(ja.id);}},_clear_hide:function(ka){if(ka.menu_data.otimeout!="none"){clearTimeout(ka.menu_data.otimeout);ka.menu_data.otimeout='none';}},_browser_type:(document.all?'ie':(document.getElementById&&!document.all?'ff':null)),_browser_ver:navigator.appVersion.substr(navigator.appVersion.search(/MSIE /)+5,1),_get_edges:function(la){var ma={left:la.offsetLeft,top:la.offsetTop} var na=la.offsetParent;var oa='';while(na&&na.style.position!='absolute'){dofix=true;granny=na.offsetParent;if(granny)dofix=(granny.style.position!='relative'&&granny.id!='netcontent');dofix&=(na.style.position!='relative'&&na.id!='netcontent');if(dofix){ma.top+=na.offsetTop;} if(dofix||this._browser_type=='ff'){ma.left+=na.offsetLeft;} na=na.offsetParent;} ma.right=ma.left+la.offsetWidth;ma.bottom=ma.top+la.offsetHeight;return ma;},_contains_ff:function(a,b){while(b&&b.parentNode)if((b=b.parentNode)==a)return true;return false;},_ie6_fix_input:function(pa){if(this._browser_type=='ie'&&this._browser_ver=='6'){if(this.count>0)pa='hidden';else pa='visible';iarr=document.getElementsByTagName('INPUT');for(var i=0;i