if(typeof classBehaviour=="undefined"){function ClassBehaviour(){this.handlers=[]}classBehaviour=new ClassBehaviour}function Blink(){this.name="blink";this.nodes=[];this.start=function(a){if(a.className.indexOf("blinkon")<0)a.className+=" blinkon";this.nodes[this.nodes.length]=[a,null,1024];this.loop(this.nodes.length-1)};this.loop=function(a){blinkObject=this.nodes[a][0];blinkObject.className=blinkObject.className.indexOf("blinkoff")>-1?blinkObject.className.replace("blinkoff","blinkon"):blinkObject.className.replace("blinkon","blinkoff");this.nodes[a][1]=setTimeout("classBehaviour.blink.loop("+a+")",this.nodes[a][2])}}classBehaviour.blink=new Blink;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.blink;function AnimatedClassName(){this.name="animatedClassName";this.index=0;this.interval=null;this.start=function(a){a.id=a.id?a.id:this.name+this.index++;animationDelay=parseInt(classBehaviour.utilities.getClassParameter(a,"delay","500"));onlyOnFocus=classBehaviour.utilities.getClassParameter(a,"focus","no")=="yes";if(onlyOnFocus){a.className+=" interaction_no";a.onmouseover=this.play;a.onmouseout=this.stop;a.onfocus=this.play;a.onblur=this.stop}else this.interval=setInterval('classBehaviour.animatedClassName.loop("'+a.id+'")',animationDelay)};this.play=function(b){var a=typeof this.nodeName=="undefined"?b:this;a.className=a.className.replace("interaction_no","interaction_yes");classBehaviour.animatedClassName.loop(a.id)};this.stop=function(b){var a=typeof this.nodeName=="undefined"?b:this;a.className=a.className.replace("interaction_yes","interaction_no")};this.loop=function(a){animNode=document.getElementById(a);animationStep=parseInt(classBehaviour.utilities.getClassParameter(animNode,"step","0"));animationLoop=parseInt(classBehaviour.utilities.getClassParameter(animNode,"loop","4"));nextAnimationStep=animationStep<animationLoop?animationStep+1:0;animNode.className=animNode.className.replace("step_"+animationStep+" ","step_"+nextAnimationStep+" ");interaction=classBehaviour.utilities.getClassParameter(animNode,"interaction",null);animationDelay=parseInt(classBehaviour.utilities.getClassParameter(animNode,"delay","500"));if(interaction=="yes")setTimeout('classBehaviour.animatedClassName.loop("'+a+'")',animationDelay);else interaction=="no"&&classBehaviour.utilities.setClassParameter(animNode,"step","0")}}classBehaviour.animatedClassName=new AnimatedClassName;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.animatedClassName;function ClassMouseHover(){this.name="classMouseHover";this.start=function(a){a.onmouseover=this.addHover;a.onmouseout=this.remHover};this.hasNoStateClass=function(a){return a.className.indexOf("link")<0&&a.className.indexOf("hover")<0&&a.className.indexOf("active")<0};this.addHover=function(b){var a=typeof this.nodeName=="undefined"?b:this,c=classBehaviour.classMouseHover;a.className=c.hasNoStateClass(a)?"hover "+a.className:a.className.replace("link","hover");allImages=a.getElementsByTagName("IMG");if(allImages.length>0)allImages[0].src=allImages[0].src.replace("_link","_hover")};this.remHover=function(b){var a=typeof this.nodeName=="undefined"?b:this,c=classBehaviour.classMouseHover;a.className=c.hasNoStateClass(a)?"link "+a.className:a.className.replace("hover","link");allImages=a.getElementsByTagName("IMG");if(allImages.length>0)allImages[0].src=allImages[0].src.replace("_hover","_link")};this.addActive=function(b){var a=typeof this.nodeName=="undefined"?b:this,c=classBehaviour.classMouseHover;a.className=a.className.replace("link","active");a.className=a.className.replace("hover","active");if(c.hasNoStateClass(a))a.className="active "+a.className}}classBehaviour.classMouseHover=new ClassMouseHover;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.classMouseHover;function PseudoHover(){this.name="pseudoHover";this.index=0;this.timeout=null;this.start=function(b){allItems=b.getElementsByTagName("LI");for(var a=0;a<allItems.length;a++)if(allItems[a].nodeName=="LI"){allItems[a].className+=allItems[a].className.indexOf("link")<0?" link":"";allItems[a].onmouseover=this.hoverOver;allItems[a].onmouseout=this.hoverOff}};this.hoverOver=function(c){var a=typeof this.nodeName=="undefined"?c:this,b=classBehaviour.pseudoHover;clearTimeout(b.timeout);panelNode=a.getElementsByTagName("UL");if(panelNode.length>0){panelNode[0].id=panelNode[0].id?panelNode[0].id:b.name+b.index++;classBehaviour.fader.reveal(panelNode[0].id,panelNode[0].offsetWidth,panelNode[0].offsetHeight,100,25)}a.className=a.className.replace("link","hover")};this.hoverOff=function(d){var b=typeof this.nodeName=="undefined"?d:this,c=classBehaviour.pseudoHover;clearTimeout(c.timeout);panelNode=b.getElementsByTagName("UL");if(panelNode.length>0)c.timeout=setTimeout('classBehaviour.fader.vanish("'+panelNode[0].id+'")',250);peersAndChildPanels=b.parentNode.getElementsByTagName("UL");for(var a=0;a<peersAndChildPanels.length;a++)peersAndChildPanels[a].id&&peersAndChildPanels[a]!=panelNode[0]&&peersAndChildPanels[a].parentNode.parentNode!=panelNode[0]&&classBehaviour.fader.vanish(peersAndChildPanels[a].id);b.className=b.className.replace("hover","link")}}classBehaviour.pseudoHover=new PseudoHover;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.pseudoHover;function SrcMouseHover(){this.name="srcMouseHover";this.cache=[];this.start=function(a){this.cacheImages(a);a.onmouseover=this.addHover;a.onmouseout=this.remHover};this.cacheImages=function(c){var a=typeof this.nodeName=="undefined"?c:this;if(!a.src)a=a.getElementsByTagName("IMG")[0];var b=this.cache.length;this.cache[b]=new Image;this.cache[b].src=a.src.replace("_link","_hover");this.cache[b+1]=new Image;this.cache[b+1].src=a.src.replace("_link","_active")};this.addActive=function(b){var a=typeof this.nodeName=="undefined"?b:this;if(a.nodeName!="IMG")a=a.getElementsByTagName("IMG")[0];a.src=a.src.replace("_link","_active");a.src=a.src.replace("_hover","_active")};this.addHover=function(b){var a=typeof this.nodeName=="undefined"?b:this;if(!a.src)a=a.getElementsByTagName("IMG")[0];a.src=a.src.replace("_link","_hover")};this.remHover=function(b){var a=typeof this.nodeName=="undefined"?b:this;if(!a.src)a=a.getElementsByTagName("IMG")[0];a.src=a.src.replace("_hover","_link")}}classBehaviour.srcMouseHover=new SrcMouseHover;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.srcMouseHover;function FadeMouseHover(){this.name="fadeMouseHover";this.index=0;this.timeOut=null;this.start=function(a){this.setUpFader(a)};this.setUpFader=function(b){var a=typeof this.nodeName=="undefined"?b:this;a.id=a.id?a.id:this.name+this.index++;a.className=a.className.replace(this.name,"");clonedNode=a.cloneNode(true);clonedNode.style.position="absolute";clonedNode.className=clonedNode.className.replace(this.name,"hover");if(clonedNode.src)clonedNode.src=clonedNode.src.replace("_link.","_hover.");clonedNode.id=clonedNode.id?clonedNode.id:this.name+this.index++;a.parentNode.insertBefore(clonedNode,a);newNode=classBehaviour.utilities.previousNode(a);classBehaviour.fader.setFade(newNode,0);newNode.onmouseover=this.addHover;newNode.onmouseout=this.remHover};this.addHover=function(b){var a=typeof this.nodeName=="undefined"?b:this,c=classBehaviour.fadeMouseHover;if(classBehaviour.fader.getFade(a)%100==0)classBehaviour.fader.fadeIn(a.id,20,50,"");else c.timeOut=setTimeout('classBehaviour.fadeMouseHover.addHover(document.getElementById("'+a.id+'"))',50)};this.remHover=function(b){var a=typeof this.nodeName=="undefined"?b:this,c=classBehaviour.fadeMouseHover;if(classBehaviour.fader.getFade(a)%100==0)classBehaviour.fader.fadeOut(a.id,20,50,"");else c.timeOut=setTimeout('classBehaviour.fadeMouseHover.remHover(document.getElementById("'+a.id+'"))',100)}}classBehaviour.fadeMouseHover=new FadeMouseHover;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.fadeMouseHover;document.writeln("<style>.hideThisNode{overflow:hidden; visibility:hidden; height:1px;}</style>");function HideThisNode(){this.name="hideThisNode";this.start=function(a){a.style.overflow="hidden";a.style.visibility="hidden";a.style.height="1px";a.className=a.className.replace("showThisNode","hideThisNode")}}classBehaviour.hideThisNode=new HideThisNode;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.hideThisNode;document.writeln("<style>.ShowThisNode{overflow:visible; visibility:visible; height:auto;}</style>");function ShowThisNode(){this.name="showThisNode";this.start=function(a){a.style.overflow="visible";a.style.visibility="visible";a.style.height="auto";a.className=a.className.replace("hideThisNode","showThisNode")}}classBehaviour.showThisNode=new ShowThisNode;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.showThisNode;document.writeln("<style>.toggleNextNode{cursor:pointer;}</style>");function ToggleNextNode(){this.name="toggleNextNode";this.step=1e4;this.delay=1;this.index=0;this.start=function(a){a.onclick=this.toggle;a.id=a.id?a.id:this.name+this.index++;autoDelay=classBehaviour.utilities.getClassParameter(a,"auto",null);if(autoDelay){this.index++;a.id=a.id?a.id:this.name+this.index;setTimeout('classBehaviour.toggleNextNode.toggle(document.getElementById("'+a.id+'"))',autoDelay)}};this.shrink=function(b,a,c){var d=classBehaviour.toggleNextNode;b.className=b.className.replace("active","link");b.parentNode.className=b.parentNode.className.replace("active","link");if(a.offsetHeight>d.step){heightBefore=a.style.height;a.style.overflow="hidden";a.style.visibility="visible";a.style.height=a.offsetHeight-d.step+"px";heightAfter=a.style.height;c=heightBefore==heightAfter?classBehaviour.hideThisNode.start(a):false}else classBehaviour.hideThisNode.start(a);return c};this.grow=function(b,a,d){var e=classBehaviour.toggleNextNode;b.className=b.className.replace("link","active").replace("hover","active");b.parentNode.className=b.parentNode.className.replace("link","active").replace("hover","active");totalHeight=0;contents=a.childNodes;for(var c=0;c<contents.length;c++)totalHeight+=contents[c].offsetHeight?contents[c].offsetHeight:0;if(a.offsetHeight<totalHeight-e.step){heightBefore=a.style.height;a.style.overflow="hidden";a.style.visibility="visible";a.style.height=a.offsetHeight+e.step+"px";heightAfter=a.style.height;d=heightBefore==heightAfter?classBehaviour.showThisNode.start(a):(d=false)}else classBehaviour.showThisNode.start(a);return d};this.findContainer=function(a,b){if(b)for(var c=0;c<parseInt(b);c++)a=a.parentNode;targetObject=classBehaviour.utilities.nextNode(a);return targetObject};this.toggle=function(c){var b=typeof this.nodeName=="undefined"?c:this,a=classBehaviour.toggleNextNode;targetLabel=b;targetContainerId=classBehaviour.utilities.getClassParameter(targetLabel,"id",null);targetRecursion=classBehaviour.utilities.getClassParameter(targetLabel,"parent",null);targetContainer=targetContainerId?document.getElementById(targetContainerId):a.findContainer(targetLabel,targetRecursion);if(targetContainer.className.indexOf("hideThisNode")<0&&targetContainer.className.indexOf("showThisNode")<0)targetContainer.className+=" showThisNode";targetGrows=targetContainer.className.indexOf("hideThisNode")>-1;a.update(targetLabel.id,targetGrows);return false};this.update=function(d,b){var a=classBehaviour.toggleNextNode;finished=true;targetLabel=document.getElementById(d);targetContainerId=classBehaviour.utilities.getClassParameter(targetLabel,"id",null);targetFamily=classBehaviour.utilities.getClassParameter(targetLabel,"family",null);targetRecursion=classBehaviour.utilities.getClassParameter(targetLabel,"parent",null);targetContainer=targetContainerId?document.getElementById(targetContainerId):a.findContainer(targetLabel,targetRecursion);allNodes=classBehaviour.utilities.getElementsByClassName(a.name);for(var c=0;c<allNodes.length;c++){peerLabel=allNodes[c];peerContainerId=classBehaviour.utilities.getClassParameter(peerLabel,"id",null);peerFamily=classBehaviour.utilities.getClassParameter(peerLabel,"family",null);peerRecursion=classBehaviour.utilities.getClassParameter(peerLabel,"parent",null);peerContainer=peerContainerId?document.getElementById(peerContainerId):a.findContainer(peerLabel,peerRecursion);if(peerFamily==targetFamily&&peerFamily!=null&&peerContainer.className.indexOf("hideThisNode")<0&&peerContainer!=targetContainer)finished=this.shrink(peerLabel,peerContainer,finished);else if(peerLabel.id==targetLabel.id&&!b)finished=this.shrink(targetLabel,targetContainer,finished);else if(peerLabel.id==targetLabel.id&&b)finished=this.grow(targetLabel,targetContainer,finished)}if(!finished)setTimeout("classBehaviour.toggleNextNode.update('"+d+"',"+b+")",a.delay);else document.body.className.indexOf("resizeIframe")>-1&&classBehaviour.resizeIframe.delay()}}classBehaviour.toggleNextNode=new ToggleNextNode;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.toggleNextNode;function TabbedContent(){this.name="tabbedContent";this.start=function(b){allLists=b.getElementsByTagName("ul");allTabs=allLists[0].getElementsByTagName("a");openedTab=null;for(var a=0;a<allTabs.length;a++){tabId=allTabs[a].href.split("#")[1];allTabs[a].onclick=this.open;if(allTabs[a].className.indexOf("closedTab")<0&&allTabs[a].className.indexOf("openedTab")<0)allTabs[a].className+=" closedTab";document.getElementById(tabId).style.display="none";if(document.location.href.indexOf(allTabs[a].href)>-1)openedTab=allTabs[a];if(allTabs[a].className.indexOf("openedTab")>-1)openedTab=allTabs[a]}pager=allLists[allLists.length-1].className.indexOf("contentPager")>-1?allLists[allLists.length-1]:null;if(pager!=null){pager.getElementsByTagName("button")[0].onclick=this.previous;pager.getElementsByTagName("button")[1].onclick=this.next}openedTab!=null&&this.open(openedTab,true)};this.next=function(b){var a=typeof this.nodeName=="undefined"?b:this,c=classBehaviour.tabbedContent;pagerInfo=a.parentNode.parentNode.getElementsByTagName("span")[0].firstChild.nodeValue;currentPage=parseInt(pagerInfo.split("/")[0]);totalPages=parseInt(pagerInfo.split("/")[1]);nextPage=currentPage<totalPages?currentPage+1:1;tabStrip=a.parentNode.parentNode.parentNode.getElementsByTagName("ul")[0];targetTab=tabStrip.getElementsByTagName("a")[nextPage-1];c.open(targetTab)};this.previous=function(b){var a=typeof this.nodeName=="undefined"?b:this,c=classBehaviour.tabbedContent;pagerInfo=a.parentNode.parentNode.getElementsByTagName("span")[0].firstChild.nodeValue;currentPage=parseInt(pagerInfo.split("/")[0]);totalPages=parseInt(pagerInfo.split("/")[1]);previousPage=currentPage>1?currentPage-1:totalPages;tabStrip=a.parentNode.parentNode.parentNode.getElementsByTagName("ul")[0];targetTab=tabStrip.getElementsByTagName("a")[previousPage-1];c.open(targetTab)};this.open=function(g,e){for(var b=typeof this.nodeName=="undefined"?g:this,h=classBehaviour.tabbedContent,d=b.parentNode.parentNode.getElementsByTagName("a"),a=null,f=0,c=0;c<d.length;c++){if(d[c].className.indexOf("openedTab")>-1)a=d[c];if(d[c]==b)f=c}if(a!=b||e){if(a){a.className=a.className.replace("openedTab","closedTab");tabImages=a.getElementsByTagName("img");if(tabImages.length>0)tabImages[0].src=tabImages[0].src.replace("_active","_link");prevContentId=a.href.split("#")[1]}else prevContentId=null;b.className=b.className.replace("closedTab","openedTab");tabImages=b.getElementsByTagName("img");if(tabImages.length>0)tabImages[0].src=tabImages[0].src.replace("_link","_active").replace("_hover","_active");nextContentId=b.href.split("#")[1];tabHeight=classBehaviour.utilities.getClassParameter(b.parentNode.parentNode.parentNode,"off","0");isAnimated=e?"no":classBehaviour.utilities.getClassParameter(b,"animated","yes");if(isAnimated=="yes"){if(a)document.getElementById(prevContentId).style.position="absolute";if(a)document.getElementById(prevContentId).style.top=tabHeight+"px";document.getElementById(nextContentId).style.position="relative";if(a)document.getElementById(nextContentId).style.top="0px";classBehaviour.fader.crossFade(nextContentId,prevContentId,0,10,50,null)}else{if(a)document.getElementById(prevContentId).style.display="none";document.getElementById(nextContentId).style.display="block"}}b.blur();return false}}classBehaviour.tabbedContent=new TabbedContent;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.tabbedContent;function OpenLayerPopUp(){this.name="openLayerPopUp";this.popUpClass="layerPopUp";this.step=10;this.begin=0;this.end=50;this.index=0;this.start=function(a){targetPopUp=null;a.onclick=this.load;a.id=a.id?a.id:this.name+"Link"+this.index++;classBehaviour.utilities.getClassParameter(a,"auto","no")=="yes"&&setTimeout('classBehaviour.openLayerPopUp.load(document.getElementById("'+a.id+'"))',250)};this.fadeIn=function(c,a){var b=classBehaviour.openLayerPopUp;node=document.getElementById(c);nodes=node.getElementsByTagName("div");nodeShadow=nodes[0];nodeContent=nodes[1];if(a<b.end){node.style.visibility="visible";nodeContent.style.visibility="hidden";nodeShadow.style.display="block";if(typeof nodeShadow.style.MozOpacity!="undefined")nodeShadow.style.MozOpacity=a/100;if(typeof nodeShadow.style.filter!="undefined")nodeShadow.style.filter="alpha(opacity="+a+")";if(typeof nodeShadow.style.opacity!="undefined")nodeShadow.style.opacity=a/100;node.style.display="block";setTimeout("classBehaviour.openLayerPopUp.fadeIn('"+c+"',"+(a+b.step)+")",10)}else nodeContent.style.visibility="visible"};this.fadeOut=function(c,a){var b=classBehaviour.openLayerPopUp;node=document.getElementById(c);nodes=node.getElementsByTagName("div");nodeShadow=nodes[0];nodeContent=nodes[1];if(a>b.begin){nodeContent.style.visibility="hidden";if(typeof nodeShadow.style.MozOpacity!="undefined")nodeShadow.style.MozOpacity=a/100;if(typeof nodeShadow.style.filter!="undefined")nodeShadow.style.filter="alpha(opacity="+a+")";if(typeof nodeShadow.style.opacity!="undefined")nodeShadow.style.opacity=a/100;setTimeout("classBehaviour.openLayerPopUp.fadeOut('"+c+"',"+(a-b.step)+")",10)}else{node.style.display="none";nodeShadow.style.display="none"}};this.load=function(c){var a=typeof this.nodeName=="undefined"?c:this,b=classBehaviour.openLayerPopUp;popUpHref=a.href?a.href:"";popUpId=popUpHref.indexOf("#")>-1?popUpHref.split("#")[1]:classBehaviour.utilities.getClassParameter(a,"id","popUpWithScrollBar");popUpObj=document.getElementById(popUpId);if(popUpObj)b.show(a,popUpId);else classBehaviour.ajax.addRequest(popUpHref,b.insert,b.wait,null,a);return false};this.wait=function(b,a){var c=classBehaviour.openLayerPopUp;a.parentNode.style.backgroundPosition=100-b*100+"% 0px"};this.insert=function(d,b,a){var c=classBehaviour.openLayerPopUp;c.instance+=1;popUpId=classBehaviour.utilities.getClassParameter(b,"id",c.name+c.instance);popUpWidth=classBehaviour.utilities.getClassParameter(b,"width","470");popUpHeight=classBehaviour.utilities.getClassParameter(b,"height","300");newNode=document.createElement("div");document.body.appendChild(newNode);allDivs=document.getElementsByTagName("div");lastDiv=allDivs[allDivs.length-1];a=a.indexOf("<body>")>-1?a.split("<body>")[1].split("</body>")[0]:a.replace('<?xml version="1.0"?>',"");a=a.replace(/{id}/gi,popUpId);a=a.replace(/{title}/gi,b.title);a=a.replace(/{url}/gi,b.href.split("?url=")[1]);a=a.replace(/{width}/gi,popUpWidth);a=a.replace(/{height}/gi,popUpHeight);lastDiv.innerHTML=a;classBehaviour.parser.parseNode(lastDiv.getElementsByTagName("div")[0]);c.show(b,popUpId)};this.center=function(a){if(a){a.style.display="block";popupContent=a.getElementsByTagName("DIV")[2];popupHeight=popupContent.offsetHeight;screenHeight=window.innerHeight?window.innerHeight:document.documentElement.clientHeight;popupContent.style.marginTop=screenHeight>popupHeight?Math.round((screenHeight-popupHeight)/2)+"px":"0px"}};this.show=function(a,c){var b=classBehaviour.openLayerPopUp,e=false;if(a){b.step=parseInt(classBehaviour.utilities.getClassParameter(a,"step",10));b.begin=parseInt(classBehaviour.utilities.getClassParameter(a,"begin",0));b.end=parseInt(classBehaviour.utilities.getClassParameter(a,"end",50))}popUpObj=document.getElementById(c);popUpObj.style.visibility="hidden";this.center(popUpObj);popUpTitles=popUpObj.getElementsByTagName("h1");if(a)if(a.title&&popUpTitles.length>0)popUpTitles[0].innerHTML=a.title;popUpIframes=popUpObj.getElementsByTagName("iframe");if(popUpIframes.length>0&&a.href.indexOf("?url=")>-1)if(popUpIframes[0].src!=a.href.split("?url=")[1])popUpIframes[0].src=a.href.split("?url=")[1];popUpClosers=popUpObj.getElementsByTagName("a");if(popUpClosers.length>0)popUpClosers[0].onclick=b.hide;if(navigator.appVersion.indexOf("MSIE 6")>-1||navigator.appVersion.indexOf("MSIE 5")>-1){if(popUpObj.className.indexOf("fullHeightPopUp")<0){document.documentElement.scrollLeft=0;document.documentElement.scrollTop=0;document.body.parentNode.style.overflow="hidden";popUpObj.getElementsByTagName("DIV")[2].style.marginTop=Math.round(document.documentElement.scrollTop+(screenHeight-popupHeight)/2)+"px"}popUpObj.getElementsByTagName("DIV")[0].style.height=document.body.offsetHeight+"px";allSelects=document.getElementsByTagName("select");for(var d=0;d<allSelects.length;d++)allSelects[d].style.visibility="hidden"}if(b.opened!=null){document.getElementById(b.opened).style.display="none";document.getElementById(c).style.display="block";document.getElementById(c).style.visibility="visible"}else setTimeout('classBehaviour.openLayerPopUp.fadeIn("'+c+'", '+b.begin+")",1e3);b.opened=c;return e};this.hide=function(e,c){var d=typeof this.nodeName=="undefined"?e:this,a=classBehaviour.openLayerPopUp;if(c)popUp=document.getElementById(c);else popUp=d.parentNode.parentNode.parentNode;a.fadeOut(popUp.id,a.end);if(navigator.appVersion.indexOf("MSIE 6")>-1||navigator.appVersion.indexOf("MSIE 5")>-1){if(popUp.className.indexOf("fullHeightPopUp")<0)document.body.parentNode.style.overflow="";allSelects=document.getElementsByTagName("select");for(var b=0;b<allSelects.length;b++)allSelects[b].style.visibility="visible"}popUpIframes=popUp.getElementsByTagName("iframe");if(popUpIframes.length>0)popUpIframes[0].src="";a.opened=null;return false}}classBehaviour.openLayerPopUp=new OpenLayerPopUp;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.openLayerPopUp;function ReplaceLayerPopUp(){this.name="replaceLayerPopUp";this.start=function(a){a.onclick=this.clicked};this.wait=function(){};this.insert=function(c,a,b){rootNode=classBehaviour.utilities.rootNode(a,null,null,"layerPopUp");popUpText=b.split("<!-- cut here -->")[1];rootNode.innerHTML=popUpText;classBehaviour.parser.parseNode(rootNode);classBehaviour.openLayerPopUp.center(rootNode);popUpClosers=rootNode.getElementsByTagName("a");if(popUpClosers.length>0)popUpClosers[0].onclick=classBehaviour.openLayerPopUp.hide};this.clicked=function(c){var a=typeof this.nodeName=="undefined"?c:this,b=classBehaviour.replaceLayerPopUp;importUrl=a.href;classBehaviour.ajax.addRequest(importUrl,b.insert,b.wait,null,a);return false}}classBehaviour.replaceLayerPopUp=new ReplaceLayerPopUp;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.replaceLayerPopUp;function LayerPopUp(){this.name="layerPopUp";this.start=function(a){a.className.indexOf("doNotMove")<0&&this.process(a)};this.process=function(a){removedChild=a.parentNode.removeChild(a);removedChild.className+=" doNotMove";document.body.appendChild(removedChild)}}classBehaviour.layerPopUp=new LayerPopUp;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.layerPopUp;function CloseLayerPopUp(){this.name="closeLayerPopUp";this.start=function(a){a.onclick=this.closePopUp};this.closePopUp=function(c){var b=typeof this.nodeName=="undefined"?c:this;if(parent!=self){allPopUps=parent.classBehaviour.utilities.getElementsByClassName("layerPopUp");for(var a=0;a<allPopUps.length;a++)parent.classBehaviour.openLayerPopUp.hide(allPopUps[a])}else{rootNode=classBehaviour.utilities.rootNode(b,null,null,"layerPopUp");classBehaviour.openLayerPopUp.hide(rootNode)}}}classBehaviour.closeLayerPopUp=new CloseLayerPopUp;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.closeLayerPopUp;function OpenAsPrintable(){this.name="openAsPrintable";this.start=function(a){a.onclick=this.process};this.process=function(a){var b=typeof this.nodeName=="undefined"?a:this;if(document.getElementById("tgtPopTitle")){document.getElementById("tgtPopTitle").innerHTML=document.getElementById("content").getElementsByTagName("h1")[0].innerHTML;document.getElementById("tgtPopText").innerHTML=document.getElementById("content").innerHTML.indexOf("</h1>")>-1?document.getElementById("content").innerHTML.split("</h1>")[1]:document.getElementById("content").innerHTML.split("</H1>")[1];classBehaviour.openLayerPopUp.show(document.getElementById("popup0"));setTimeout("window.print();",2048)}else window.print();return false}}classBehaviour.openAsPrintable=new OpenAsPrintable;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.openAsPrintable;function CloseThisWindow(){this.name="closeThisWindow";this.start=function(a){a.onclick=this.process};this.process=function(a){var b=typeof this.nodeName=="undefined"?a:this;window.close()}}classBehaviour.closeThisWindow=new CloseThisWindow;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.closeThisWindow;function ValidateInput(){this.name="validateInput";this.summaryId=null;this.lastFocus=null;this.customChecks=new CustomChecks;this.start=function(c){this.summaryId=classBehaviour.utilities.getClassParameter(c,"summaryId",this.summaryId);for(var b=this.isFormElement(c)||this.isFormButton(c)?new Array(c):c.getElementsByTagName("*"),a=0;a<b.length;a++){if(this.isFormElement(b[a])){b[a].onfocus=this.clear;b[a].onmousedown=this.clear;b[a].onblur=this.input;b[a].onchange=this.input;b[a].className=c.className}if(this.isFormButton(b[a]))b[a].onclick=this.all}hasExplanation=classBehaviour.utilities.getClassParameter(c,"explanation","no");hasExplanation=="yes"&&setTimeout("classBehaviour.validateInput.restore('"+c.id+"','"+c.value+"')",1e3)};this.warning=function(a,c){var e=classBehaviour.validateInput;if(a.className.indexOf("noWarning")<0)a.className=c?a.className.replace(" validationWarning",""):a.className+" validationWarning";allWithSameName=document.getElementsByName(a.name);for(var d=0;d<allWithSameName.length;d++){a=allWithSameName[d];idWarningNode=classBehaviour.utilities.getClassParameter(a,"warningId",null);nextNode=classBehaviour.utilities.nextNode(a);objWarningNode=idWarningNode?document.getElementById(idWarningNode):nextNode;if(objWarningNode)if(objWarningNode.className.indexOf("validationWarning")>-1)objWarningNode.style.display=c?"none":"block";allLabels=document.getElementsByTagName("label");for(var b=0;b<allLabels.length;b++)if(allLabels[b].getAttributeNode("for").nodeValue==a.id)if(allLabels[b].parentNode.className.indexOf("noWarning")<0&&allLabels[b].className.indexOf("noWarning")<0)allLabels[b].className=c?allLabels[b].className.replace(" validationWarning",""):allLabels[b].className+" validationWarning"}};this.restore=function(c,b){var a=document.getElementById(c);if(a.value!=b)a.className=a.className.replace("explanation_yes","explanation_no")};this.isFormButton=function(a){return a.getAttribute("type")=="submit"||a.nodeName=="BUTTON"};this.isFormElement=function(a){return a.getAttribute("type")=="text"||a.getAttribute("type")=="password"||a.getAttribute("type")=="file"||a.getAttribute("type")=="radio"||a.getAttribute("type")=="checkbox"||a.nodeName=="SELECT"||a.nodeName=="TEXTAREA"};this.summary=function(d){var c=classBehaviour.validateInput;rootNode=classBehaviour.utilities.rootNode(d,null,null,"validateAllInput");c.summaryId=classBehaviour.utilities.getClassParameter(rootNode,"summaryId",null);if(c.summaryId){summaryObj=document.getElementById(c.summaryId);summaryTxt="";for(var b=rootNode.getElementsByTagName("*"),a=0;a<b.length;a++)if(b[a].className.indexOf("validationWarning")>-1&&b[a].style.display=="block")summaryTxt+="<li>"+b[a].innerHTML+"</li>";summaryObj.style.display=summaryTxt.length>0?"block":"none";summaryObj.getElementsByTagName("div")[0].innerHTML=summaryTxt.length>0?"<ul>"+summaryTxt+"</ul>":""}};this.ajaxWait=function(a,b,c){b.innerHTML=a<0?"error: "+c:"sending: "+Math.round(a*100)+"%"};this.ajaxReply=function(c,b,a){b.innerHTML=a.indexOf("</body>")>-1?a.split("<body>")[1].split("</body>")[0]:a.split("<root>")[1].split("</root>")[0];classBehaviour.parser.parseNode(b)};this.clear=function(a){var a=typeof this.nodeName=="undefined"?that:this,b=classBehaviour.validateInput;b.lastFocus=a;hasExplanation=classBehaviour.utilities.getClassParameter(a,"explanation","no");if(hasExplanation=="yes"){a.value="";a.className=a.className.replace("explanation_yes","explanation_no")}};this.all=function(g){var e=typeof this.nodeName=="undefined"?g:this,c=classBehaviour.validateInput,d=true;if(c.lastFocus!=null)e=c.lastFocus;if(e!=null)rootNode=classBehaviour.utilities.rootNode(e,null,null,"validateAllInput");for(var b=rootNode.getElementsByTagName("*"),f="",a=0;a<b.length;a++){if(b[a].className.toLowerCase().indexOf("validateinput")>-1&&c.isFormElement(b[a]))d=c.input(b[a],false)&&d;if(b[a].nodeName=="INPUT"||b[a].nodeName=="SELECT"||b[a].nodeName=="TEXTAREA")f+=b[a].checked||b[a].type!="radio"&&b[a].type!="checkbox"?b[a].name+"="+b[a].value+"&":""}replyId=classBehaviour.utilities.getClassParameter(rootNode,"ajaxReplyId",null);submitId=classBehaviour.utilities.getClassParameter(rootNode,"ajaxReplyUrl",null);if(replyId!=null&&submitId!=null&&d){replyTarget=document.getElementById(replyId);submitUrl=document.getElementById(submitId).nodeName=="FORM"?document.getElementById(submitId).getAttribute("action"):document.getElementById(submitId).getAttribute("value");classBehaviour.ajax.addRequest(submitUrl+"?"+f,c.ajaxReply,c.ajaxWait,null,replyTarget);return false}else return d};this.input=function(f,e){var a=typeof this.nodeName=="undefined"?f:this,c=classBehaviour.validateInput,d,b;strValidatorName=classBehaviour.utilities.getClassParameter(a,"type","");allowEmpty=classBehaviour.utilities.getClassParameter(a,"allowEmpty","no");ifCheckedId=classBehaviour.utilities.getClassParameter(a,"ifCheckedId",null);hasExplanation=classBehaviour.utilities.getClassParameter(a,"explanation","no");if(ifCheckedId)if(!document.getElementById(ifCheckedId).checked)allowEmpty="yes";d=allowEmpty=="yes"&&(a.value==""||hasExplanation=="yes");if(navigator.appVersion.indexOf("MSIE 5.0")>-1&&strValidatorName=="money")strValidatorName=null;switch(strValidatorName){case"email":b=a.value.match(/^[\w\.\-\,\+]+@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/)!=null;break;case"phone":b=a.value.match(/(^\+[0-9]{2}|^\+[0-9]{2}\(0\)|^\(\+[0-9]{2}\)\(0\)|^00[0-9]{2}|^0)([0-9]{9}$|[0-9\-\s]{10}$)/)!=null;break;case"dutchzipcode":b=a.value.match(/^[0-9]{4}\s{0,1}[a-zA-Z]{2}$/)!=null;break;case"date":b=a.value.match(/^\d{4}\-\d{1,2}\-\d{1,2}$/)!=null;break;case"number":b=a.value.match(/^[0-9]+$/)!=null;break;case"money":b=a.value.match(/^[0-9]+(\.[0-9]{1,2})?$/)!=null;break;case"alphanumeric":b=a.value.match(/^[a-zA-Z0-9]/)!=null;break;case"bankaccount":b=c.customChecks.bankAccount(a);break;case"isradiochecked":b=c.customChecks.isRadioChecked(a);break;case"anyofthesechecked":b=c.customChecks.anyOfTheseChecked(a);break;case"text":b=a.value!="";break;case"regexp":customRegId=classBehaviour.utilities.getClassParameter(a,"regxid","myRegExp");customRegString=document.getElementById(customRegId).value;customRegExp=new RegExp(customRegString);b=a.value.match(customRegExp)!=null;break;default:b=true}validates=!d?b&&hasExplanation=="no":true;c.warning(a,validates);c.summary(a);return e!=null?validates:e}}function CustomChecks(){this.bankAccount=function(e){var d,c,a=e.value,b=0;if(a.length!=9)return false;else{for(i=0;i<a.length;i++)b+=a.substr(i,1)*(9-i);d=b/11;c=b%11;return c==0}};this.isRadioChecked=function(b){allInputs=document.getElementsByTagName("input");for(var a=0;a<allInputs.length;a++)if(allInputs[a].name==b.name)if(allInputs[a].checked)return true;return false};this.anyOfTheseChecked=function(b){anyChecked=false;allChecks=b.parentNode.parentNode.getElementsByTagName("input");for(var a=0;a<allChecks.length;a++)if(allChecks[a].checked)anyChecked=true;return anyChecked}}classBehaviour.validateInput=new ValidateInput;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.validateInput;function ValidateAllInput(){this.name="validateAllInput";this.start=function(a){if(a.nodeName=="FORM")a.onsubmit=classBehaviour.validateInput.all}}classBehaviour.validateAllInput=new ValidateAllInput;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.validateAllInput;function DisableAfterSubmit(){this.name="disableAfterSubmit";this.start=function(b){b.onsubmit=this.disable;allNodes=b.getElementsByTagName("*");if(typeof __doPostBack!="undefined")for(var a=0;a<allNodes.length;a++){if(allNodes[a].onchange!=null)if(allNodes[a].onchange.toString().indexOf("__doPostBack")>-1)allNodes[a].onchange=this.disable;if(allNodes[a].onclick!=null)if(allNodes[a].onclick.toString().indexOf("__doPostBack")>-1)allNodes[a].onclick=this.disable}b.className.indexOf("validateAllInput")>-1&&classBehaviour.validateAllInput.start(b)};this.disable=function(c){var b=typeof this.nodeName=="undefined"?c:this;typeof __doPostBack!="undefined"&&__doPostBack(b.id,b.value);allNodes=document.getElementsByTagName("*");for(var a=0;a<allNodes.length;a++)if(allNodes[a].nodeName.indexOf("INPUT")>-1||allNodes[a].nodeName.indexOf("SELECT")>-1||allNodes[a].nodeName.indexOf("TEXTAREA")>-1){allNodes[a].disabled=true;allNodes[a].onfocus=blur}}}classBehaviour.disableAfterSubmit=new DisableAfterSubmit;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.disableAfterSubmit;function LocationPicker(){this.name="locationPicker";this.start=function(a){a.onchange=this.update;setTimeout('document.getElementById("'+a.id+'").selectedIndex=0;',256)};this.prepare=function(a,b){a>=0&&classBehaviour.fader.setFade(b,a*100)};this.build=function(c,b){activeDates=c.getElementsByTagName("days")[0].childNodes.length>0?c.getElementsByTagName("days")[0].firstChild.nodeValue:"empty";activeDates=","+activeDates+",";locationContainerId=classBehaviour.utilities.getClassParameter(b,"source",null);locationContainer=document.getElementById(locationContainerId);timeContainerId=classBehaviour.utilities.getClassParameter(b,"target",null);timeContainer=document.getElementById(timeContainerId);timeContainer.disabled=locationContainer.value==""?"true":"false";if(locationContainer.value==""){classBehaviour.fader.setFade(b,50);activeDates="empty"}b=classBehaviour.datePicker.node;allCalendarCells=b.getElementsByTagName("tbody")[0].getElementsByTagName("td");for(var a=0;a<allCalendarCells.length;a++){dayValue=","+allCalendarCells[a].innerHTML.replace(/<(.|\n)+?>/gi,"")+",";if(dayValue!=",,")if(activeDates.indexOf(dayValue)>-1){allCalendarCells[a].innerHTML='<span><a class="source_'+locationContainerId+" target_"+timeContainerId+'" href="#'+dayValue.replace(/,/gi,"")+'">'+dayValue.replace(/,/gi,"")+"</a></span>";allCalendarCells[a].getElementsByTagName("a")[0].onclick=classBehaviour.timePicker.pick}else allCalendarCells[a].innerHTML="<span>"+dayValue.replace(/,/gi,"")+"</span>";else allCalendarCells[a].innerHTML="<span></span>"}alternativeLimit=parseInt(classBehaviour.utilities.getClassParameter(b,"limit","10"));alternativeContainerId=classBehaviour.utilities.getClassParameter(b,"alternative",null);alternativeContainer=document.getElementById(alternativeContainerId);if(alternativeContainer!=null){allDates=c.getElementsByTagName("dates")[0].childNodes.length>0?c.getElementsByTagName("dates")[0].firstChild.nodeValue:"";allDates=allDates.split(",");alternativePicker='<select class="source_'+locationContainerId+" target_"+timeContainerId+'" name="selDatum" id="selDatum">';for(var a=0;a<allDates.length;a+=3)alternativePicker+='<option value="'+allDates[a+0]+","+allDates[a+1]+","+allDates[a+2]+'">'+allDates[a+0]+"-"+allDates[a+1]+"-"+allDates[a+2]+"</option>";alternativePicker+="</select>";alternativeContainer.innerHTML=alternativePicker;alternativeContainer.getElementsByTagName("SELECT")[0].onchange=classBehaviour.timePicker.pickAlt;alternativeContainer.style.display=allDates.length/3<alternativeLimit?"block":"none";b.style.display=allDates.length/3<alternativeLimit?"none":"block";calendarLegend=classBehaviour.utilities.nextNode(b);calendarLegend.style.display=allDates.length/3<alternativeLimit?"none":"block";if(locationContainer.value=="")alternativeContainer.getElementsByTagName("SELECT")[0].disabled="disabled";else classBehaviour.timePicker.pickAlt(alternativeContainer.getElementsByTagName("SELECT")[0])}pickerAddress=c.getElementsByTagName("address")[0].childNodes.length>0?c.getElementsByTagName("address")[0].firstChild.nodeValue:"";if(document.getElementById("locationPickerAddress")!=null)document.getElementById("locationPickerAddress").innerHTML=pickerAddress;if(locationContainer.value==""){if(document.getElementById("locationPickerAddress")!=null)document.getElementById("locationPickerAddress").innerHTML="";if(document.getElementById("timePickerCapacity")!=null)document.getElementById("timePickerCapacity").innerHTML="";if(document.getElementById("timePickerParticipants")!=null)document.getElementById("timePickerParticipants").innerHTML=""}};this.update=function(b){var a=typeof this.nodeName=="undefined"?b:this;calendarContainerId=classBehaviour.utilities.getClassParameter(a,"target",null);calendarContainer=document.getElementById(calendarContainerId);locationContainer=a;locationHtmlSrc=classBehaviour.utilities.previousNode(locationContainer).value;locationValue=locationContainer.value;monthValue=calendarContainer.getElementsByTagName("input")[0].value;yearValue=calendarContainer.getElementsByTagName("input")[1].value;locationHtmlSrc=locationHtmlSrc.replace(/{location}/gi,locationValue).replace(/{month}/gi,monthValue).replace(/{year}/gi,yearValue);classBehaviour.ajax.addRequest(locationHtmlSrc,classBehaviour.locationPicker.build,classBehaviour.locationPicker.prepare,null,calendarContainer)}}classBehaviour.locationPicker=new LocationPicker;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.locationPicker;function DatePicker(){this.name="datePicker";this.index=0;this.active=false;this.node=null;this.start=function(a){this.node=a;dateHtmlSrc=classBehaviour.utilities.previousNode(a).value;classBehaviour.ajax.addRequest(dateHtmlSrc,classBehaviour.datePicker.build,classBehaviour.datePicker.prepare,null,a)};this.prepare=function(a,b,c){b.innerHTML=a>=0?"loading: "+Math.round(a*100)+"%":"error: "+c};this.build=function(d,a,b){var c=classBehaviour.datePicker;a.innerHTML=b.replace('<?xml version="1.0"?>',"").replace("<root>","").replace("</root>","");theDate=new Date;c.set(a,theDate);locationContainerId=classBehaviour.utilities.getClassParameter(a,"source",null);locationContainer=document.getElementById(locationContainerId);locationContainer.disabled=false;classBehaviour.fader.setFade(a,50)};this.set=function(b,a){dpr=classBehaviour.datePicker;b.getElementsByTagName("a")[0].onclick=dpr.previous;b.getElementsByTagName("a")[1].onclick=dpr.next;monthNode=b.getElementsByTagName("input")[0];monthNode.value=a.getMonth();yearSelect=b.getElementsByTagName("input")[1];yearSelect.value=a.getFullYear();dateNames=b.getElementsByTagName("input")[2].value.split(",");b.getElementsByTagName("strong")[0].innerHTML=dateNames[a.getMonth()]+" "+a.getFullYear();daySlots=b.getElementsByTagName("span");for(var c=0;c<daySlots.length;c++)daySlots[c].innerHTML="";currentDay=new Date(a.getFullYear(),a.getMonth(),1);nextDay=new Date(a.getFullYear(),a.getMonth(),2);startWeekDay=currentDay.getDay()+5;if(startWeekDay>6)startWeekDay-=7;do{currentDay=new Date(currentDay.getFullYear(),currentDay.getMonth(),currentDay.getDate()+1);nextDay=new Date(nextDay.getFullYear(),nextDay.getMonth(),nextDay.getDate()+1);daySlots[currentDay.getDate()+startWeekDay].innerHTML=currentDay.getDate()}while(currentDay.getDate()!=1);dpr.active=true};this.next=function(b){var a=typeof this.nodeName=="undefined"?b:this,c=classBehaviour.datePicker;dateContainer=classBehaviour.utilities.rootNode(a,null,null,"datePicker");month=parseInt(dateContainer.getElementsByTagName("input")[0].value);year=parseInt(dateContainer.getElementsByTagName("input")[1].value);theDate=new Date(year,month+1,1);c.set(dateContainer,theDate);locationContainerId=classBehaviour.utilities.getClassParameter(dateContainer,"source",null);locationContainer=document.getElementById(locationContainerId);classBehaviour.locationPicker.update(locationContainer);return false};this.previous=function(b){var a=typeof this.nodeName=="undefined"?b:this,c=classBehaviour.datePicker;dateContainer=classBehaviour.utilities.rootNode(a,null,null,"datePicker");month=parseInt(dateContainer.getElementsByTagName("input")[0].value);year=parseInt(dateContainer.getElementsByTagName("input")[1].value);theDate=new Date(year,month-1,1);c.set(dateContainer,theDate);locationContainerId=classBehaviour.utilities.getClassParameter(dateContainer,"source",null);locationContainer=document.getElementById(locationContainerId);classBehaviour.locationPicker.update(locationContainer);return false}}classBehaviour.datePicker=new DatePicker;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.datePicker;function TimePicker(){this.name="timePicker";this.start=function(a){a.disabled=true;a.onchange=this.update};this.prepare=function(a,b,c){b.innerHTML=a>=0?"loading: "+Math.round(a*100)+"%":"error: "+c};this.build=function(c,a,b){a.innerHTML=b.split("<root>")[1].split("</root>")[0];a.getElementsByTagName("SELECT")[0].onchange=classBehaviour.timePicker.update;classBehaviour.timePicker.update(a.getElementsByTagName("SELECT")[0])};this.update=function(b){var a=typeof this.nodeName=="undefined"?b:this;selectedOption=a[a.selectedIndex];selectedCapacity=classBehaviour.utilities.getClassParameter(selectedOption,"capacity","");selectedParticipants=classBehaviour.utilities.getClassParameter(selectedOption,"participants","");if(document.getElementById("timePickerCapacity")!=null)document.getElementById("timePickerCapacity").innerHTML=selectedCapacity;if(document.getElementById("timePickerParticipants")!=null)document.getElementById("timePickerParticipants").innerHTML=selectedParticipants};this.pick=function(b){var a=typeof this.nodeName=="undefined"?b:this;timeContainerId=classBehaviour.utilities.getClassParameter(a,"target",null);timeContainer=document.getElementById(timeContainerId);locationContainerId=classBehaviour.utilities.getClassParameter(a,"source",null);locationContainer=document.getElementById(locationContainerId);locationValue=locationContainer.value;dayValue=a.innerHTML;dateContainer=classBehaviour.utilities.rootNode(a,null,null,"datePicker");month=dateContainer.getElementsByTagName("input")[0];monthValue=parseInt(month.value)+1;year=dateContainer.getElementsByTagName("input")[1];yearValue=parseInt(year.value);timeHtmlSrc=classBehaviour.utilities.previousNode(timeContainer.parentNode).value;timeHtmlSrc=timeHtmlSrc.replace(/{location}/gi,locationValue).replace(/{day}/gi,dayValue).replace(/{month}/gi,monthValue).replace(/{year}/gi,yearValue);classBehaviour.ajax.addRequest(timeHtmlSrc,classBehaviour.timePicker.build,classBehaviour.timePicker.prepare,null,timeContainer.parentNode);return false};this.pickAlt=function(b){var a=typeof this.nodeName=="undefined"?b:this;timeContainerId=classBehaviour.utilities.getClassParameter(a,"target",null);timeContainer=document.getElementById(timeContainerId);locationContainerId=classBehaviour.utilities.getClassParameter(a,"source",null);locationContainer=document.getElementById(locationContainerId);locationValue=locationContainer.value;dayValue=a.value.split(",")[0];monthValue=a.value.split(",")[1];yearValue=a.value.split(",")[2];timeHtmlSrc=classBehaviour.utilities.previousNode(timeContainer.parentNode).value;timeHtmlSrc=timeHtmlSrc.replace(/{location}/gi,locationValue).replace(/{day}/gi,dayValue).replace(/{month}/gi,monthValue).replace(/{year}/gi,yearValue);classBehaviour.ajax.addRequest(timeHtmlSrc,classBehaviour.timePicker.build,classBehaviour.timePicker.prepare,null,timeContainer.parentNode);return false}}classBehaviour.timePicker=new TimePicker;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.timePicker;document.writeln("<style>.flashTitle .flashAlternative{visibility : hidden;}</style>");function FlashTitle(){this.name="flashTitle";this.index=0;this.cachedXml="";this.start=function(a){if(!a.id){a.id=this.name+this.index;this.index+=1}requiredVersion=parseInt(classBehaviour.utilities.getClassParameter(a,"version","7"));if(this.checkForFlash(requiredVersion))if(this.cachedXml=="")this.loadXml(a);else if(this.cachedXml=="loading...")this.retryLater(a);else this.processXml(null,a,this.cachedXml);else classBehaviour.flashTitle.showAlt(a)};this.checkForFlash=function(a){return typeof DetectFlashVer!="undefined"?DetectFlashVer(a,0,0):true};this.loadXml=function(a){classBehaviour.flashTitle.cachedXml="loading...";loadUrl=a.getElementsByTagName("input")[0].value;classBehaviour.ajax.addRequest(loadUrl,this.processXml,this.loadProgress,null,a)};this.retryLater=function(a){setTimeout('classBehaviour.flashTitle.start(document.getElementById("'+a.id+'"))',100)};this.loadProgress=function(a,b){a<0&&classBehaviour.flashTitle.showAlt(b)};this.processXml=function(d,c,a){classBehaviour.flashTitle.cachedXml=a;flashMovie="../flash/flashTitle.swf";flashWidth=c.offsetWidth;flashHeight=c.offsetHeight;flashWmode="Transparent";flashScale="noScale";flashSalign="l";flashName="_"+c.id;flashVariables="inputText="+c.innerHTML.replace(/<(.|\n)*?>/gi,"").replace(/^\s+/gi,"").replace(/&amp;/gi,"&");allInputs=c.getElementsByTagName("input");for(var b=0;b<allInputs.length;b++)switch(allInputs[b].name){case"movie":flashMovie=allInputs[b].value;break;case"width":flashWidth=allInputs[b].value;break;case"height":flashHeight=allInputs[b].value;break;case"wmode":flashWmode=allInputs[b].value;break;case"scale":flashScale=allInputs[b].value;break;case"salign":flashSalign=allInputs[b].value;break;case"name":flashName=allInputs[b].value;break;case"flashvars":flashVariables+="&"+allInputs[b].value}if(flashWidth.toString().indexOf("%")>-1)c.style.width=flashWidth;if(flashHeight.toString().indexOf("%")>-1)c.style.height=flashHeight;a=a.replace('<?xml version="1.0"?>',"");a=a.replace(/{movie}/gi,flashMovie);a=a.replace(/{width}/gi,flashWidth);a=a.replace(/{height}/gi,flashHeight);a=a.replace(/{wmode}/gi,flashWmode);a=a.replace(/{scale}/gi,flashScale);a=a.replace(/{salign}/gi,flashSalign);a=a.replace(/{name}/gi,flashName);a=a.replace(/{flashvars}/gi,flashVariables);c.innerHTML=a};this.setFlashVar=function(a,c,b){node=document.getElementById("__"+a)?document.getElementById("__"+a):document.getElementById("_"+a)?document.getElementById("_"+a):document.getElementById(a);typeof node.SetVariable!="undefined"&&node.SetVariable(c,b)};this.showAlt=function(b){allContents=b.getElementsByTagName("*");if(allContents.length>0)for(var a=0;a<allContents.length;a++)if(allContents[a].className.indexOf("flashAlternative")>-1)allContents[a].style.visibility="visible"}}classBehaviour.flashTitle=new FlashTitle;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.flashTitle;function MakeStylesheet(){this.name="makeStylesheet";this.styleSheet="/* "+document.location.href.split("/")[document.location.href.split("/").length-1]+" */\n";this.referenceCss="";this.start=function(a){this.makeReferenceCss();a.style.position="absolute";a.style.right="0px";a.style.top="0px";a.onclick=this.showNodeClasses};this.makeReferenceCss=function(){for(var a=0;a<document.styleSheets.length;a++)if(document.styleSheets[a].cssRules)for(var b=0;b<document.styleSheets[a].cssRules.length;b++)this.referenceCss+=document.styleSheets[a].cssRules[b].selectorText+" {}\n\t"};this.isFormElement=function(a){return"INPUT,SELECT,TEXTAREA,BUTTON".indexOf(a.nodeName)>-1};this.isClassBehaviour=function(b){foundHandler=false;if(typeof b=="string")for(var a=0;a<classBehaviour.handlers.length;a++)foundHandler=b.indexOf(classBehaviour.handlers[a].name)>-1?true:foundHandler;return foundHandler};this.isInStylesheet=function(a,b){foundStyle=false;a=a.replace(/\t/gi,"").replace(" {}\n","").replace(",","");foundStyle=this.styleSheet.indexOf(a)>-1;foundStyle=this.referenceCss.indexOf(a)>-1&&b?true:foundStyle;return foundStyle};this.stripBehaviour=function(b){foundHandler=false;for(var a=0;a<classBehaviour.handlers.length;a++)b=b.replace(classBehaviour.handlers[a].name+".","").replace(classBehaviour.handlers[a].name,"");return b};this.getNodeClasses=function(m,g,e,i){for(var d="",k,h,j,f,c="",l=0;l<g;l++)d+="\t";for(var b=m.childNodes,a=0;a<b.length;a++){k="";h="";j="";f="";if(typeof b[a].id!="undefined"&&!this.isFormElement(b[a]))if(b[a].id!=""&&!this.isClassBehaviour(b[a].id))if(typeof b[a].id=="string"){c=d+"#"+b[a].id+" {}\n";if(!this.isInStylesheet(c,i))this.styleSheet+=c;k="#"+b[a].id}if(typeof b[a].className!="undefined"){allClasses=b[a].className.replace(/ /gi,".");if(b[a].className!=""){c=d+e+b[a].nodeName.toLowerCase()+"."+allClasses+" {}\n";if(!this.isInStylesheet(c,i)){this.styleSheet+=c;if(b[a].nodeName=="A"){this.styleSheet+="\t"+d+e+b[a].nodeName.toLowerCase()+"."+allClasses+":link,\n";this.styleSheet+="\t"+d+e+b[a].nodeName.toLowerCase()+"."+allClasses+":visited {}\n";this.styleSheet+="\t"+d+e+b[a].nodeName.toLowerCase()+"."+allClasses+":hover,\n";this.styleSheet+="\t"+d+e+b[a].nodeName.toLowerCase()+"."+allClasses+":active {}\n";g+=1}}h=b[a].nodeName.toLowerCase()+"."+allClasses}}if(b[a].className==""&&(b[a].id==""||this.isFormElement(b[a]))&&b[a].nodeName.indexOf("text")<0&&b[a].nodeName.indexOf("comment")<0){c=d+e+b[a].nodeName.toLowerCase()+" {}\n";if(!this.isInStylesheet(c,i)){this.styleSheet+=c;if(c.indexOf(" a {}")>-1){this.styleSheet+="\t"+c.replace("a {}","a:link,");this.styleSheet+="\t"+c.replace("a {}","a:visited {}");this.styleSheet+="\t"+c.replace("a {}","a:hover,");this.styleSheet+="\t"+c.replace("a {}","a:active {}");g+=1}}j=b[a].nodeName.toLowerCase()}if(b[a].childNodes.length>0){if(k)f=k+" ";else if(h)f=e+h+" ";else if(j)f=e+j+" ";this.getNodeClasses(b[a],g+1,f,i)}}};this.showNodeClasses=function(c){var b=typeof this.nodeName=="undefined"?c:this,a=classBehaviour.makeStylesheet;document.body.style.textAlign="left";document.body.style.background="#ffffff none";document.body.style.color="#000000";document.body.style.fontFamily="Sans Serif";document.body.style.fontSize="12pt";onlyChanges=classBehaviour.utilities.getClassParameter(b,"changesOnly","yes")=="yes";a.getNodeClasses(document.body,0,"",onlyChanges);document.body.innerHTML=navigator.userAgent.indexOf("MSIE 6")>-1?'<textarea style="width:720px;height:480px;border:solid 1px #000000;">'+a.styleSheet+"</textarea>":'<textarea style="position:absolute;left:12.5%;top:12.5%;width:75%;height:75%;border:solid 1px #000000;">'+a.styleSheet+"</textarea>"}}classBehaviour.makeStylesheet=new MakeStylesheet;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.makeStylesheet;function HtmlEncode(){this.name="htmlEncode";this.start=function(a){a.style.position="absolute";a.style.right="0px";a.style.top="25px";a.onclick=this.importDoc};this.importDoc=function(){classBehaviour.ajax.addRequest(document.location.href,classBehaviour.htmlEncode.encode,classBehaviour.htmlEncode.wait,false,null)};this.wait=function(){};this.encode=function(c,b,a){document.body.innerHTML='<textarea id="htmlEncoded" style="position:absolute;left:12.5%;top:12.5%;width:75%;height:75%;border:solid 1px #000000;">'+a+"</textarea>";document.getElementById("htmlEncoded").value=document.getElementById("htmlEncoded").value.replace(/>/gi,"&gt;").replace(/</gi,"&lt;")}}classBehaviour.htmlEncode=new HtmlEncode;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.htmlEncode;function ValueSlider(){this.name="valueSlider";this.active=false;this.start=function(a){sliderCover=a.getElementsByTagName("div")[1];sliderCover.onmousedown=this.onDown;sliderCover.onmouseup=this.onUp;sliderCover.onmousemove=this.onMove;sliderCover.onmouseout=this.onUp;sliderInput=classBehaviour.utilities.nextNode(a);sliderInput.onchange=this.onTyped;if(sliderInput.id)setTimeout("classBehaviour.valueSlider.onTyped(document.getElementById('"+sliderInput.id+"'))",200);else this.onTyped(sliderInput)};this.setSlider=function(c,a,b){minimumValue=parseFloat(classBehaviour.utilities.getClassParameter(c,"min",0));maximumValue=parseFloat(classBehaviour.utilities.getClassParameter(c,"max",100));offsetValue=parseFloat(classBehaviour.utilities.getClassParameter(c,"off",0));stepValue=parseFloat(classBehaviour.utilities.getClassParameter(c,"step",0));slackValue=parseFloat(classBehaviour.utilities.getClassParameter(c,"slack",15));if(a!=null)a+=offsetValue;minimumSize=1+slackValue;maximumSize=c.offsetWidth-slackValue;if(a==null)a=Math.round(b/maximumValue*maximumSize);if(b==null)b=a/maximumSize*(maximumValue-minimumValue)+minimumValue;if(stepValue>0)a=a-a%stepValue;if(a<minimumSize)a=minimumSize;if(a>maximumSize)a=maximumSize;if(b<minimumValue)b=minimumValue;if(b>maximumValue)b=maximumValue;if(stepValue>0){pointerNode=c.getElementsByTagName("img")[0];pointerPrefix=pointerNode.src.substr(0,pointerNode.src.length-5);pointerSuffix=pointerNode.src.substr(pointerNode.src.length-4);pointerNode.src=pointerPrefix+Math.round(a/stepValue)+pointerSuffix}c.getElementsByTagName("div")[0].style.width=Math.round(a+slackValue)+"px";classBehaviour.utilities.nextNode(c).value=stepValue>0?Math.round(b):b.toFixed(1);c.getElementsByTagName("span")[0].innerHTML=b.toFixed(1)};this.onDown=function(a){var c=typeof this.nodeName=="undefined"?a:this,b=classBehaviour.valueSlider;mouseX=typeof event!="undefined"&&navigator.userAgent.indexOf("Safari")<0?event.x:a.layerX;b.setSlider(c.parentNode,mouseX,null);b.active=true;return false};this.onUp=function(a){var c=typeof this.nodeName=="undefined"?a:this,b=classBehaviour.valueSlider;b.active=false;return false};this.onMove=function(a){var c=typeof this.nodeName=="undefined"?a:this,b=classBehaviour.valueSlider;if(b.active){mouseX=typeof event!="undefined"&&navigator.userAgent.indexOf("Safari")<0?event.x:a.layerX;b.setSlider(c.parentNode,mouseX,null)}return false};this.onTyped=function(b){var a=typeof this.nodeName=="undefined"?b:this,c=classBehaviour.valueSlider;sliderNode=classBehaviour.utilities.previousNode(a);inputValue=parseInt(a.value);c.setSlider(sliderNode,null,inputValue)}}classBehaviour.valueSlider=new ValueSlider;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.valueSlider;function DisabledButton(){this.name="disabledButton";this.start=function(a){a.onclick=this.cancelClick;classBehaviour.fader.setFade(a,50)};this.cancelClick=function(a){var b=typeof this.nodeName=="undefined"?a:this;return false}}classBehaviour.disabledButton=new DisabledButton;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.disabledButton;function ZebraTable(){this.name="zebraTable";this.start=function(a){this.process(a)};this.process=function(f){var b,c,e;b=f.getElementsByTagName("TR");visibleCount=0;for(var a=0;a<b.length;a++){if(b[a].style.display=="none")continue;visibleCount++;b[a].className=b[a].className.replace("odd","");b[a].className=b[a].className.replace("even","");b[a].className+=visibleCount%2==0?" odd":" even";if(b[a].className.indexOf("row_")<0)b[a].className+=" row_"+a;c=b[a].childNodes;e=0;for(var d=0;d<c.length;d++)if(c[d].nodeName.indexOf("text")<0){c[d].className=c[d].className.replace("odd","");c[d].className=c[d].className.replace("even","");c[d].className+=e%2==0?" odd":" even";if(c[d].className.indexOf("col_")<0)c[d].className+=" col_"+e;e+=1}}}}classBehaviour.zebraTable=new ZebraTable;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.zebraTable;function SumOfInput(){this.name="sumOfInput";this.start=function(a){if(typeof a.value!="undefined"){a.onchange=this.calculate;a.onkeyup=this.calculate;this.calculate(a)}};this.calculate=function(c){var b=typeof this.nodeName=="undefined"?c:this;targetId=classBehaviour.utilities.getClassParameter(b,"id","frmSumTotal");targetNode=document.getElementById(targetId);sourceNodes=classBehaviour.utilities.getElementsByClassName("id_"+targetId);totalValue=0;for(var a=0;a<sourceNodes.length;a++){inputValue=parseFloat(sourceNodes[a].value);totalValue+=isNaN(inputValue)?0:inputValue}targetNode.innerHTML=totalValue;minValue=parseInt(classBehaviour.utilities.getClassParameter(targetNode,"min","0"));maxValue=parseInt(classBehaviour.utilities.getClassParameter(targetNode,"max","100"));if(totalValue<minValue)targetNode.className=targetNode.className.replace("inLimit","underLimit").replace("overLimit","underLimit");else if(totalValue>maxValue)targetNode.className=targetNode.className.replace("inLimit","overLimit").replace("underLimit","overLimit");else targetNode.className=targetNode.className.replace("overLimit","inLimit").replace("underLimit","inLimit")}}classBehaviour.sumOfInput=new SumOfInput;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.sumOfInput;function YetAnotherDatePicker(){this.name="yetAnotherDatePicker";this.dateValue=null;this.dateIndex=null;this.start=function(a){a.getElementsByTagName("SELECT")[0].onchange=this.update;a.getElementsByTagName("INPUT")[1].onclick=this.update;a.getElementsByTagName("INPUT")[2].onclick=this.update;a.getElementsByTagName("SELECT")[1].onchange=this.update;a.getElementsByTagName("SELECT")[0].disabled=false;a.getElementsByTagName("INPUT")[1].disabled=true;a.getElementsByTagName("INPUT")[2].disabled=true;a.getElementsByTagName("SELECT")[1].disabled=true;a.getElementsByTagName("SELECT")[0].selectedIndex=0;a.getElementsByTagName("INPUT")[1].checked=false;a.getElementsByTagName("INPUT")[2].checked=false;a.getElementsByTagName("SELECT")[1].selectedIndex=0};this.progress=function(b,a,c){a.getElementsByTagName("SELECT")[1].value="";a.getElementsByTagName("SELECT")[1].selectedIndex=0;a.getElementsByTagName("SELECT")[1].text=b>-1?"loading: "+b*100+"%":"error: "+c};this.process=function(c,a,d){var b=classBehaviour.yetAnotherDatePicker;a.getElementsByTagName("SELECT")[1].disabled=false;a.getElementsByTagName("INPUT")[1].disabled=false;a.getElementsByTagName("INPUT")[2].disabled=false;previousSelectNode=rootNode.getElementsByTagName("SELECT")[1].parentNode;previousSelectHTML=previousSelectNode.innerHTML.split("<");newSelectHTML="<"+previousSelectHTML[1]+d.split("<select>")[1].split("</select>")[0]+"</SELECT>";previousSelectNode.innerHTML=newSelectHTML;a.getElementsByTagName("SELECT")[1].onchange=b.update;if(typeof a.getElementsByTagName("SELECT")[1][b.dateIndex]!="undefined")if(a.getElementsByTagName("SELECT")[1][b.dateIndex].value==b.dateValue)a.getElementsByTagName("SELECT")[1].selectedIndex=b.dateIndex;sizeValue=c.getElementsByTagName("size")[0];if(typeof sizeValue.firstChild!="undefined")a.getElementsByTagName("TD")[0].innerHTML=sizeValue.firstChild.nodeValue;freeValue=c.getElementsByTagName("free")[0];if(typeof sizeValue.firstChild!="undefined")a.getElementsByTagName("TD")[1].innerHTML=freeValue.firstChild.nodeValue};this.update=function(c){var b=typeof this.nodeName=="undefined"?c:this,a=classBehaviour.yetAnotherDatePicker;rootNode=classBehaviour.utilities.rootNode(b,null,null,a.name);inputLocation=rootNode.getElementsByTagName("SELECT")[0].value;inputTime="";if(rootNode.getElementsByTagName("INPUT")[1].checked)inputTime=rootNode.getElementsByTagName("INPUT")[1].value;if(rootNode.getElementsByTagName("INPUT")[2].checked)inputTime=rootNode.getElementsByTagName("INPUT")[2].value;inputDate=rootNode.getElementsByTagName("SELECT")[1].value;a.dateValue=rootNode.getElementsByTagName("SELECT")[1].value;a.dateIndex=rootNode.getElementsByTagName("SELECT")[1].selectedIndex;if((rootNode.getElementsByTagName("INPUT")[1].checked||rootNode.getElementsByTagName("INPUT")[2].checked)&&inputLocation!=""&&inputLocation!=null){requestUrl=rootNode.getElementsByTagName("INPUT")[0].value+"&loc="+inputLocation+"&time="+inputTime+"&date="+inputDate;classBehaviour.ajax.addRequest(requestUrl,a.process,a.progress,null,rootNode)}else if(inputLocation!=""&&inputLocation!=null){rootNode.getElementsByTagName("INPUT")[1].disabled=false;rootNode.getElementsByTagName("INPUT")[2].disabled=false}else a.start(rootNode)}}classBehaviour.yetAnotherDatePicker=new YetAnotherDatePicker;classBehaviour.handlers[classBehaviour.handlers.length]=classBehaviour.yetAnotherDatePicker