if(typeof jQuery=="undefined")jQuery=function(){};if(typeof jQuery.classBehaviours=="undefined")jQuery.classBehaviours=function(){};if(typeof jQuery.classBehaviours.handlers=="undefined")jQuery.classBehaviours.handlers=function(){};document.writeln("<style>.toggleNextNode{cursor:pointer;}</style>");jQuery.classBehaviours.handlers.toggleNextNode={name:"toggleNextNode",step:10,acceleration:10,extra:0,delay:10,index:0,start:function(a){a.onclick=this.toggle;a.id=a.id?a.id:this.name+this.index++;autoDelay=jQuery.classBehaviours.utilities.getClassParameter(a,"auto",null);if(autoDelay){this.index++;a.id=a.id?a.id:this.name+this.index;setTimeout('jQuery.classBehaviours.handlers.toggleNextNode.toggle(document.getElementById("'+a.id+'"))',autoDelay)}},findContainer:function(a,b){var c=jQuery.classBehaviours.handlers.toggleNextNode;if(b)for(var d=0;d<parseInt(b);d++)a=a.parentNode;targetObject=jQuery.classBehaviours.utilities.nextNode(a);targetObject.id=targetObject.id?targetObject.id:c.name+"Target"+c.index++;return targetObject},positionContainer:function(a,b,c){targetContainerWidth=a.firstChild.offsetWidth;screenWidth=window.innerWidth?window.innerWidth:document.documentElement.clientWidth;scrolledWidth=typeof document.documentElement.scrollLeft!="undefined"?document.documentElement.scrollLeft:window.pageXOffset;if(b+targetContainerWidth>screenWidth+window.pageXOffset)b-=targetContainerWidth;targetContainerHeight=a.firstChild.offsetHeight;screenHeight=window.innerHeight?window.innerHeight:document.documentElement.clientHeight;scrolledHeight=typeof document.documentElement.scrollTop!="undefined"?document.documentElement.scrollTop:window.pageYOffset;if(c+targetContainerHeight+10>screenHeight+scrolledHeight)c-=targetContainerHeight;a.style.left=b+"px";a.style.top=c+"px"},toggle:function(a){var c=typeof this.nodeName=="undefined"?a:this,b=jQuery.classBehaviours.handlers.toggleNextNode;targetLabel=c;targetContainerId=jQuery.classBehaviours.utilities.getClassParameter(targetLabel,"id",null);targetRecursion=jQuery.classBehaviours.utilities.getClassParameter(targetLabel,"parent",null);targetClosable=jQuery.classBehaviours.utilities.getClassParameter(targetLabel,"closable","yes")=="yes";targetAtMouse=jQuery.classBehaviours.utilities.getClassParameter(targetLabel,"atmouse","yes")=="yes";targetContainer=targetContainerId?document.getElementById(targetContainerId):b.findContainer(targetLabel,targetRecursion);if(targetContainer.className.indexOf("hideThisNode")<0&&targetContainer.className.indexOf("showThisNode")<0)targetContainer.className+=" showThisNode";targetGrows=targetContainer.className.indexOf("hideThisNode")>-1;(!targetGrows&&targetClosable||targetGrows)&&b.update(targetLabel.id,targetGrows);if(targetAtMouse&&targetGrows){screenXpos=typeof event!="undefined"&&document.all?event.x:a.layerX;screenYpos=typeof event!="undefined"&&document.all?event.y:a.layerY;b.positionContainer(targetContainer,screenXpos,screenYpos)}return false},update:function(d,c){var a=jQuery.classBehaviours.handlers.toggleNextNode;targetLabel=document.getElementById(d);targetContainerId=jQuery.classBehaviours.utilities.getClassParameter(targetLabel,"id",null);targetFamily=jQuery.classBehaviours.utilities.getClassParameter(targetLabel,"family",null);targetRecursion=jQuery.classBehaviours.utilities.getClassParameter(targetLabel,"parent",null);targetContainer=targetContainerId?document.getElementById(targetContainerId):a.findContainer(targetLabel,targetRecursion);allNodes=jQuery.classBehaviours.utilities.getElementsByClassName(a.name);for(var b=0;b<allNodes.length;b++){peerLabel=allNodes[b];peerContainerId=jQuery.classBehaviours.utilities.getClassParameter(peerLabel,"id",null);peerFamily=jQuery.classBehaviours.utilities.getClassParameter(peerLabel,"family",null);peerRecursion=jQuery.classBehaviours.utilities.getClassParameter(peerLabel,"parent",null);peerContainer=peerContainerId?document.getElementById(peerContainerId):a.findContainer(peerLabel,peerRecursion);if(peerLabel.id==targetLabel.id){peerContainer.style.overflow="hidden";peerContainer.style.visibility="visible";if(!c)jQuery.classBehaviours.fader.size(peerContainer.id,null,1,a.step,a.delay,a.acceleration,'jQuery.classBehaviours.handlers.hideThisNode.start(document.getElementById("'+peerContainer.id+'"))');else jQuery.classBehaviours.fader.size(peerContainer.id,1,null,a.step,a.delay,a.acceleration,'jQuery.classBehaviours.handlers.showThisNode.start(document.getElementById("'+peerContainer.id+'"))');peerLabel.className=!c?peerLabel.className.replace("active","link"):peerLabel.className.replace("link","active")}if(peerFamily==targetFamily&&peerFamily!=null&&peerContainer.className.indexOf("hideThisNode")<0&&peerContainer!=targetContainer){peerContainer.style.overflow="hidden";peerContainer.style.visibility="visible";jQuery.classBehaviours.fader.size(peerContainer.id,null,1,a.step,a.delay,a.acceleration,'jQuery.classBehaviours.handlers.hideThisNode.start(document.getElementById("'+peerContainer.id+'"))');peerLabel.className=peerLabel.className.replace("active","link")}}}};document.writeln("<style>.hideThisNode{overflow:hidden; visibility:hidden; height:1px;}</style>");jQuery.classBehaviours.handlers.hideThisNode={name:"hideThisNode",start:function(a){a.style.overflow="hidden";a.style.visibility="hidden";a.style.height="1px";a.className=a.className.replace("showThisNode","hideThisNode")}};document.writeln("<style>.ShowThisNode{overflow:visible; visibility:visible; height:auto;}</style>");jQuery.classBehaviours.handlers.showThisNode={name:"showThisNode",start:function(a){a.style.overflow="visible";a.style.visibility="visible";a.style.height="auto";a.className=a.className.replace("hideThisNode","showThisNode")}};if(typeof jQuery.fn!="undefined"){jQuery.fn.toggleNextNode=function(){return this.each(function(){jQuery.classBehaviours.handlers.toggleNextNode.start(this)})};jQuery.fn.hideThisNode=function(){return this.each(function(){jQuery.classBehaviours.handlers.hideThisNode.start(this)})};jQuery.fn.showThisNode=function(){return this.each(function(){jQuery.classBehaviours.handlers.showThisNode.start(this)})};$(document).ready(function(){$(".toggleNextNode").toggleNextNode();$(".hideThisNode").hideThisNode();$(".showThisNode").showThisNode()})}