if(typeof this.PINT=="undefined"){var PINT={};PINT.connection={};PINT.widget={}}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(B){for(var A=0;A<this.length;A++){if(this[A]==B){return A}}return -1}}if(!Array.prototype.push){Array.prototype.push=function(){for(var A=0;A<arguments.length;A++){this[this.length]=arguments[A]}}}if(!PINT.util){PINT.util={}}PINT.util.getQueryParamValue=function(A){var D=document.location.search.split("&");for(var B=0;B<D.length;B++){var C=D[B].split("=");if(C[0]==A){return C[1]}}return""};PINT.util.setWindowTitle=function(A){document.title=A};PINT.util.setWindowStatus=function(A){window.status=A};PINT.util.getRandomString=function(B,D){B=B||8;D=D||"abcdefghijklmnopqrstuvwxyz0123456789";var C="";for(var A=0;A<B;A++){C+=D.charAt(parseInt(D.length*Math.random(),10))}return C};PINT.util.getCurrentFileName=function(){var C=decodeURI(window.location.pathname);var B=C.lastIndexOf("/")+1;var A=(C.indexOf("?")>0)?C.indexOf("?"):C.length;return C.substring(B,A)};PINT.util.getCurrentFilePath=function(){var B=decodeURI(window.location.pathname);var A=B.lastIndexOf("/");return B.substring(0,A)};PINT.util.getCurrentDirectory=function(){var B=this.getCurrentFilePath();var A=B.split("/");return A.length&&A[A.length-1]!==""?A[A.length-1]:""};PINT.util.encodeJSON=function(A){A=A.replace(/\[/gi,"[");A=A.replace(/\]/gi,"]");A=A.replace(/\{/gi,"{");A=A.replace(/\}/gi,"}");A=A.replace(/\'/gi,"0x27");A=A.replace(/\"/gi,"0x22");A=A.replace(/\\/gi,"\\\\");A=A.replace(/\t/gi,"0x09");A=A.replace(/\n/gi,"0x0A");A=A.replace(/\f/gi,"0x0C");A=A.replace(/\r/gi,"0x0D");return A};PINT.util.decodeJSON=function(A){A=A.replace(/\[/gi,"[");A=A.replace(/\]/gi,"]");A=A.replace(/\{/gi,"{");A=A.replace(/\}/gi,"}");A=A.replace(/0x27/gi,"'");A=A.replace(/0x28/gi,'"');A=A.replace(/\\\\/gi,"\\");A=A.replace(/0x09/gi,"\t");A=A.replace(/0x0A/gi,"\n");A=A.replace(/0x0C/gi,"\f");A=A.replace(/0x0D/gi,"\r");return A};PINT.util.obfuscateMailto=function(A,D,C){var B;if(C===null){B=D+"&#"+64+";"+A}else{B=C}document.write('<a href="m&#'+97+";il&#"+116+";o:"+D+"&#"+64+";"+A+'">'+B+"</a>")};PINT.util.anchorPopupWindows=function(){if(!document.getElementsByTagName){return }var C=function(W){var V=W.getAttribute("rel");if(V){return(V.indexOf("popup")>=0)}else{return false}};var I=YAHOO.util.Dom.getElementsBy(C,"a");var S;for(var O=0;O<I.length;O++){var Q,E,N,L,B;var A,T,F,R,P,H;var M,K,D,U;S=I[O];Q=S.getAttribute("href");N=S.getAttribute("rel");if(N&&Q){E=N.split("|");var J=PINT.util.browser.getSize();if(E.length>=4){if(E[1]!="null"){M=parseInt(E[1],10)?parseInt(E[1],10):400}else{M=J[2]}if(E[2]!="null"){K=parseInt(E[2],10)?parseInt(E[2],10):400}else{K=J[3]}D=E[3];L="width="+M+",height="+K;if(D=="custom"){if(E.length<10){return false}A=parseInt(E[4],10)?parseInt(E[4],10):0;T=parseInt(E[5],10)?parseInt(E[5],10):0;F=parseInt(E[6],10)?parseInt(E[6],10):0;R=parseInt(E[7],10)?parseInt(E[7],10):0;P=parseInt(E[8],10)?parseInt(E[8],10):0;H=parseInt(E[9],10)?parseInt(E[9],10):0;if(E.length==11){U=E[10]}else{U="popupWindow"}L+=",location="+A+",menubar="+T+",resizable="+F+",scrollbars="+R+",status="+P+",toolbar="+H}else{if(E.length==5){U=E[4]}else{U="popupWindow"}if(D=="standard"){L+=",location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0"}else{if(D=="resize"){L+=",location=0,menubar=0,resizable=1,scrollbars=0,status=0,toolbar=0"}else{if(D=="scrollbar"){L+=",location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0"}else{if(D=="blank"){L=""}else{return false}}}}}var G=[Q,U,L];YAHOO.util.Event.addListener(S,"click",PINT.util.popupWindow,G)}}}};PINT.util.popupWindow=function(B,C){if(C.length<1){return false}var A=null;A=window.open(C[0],C[1],C[2]);YAHOO.util.Event.preventDefault(B)};PINT.util.getUrlSeperator=function(A){return(A.indexOf("?")!=-1?"&":"?")};PINT.util.getPropertyFromClass=function(G,E,D){var C=new RegExp(E+"-"+D+"-(.+)");var F=G.split(" ");if(F.length){for(var B=0;B<F.length;B++){var A=F[B].match(C);if(A){return A[1]}}}else{return null}};PINT.util.pngFix=function(){for(var G=0;G<document.images.length;G++){var D=document.images[G];var F=D.src.toUpperCase();if(F.substring(F.length-3,F.length)=="PNG"){var B=D.id?"id='"+D.id+"' ":"";var E=D.className?"class='"+D.className+"' ":"";var H=D.title?"title='"+D.title+"' ":"title='"+D.alt+"' ";var C="display:inline-block;"+D.style.cssText;if(D.align=="left"){C="float:left;"+C}if(D.align=="right"){C="float:right;"+C}if(D.parentElement.href){C="cursor:hand;"+C}var A="<span "+B+E+H+'style="width:'+D.width+"px; height:"+D.height+"px;"+C+"; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+D.src+"', sizingMethod='scale');\"></span>";D.outerHTML=A;G=G-1}}};var sUserAgent=navigator.userAgent.toLowerCase();if(!PINT.env){PINT.env={};PINT.env.sUA=navigator.userAgent.toLowerCase();PINT.env.fVersion=navigator.appVersion}if(!PINT.util.browser){PINT.util.browser={}}PINT.util.browser.bNetscape4=(typeof document.layers!="undefined")?true:false;PINT.util.browser.bSafari=(PINT.env.sUA.indexOf("safari")!=-1);PINT.util.browser.bKonqueror=(PINT.env.sUA.indexOf("konqueror")!=-1);PINT.util.browser.bNetscape6=(PINT.env.sUA.indexOf("netscape")!=-1);PINT.util.browser.bMozilla=((PINT.env.sUA.indexOf("mozilla")!=-1)&&(PINT.env.sUA.indexOf("gecko")!=-1)&&(PINT.env.sUA.indexOf("konqueror")==-1));PINT.util.browser.bFirefox=(PINT.env.sUA.indexOf("firefox")!=-1);PINT.util.browser.bOpera=(PINT.env.sUA.indexOf("opera")!=-1);PINT.util.browser.bIe=((PINT.env.sUA.indexOf("msie")!=-1)&&(PINT.env.sUA.indexOf("opera")==-1));PINT.util.browser.bIe4=((PINT.env.sUA.indexOf("msie 4.")!=-1)&&(PINT.env.sUA.indexOf("opera")==-1));PINT.util.browser.bIe5=((PINT.env.sUA.indexOf("msie 5.")!=-1)&&(PINT.env.sUA.indexOf("opera")==-1));PINT.util.browser.bIe6=((PINT.env.sUA.indexOf("msie 6.")!=-1)&&(PINT.env.sUA.indexOf("opera")==-1));PINT.util.browser.bIe7=((PINT.env.sUA.indexOf("msie 7.")!=-1)&&(PINT.env.sUA.indexOf("opera")==-1));PINT.util.browser.bIe8=((PINT.env.sUA.indexOf("msie 8.")!=-1)&&(PINT.env.sUA.indexOf("opera")==-1));PINT.util.browser.bChrome=(PINT.env.sUA.indexOf("chrome")!=-1);PINT.util.browser.bIphone=(PINT.env.sUA.indexOf("iPhone")!=-1);PINT.util.browser.bAndroid=(PINT.env.sUA.indexOf("Android")!=-1);PINT.util.browser.bOmniWeb=(PINT.env.sUA.indexOf("omniweb")!=-1);PINT.util.browser.bWebTv=(PINT.env.sUA.indexOf("webtv")!=-1);PINT.util.browser.bICab=(PINT.env.sUA.indexOf("icab")!=-1);PINT.util.browser.bMac=(PINT.env.sUA.indexOf("mac")!=-1);PINT.util.browser.sUserAgent=PINT.env.sUA.userAgent;PINT.util.browser.fVersion=parseFloat(PINT.env.fVersion);PINT.util.browser.setCookie=function(D,I,F,H,A,C,J,B){var E=D+"="+encodeURIComponent(I);if(F&&H&&A){var G=new Date(F,H,A);E+="; expires="+G.toGMTString()}if(C){if(C=="/"){E+="; path=/"}else{E+="; path="+encodeURIComponent(C)}}if(J){E+="; domain="+encodeURIComponent(J)}if(B){E+="; secure"}document.cookie=E};PINT.util.browser.getCookie=function(D){var C=document.cookie.indexOf(D+"=");var A=C+D.length+1;if(!C&&(D!=document.cookie.substring(0,D.length))){return null}if(C==-1){return null}var B=document.cookie.indexOf(";",A);if(B==-1){B=document.cookie.length}return decodeURIComponent(document.cookie.substring(A,B))};PINT.util.browser.deleteCookie=function(B){var A=new Date();A.setTime(A.getTime()-1);document.cookie=B+="=; expires="+A.toGMTString()};PINT.util.browser.getBrowserInfo=function(){var A="Others";if(PINT.env.sUA.indexOf("linux")!=-1){A="Linux"}else{if(PINT.env.sUA.indexOf("x11")!=-1){A="Unix"}else{if(PINT.env.sUA.indexOf("mac")!=-1){A="Mac"}else{if(PINT.env.sUA.indexOf("win")!=-1){A="Windows"}}}}var B="Others";if(PINT.util.browser.bIe){B="Internet Explorer"}else{if(PINT.util.browser.bNetscape4||PINT.util.browser.bNetscape6){B="Netscape Navigator"}else{if(PINT.util.browser.bOpera){B="Opera"}else{if(PINT.util.browser.bSafari){B="Safari"}else{if(PINT.util.browser.bKonqueror){B="Konqueror"}else{if(PINT.util.browser.bMozilla&&!PINT.util.browser.bFirefox){B="Mozilla"}else{if(PINT.util.browser.bFirefox){B="Firefox"}else{if(PINT.util.browser.bOmniWeb){B="OmniWeb"}else{if(PINT.util.browser.bWebTv){B="WebTv"}else{if(PINT.util.browser.bICab){B="iCab"}else{if(PINT.util.browser.bIphone){B="iPhone"}else{if(PINT.util.browser.bAndroid){B="Android"}else{if(PINT.util.browser.bChrome){B="Chrome"}}}}}}}}}}}}}return[A,B,PINT.util.browser.fVersion]};PINT.util.browser.getResolution=function(){return[screen.width,screen.height]};PINT.util.browser.getSize=function(){var D=0;var A=0;var B;var C;if(typeof window.innerWidth=="number"){B=window.innerWidth;C=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){B=document.documentElement.clientWidth;C=document.documentElement.clientHeight}else{if(document.body&&document.body.clientWidth){B=document.body.clientWidth;C=document.body.clientHeight}}}if(typeof window.innerWidth=="number"){if(window.innerWidth>0&&window.innerWidth>D){D=window.innerWidth}if(window.innerHeight>0&&window.innerHeight>A){A=window.innerHeight}}if(document.body&&typeof document.body.clientWidth=="number"){if(document.body.clientWidth>0&&document.body.clientWidth>D){D=document.body.clientWidth}if(document.body.clientHeight>0&&document.body.clientHeight>A){A=document.body.clientHeight}}if(document.documentElement&&typeof document.documentElement.clientWidth=="number"){if(document.documentElement.clientWidth>0&&document.documentElement.clientWidth>D){D=document.documentElement.clientWidth}if(document.documentElement.clientHeight>0&&document.documentElement.clientHeight>A){A=document.documentElement.clientHeight}}return[B,C,D,A]};PINT.util.browser.getScroll=function(){var A=0;var B=0;if(typeof window.pageXOffset=="number"){if(window.pageXOffset>0&&window.pageXOffset>A){A=window.pageXOffset}if(window.pageYOffset>0&&window.pageYOffset>B){B=window.pageYOffset}}if(document.body&&typeof document.body.scrollLeft=="number"){if(document.body.scrollLeft>0&&document.body.scrollLeft>A){A=document.body.scrollLeft}if(document.body.scrollTop>0&&document.body.scrollTop>B){B=document.body.scrollTop}}if(document.documentElement&&typeof document.documentElement.scrollLeft=="number"){if(document.documentElement.scrollLeft>0&&document.documentElement.scrollLeft>A){A=document.documentElement.scrollLeft}if(document.documentElement.scrollTop>0&&document.documentElement.scrollTop>B){B=document.documentElement.scrollTop}}return[A,B]};PINT.util.browser.redirectUnsupportedBrowser=function(A){var B="";var C=PINT.util.getCurrentFileName();if(!document.getElementById&&(B.indexOf(C)=="-1"||C==="")){window.location.replace(A)}};if(!PINT.util.dom){PINT.util.dom={}}PINT.util.dom.getElementById=function(A){if(oNode=document.getElementById(A)){return oNode}else{return null}};PINT.util.dom.getElementsByTagName=function(A,B){if(B==null||typeof (B)=="undefined"){return document.getElementsByTagName(A)}else{if(oNode=document.getElementsByTagName(A)[B]){return oNode}else{return null}}};PINT.util.dom.getElementsByClassName=function(B,C,F){C=C||"*";F=F||document;var G=(C=="*"&&document.all)?document.all:F.getElementsByTagName(C);var A=new Array();for(var E=0;E<G.length;E++){var H=G[E].className.split(" ");for(var D=0;D<H.length;D++){if(H[D]==B){A[A.length]=G[E];break}}}return A};PINT.util.dom.createElement=function(A,B,C){var G=[];if(aMatches=A.match(/(.+)\[(.+)\]/)){A=aMatches[1];G=aMatches[2].split(",")}if(PINT.util.browser.bIe&&A=="INPUT"&&G.indexOf("type=radio")!=-1){var D="";for(var E=0;E<G.length;E++){var H=G[E].split("=");if(H[0]=="name"){D=H[1]}}var I=document.createElement('<input type="radio" name="'+D+'" />')}else{if(A=="TEXT"&&C!=null&&typeof (C)!="undefined"){var I=document.createTextNode(C)}else{var I=document.createElement(A)}}for(var E=0;E<G.length;E++){var H=G[E].split("=");try{I.setAttribute(H[0],H[1])}catch(F){}}if(B&&typeof (B)!="undefined"){B.appendChild(I)}return I};PINT.util.dom.removeElement=function(A){if(A&&A.parentNode){A.parentNode.removeChild(A)}};PINT.util.dom.getFirstParentByTagName=function(B,A){while(B.parentNode&&B.tagName!=A){B=B.parentNode}if(B.tagName){return B}else{return null}};PINT.util.dom.getFirstParentById=function(B,A){while(B.parentNode&&B.id!=A){B=B.parentNode}if(B.tagName){return B}else{return null}};PINT.util.dom.getFirstParentByClassName=function(C,A){var B=C.className.split(" ");while(C.parentNode&&B.indexOf(A)==-1){C=C.parentNode;if(C.className){B=C.className.split(" ")}else{return null}}if(C.tagName){return C}else{return null}};PINT.util.dom.createXmlElement=function(B){if(window.ActiveXObject){var A=new ActiveXObject("Microsoft.XMLDOM");A.async="false";A.loadXML(B)}else{if(navigator.userAgent.toLowerCase().indexOf("konqueror")!=-1){B=B.replace(/<\?xml(.+)\?>/,"");var A=document.implementation.createDocument("","",null);A.loadXML(B)}else{var A=document.createElement("xmldata");A.innerHTML=B}}return A};PINT.util.dom.getElementLeftOffset=function(B){var A=parseInt(B.offsetLeft,10);var C=B.offsetParent;while(C){A+=parseInt(C.offsetLeft,10);C=C.offsetParent}return A};PINT.util.dom.getElementTopOffset=function(B){var A=parseInt(B.offsetTop,10);var C=B.offsetParent;while(C){A+=parseInt(C.offsetTop,10);C=C.offsetParent}return A};PINT.util.dom.getElementWidth=function(A){if(PINT.util.browser.bIe){return parseInt(A.offsetWidth,10)}else{return(parseInt(A.offsetWidth,10)>parseInt(A.clientWidth,10))?parseInt(A.offsetWidth,10):parseInt(A.clientWidth,10)}};getElementHeight=function(A){if(PINT.util.browser.bIe){return parseInt(A.offsetHeight,10)}else{return(parseInt(A.offsetHeight,10)>parseInt(A.clientHeight,10))?parseInt(A.offsetHeight,10):parseInt(A.clientHeight,10)}};if(!PINT.util.event){PINT.util.event={}}PINT.util.event.aEvents=[];PINT.util.event.add=function(A){PINT.util.event.aEvents.push(A)};PINT.util.event.clear=function(){if(PINT.util.browser.bIe){for(var A=0;A<PINT.util.event.aEvents.length;A++){PINT.util.event.aEvents[A][0].detachEvent("on"+PINT.util.event.aEvents[A][1],PINT.util.event.aEvents[A][2])}PINT.util.event.aEvents=[]}};PINT.util.event.addEvent=function(B,C,A){if(PINT.util.browser.bIe||PINT.util.browser.bOpera){B.attachEvent("on"+C,A)}else{B.addEventListener(C,A,true)}PINT.util.event.add([B,C,A]);return A};PINT.util.event.removeEvent=function(C,D,A){if(A==null||typeof (A)=="undefined"){for(var B=0;B<PINT.util.event.aEvents.length;B++){if(PINT.util.event.aEvents[B][0]==C&&PINT.util.event.aEvents[B][1]==D){A=PINT.util.event.aEvents[B][2];break}}}if(A!=null&&typeof (A)!="undefined"){if(PINT.util.browser.bIe||PINT.util.browser.bOpera){C.detachEvent("on"+D,A)}else{C.removeEventListener(D,A,true)}}};PINT.util.event.getEvent=function(A){return A||window.event};PINT.util.event.stopEvent=function(A){if(!A){A=PINT.util.event.getEvent(A)}if(PINT.util.browser.bIe){A.cancelBubble=true;A.returnValue=false}else{A.preventDefault();A.stopPropagation()}};PINT.util.event.getSource=function(A){if(!A){A=PINT.util.event.getEvent(A)}return A.target||A.srcElement};PINT.util.event.getKey=function(A){if(!A){A=PINT.util.event.getEvent(A)}return[A.keyCode,String.fromCharCode(A.keyCode)]};PINT.util.event.getMouseInfo=function(A){if(!A){A=PINT.util.event.getEvent(A)}return[parseInt(A.clientX,10),parseInt(A.clientY,10),(A.button==2?2:0)]};PINT.util.event.checkMouseOutTrigger=function(D,B){if(!D){D=window.event}var C=document.getElementById(B);var A=(D.relatedTarget)?D.relatedTarget:D.toElement;while(A!=C&&A!=null){A=A.parentNode}return(!(A==C))};PINT.util.event.checkMouseOverTrigger=function(D,B){if(!D){D=window.event}var C=document.getElementById(B);var A=(D.relatedTarget)?D.relatedTarget:D.fromElement;while(A!=C&&A!=null){A=A.parentNode}return(!(A==C))};if(!PINT.util.form){PINT.util.form={}}PINT.util.form.disableSubmit=function(A){var C=PINT.util.form.getForm(A);if(!C||(C.tagName.toUpperCase()!="FORM")){C=document.forms[0]}if(C&&(C.tagName.toUpperCase()=="FORM")){for(var B=0;B<C.elements.length;B++){if(C.elements[B].type=="submit"){C.elements[B].disabled=true}}}};PINT.util.form.selectFirst=function(A){var C=PINT.util.form.getForm(A);if(!C||C.tagName.toUpperCase()!="FORM"){C=document.forms[0]}if(C&&C.tagName.toUpperCase()=="FORM"){for(var B=0;C.elements.length;B++){if(C.elements[B].type=="text"||C.elements[B].type=="password"||C.elements[B].type=="textarea"){C.elements[B].focus();break}}}};PINT.util.form.getForm=function(A){if((oForm=PINT.util.dom.getElementById(A))&&oForm.tagName.toUpperCase()=="FORM"){return oForm}else{if(oForm=document.forms[A]){return oForm}}return null};PINT.util.form.getElement=function(B,A){if(A&&(oForm=PINT.util.form.getForm(A))){if(oElement=oForm.elements[B]){return oElement}}else{for(var D=0;D<document.forms.length;D++){for(var C=0;C<document.forms[D].elements.length;C++){if(document.forms[D].elements[C].length>1){if(document.forms[D].elements[C][0].name==B){return document.forms[D].elements[C]}}else{if(document.forms[D].elements[C].name==B){return document.forms[D].elements[C]}}}}}return null};PINT.util.form.getValue=function(C){if(C.type=="text"||C.type=="textarea"||C.type=="password"||C.type=="hidden"||C.type=="file"){return[C.value]}else{if(C.type=="select-one"){if(C.options.length==0){return[""]}else{if(C.options[C.selectedIndex].getAttribute("value")!=null){return[C.options[C.selectedIndex].value]}else{return[C.options[C.selectedIndex].text]}}}else{if(C.type=="select-multiple"){if(C.options.length==0){return[""]}else{var A=[];for(var B=0;B<C.options.length;B++){if(C.options[B].getAttribute("value")!=null){A.push(C.options[B].value)}else{A.push(C.options[B].text)}}return A}}}}};PINT.util.form.select=function(A){this.oSelect=A;this.getValue=function(){return this.oSelect.value};this.getText=function(){return this.oSelect.text};this.add=function(D,C){var B=this.oSelect.options.length;this.oSelect.options[B]=new Option(C,D);return this};this.removeByValue=function(C){var B=this.oSelect.options.length;for(i=(B-1);i>=0;i--){if(this.oSelect.options[i].value==C){this.oSelect.options[i]=null}}return this};this.removeByText=function(C){var B=this.oSelect.options.length;for(i=(B-1);i>=0;i--){if(this.oSelect.options[i].text==C){this.oSelect.options[i]=null}}return this};this.selectByValue=function(C){var B=this.oSelect.options.length;for(i=(B-1);i>=0;i--){if(this.oSelect.options[i].value==C){this.oSelect.options[i].selected=true}}return this};this.selectByText=function(C){var B=this.oSelect.options.length;for(i=(B-1);i>=0;i--){if(this.oSelect.options[i].text==C){this.oSelect.options[i].selected=true}}return this};this.removeAll=function(){this.oSelect.options.length=0;return this};this.selectAll=function(){var B=this.oSelect.options.length;for(i=0;i<B;i++){this.oSelect.options[i].selected=true}return this}};PINT.util.form.validator=function(){this.aParams=arguments[0]||[];this.sForm=this.aParams["form"]||"";this.aRules=[];this.aMessages=[];this.aElements=[];this.oDefaultErrorHandler=function(B){if(B.length&&B.length>0){for(var A=0;A<B.length;A++){B[A].style.backgroundColor="#ff0000"}}else{B.style.backgroundColor="#ff0000"}};this.oDefaultClearHandler=function(B){if(B.length&&B.length>0){for(var A=0;A<B.length;A++){B[A].style.backgroundColor=""}}else{B.style.backgroundColor=""}};this.oDefaultNotificationHandler=function(){var B="One or more errors occured during the process\n\n";for(var A=0;A<this.aMessages.length;A++){B+=this.aMessages[A]+"\n"}alert(B)};this.oErrorHandler=this.aParams["errorHandler"]||this.oDefaultErrorHandler;this.oClearHandler=this.aParams["clearHandler"]||this.oDefaultClearHandler;this.oNotificationHandler=this.aParams["notificationHandler"]||this.oDefaultNotificationHandler;this.addRule=function(A){A.oValidator=this;A.oElement=PINT.util.form.getElement(A.sTarget,this.sForm);this.aRules.push(A)};this.activate=function(){var A=this;PINT.util.dom.getElementById(this.sForm).onsubmit=function(){for(var B=0;B<A.aRules.length;B++){if(A.aRules[B].oElement.length&&A.aRules[B].oElement.length>0){if(A.aElements.indexOf(A.aRules[B].oElement[0])==-1){A.oClearHandler(A.aRules[B].oElement);if(""!=(sMessage=A.aRules[B].check())){A.aMessages.push(sMessage);A.aElements.push(A.aRules[B].oElement[0])}}}else{if(A.aElements.indexOf(A.aRules[B].oElement)==-1){A.oClearHandler(A.aRules[B].oElement);if(""!=(sMessage=A.aRules[B].check())){A.aMessages.push(sMessage);A.aElements.push(A.aRules[B].oElement)}}}}if(A.aMessages.length>0){A.oNotificationHandler(A.aMessages);A.aMessages=[];A.aElements=[];return false}else{A.aMessages=[];A.aElements=[];return true}}}};PINT.util.form.rule=function(){var self=this;this.aParams=arguments[0]||[];this.sTarget=this.aParams["element"]||"";this.sRule=this.aParams["rule"]||"NOTNULL";this.oConditions=this.aParams["conditions"]||null;this.sMessage=this.aParams["message"]||"";this.oValidator=null;this.oElement=null;this.bChecked=false;this.check=function(){eval("this.check"+this.sRule)();if(!this.bChecked){this.oValidator.oErrorHandler(this.oElement);return this.sMessage}else{return""}};this.checkJS=function(){self.bChecked=eval(self.oConditions())};this.checkNOTNULL=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){self.bChecked=self.bChecked&&(aValues[i].replace(/(\s)*/g,"")!="")}};this.checkEMAIL=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){self.bChecked=self.bChecked&&(aValues[i].search(/^[-!#$%&"'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&"'*+\/0-9=?A-Z^_a-z{|}~])*@[a-zA-Z](-?[a-zA-Z0-9])*(\.[a-zA-Z](-?[a-zA-Z0-9])*)+$/)!=-1)}}};this.checkDIGITS=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){self.bChecked=self.bChecked&&(aValues[i].replace(/([0-9])*/g,"")=="")}}};this.checkNUMERIC=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){self.bChecked=self.bChecked&&(aValues[i].replace(/([0-9\.])*/g,"")=="")}}};this.checkALPHA=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){self.bChecked=self.bChecked&&(aValues[i].replace(/([a-zA-Z])*/g,"")=="")}}};this.checkUSZIP=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){self.bChecked=self.bChecked&&(aValues[i].replace(/([0-9]{5}(\-*)[0-9]{0,5})*/g,"")=="")}}};this.checkUSPHONE=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){self.bChecked=self.bChecked&&(aValues[i].replace(/([0-9]{3}\-[0-9]{3}\-[0-9]{4})*/g,"")=="")}}};this.checkMINCHARS=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){self.bChecked=self.bChecked&&(aValues[i].length>=parseInt(self.oConditions,10))}}};this.checkMAXCHARS=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){self.bChecked=self.bChecked&&(aValues[i].length<=parseInt(self.oConditions,10))}}};this.checkEQ=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){if(typeof (self.oConditions)=="object"){var sValue=PINT.util.form.getValue(self.oConditions)[0];self.bChecked=self.bChecked&&(aValues[i]==sValue)}else{self.bChecked=self.bChecked&&(aValues[i]==self.oConditions)}}}};this.checkNOTEQ=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){if(typeof (self.oConditions)=="object"){var sValue=PINT.util.form.getValue(self.oConditions)[0];self.bChecked=self.bChecked&&(aValues[i]!=sValue)}else{self.bChecked=self.bChecked&&(aValues[i]!=self.oConditions)}}}};this.checkEXTENSION=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;var aExtensions=self.oConditions.split(",");for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){var aTokens=aValues[i].split(".");var sExtension=aTokens[aTokens.length-1].toLowerCase();self.bChecked=self.bChecked&&(aExtensions.indexOf(sExtension)!=-1)}}};this.checkREGEXP=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;var oRegExp=new RegExp(this.oConditions);for(var i=0;i<aValues.length;i++){if(aValues[i].replace(/(\s)*/g,"")!=""){self.bChecked=self.bChecked&&oRegExp.test(aValues[i])}}};this.checkCHECKED=function(){self.bChecked=self.oElement.checked};this.checkSELECTED=function(){self.bChecked=false;for(var i=0;i<self.oElement.length;i++){self.bChecked=self.bChecked||self.oElement[i].checked}};this.checkCC=function(){var aValues=PINT.util.form.getValue(self.oElement);self.bChecked=true;for(var i=0;i<aValues.length;i++){if((sValue=aValues[i].replace(/(\s)*/g,""))!=""){if(sValue.length>19){self.bChecked=false;return }else{var iSum=0;var iMul=1;var iLen=sValue.length;for(var i=0;i<iLen;i++){iDigit=sValue.substring(iLen-i-1,iLen-i);iCode=parseInt(iDigit,10)*iMul;if(iCode>=10){iSum+=(iCode%10)+1}else{iSum+=iCode}if(iMul==1){iMul++}else{iMul--}}if((iSum%10)==0){self.bChecked=self.bChecked&&true}else{self.bChecked=false;return }}}}}};PINT.connection={iConnection:0,aConnections:[],createConnection:function(){var A=PINT.connection.createXmlHttpRequest();return{"iConnection":PINT.connection.iConnection++,"oRequest":A}},createXmlHttpRequest:function(){if(window.XMLHttpRequest){var D=new XMLHttpRequest()}else{if(window.ActiveXObject){var A=["Microsoft.XMLHttp","MSXML2.XMLHttp","MSXML2.XMLHttp.5.0","MSXML2.XMLHttp.4.0","MSXML2.XMLHttp.3.0"];for(var B=0;B<A.length;B++){try{var D=new ActiveXObject(A[B])}catch(C){}}}else{if(window.createRequest){var D=window.createRequest()}}}return D},asyncRequest:function(D,F,B,G,A){if(!G||typeof (G)=="undefined"){G=30}else{G=parseInt(G,10)}A=A||"";var E=PINT.connection.createConnection();PINT.connection.aConnections[E["iConnection"]]={"oConnection":E,"iTimeout":G,"sPostData":A};if(F.indexOf("?")==-1){F+="?"}F+="&PINT_random="+Math.random();window.setTimeout(function(){PINT.connection.abort(E,B)},G*1000);var C=window.setInterval(function(){PINT.connection.check(E,B)},300);PINT.connection.aConnections[E.iConnection]["oInterval"]=C;if(D=="POST"){E["oRequest"].open(D,F,true);E["oRequest"].setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8");E["oRequest"].setRequestHeader("Content-length",A.length);E["oRequest"].setRequestHeader("Connection","close");E["oRequest"].send(A);if(PINT.util.browser.bKonqueror){}}else{E["oRequest"].open(D,F+"&"+A,true);E["oRequest"].send(null)}},check:function(B,A){if(B["oRequest"].readyState==4){window.clearInterval(PINT.connection.aConnections[B.iConnection]["oInterval"]);delete PINT.connection.aConnections[B.iConnection];if(typeof (A)=="function"){if(B["oRequest"].status>=200&&B["oRequest"].status<300){A(1,B["oRequest"].responseText)}else{A(0,B["oRequest"].responseText)}}}},abort:function(B,A){if(PINT.connection.aConnections[B.iConnection]&&PINT.connection.aConnections[B.iConnection]["oTimeout"]){window.clearInterval(PINT.connection.aConnections[B.iConnection]["oTimeout"]);if(typeof (A)=="function"){A(-1,"")}delete PINT.connection.aConnections[B.iConnection]}}};PINT.util.flash=function(){this.aParams=arguments[0]||[];this.sId=this.aParams.id||Math.floor(Math.random()*5000+1);this.sSwf=this.aParams.swf||"";this.iWidth=this.aParams.width||0;this.iHeight=this.aParams.height||0;this.sAlign=this.aParams.align||"middle";this.iVersion=this.aParams.version||6;this.sImageMap=this.aParams.imagemap||"";this.sCodeBase=this.iVersion+",0,0,0";this.sDefaultImage=this.aParams.defaultimage||"";this.sNoScriptId=this.aParams.noscriptId||"";this.sAltText=this.aParams.alttext||"Please <a href='http://www.macromedia.com/go/getflashplayer'>upgrade your Flash Player</a>.";this.sBypassText=this.aParams.bypasstext||"";this.sRedirectUrl=this.aParams.redirecturl||"";this.sBgColor=this.aParams.bgcolor||"";this.aParams={};this.aVars={};this.addParam=function(A,B){this.aParams[A]=B};this.getParams=function(A){if(A){return this.aParams[A]}else{return this.aParams}};this.addVariable=function(A,B){this.aVars[A]=B};this.getVars=function(A){if(A){return this.aVars[A]}else{return this.aVars}};this.getParamTags=function(){var B="";for(var A in this.getParams()){if(typeof A=="string"){B+='<param name="'+A+'" value="'+this.getParams(A)+'" />'}}if(B===""){B=null}return B};this.getHTML=function(){var B="";if(window.ActiveXObject&&navigator.userAgent.indexOf("Mac")==-1){var C=(("https:"==document.location.protocol)?"https://":"http://");B+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+C+"fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+this.sCodeBase+'" width="'+this.iWidth+'" height="'+this.iHeight+'" id="'+this.sId+'" name="'+this.sId+'" align="'+this.sAlign+'">';B+='<param name="movie" value="'+this.sSwf+'" />';if(this.getParamTags()!==null){B+=this.getParamTags()}if(this.getVariablePairs()!==null){B+='<param name="flashVars" value="'+this.getVariablePairs()+'" />'}B+="</object>"}else{B+='<embed type="application/x-shockwave-flash" src="'+this.sSwf+'" width="'+this.iWidth+'" height="'+this.iHeight+'" id="'+this.sId+'" name="'+this.sId+'" align="'+this.sAlign+'"';for(var A in this.getParams()){if(typeof A=="string"){B+=" "+A+'="'+this.getParams(A)+'"'}}if(this.getVariablePairs()!==null){B+=' flashVars="'+this.getVariablePairs()+'"'}B+="></embed>"}return B};this.getVariablePairs=function(){var A=[];for(var B in this.getVars()){if(typeof B=="string"){A.push(B+"="+encodeURIComponent(this.getVars(B)))}}if(A.length>0){return A.join("&")}else{return null}};this.render=function(C){this.addParam("quality","high");if(this.sBgColor){this.addParam("bgcolor",this.sBgColor)}this.sDetect=PINT.util.getQueryParamValue("detectflash");if(this.detectFlash(this.iVersion)||this.sDetect=="false"){if(C){document.getElementById(C).innerHTML=this.getHTML()}else{document.write(this.getHTML())}}else{if(this.sRedirectUrl!==""){document.location.replace(this.sRedirectUrl)}else{if(this.sNoScriptId!==""){var A=document.getElementById(this.sNoScriptId);if(A){A.style.display=A.parentNode.style.display}}else{if(this.sDefaultImage!==""){var B='<img src="'+this.sDefaultImage+'" width="'+this.iWidth+'" height="'+this.iHeight+'" border="0" alt=""';if(typeof this.sImageMap!="undefined"&&this.sImageMap!==""){B+=' usemap="#'+this.sImageMap+'" '}B+=' class="inlineimage" />';if(C){document.getElementById(C).innerHTML=B}else{document.write(B)}}else{if(C){document.getElementById(C).innerHTML=this.sAltText+""+this.sBypassText}else{document.write(this.sAltText+""+this.sBypassText)}}}}}};this.getFlashVersion=function(){var A=0;if(navigator.plugins&&navigator.plugins.length){var E=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var I=navigator.plugins["Shockwave Flash"+E];if(I){if(I.description){var J=I.description;var L=I.description.split(" ");var K=L[2].split(".");A=K[0]}}}else{var B;try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.10");A=10}catch(D){}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.9");A=9}catch(H){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.8");A=8}catch(G){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");A=7}catch(F){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");A=6}catch(C){}}}return A};this.detectFlash=function(A){return(this.getFlashVersion()>=A)}};var PINT_FlashObject=function(B,A,I,D,C,F,H,G){var E=new PINT.util.flash({swf:B,width:I,height:D,defaultimage:C,version:F,imagemap:H,bgcolor:G});E.write=function(){this.render(arguments.length==1?arguments[0]:null)};return E}
