String.prototype.trim=function(){return(this.replace(new RegExp("^([\\s]+)|([\\s]+)$","gm"),""))};Array.prototype.clean=function(C){var B=[];for(var A=0;A<this.length;A++){if(this[A]!=C){B.push(this[A])}}return B};Array.prototype.indexOf=function(B){for(var A=0;A<this.length;A++){if(this[A]==B){return A}}return -1};function RefreshBanner(A,B){var C=document.getElementById(A);var D=C.src;C.src="about:blank";C.src=D;setTimeout("RefreshBanner('"+A+"','"+B+"')",B*1000)}function RefreshBanner2(A,B,E){var C=document.getElementById(A);var D=C.src;C.src="about:blank";C.src=D;E=E-1;if(E>0){setTimeout("RefreshBanner2('"+A+"','"+B+"','"+E+"')",B*1000)}}var PERF={setText:function(B,A){B[document.all?"innerText":"textContent"]=A},getCookie:function(C){var D=document.cookie.indexOf(C+"=");var A=D+C.length+1;if((!D)&&(C!=document.cookie.substring(0,C.length))){return null}if(D==-1){return null}var B=document.cookie.indexOf(";",A);if(B==-1){B=document.cookie.length}return unescape(document.cookie.substring(A,B))},setCookie:function(C,E,A,H,D,G){var B=new Date();B.setTime(B.getTime());if(A){A=A*1000*60*60*24}var F=new Date(B.getTime()+(A));document.cookie=C+"="+escape(E)+((H)?";path="+H:"")+((A)?";expires="+F.toGMTString():"")+";domain=perfspot.com"+((G)?";secure":"")},deleteCookie:function(A,C,B){if(getCookie(A)){document.cookie=A+"="+((C)?";path="+C:"")+((B)?";domain="+B:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}},getQueryStringParameterValue:function(E,B){B=B||window.location.href;var A="[\\?&]"+E+"=([^&#]*)";var D=new RegExp(A);var C=D.exec(B);if(C==null){return""}else{return C[1]}},getRelativeUrlPathName:function(){return location.pathname.substr(0,(location.pathname.lastIndexOf("/")+1))},getAbsoluteUrlPathName:function(){var A=location.protocol+"//"+location.host;return A+this.getRelativeUrlPathName()},parseNode:function(C,A){var B=C.getElementsByTagName(A)[0];return(B!=null&&B.childNodes.length>0)?B.firstChild.nodeValue:""},parseNodeNumeric:function(B,A){return Number(this.parseNode(B,A))},parseNodeBool:function(B,A){return this.parseNode(B,A).trim().toLowerCase()=="true"?true:false},requestVariableEditPictures:"editPictures_albumContentsEditor",encoding:"",makeLink:function(A){var C=function(){this.className+=this.className.trim().length==0?"linkHover":" linkHover"};var B=function(){this.className=this.className.replace("linkHover","").trim()};if(YAHOO.util.Event){YAHOO.util.Event.addListener(A,"mouseover",C);YAHOO.util.Event.addListener(A,"mouseout",B)}else{if(window.attachEvent){A.attachEvent("onmouseover",C);A.attachEvent("onmouseout",B)}else{A.addEventListener("onmouseover",C,false);A.addEventListener("onmouseout",B,false)}}},removeLink:function(A){YAHOO.util.Event.addListener(A,"mouseover");YAHOO.util.Event.addListener(A,"mouseout")}};function formatLongDate(M){var C="";if(M==undefined){return M}var L=new String(M);if(L.trim().length==0){return M}var K=new Array("January ","February ","March ","April ","May ","June ","July ","August ","September ","October ","November ","December ");var G=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");try{var F=new Date(M);var A=F.getMonth();var I=String(K[A]);var D=String(A);D=A<10?"0"+D:D;var B=F.getDate();var N=String(F.getDate());var E=String(G[F.getDay()]);var J=String(F.getFullYear());C=E+", "+I+" "+N+", "+J}catch(H){}return C}function formatDateMMDDYYYY(I){var B="";if(I==undefined){return I}var H=new String(I);if(H.trim().length==0){return I}try{var E=new Date(I);var A=E.getMonth()+1;var D=String(A);D=A<10?"0"+D:D;var C=E.getDate();var J=String(E.getDate());J=C<10?"0"+J:J;var G=String(E.getFullYear());B=D+"/"+J+"/"+G}catch(F){}return B}function addNode(G,I,B,E,H,A){var C=null;B=B==undefined?"":B;E=E==undefined?"":E;H=H==undefined?"":H;if(I.length>0){C=document.createElement("input");switch(I){case"hidden":C.setAttribute("type","hidden");break;case"textbox":C.setAttribute("type","text");break;case"button":C.setAttribute("type","button");break;case"checkbox":C.setAttribute("type","checkbox");break;case"radio":try{var F="<input type='radio' name='"+A+"' />";C=document.createElement(F)}catch(D){C=document.createElement("input");C.setAttribute("type","radio");C.setAttribute("name",A)}break;default:C=document.createElement(I);break}}if(H.length>0){if(C==null){C=G}switch(C.tagName){case"OPTION":C.appendChild(document.createTextNode(H));C.value=H;break;case"INPUT":C.value=H;break;default:C.innerHTML=H;break}}if(B.length>0){C.id=B;C.name=B}if(E.length>0){C.className=E}G.appendChild(C);return C}var Url={encode:function(A){return escape(this._utf8_encode(A))},decode:function(A){return this._utf8_decode(unescape(A))},_utf8_encode:function(B){var A="";for(var D=0;D<B.length;D++){var C=B.charCodeAt(D);if(C<128){A+=String.fromCharCode(C)}else{if((C>127)&&(C<2048)){A+=String.fromCharCode((C>>6)|192);A+=String.fromCharCode((C&63)|128)}else{A+=String.fromCharCode((C>>12)|224);A+=String.fromCharCode(((C>>6)&63)|128);A+=String.fromCharCode((C&63)|128)}}}return A},_utf8_decode:function(A){var B="";var C=0;var D=c1=c2=0;while(C<A.length){D=A.charCodeAt(C);if(D<128){B+=String.fromCharCode(D);C++}else{if((D>191)&&(D<224)){c2=A.charCodeAt(C+1);B+=String.fromCharCode(((D&31)<<6)|(c2&63));C+=2}else{c2=A.charCodeAt(C+1);c3=A.charCodeAt(C+2);B+=String.fromCharCode(((D&15)<<12)|((c2&63)<<6)|(c3&63));C+=3}}}return B}};function pop(D,C,B,E,A){var G,F;G=screen.availHeight/2-E/2;F=screen.availWidth/2-B/2;window.open(D,C,"width="+B+",height="+E+",top="+G+",left="+F+",toolbar=no,location=no,directories=no,status=no,scrollbars="+A+",resizable=no,menubar=no,screenX=200,screenY=200")}function getHttpRequestObj(){var A=false;if(window.XMLHttpRequest){try{A=new XMLHttpRequest()}catch(B){A=false}}else{if(window.ActiveXObject){try{A=new ActiveXObject("Msxml2.XMLHTTP")}catch(B){try{A=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){A=false}}}}return A}var click=false;function cpress(A){click=true}function uload(){if(!click){var A="/close.asp";http=getHttpRequestObj();http.open("GET",A,true);http.send(null)}}document.onclick=cpress
