typeof jQuery=="undefined"&&(jQuery=function(){}),typeof jQuery.classBehaviours=="undefined"&&(jQuery.classBehaviours=function(){}),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(n){n.nodeName=="INPUT"||n.nodeName=="TEXTAREA"||n.nodeName=="SELECT"?(n.onfocus=this.toggle,n.onblur=this.toggle):n.onclick=this.toggle,n.id=n.id?n.id:this.name+this.index++,autoDelay=jQuery.classBehaviours.utilities.getClassParameter(n,"auto",null),autoDelay&&(this.index++,n.id=n.id?n.id:this.name+this.index,setTimeout('jQuery.classBehaviours.handlers.toggleNextNode.toggle(document.getElementById("'+n.id+'"))',autoDelay))},findContainer:function(n,t){var r=jQuery.classBehaviours.handlers.toggleNextNode,i;if(t)for(i=0;i<parseInt(t);i++)n=n.parentNode;return targetObject=jQuery.classBehaviours.utilities.nextNode(n),targetObject.id=targetObject.id?targetObject.id:r.name+"Target"+r.index++,targetObject},positionContainer:function(n,t,i){n.firstChild!=null&&(targetContainerWidth=n.firstChild.offsetWidth,screenWidth=window.innerWidth?window.innerWidth:document.documentElement.clientWidth,scrolledWidth=typeof document.documentElement.scrollLeft!="undefined"?document.documentElement.scrollLeft:window.pageXOffset,t+targetContainerWidth>screenWidth+window.pageXOffset&&(t-=targetContainerWidth),targetContainerHeight=n.firstChild.offsetHeight,screenHeight=window.innerHeight?window.innerHeight:document.documentElement.clientHeight,scrolledHeight=typeof document.documentElement.scrollTop!="undefined"?document.documentElement.scrollTop:window.pageYOffset,i+targetContainerHeight+10>screenHeight+scrolledHeight&&(i-=targetContainerHeight),n.style.left=t+"px",n.style.top=i+"px")},toggle:function(n){var i=typeof this.nodeName=="undefined"?n:this,t=jQuery.classBehaviours.handlers.toggleNextNode;return targetLabel=i,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","no")=="yes",targetContainer=targetContainerId?document.getElementById(targetContainerId):t.findContainer(targetLabel,targetRecursion),targetContainer.className.indexOf("hideThisNode")<0&&targetContainer.className.indexOf("showThisNode")<0&&(targetContainer.className+=" showThisNode"),targetGrows=targetContainer.className.indexOf("hideThisNode")>-1,(!targetGrows&&targetClosable||targetGrows)&&t.update(targetLabel.id,targetGrows),targetAtMouse&&targetGrows&&(screenXpos=typeof event!="undefined"&&document.all?event.x:n.layerX,screenYpos=typeof event!="undefined"&&document.all?event.y:n.layerY,t.positionContainer(targetContainer,screenXpos,screenYpos)),!1},update:function(n,t){var i=jQuery.classBehaviours.handlers.toggleNextNode,r;for(targetLabel=document.getElementById(n),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):i.findContainer(targetLabel,targetRecursion),allNodes=jQuery.classBehaviours.utilities.getElementsByClassName(i.name),r=0;r<allNodes.length;r++)peerLabel=allNodes[r],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):i.findContainer(peerLabel,peerRecursion),peerLabel.id==targetLabel.id&&(peerContainer.style.overflow="hidden",peerContainer.style.visibility="visible",t?jQuery.classBehaviours.fader.size(peerContainer.id,1,null,i.step,i.delay,i.acceleration,'jQuery.classBehaviours.handlers.showThisNode.start(document.getElementById("'+peerContainer.id+'"))'):jQuery.classBehaviours.fader.size(peerContainer.id,null,1,i.step,i.delay,i.acceleration,'jQuery.classBehaviours.handlers.hideThisNode.start(document.getElementById("'+peerContainer.id+'"))'),peerLabel.className=t?peerLabel.className.replace("link","active"):peerLabel.className.replace("active","link")),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,i.step,i.delay,i.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(n){n.style.overflow="hidden",n.style.visibility="hidden",n.style.height="1px",n.className=n.className.replace("showThisNode","hideThisNode")}},document.writeln("<style>.ShowThisNode{overflow:visible; visibility:visible; height:auto;}</style>"),jQuery.classBehaviours.handlers.showThisNode={name:"showThisNode",start:function(n){n.style.overflow="visible",n.style.visibility="visible",n.style.height="auto",n.className=n.className.replace("hideThisNode","showThisNode")}},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()}))
