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(a.nodeName=="IFRAME"){if(navigator.userAgent.indexOf("MSIE 6")>-1)a.style.height=document.body.offsetHeight+"px";setTimeout("document.getElementById('"+a.id+"').style.visibility = 'visible';",200)}}};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.openPopUpLayer={name:"openPopUpLayer",start:function(a){a.onmouseup=this.open},open:function(){jQuery.classBehaviours.utilities.setClassParameter(document.body,"popup","open")}};jQuery.classBehaviours.handlers.openPopUpIframe={name:"openPopUpIframe",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(c){var b="popUpLayer",a=typeof this.nodeName=="undefined"?c:this;iframeName=jQuery.classBehaviours.utilities.getClassParameter(a,"id")+"0";iframeObject=document.getElementById(iframeName);if(iframeObject==null){newIframe=document.createElement("IFRAME");newIframe.setAttribute("name",iframeName);newIframe.setAttribute("id",iframeName);newIframe.setAttribute("class",b);newIframe.setAttribute("allowtransparency","true");newIframe.setAttribute("scrolling","no");newIframe.setAttribute("frameborder","no");newIframe.setAttribute("style","visibility:hidden;");newIframe.setAttribute("src",a.href);newIframe.className=b;newIframe.allowTransparency=true;document.body.appendChild(newIframe);jQuery.classBehaviours.handlers.popUpLayer.start(document.getElementById(iframeName))}else{document.getElementById(iframeName).style.visibility="hidden";window.frames[iframeName].document.location.href=a.href;jQuery.classBehaviours.handlers.popUpLayer.start(document.getElementById(iframeName))}jQuery.classBehaviours.utilities.setClassParameter(document.body,"popup","open");return false}};jQuery.classBehaviours.handlers.closePopUpLayer={name:"closePopUpLayer",start:function(a){if(parent!=self)a.onmousedown=this.closeInParent;else a.onmousedown=this.closeInSelf},closeInParent:function(d){var b="parent.document.getElementById('",c=typeof this.nodeName=="undefined"?d:this;timeToWait=jQuery.classBehaviours.utilities.getClassParameter(c,"wait");allPopUps=parent.jQuery.classBehaviours.utilities.getElementsByClassName("popUpLayer");for(var a=0;a<allPopUps.length;a++)allPopUps[a].nodeName=="IFRAME"&&setTimeout(b+allPopUps[a].id+"').style.visibility = 'hidden';"+b+allPopUps[a].id+"').src = '';",timeToWait);jQuery.classBehaviours.utilities.setClassParameter(parent.document.body,"popup","close");return false},closeInSelf:function(a){var b=typeof this.nodeName=="undefined"?a:this;jQuery.classBehaviours.utilities.setClassParameter(document.body,"popup","close");return false}};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.openPopUpLayer=function(){return this.each(function(){jQuery.classBehaviours.handlers.openPopUpLayer.start(this)})};jQuery.fn.openPopUpIframe=function(){return this.each(function(){jQuery.classBehaviours.handlers.openPopUpIframe.start(this)})};jQuery.fn.closePopUpLayer=function(){return this.each(function(){jQuery.classBehaviours.handlers.closePopUpLayer.start(this)})};$(document).ready(function(){$(".popUpLayer").popUpLayer();$(".popUpBackground").popUpBackground();$(".openPopUpLayer").openPopUpLayer();$(".openPopUpIframe").openPopUpIframe();$(".closePopUpLayer").closePopUpLayer()})}