/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 4.2.5
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000-2017 vBulletin Solutions Inc. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| #        www.vbulletin.com | www.vbulletin.com/license.html        # ||
|| #################################################################### ||
\*======================================================================*/
vB_XHTML_Ready.subscribe(function(){load_cms_overlay()});var config_overlay;function load_cms_overlay(){config_overlay=new vB_Overlay()}function cms_show_overlay(A){if(config_overlay==undefined){config_overlay=new vB_Overlay(null,A,"",this,true)}else{config_overlay.show_ajax(A,"",this,true)}return false}function decodeTreeNode(B){for(var C=0;C<B.children.length;C++){var D=B.children[C];var A=YAHOO.util.Dom.get(D.labelElId);if(A&&!D.vbdecoded){D.vbdecoded=true;A.innerHTML=PHP.unhtmlspecialchars(A.innerHTML);decodeTreeNode(D)}}}function initVbTreeMenus(M){var E=window.vbGlobal_SHOW_ALL_TREE_ELEMENTS_THRESHOLD?window.vbGlobal_SHOW_ALL_TREE_ELEMENTS_THRESHOLD:10;var I=YAHOO.util.Dom.getElementsByClassName("vb-tree-menu","div");for(var K=0;treeElement=I[K];K++){var G=null;if(!treeElement._vbTreeAlreadyProcessed){var H=-1;var P=treeElement.getElementsByTagName("li");for(var B=0;(H==-1)&&(treeItem=P[B]);B++){if(treeItem.className&&(YAHOO.util.Dom.hasClass(treeItem,"active"))){G=treeItem;H=B+1}}if(!M){var J=new YAHOO.widget.TreeView(treeElement);J.subscribe("clickEvent",function(S){if(S&&S.node&&S.node.href){location.href=S.node.href}});J.render();var D=parseInt(YAHOO.env.getVersion("treeview").version.replace(/\./g,"0"),10);if(D>=20900){J.subscribe("expandComplete",function(S){decodeTreeNode(S)});decodeTreeNode(J.getRoot())}var F=J.getNodeCount();if(F<=E){J.expandAll()}if(H!=-1){var O=J.getNodeByIndex(H);var L=O;while(L=L.parent){L.expand()}O.highlight();O.expand();YAHOO.util.Dom.addClass(O.getEl(),"activeVBMenuItem")}}else{var A="Site";var C=YAHOO.util.Dom.getElementsByClassName("echo_section","span",document.body);C=C[0]?C[0]:null;if(C&&G){var N=G.getElementsByTagName("a")[0].innerHTML;var Q=G.parentNode.parentNode;var R="Site";if(Q&&(Q.tagName.toLowerCase()=="li")){var R=Q.getElementsByTagName("a")[0].innerHTML}var A=R+" &gt; "+N}if(C){C.innerHTML=A}vBPrepTreeBranch(treeElement.getElementsByTagName("ul")[0],0,G)}treeElement._vbTreeAlreadyProcessed={}}}if(document.body.style&&(document.body.style.textAlign=="right")){window.correctYUIEl=function(){var U=YAHOO.util.Dom.getElementsByClassName("ygtvtn","div");var S=(((U!=null)&&(U[0]))?U[0]:null);if(!S){U=YAHOO.util.Dom.getElementsByClassName("ygtvtm","span");S=(((U!=null)&&(U[0]))?U[0].parentNode:null)}var T=null;if(S&&(T=S.getAttribute("style"))){S.removeAttribute("style");S.style.top="-1000px";S.style.left="-1000px";S.style.position="absolute";S.style.height="1px";S.style.width="1px"}else{window.setTimeout(window.correctYUIEl,500)}};window.onload=correctYUIEl}}function vBPrepTreeBranch(F,C,B){var A=false;YAHOO.util.Dom.addClass(F,"level_"+C);if(B&&(B.parentNode==F)){YAHOO.util.Dom.addClass(F,"active_branch")}if(C>0){YAHOO.util.Dom.addClass(F,"not_root")}else{A=true}var G=YAHOO.util.Dom.getChildren(F);for(var E=0;leaf=G[E];E++){if(leaf.tagName&&leaf.tagName.toLowerCase()=="li"){if((!B&&A)||(B&&(B.parentNode==F))){YAHOO.util.Dom.addClass(leaf,"sibling_active")}else{if(F.parentNode==B){YAHOO.util.Dom.addClass(leaf,"direct_child_active")}}YAHOO.util.Dom.addClass(leaf,"level_"+C);if(C>0){YAHOO.util.Dom.addClass(leaf,"not_root")}var D=leaf.getElementsByTagName("ul");D=D[0]?D[0]:null;if(D){vBPrepTreeBranch(D,(C+1),B)}}else{alert("Why would you put an <"+leaf.tagName+"> tag inside of a <"+leaf.parentNode.tagName+"> tag?");alert(leaf.parentNode.tagName.innerHTML)}}};