﻿wp_menus.prototype.m_type=0;wp_menus.prototype.m_delay=500;wp_menus.prototype.m_bordersize=1;wp_menus.prototype.m_fontsize=12;wp_menus.prototype.m_filterOpacity=100;wp_menus.prototype.m_mozOpacity=1;wp_menus.prototype.m_width=0;wp_menus.prototype.m_padding="3px 10px 3px 10px";wp_menus.prototype.m_fontfamily="sans-serif";wp_menus.prototype.m_bordercolor="#000000";wp_menus.prototype.m_bkgndcolor="transparent";wp_menus.prototype.m_textcolor="#000000";wp_menus.prototype.m_bkgndcolorhl="transparent";wp_menus.prototype.m_textcolorhl="#ccccff";wp_menus.prototype.m_imagearrow="arrow.gif";wp_menus.prototype.m_imagearrowhl="arrowhl.gif";wp_menus.prototype.m_itemlines=false;wp_menus.prototype.m_timeout=null;wp_menus.prototype.m_active=null;wp_menus.prototype.m_txtalign="left";wp_menus.prototype.m_txtnbclr="";wp_menus.prototype.m_txtnbclrinv="";wp_menus.prototype.m_txtnbbkgndclr="";wp_menus.prototype.m_txtnbbkgndclrinv="";wp_menus.prototype.m_fontbold=false;wp_menus.prototype.m_fontitalic=false;wp_menus.prototype.m_fontunderline=false;wp_menus.isIE=function(){return /msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)};function wp_menus(){this.m_acStack=new wp_activestack}wp_menus.prototype.InitElement=function(c,b,d){var a=document.getElementById(c);a.p_root=this;if(b!=""){a.m_imgNormal=new Image;a.m_imgOver=new Image;a.m_imgNormal.src=b;a.m_imgOver.src=d}};wp_menus.prototype.BeginMenu=function(a){this.m_active=a;document.write('<div id="'+a+'" style="z-index:100;position:absolute;visibility:hidden;border-style:solid;border-color:'+this.m_bordercolor+";");if(this.m_itemlines)document.write("border-width:"+this.m_bordersize+"px "+this.m_bordersize+"px 0px "+this.m_bordersize+"px;");else document.write("border-width:"+this.m_bordersize+"px;");if(wp_menus.isIE())document.write("filter:alpha( opacity="+this.m_filterOpacity+" );");else document.write("-moz-opacity:"+this.m_mozOpacity+";");document.write('"><table cellpadding="0" cellspacing="0">')};wp_menus.prototype.EndMenu=function(){document.write("</table></div>");this.m_active=null};wp_menus.prototype.AddLink=function(a,f,b,d,e){document.write("<tr><td><");if(b=="")document.write("div");else document.write('a href="'+b+'" target="'+e+'"');document.write(' id="'+a+'" style="display:block;color:'+this.m_textcolor+";font-size:"+this.m_fontsize+"px;font-family:"+this.m_fontfamily+";");if(this.m_fontbold)document.write("font-weight:bold;");if(this.m_fontitalic)document.write("font-style:italic;");document.write("text-decoration:"+(this.m_fontunderline?"underline;":"none;"));if(b=="")document.write("cursor:default;");if(this.m_bkgndcolor)document.write("background-color:"+this.m_bkgndcolor+";");if(this.m_width>0)document.write("width:"+this.m_width+"px;");else if(wp_menus.isIE())document.write("width:100%;");if(this.m_itemlines)document.write("border-bottom:"+this.m_bordersize+"px solid "+this.m_bordercolor+";");if(this.m_acStack.m_showright)document.write("padding:"+this.m_padding+";");else document.write("text-align:right;padding:"+this.m_padding+";");if(this.m_txtalign)document.write("text-align:"+this.m_txtalign+";");if(d){document.write("background-image:url("+this.m_imagearrow+");background-repeat:no-repeat;background-position:");if(this.m_acStack.m_showright)document.write("right;");else document.write("left;")}document.write('" onmouseover="wp_SubMenuOver(\''+a+"');");document.write('" onmouseout="wp_SubMenuOut(\''+a+"');\" onclick=\"wp_ForceClose('"+a+"');\">");document.writeln(f+"</"+(b==""?"div":"a")+"></td></tr>");var c=document.getElementById(a);c.m_root=this;c.m_idchild=d;c.m_menu=this.m_active};function wp_ImageRoll(b,c){var a=document.getElementById(c);if(a.m_root.m_txtnbclr.length>0)if(b==0){a.style.backgroundColor=a.m_root.m_txtnbbkgndclr;a.style.color=a.m_root.m_txtnbclr}else{a.style.backgroundColor=a.m_root.m_txtnbbkgndclrinv;a.style.color=a.m_root.m_txtnbclrinv}if(a.m_imgNormal)if(b==0)a.src=a.m_imgNormal.src;else a.src=a.m_imgOver.src}function wp_MenuItemOver(b,a,c){document.getElementById(b).m_root=a;clearInterval(a.m_timeout);if(c)document.getElementById(c).m_depth=1;a.m_active=b;a.m_acStack.push(0,b,c)}function wp_SubMenuOver(b){var a=document.getElementById(b),c=document.getElementById(a.m_menu);if(a.m_idchild)document.getElementById(a.m_idchild).m_depth=c.m_depth+1;clearInterval(a.m_root.m_timeout);a.m_root.m_acStack.push(c.m_depth,b,a.m_idchild)}function wp_SubMenuOut(b){var a=document.getElementById(b);if(a.m_root.m_active)a.m_root.m_timeout=setInterval("wp_Timeout('"+a.m_root.m_active+"')",a.m_root.m_delay)}function wp_MenuItemOut(b,a){a.m_timeout=setInterval("wp_Timeout('"+b+"')",a.m_delay)}function wp_Timeout(b){var a=document.getElementById(b);a.p_root.m_acStack.clear();a.p_root.m_active=null}function wp_ForceClose(b){var a=document.getElementById(b);clearInterval(a.m_root.m_timeout);a.m_root.m_acStack.clear();a.m_root.m_active=null}wp_activestack.prototype.count=0;wp_activestack.prototype.type=0;wp_activestack.prototype.gap=1;wp_activestack.prototype.bordergap=1;wp_activestack.prototype.m_firstpopup=0;wp_activestack.prototype.m_showbelow=true;wp_activestack.prototype.m_showright=true;wp_activestack.prototype.m_padding=20;function wp_activestack(){this.depth=[];this.element=[]}wp_activestack.prototype.push=function(d,a,c){while(this.count>0&&d<=this.depth[this.count-1])this.pop();if(a){this.depth[this.count]=d;this.element[this.count]=a;this.count++;document.getElementById(a).m_idchild=c;if(d==0){wp_ImageRoll(1,a);if(c)this.ShowMenu(c,a,true)}else{var b=document.getElementById(a);b.style.backgroundColor=b.m_root.m_bkgndcolorhl;b.style.color=b.m_root.m_textcolorhl;if(b.style.backgroundImage)b.style.backgroundImage="url("+b.m_root.m_imagearrowhl+")";if(c)this.ShowMenu(c,a,false)}}};wp_activestack.prototype.pop=function(){with(this)if(count>0){count--;if(depth[count]==0)wp_ImageRoll(0,element[count]);else{var e=document.getElementById(element[count]);e.style.backgroundColor=e.m_root.m_bkgndcolor;e.style.color=e.m_root.m_textcolor;if(e.style.backgroundImage)e.style.backgroundImage="url("+e.m_root.m_imagearrow+")"}var idchild=document.getElementById(element[count]).m_idchild;if(idchild)document.getElementById(idchild).style.visibility="hidden";depth[count]=element[count]=null}};wp_activestack.prototype.clear=function(){while(this.count>0)this.pop()};wp_activestack.prototype.ShowMenu=function(j,i,l){var c=document.getElementById(i),a=document.getElementById(j),b=0,d=0,e=c;while(e){b+=e.offsetTop;d+=e.offsetLeft;e=e.offsetParent}if(this.type==1||!l){var h=a.m_depth==1?this.gap:c.m_root.m_bordersize;if(this.m_showright)d+=c.offsetWidth+h;else d-=a.offsetWidth-h;if(!this.m_showbelow)b-=a.offsetHeight-c.offsetHeight-c.m_root.m_bordersize*2}else if(a.m_depth==1)if(this.m_showbelow)b+=c.offsetHeight+this.gap;else b-=a.offsetHeight+this.gap;if(b+a.offsetHeight>document.body.scrollTop+document.body.clientHeight)b-=b+a.offsetHeight-(document.body.scrollTop+document.body.clientHeight);if(a.m_depth==1)if(this.type==0){if(this.m_firstpopup==1)d=d+(c.offsetWidth-a.offsetWidth)/2;else if(this.m_firstpopup==2)d=d+c.offsetWidth-a.offsetWidth;else if(this.m_firstpopup==3){var k=c.offsetWidth-(wp_menus.isIE()?0:this.m_padding)-1,g=a.getElementsByTagName(wp_menus.isIE()?"td":"a");for(var f=0;f<g.length;++f)g[f].style.width=k}}else if(this.m_firstpopup==1)b=b+(c.offsetHeight-a.offsetHeight)/2;else if(this.m_firstpopup==2)b=b+c.offsetHeight-a.offsetHeight;a.style.top=b+"px";a.style.left=d+"px";a.style.visibility="visible"}