if(typeof jQuery=="undefined")jQuery=function(){};if(typeof jQuery.classBehaviours=="undefined")jQuery.classBehaviours=function(){};if(typeof jQuery.classBehaviours.handlers=="undefined")jQuery.classBehaviours.handlers=function(){};jQuery.classBehaviours.handlers.popUpLayer={name:"popUpLayer",start:function(a){if(navigator.userAgent.indexOf("MSIE 6")>-1&&a.nodeName=="IFRAME")a.style.height=document.body.offsetHeight+"px"}};jQuery.classBehaviours.handlers.popUpBackground={name:"popUpBackground",start:function(a){if(navigator.userAgent.indexOf("MSIE 6")>-1)a.style.height=document.body.offsetHeight+"px"}};jQuery.classBehaviours.handlers.closePopUpLayer={name:"closePopUpLayer",start:function(a){if(parent!=self)a.onmousedown=this.closeInParent;else a.onmousedown=this.closeInSelf},closeInParent:function(c){var b=typeof this.nodeName=="undefined"?c:this;timeToWait=jQuery.classBehaviours.utilities.getClassParameter(b,"wait");allPopUps=parent.jQuery.classBehaviours.utilities.getElementsByClassName("popUpLayer");for(var a=0;a<allPopUps.length;a++)allPopUps[a].nodeName=="IFRAME"&&setTimeout("parent.document.getElementById('"+allPopUps[a].id+"').style.display = 'none';parent.document.getElementById('"+allPopUps[a].id+"').src = '';parent.document.body.className = parent.document.body.className.replace('popup_open','popup_closed');",timeToWait);return false},closeInSelf:function(b){var a=typeof this.nodeName=="undefined"?b:this;jQuery.classBehaviours.handlers.hidePopUpLayer.start(a);return false}};jQuery.classBehaviours.handlers.openPopUpLayer={name:"openPopUpLayer",start:function(a){a.onclick=this.openInFrame;a.setAttribute("target","_self");autoOpen=jQuery.classBehaviours.utilities.getClassParameter(a,"auto");autoOpen=="yes"&&this.openInFrame(a)},openInFrame:function(b){var a=typeof this.nodeName=="undefined"?b:this;iframeName=jQuery.classBehaviours.utilities.getClassParameter(a,"id");iframeObject=document.getElementById(iframeName);if(iframeObject==null){newIframe=document.createElement("IFRAME");newIframe.setAttribute("name",iframeName);newIframe.setAttribute("id",iframeName);newIframe.setAttribute("class","popUpLayer");newIframe.setAttribute("allowtransparency","true");newIframe.setAttribute("scrolling","no");newIframe.setAttribute("frameborder","no");newIframe.setAttribute("src",a.href);newIframe.className="popUpLayer";newIframe.allowTransparency=true;document.body.appendChild(newIframe);jQuery.classBehaviours.handlers.popUpLayer.start(document.getElementById(iframeName))}else{document.getElementById(iframeName).style.display="block";window.frames[iframeName].document.location.href=a.href}return false}};jQuery.classBehaviours.handlers.showPopUpLayer={name:"showPopUpLayer",start:function(a){timeToWait=jQuery.classBehaviours.utilities.getClassParameter(a,"wait");targetPopUp=jQuery.classBehaviours.utilities.getClassParameter(a,"id");setTimeout("document.getElementById('"+targetPopUp+"').style.display = 'block';",timeToWait);if(navigator.userAgent.indexOf("MSIE 6")>-1){parent.scrollTo(0,0);jQuery.classBehaviours.utilities.setClassParameter(parent.document.body,"popup","open")}}};jQuery.classBehaviours.handlers.hidePopUpLayer={name:"hidePopUpLayer",start:function(a){timeToWait=jQuery.classBehaviours.utilities.getClassParameter(a,"wait");targetPopUp=jQuery.classBehaviours.utilities.getClassParameter(a,"id");setTimeout("document.getElementById('"+targetPopUp+"').style.display = 'none';",timeToWait);navigator.userAgent.indexOf("MSIE 6")>-1&&jQuery.classBehaviours.utilities.setClassParameter(parent.document.body,"popup","closed")}};if(typeof jQuery.fn!="undefined"){jQuery.fn.popUpLayer=function(){return this.each(function(){jQuery.classBehaviours.handlers.popUpLayer.start(this)})};jQuery.fn.popUpBackground=function(){return this.each(function(){jQuery.classBehaviours.handlers.popUpBackground.start(this)})};jQuery.fn.closePopUpLayer=function(){return this.each(function(){jQuery.classBehaviours.handlers.closePopUpLayer.start(this)})};jQuery.fn.openPopUpLayer=function(){return this.each(function(){jQuery.classBehaviours.handlers.openPopUpLayer.start(this)})};jQuery.fn.showPopUpLayer=function(){return this.each(function(){jQuery.classBehaviours.handlers.showPopUpLayer.start(this)})};jQuery.fn.hidePopUpLayer=function(){return this.each(function(){jQuery.classBehaviours.handlers.hidePopUpLayer.start(this)})};$(document).ready(function(){$(".popUpLayer").popUpLayer();$(".popUpBackground").popUpBackground();$(".closePopUpLayer").closePopUpLayer();$(".openPopUpLayer").openPopUpLayer();$(".showPopUpLayer").showPopUpLayer();$(".hidePopUpLayer").showPopUpLayer()})}