var global_navtree=WpNavBar.readTree({childArray:[{sTitle:"Home",bIsWebPath:true,sUrl:"index.html"},{sTitle:"Contact",bIsWebPath:true,sUrl:"page5.html"}]}) function WpNavBar(){}var JSON=JSON||{};(function(){function str(a,b){var c,d,e,f,g=gap,h,i=b[a];if(i&&typeof i==="object"&&typeof i.toJSON==="function"){i=i.toJSON(a)}if(typeof rep==="function"){i=rep.call(b,a,i)}switch(typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":if(!i){return"null"}gap+=indent;h=[];if(Object.prototype.toString.apply(i)==="[object Array]"){f=i.length;for(c=0;c<f;c+=1){h[c]=str(c,i)||"null"}e=h.length===0?"[]":gap?"[\n"+gap+h.join(",\n"+gap)+"\n"+g+"]":"["+h.join(",")+"]";gap=g;return e}if(rep&&typeof rep==="object"){f=rep.length;for(c=0;c<f;c+=1){d=rep[c];if(typeof d==="string"){e=str(d,i);if(e){h.push(quote(d)+(gap?": ":":")+e)}}}}else{for(d in i){if(Object.hasOwnProperty.call(i,d)){e=str(d,i);if(e){h.push(quote(d)+(gap?": ":":")+e)}}}}e=h.length===0?"{}":gap?"{\n"+gap+h.join(",\n"+gap)+"\n"+g+"}":"{"+h.join(",")+"}";gap=g;return e}}function quote(a){escapable.lastIndex=0;return escapable.test(a)?'"'+a.replace(escapable,function(a){var b=meta[a];return typeof b==="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function f(a){return a<10?"0"+a:a}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(a){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(a){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;if(typeof JSON.stringify!=="function"){JSON.stringify=function(a,b,c){var d;gap="";indent="";if(typeof c==="number"){for(d=0;d<c;d+=1){indent+=" "}}else if(typeof c==="string"){indent=c}rep=b;if(b&&typeof b!=="function"&&(typeof b!=="object"||typeof b.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":a})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){function walk(a,b){var c,d,e=a[b];if(e&&typeof e==="object"){for(c in e){if(Object.hasOwnProperty.call(e,c)){d=walk(e,c);if(d!==undefined){e[c]=d}else{delete e[c]}}}}return reviver.call(a,b,e)}var j;cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}})();WpNavBar.mergeOptions=function(a,b){for(var c in b){if(b.hasOwnProperty(c)){try{if(b[c].constructor==Object){if(a[c]===undefined){a[c]=b[c]}else{a[c]=WpNavBar.mergeOptions(a[c],b[c])}}else{a[c]=b[c]}}catch(d){if(b[c]!==null){a[c]=b[c]}}}}return a};WpNavBar.formatFlashParams=function(a){var b="";for(var c in a){if(a.hasOwnProperty(c)){if(a[c].constructor==Array){for(var d=0;d<a[c].length;++d){if(b!==""){b+="&"}b+=c+d.toString()+"="+a[c][d]}}else{if(b!==""){b+="&"}b+=c+"="+a[c]}}}return b};WpNavBar.readTree=function(a){try{WpNavBar.addLinks(a,a)}catch(b){a=null}return a};WpNavBar.getErrorObj=function(a){var b=new Error(a);if(!b.message){b.message=a}return b};WpNavBar.getRelPath=function(a,b){if(!a){return b}var c=a.split("/");var d=b.split("/");var e=0;for(;e<c.length-1&&e<d.length-1;e++){if(c[e]!=d[e]){break}}var f="";for(var g=e;g<c.length-1;g++){f+="../"}for(var h=e;h<d.length-1;h++){f+=d[h]+"/"}f+=d[d.length-1];return f};WpNavBar.addLinks=function(a){var b=null;var c=false;for(var d=0;d<a.childArray.length;d++){var e=a.childArray[d];c=c||e.bSeparatorBefore===true;e.bSeparator=c&&d!==0;e.parent=a;e.leftSibling=b;if(b!==null){b.rightSibling=e}e.rightSibling=null;if(e.childArray){WpNavBar.addLinks(e)}c=e.bSeparatorAfter===true;b=e}};WpNavBar.removeLinks=function(a){for(var b=0;b<a.childArray.length;b++){var c=a.childArray[b];c.parent=null;c.leftSibling=null;c.rightSibling=null;if(c.childArray){WpNavBar.removeLinks(c)}}return a};WpNavBar.makeGenNavBarItem=function(childArray,item,options,sOverideTarget){var newnavbaritem={};newnavbaritem.sTitle=item.sTitle;newnavbaritem.sDescription=item.sDescription;newnavbaritem.bSeparator=item.bSeparator;newnavbaritem.bSeparatorBefore=item.bSeparatorBefore;newnavbaritem.bSeparatorAfter=item.bSeparatorAfter;newnavbaritem.bIsAnchor=item.bIsAnchor;newnavbaritem.bIsExternal=item.bIsExternal;newnavbaritem.sTarget=item.sTarget;newnavbaritem.bIsSwrFeed=item.bIsSwrFeed;if(sOverideTarget!==null){newnavbaritem.sTarget=sOverideTarget}if(!options.m_bIsCustom&&(options.m_bAbsoluteLinks===true||item.bIsWebPath===true)){if(options.m_sThisPageUrl&&item.sUrl==options.m_sThisPageUrl){newnavbaritem.bIsCurrentPage=true}}var sUrl=item.sUrl;if(options.m_bHasNavElements){if(sUrl=="%parent%"){sUrl=options.m_sUpUrl}else if(sUrl=="%child%"){sUrl=options.m_sDownUrl}else if(sUrl=="%previous%"){sUrl=options.m_sLeftUrl}else if(sUrl=="%next%"){sUrl=options.m_sRightUrl}}var sActiveFrameUrl=null;var sActiveFrameId=null;if(!item.bOverrideNavBarTarget){if(!newnavbaritem.sTarget||newnavbaritem.sTarget===""){newnavbaritem.sTarget=options.m_sNavBarTarget}sActiveFrameUrl=options.m_sNavbarActiveFrameUrl;sActiveFrameId=options.m_sNavBarActiveFrameId;if(item.sActiveFrameUrl){sActiveFrameUrl=item.sActiveFrameUrl;sActiveFrameId=item.sActiveFrameId}}if(sActiveFrameUrl){var relpathframetopage=item.bIsWebPath===true?WpNavBar.getRelPath(sActiveFrameUrl,sUrl):sUrl;if(options.m_bAbsoluteLinks!==true){sActiveFrameUrl=WpNavBar.getRelPath(options.m_sThisPageUrl,sActiveFrameUrl)}newnavbaritem.sUrl=sActiveFrameUrl+"?"+sActiveFrameId+"="+relpathframetopage}else{if(item.bIsWebPath){newnavbaritem.sUrl=WpNavBar.getRelPath(options.m_sThisPageUrl,sUrl)}else{newnavbaritem.sUrl=sUrl}}if((options.m_bIncludeChildren||options.m_bIncludeAnchors)&&item.childArray){for(var index=0;index<item.childArray.length;index++){var childnavbaritem=item.childArray[index];if(!options.m_bIncludeAnchors&&childnavbaritem.bIsAnchor===true){continue}if(!options.m_bIncludeChildren&&childnavbaritem.bIsAnchor!==true){continue}if(!newnavbaritem.childArray){newnavbaritem.childArray=[]}WpNavBar.makeGenNavBarItem(newnavbaritem.childArray,childnavbaritem,options,sOverideTarget)}}var bInsert=true;if(item.bIsSwrFeed&&!options.m_bNoScript&&!options.m_bFlash){var sFeedVar="feed_"+item.sSwrUid;if(eval("typeof("+sFeedVar+")")!="undefined"){var myfeed=eval(sFeedVar);for(var index=0;index<myfeed.childArray.length;index++){var childnavbaritem=myfeed.childArray[index];childnavbaritem.sActiveFrameUrl=item.sActiveFrameUrl;childnavbaritem.sActiveFrameId=item.sActiveFrameId;childnavbaritem.sTarget=item.sTarget;if(item.bFeedChildren){if(!newnavbaritem.childArray){newnavbaritem.childArray=[]}WpNavBar.makeGenNavBarItem(newnavbaritem.childArray,childnavbaritem,options,item.sTarget)}else{WpNavBar.makeGenNavBarItem(childArray,childnavbaritem,options,item.sTarget);bInsert=false}}}}if(bInsert){childArray[childArray.length]=newnavbaritem}};WpNavBar.makeRelLinks=function(a,b){if(!b.m_sThisPageUrl||b.m_bAbsoluteLinks===true){return}for(var c=0;c<a.childArray.length;c++){var d=a.childArray[c];if(d.bIsWebPath===true){if(d.sUrl==b.m_sThisPageUrl){d.bIsCurrentPage=true}d.sUrl=WpNavBar.getRelPath(b.m_sThisPageUrl,d.sUrl)}if(d.childArray){WpNavBar.makeRelLinks(d,b)}}};WpNavBar.findCurrentPage=function(a,b){if(!b.m_sThisPageUrl){return null}for(var c=0;c<a.childArray.length;c++){var d=a.childArray[c];if(d.bIsExternal!==true&&d.sUrl==b.m_sThisPageUrl){return d}if(d.childArray){var e=WpNavBar.findCurrentPage(d,b);if(e){return e}}}return null};WpNavBar.getNavTreeTopLevel=function(a,b){var c={};c.childArray=[];var d=WpNavBar.findCurrentPage(a,b);if(a&&a.childArray){for(var e=0;e<a.childArray.length;e++){var f=a.childArray[e];if(b.m_bHideCurrent&&f==d){continue}if(!b.m_bIncludeAnchors&&f.bIsAnchor===true){continue}WpNavBar.makeGenNavBarItem(c.childArray,f,b,null)}}WpNavBar.makeRelLinks(c,b);return c};WpNavBar.getNavTreeHome=function(a,b){var c={};c.childArray=[];var d=a.childArray[0];WpNavBar.makeGenNavBarItem(c.childArray,d,b,null);var e=c.childArray[0];if(!b.m_bNamed&&b.m_sHomeName){e.sTitle=b.m_sHomeName}WpNavBar.makeRelLinks(c,b);return c};WpNavBar.getNavTreeParentLevel=function(a,b){var c={};c.childArray=[];var d=a.childArray[0];var e=WpNavBar.findCurrentPage(a,b);var f=a;if(e&&e.parent){f=e.parent}var g=f;if(f&&f.parent){g=f.parent}if(b.m_bIncludeHome){WpNavBar.makeGenNavBarItem(c.childArray,d,b,null)}if(g&&g.childArray){for(var h=0;h<g.childArray.length;h++){var i=g.childArray[h];if(b.m_bHideCurrent&&i==e||b.m_bIncludeHome&&i==d||!b.m_bIncludeAnchors&&i.bIsAnchor===true){continue}WpNavBar.makeGenNavBarItem(c.childArray,i,b,null)}}WpNavBar.makeRelLinks(c,b);return c};WpNavBar.getNavTreeSameLevel=function(a,b){var c={};c.childArray=[];var d=a.childArray[0];var e=WpNavBar.findCurrentPage(a,b);var f=a;if(e&&e.parent){f=e.parent}if(b.m_bIncludeHome){WpNavBar.makeGenNavBarItem(c.childArray,d,b,null)}if(b.m_bIncludeParent&&f&&f.parent){if(!b.m_bIncludeHome||f!=d){WpNavBar.makeGenNavBarItem(c.childArray,f,b,null)}}if(f&&f.childArray){for(var g=0;g<f.childArray.length;g++){var h=f.childArray[g];if(b.m_bHideCurrent&&h==e||b.m_bIncludeHome&&h==d||b.m_bIncludeParent&&h==f||!b.m_bIncludeAnchors&&h.bIsAnchor===true){continue}WpNavBar.makeGenNavBarItem(c.childArray,h,b,null)}}WpNavBar.makeRelLinks(c,b);return c};WpNavBar.getNavTreeChildLevel=function(a,b){var c={};c.childArray=[];var d=a.childArray[0];var e=WpNavBar.findCurrentPage(a,b);if(b.m_bIncludeHome){WpNavBar.makeGenNavBarItem(c.childArray,d,b,null)}if(b.m_bIncludeParent&&e&&e.parent){if(!b.m_bIncludeHome||e!=d){WpNavBar.makeGenNavBarItem(c.childArray,e,b,null)}}if(e&&e.childArray){for(var f=0;f<e.childArray.length;f++){var g=e.childArray[f];if(b.m_bIncludeHome&&g==d||b.m_bIncludeParent&&g==e.parent||!b.m_bIncludeAnchors&&g.bIsAnchor===true){continue}WpNavBar.makeGenNavBarItem(c.childArray,g,b,null)}}WpNavBar.makeRelLinks(c,b);return c};WpNavBar.getNavTreeBreadcrumb=function(a,b){var c=a.childArray[0];var d={};d.childArray=[];var e=WpNavBar.findCurrentPage(a,b);if(e&&b.m_bHideCurrent){e=e.parent}var f=b.m_bIncludeHome;for(;e&&e.parent;e=e.parent){WpNavBar.makeGenNavBarItem(d.childArray,e,b,null);if(e==c){f=false}}if(f){WpNavBar.makeGenNavBarItem(d.childArray,c,b,null)}d.childArray.reverse();WpNavBar.makeRelLinks(d,b);return d};WpNavBar.getNavTreeAnchor=function(a,b){b.m_bIncludeAnchors=true;var c={};c.childArray=[];var d=WpNavBar.findCurrentPage(a,b);if(d&&d.childArray){for(var e=0;e<d.childArray.length;e++){var f=d.childArray[e];if(f.bIsAnchor!==true){continue}WpNavBar.makeGenNavBarItem(c.childArray,f,b,null)}}WpNavBar.makeRelLinks(c,b);return c};WpNavBar.getNavTreePrevNext=function(a,b,c,d){var e={};e.childArray=[];var f=a.childArray[0];var g=WpNavBar.findCurrentPage(a,b);var h=0;if(b.m_bIncludeHome){WpNavBar.makeGenNavBarItem(e.childArray,f,b,null);if(!b.m_bNamed&&b.m_sHomeName!==null){e.childArray[h].sTitle=b.m_sHomeName}h++}if(g&&g.parent){var i=g.leftSibling;if(c&&i){if(!b.m_bIncludeHome||i!=f){WpNavBar.makeGenNavBarItem(e.childArray,i,b,null);if(!b.m_bNamed&&b.m_sPrevName!==null){e.childArray[h].sTitle=b.m_sPrevName}h++}}if(b.m_bIncludeParent&&g.parent.parent){if(!b.m_bIncludeHome||g.parent!=f){WpNavBar.makeGenNavBarItem(e.childArray,g.parent,b,null);if(!b.m_bNamed&&b.m_sUpName!==null){e.childArray[h].sTitle=b.m_sUpName}h++}}var j=g.rightSibling;if(d&&j){if(!b.m_bIncludeHome||j!=f){WpNavBar.makeGenNavBarItem(e.childArray,j,b,null);if(!b.m_bNamed&&b.m_sNextName!==null){e.childArray[h].sTitle=b.m_sNextName}h++}}}WpNavBar.makeRelLinks(e,b);return e};WpNavBar.getNavTreeUp=function(a,b){var c={};c.childArray=[];var d=a.childArray[0];var e=0;if(b.m_bIncludeHome){WpNavBar.makeGenNavBarItem(c.childArray,d,b,null);if(!b.m_bNamed&&b.m_sHomeName!==null){c.childArray[e].sTitle=b.m_sHomeName}e++}var f=WpNavBar.findCurrentPage(a,b);if(f&&f.parent&&f.parent.parent){WpNavBar.makeGenNavBarItem(c.childArray,f.parent,b,null);if(!b.m_bNamed&&b.m_sUpName!==null){c.childArray[e].sTitle=b.m_sUpName}e++}WpNavBar.makeRelLinks(c,b);return c};WpNavBar.getNavTreeBack=function(a){var b={};b.childArray=[];b.childArray[0]={};b.childArray[0].sTitle=a;b.childArray[0].sUrl="javascript:history.back();";return b};WpNavBar.getNavTreeCustom=function(a,b){if(!a){return}b.m_bIncludeChildren=true;b.m_bIncludeAnchors=true;var c={};c.childArray=[];for(var d=0;d<a.childArray.length;d++){var e=a.childArray[d];WpNavBar.makeGenNavBarItem(c.childArray,e,b,null)}WpNavBar.makeRelLinks(c,b);return c} function PPImgInit(a,b,c,d,e,f,g){if(document.images)rolls[numRolls++]=new PPImg(a,b,c,d,e,f,g)}function PPImg(a,b,c,d,e,f,g){this.name=a;this.imgNormal=new Image;this.imgNormal.src=b;this.imgOver=new Image;this.imgOver.src=c;this.imgDown=new Image;this.imgDown.src=d;this.imgDownOver=new Image;this.imgDownOver.src=e;this.down=f;this.over=false;this.radio=g}function PPImgAction(a,b,c){if(!c)c=PPImgFind(b);var d=PPFindObj(b);if(c&&d){if(a=="over")d.src=c.down?c.imgDownOver.src:c.imgOver.src;else if(a=="out"){d.src=c.down?c.radio?c.imgDown.src:c.imgNormal.src:c.imgNormal.src;if(!c.radio)c.down=false}else if(a=="down"){c.down=true;PPImgAction("over",b,c);if(c.radio){for(var e=0;e<numRolls;e++)if(rolls[e].radio&&rolls[e].name!=b){rolls[e].down=false;PPImgAction("out",rolls[e].name,rolls[e])}}}else if(a=="up"){if(!c.radio){c.down=false;PPImgAction("over",b,c)}}}}function PPImgFind(a){if(document.images)for(var b=0;b<numRolls;b++)if(a==rolls[b].name)return rolls[b];return null}function PPFindObj(a,b){var c,d,e;if(!b)b=document;if((c=a.indexOf("?"))>0&&parent.frames.length){b=parent.frames[a.substring(c+1)].document;a=a.substring(0,c)}if(!(e=b[a])&&b.all)e=b.all[a];for(d=0;!e&&d<b.forms.length;d++)e=b.forms[d][a];for(d=0;!e&&b.layers&&d<b.layers.length;d++)e=PPFindObj(a,b.layers[d].document);return e}rolls=new Array;numRolls=0 function wp_navbar_menu(a,b,c,d){var e=this;e.m_timeout=null;e.m_active=null;e.options={m_bNoScript:false,m_bStaticScript:false,m_optAlignment:0,m_optGap:1,m_optPopupSeparation:1,m_optTimeOut:500,m_optShowBelow:1,m_optShowRight:1,m_optFirstPopupPosition:0,m_sCssClass:""};if(c){e.options=WpNavBar.mergeOptions(e.options,c);if(c.m_opTimeOut){c.m_optTimeOut=c.m_opTimeOut}}e.styleOptions={m_bSlidingDoors:false,top:{m_sSpacerText:""}};if(d){e.styleOptions=WpNavBar.mergeOptions(e.styleOptions,d)}e.write=function(a){if(this.options.m_bNoScript||this.options.m_bStaticScript){external.NavNoScriptWrite(a)}else{document.write(a)}};e.Create=function(a,b){if(!b||!b.childArray){return}var c=!this.options.m_bNoScript&&!this.options.m_bStaticScript;this.write('<div id="'+this.options.m_sId+'" class="'+this.options.m_sCssClass+'" style="position:absolute;left:'+this.options.m_iLeft+"px; top:"+this.options.m_iTop+"px; width:"+this.options.m_iWidth+"px; height:"+this.options.m_iHeight+"px;"+'">');for(var d=0;d<b.childArray.length;d++){var e=b.childArray[d];if(d!=0&&this.styleOptions.top.m_sSpacerText!=""){this.write('<span class="toplevelspacer">');this.write(this.styleOptions.top.m_sSpacerText);this.write("</span>")}var f=e.bIsCurrentPage;var g=e.childArray&&e.childArray.length>0;var h=a+"_"+d.toString();var i=g?"'"+a+"_P"+d.toString()+"'":"null";this.write("<a ");if(e.sUrl!==""){this.write('href="'+e.sUrl+'"')}this.write(' id="'+h+'"');if(e.sTarget){this.write(' target="'+e.sTarget+'"')}if(c){this.write(" onmouseover=\"wp_navbar_menu.wp_MenuItemOver('"+h+"',"+a+","+i+');"');this.write(" onmouseout=\"wp_navbar_menu.wp_MenuItemOut('"+h+"',"+a+');"')}this.write(' class="toplevelmenuitem');if(d===0){this.write(" toplevelmenuitem_firstchild")}if(d===b.childArray.length-1){this.write(" toplevelmenuitem_lastchild")}if(f){this.write(" toplevelmenuitem_currentpage")}if(c&&g){this.write(" toplevelmenuitem_hassubmenu")}if(e.sUrl===""){this.write(" toplevelmenuitem_inactive")}this.write(" normal");this.write('"');this.write(">");if(this.styleOptions.m_bSlidingDoors){this.write('<span class="toplevelmenuitem">')}this.write(e.sTitle.replace(/ /g," "));if(this.styleOptions.m_bSlidingDoors){this.write("</span>")}this.write("</a>");if(c){this.InitElement(h)}if(this.options.m_optAlignment==1){this.write("<br>")}}this.write("</div>");if(c){for(var d=0;d<b.childArray.length;d++){var e=b.childArray[d];var j=a+"_P"+d.toString();this.create_navbar_child_menus_recursive(a,j,e)}}if(this.options.m_bNoScript||this.options.m_bStaticScript){external.NavNoScriptComplete()}};e.create_navbar_child_menus_recursive=function(a,b,c){var d=c.childArray&&c.childArray.length>0;if(!d){return}this.BeginMenu(a,b);for(var e=0;e<c.childArray.length;e++){var f=c.childArray[e];var g=b+"_I"+e.toString();var h=f.childArray&&f.childArray.length>0;var i=h?b+"_P"+e.toString():null;var j=f.sTarget?f.sTarget:"_self";var k=f.bIsCurrentPage===true;if(f.bSeparator){var l=g+"_separator";this.AddLink(a,l,"","",null,null,true,false)}this.AddLink(a,g,f.sTitle.replace(/ /g," "),f.sUrl,i,j,false,k)}this.EndMenu();for(var e=0;e<c.childArray.length;e++){var f=c.childArray[e];var i=b+"_P"+e.toString();this.create_navbar_child_menus_recursive(a,i,f)}};e.InitElement=function(a){var b=document.getElementById(a);b.p_root=this};e.BeginMenu=function(a,b){this.m_active=b;this.write('<table class="'+this.options.m_sCssClass+"_level1"+'" id="'+b+'" style="visibility:hidden;z-index:100;position:absolute;'+'">')};e.EndMenu=function(){this.write("</table>");this.m_active=null};e.AddLink=function(a,b,c,d,e,f,g,h){this.write("<tr>");this.write("<td");this.write(" onmouseover=\"wp_navbar_menu.wp_SubMenuOver('"+b+"');\"");this.write(" onmouseout=\"wp_navbar_menu.wp_SubMenuOut('"+b+"');\" onclick=\"wp_navbar_menu.wp_ForceClose('"+b+"');\"");this.write(">");if(g){this.write("<hr")}else if(d===""){this.write("<p")}else{this.write('<a href="'+d+'"');if(f){this.write(' target="'+f+'"')}}this.write(' class="');if(e){this.write(" hassubmenu")}if(h){this.write(" currentpage")}this.write('"');this.write(' id="'+b+'"');this.write(' style="display:block;"');this.write(">");if(!g){this.write(c);if(d===""){this.write("</p>")}else{this.write("</a>")}}this.write("</td></tr>\n");var i=document.getElementById(b);i.m_root=this;i.m_idchild=e;i.m_menu=this.m_active};e.m_acStack=new wp_navbar_menu_activestack;e.Create(a,b)}function wp_navbar_menu_activestack(){this.depth=[];this.element=[]}wp_navbar_menu.isIE=function(){return/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)};wp_navbar_menu.wp_MenuItemOver=function(a,b,c){document.getElementById(a).m_root=b;clearInterval(b.m_timeout);if(c){document.getElementById(c).m_depth=1}b.m_active=a;b.m_acStack.push(0,a,c)};wp_navbar_menu.wp_MenuItemOut=function(a,b){b.m_timeout=setInterval("wp_navbar_menu.wp_Timeout('"+a+"')",b.options.m_optTimeOut)};wp_navbar_menu.wp_SubMenuOver=function(a){var b=document.getElementById(a);var c=document.getElementById(b.m_menu);if(b.m_idchild){document.getElementById(b.m_idchild).m_depth=c.m_depth+1}clearInterval(b.m_root.m_timeout);b.m_root.m_acStack.push(c.m_depth,a,b.m_idchild)};wp_navbar_menu.wp_SubMenuOut=function(a){var b=document.getElementById(a);if(b.m_root.m_active){b.m_root.m_timeout=setInterval("wp_navbar_menu.wp_Timeout('"+b.m_root.m_active+"')",b.m_root.options.m_optTimeOut)}};wp_navbar_menu.wp_Timeout=function(a){var b=document.getElementById(a);b.p_root.m_acStack.clear();b.p_root.m_active=null};wp_navbar_menu.wp_ForceClose=function(a){var b=document.getElementById(a);clearInterval(b.m_root.m_timeout);b.m_root.m_acStack.clear();b.m_root.m_active=null};wp_navbar_menu_activestack.prototype.count=0;wp_navbar_menu_activestack.prototype.m_padding=20;wp_navbar_menu_activestack.prototype.push=function(a,b,c){while(this.count>0&&a<=this.depth[this.count-1]){this.pop()}if(b){this.depth[this.count]=a;this.element[this.count]=b;this.count++;document.getElementById(b).m_idchild=c;if(a===0){if(c){this.ShowMenu(c,b,false)}}else{if(c){this.ShowMenu(c,b,true)}}}};wp_navbar_menu_activestack.prototype.pop=function(){if(this.count>0){this.count--;var a=document.getElementById(this.element[this.count]).m_idchild;if(a){document.getElementById(a).style.visibility="hidden"}this.depth[this.count]=this.element[this.count]=null}};wp_navbar_menu_activestack.prototype.clear=function(){while(this.count>0){this.pop()}};wp_navbar_menu_activestack.prototype.ShowMenu=function(a,b,c){var d=document.getElementById(b);var e=document.getElementById(a);var f=0;var g=0;var h=d;while(h&&h.style.position!="relative"){f+=h.offsetTop;g+=h.offsetLeft;h=h.offsetParent}if(d.m_root.options.m_optAlignment==1||c){var i=e.m_depth==1?d.m_root.options.m_optGap:d.m_root.options.m_optPopupSeparation;if(d.m_root.options.m_optShowRight){g+=d.offsetWidth+i}else{g-=e.offsetWidth-i}if(!d.m_root.options.m_optShowBelow){f-=e.offsetHeight-d.offsetHeight-d.m_root.options.m_optPopupSeparation*2}}else{if(e.m_depth==1){if(d.m_root.options.m_optShowBelow){f+=d.offsetHeight+d.m_root.options.m_optGap}else{f-=e.offsetHeight+d.m_root.options.m_optGap}}}if(f+e.offsetHeight>document.body.scrollTop+document.body.clientHeight){f=document.body.scrollTop+document.body.clientHeight-e.offsetHeight}if(f<0){f=0}if(g+e.offsetWidth>document.body.scrollLeft+document.body.clientWidth){g=document.body.scrollLeft+document.body.clientWidth-e.offsetWidth}if(g<0){g=0}if(e.m_depth==1){if(d.m_root.m_optAlignment==1){if(d.m_root.options.m_optFirstPopupPosition==1){f=f+(d.offsetHeight-e.offsetHeight)/2}else if(d.m_root.options.m_optFirstPopupPosition==2){f=f+d.offsetHeight-e.offsetHeight}}else{if(d.m_root.options.m_optFirstPopupPosition==1){g=g+(d.offsetWidth-e.offsetWidth)/2}else if(d.m_root.options.m_optFirstPopupPosition==2){g=g+d.offsetWidth-e.offsetWidth}else if(d.m_root.options.m_optFirstPopupPosition==3){var j=d.offsetWidth-(wp_navbar_menu.isIE()?0:this.m_padding)-1;var k=e.getElementsByTagName(wp_navbar_menu.isIE()?"td":"a");for(var l=0;l<k.length;++l){k[l].style.width=j}}}}e.style.top=f+"px";e.style.left=g+"px";e.style.visibility="visible"}
