var FRAMEWINDOW_FIXED=1;var FRAMEWINDOW_MODAL=2;isIE=window.clientInformation?true:false;isN4=document.layers?true:false;isN6=navigator.appName=="Netscape"&&parseInt(navigator.appVersion)>=5;isO5=navigator.userAgent.indexOf("Opera")!=-1&&parseInt(navigator.appVersion)>=4;ie=document.all!=null&&!isO5;safari=navigator.userAgent.indexOf("Safari")!=-1;moz=!ie&&!safari&&document.getElementById!=null&&document.layers==null&&navigator.userAgent.indexOf("Netscape/7.02")==-1&&(navigator.userAgent.indexOf("Gecko")||navigator.userAgent.indexOf("Firefox"));mac=(navigator.userAgent.indexOf("Macintosh")!=-1||navigator.userAgent.indexOf("Mac_PowerPC")!=-1);if(safari){document.write("<style> input.button, input.button[disabled] { font-size: 11px; } </style>");}var SquarespaceConstants={POPUPS_DISABLED_MESSAGE:"It appears that you may have a popup blocker enabled that is preventing Squarespace from opening a new window.  You should either disable your popup blocker, or explicitly allow this site to create popups.\n\nMore information on this problem is available in the Troubleshooting area of the FAQ from our front website."};var Squarespace=window.Squarespace||{};function ql_nt(A){n=new Array();qidx=A.indexOf("?");if(qidx==-1){return(A);}p=A.substring(0,qidx);s=A.substring(qidx+1).split("&");for(i=0;i<s.length;++i){if(!(s[i].indexOf("returnUrl")==0)&&!(s[i].indexOf("SS_CSAT")==0)){n[n.length]=s[i];}}if(p.indexOf("/process/")!=-1){p="/";}return(p+(n.length?"?":"")+n.join("&"));}function ql_sifs(){return("");}function ql_sfs(){return("");}function ql_csat(){var C="ABCDEFGHIJKLMNOPQRSTUVWXYZ";var B=30;var A=String();while(B-->0){A+=C.charAt(Math.round(Math.random()*25));}return(A);}var Class={create:function(A){var B;if(A.initialize){B=function(){this.initialize.apply(this,arguments);};}else{B=function(){};}B.prototype=A;for(property in A){if(typeof (A[property])!="function"){B[property]=A[property];}}B.extend=function(D){B=Class.create(D);if(D){var C=this;for(property in C.prototype){if(typeof (C.prototype[property])=="function"&&!B.prototype[property]){B.prototype[property]=C.prototype[property];}}}return B;};return B;}};Function.prototype.bind=function(A){var B=this;return function(){B.apply(A,arguments);};};function isDefined(A){return(typeof (A)!="undefined");}function encodeURIFilename(B){var A=B.lastIndexOf("/");if(A!=-1){return(B.substring(0,A+1)+encodeURIComponent(B.substring(A+1)));}else{return(encodeURIComponent(B));}}function smartSubmit(A){confirmPageExit=false;disableButtons(A);document.forms[A].submit();return true;}function smartSubmit(B,A){confirmPageExit=false;B.disabled="true";document.forms[A].submit();return true;}function smartLocation(A,B){confirmPageExit=false;A.disabled="true";document.location=B;return true;}function smartGoBack(A){confirmPageExit=false;A.disabled="true";history.go(-1);return true;}function smartCancel(){if(confirmPageExit&&!confirm("Are you sure you wish to navigate away from this page?\n\nYou have unsaved changes.  These changes will be lost if you leave this page\n\nPress OK to continue, or Cancel to stay on the current page.")){return ;}confirmPageExit=false;if(window.parent.closeWindow){window.parent.closeWindow();}else{window.close();}}function openWindow(D,E,A,C){var B=window.open(D,"EditWindow"+Math.round(Math.random()*100000),"width="+E+",height="+A+",modal="+(C&FRAMEWINDOW_MODAL)+",scrollbars=no,resizable=yes,titlebar=yes,menubar=no,toolbar=no");if(!B){alert(SquarespaceConstants.POPUPS_DISABLED_MESSAGE);}}function getOpenerWindow(){return window.opener;}function getUsingFrameWindows(){return false;}function closeWindow(){window.close();}function scrollToElement(A){window.scrollTo(0,getYCoord(document.getElementById(A))-100);}functionMap=new Array();oldButtonColors=new Array();numericChars="0123456789";function noop(){}function copyToClipboard(B,C,A){if(!A){B="'"+B+"'";}if(window.ie){window.clipboardData.setData("text",C);showHelpTip(window.event,"<strong>URL Copied to Clipboard</strong><br/>The URL for "+B+" has been copied to your clipboard.  To give this file to someone, simply paste this URL to them.");}else{showObject(document.getElementById("clipboardTextContainer"));document.getElementById("clipboardTextFilename").innerHTML=B+" ";document.getElementById("clipboardTextContent").innerHTML=C;}}function urlAttributeAdjust(B,A,C){if(B.match(new RegExp("(\\?|\\&)"+A+"=([^&]*)","g"))){B=B.replace(new RegExp("(\\?|\\&)"+A+"=([^&]*)","g"),"$1"+A+"="+C);}else{if(B.indexOf("?")==-1){B=B+"?"+A+"="+C;}else{B=B+"&"+A+"="+C;}}return(B);}function inputContainsErrors(B){var D=document.getElementById(B+"_title");if(D){var A=D.getElementsByTagName("div");for(var C=0;C<A.length;++C){if(A[C].className=="errorText"){return(true);}}}return(false);}function disableButtons(C){var A=document.forms[C].getElementsByTagName("input");for(var B=0;B<buttons.length;++B){if(A[B].type=="button"||A[B].type=="submit"){A[B].disabled="true";}}}function initFormEffects(C){if(!C){C="dataform";}var F=document.forms[C];if(!F){return ;}var D=F.elements.length;for(var B=0;B<D;B++){el=F.elements[B];if(el.type=="text"||el.type=="edit"||el.type=="password"||el.type=="textarea"||el.type=="checkbox"||el.type=="select-one"||el.type=="input"){var A=false;var E,H;var G=el.name;for(j=0;j<G.length;j++){if(numericChars.indexOf(G.charAt(j))==-1){continue;}H=G.substring(0,j);E=G.substring(j);if(E!="1"&&document.getElementById(H+"_title")){A=true;}break;}if(A){focusObjName=H+"1_title";}else{focusObjName=el.name+"_title";}o=document.getElementById(focusObjName);if(o!=null){functionMap[el.name]=focusObjName;if(el.type=="checkbox"){functionMap[o.id]=focusObjName;}}if(el.type=="checkbox"){YAHOO.util.Event.addListener(el,"focus",function(){var I=document.getElementById(functionMap[this.id]);if(I){YAHOO.util.Dom.addClass(I,"checkbox-title-selected");}});YAHOO.util.Event.addListener(el,"blur",function(){var I=document.getElementById(functionMap[this.id]);if(I){YAHOO.util.Dom.removeClass(I,"checkbox-title-selected");}});YAHOO.util.Event.addListener(el,"change",function(){var I=document.getElementById(functionMap[this.id]);if(I){if(this.checked){YAHOO.util.Dom.addClass(I,"checkbox-option-active");}else{YAHOO.util.Dom.removeClass(I,"checkbox-option-active");}}});if(el.checked){YAHOO.util.Dom.addClass(focusObjName,"checkbox-option-active");}}else{YAHOO.util.Event.addListener(el,"focus",function(){if(this.readOnly||this.disabled){return ;}var I=document.getElementById(functionMap[this.name]);if(I){YAHOO.util.Dom.addClass(I,"input-title-selected");}YAHOO.util.Dom.addClass(this,"input-selected");});YAHOO.util.Event.addListener(el,"blur",function(){if(this.readOnly||this.disabled){return ;}var I=document.getElementById(functionMap[this.name]);if(I){YAHOO.util.Dom.removeClass(I,"input-title-selected");}YAHOO.util.Dom.removeClass(this,"input-selected");});}}else{if(el.type=="button"||el.type=="submit"){YAHOO.util.Event.addListener(el,"focus",function(){YAHOO.util.Dom.addClass(this,"button-selected");});YAHOO.util.Event.addListener(el,"blur",function(){YAHOO.util.Dom.removeClass(this,"button-selected");});}}}}Date.prototype.getFullYear=function(){return(window.moz||window.safari?this.getYear()+1900:this.getYear());};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");};String.prototype.endsWith=function(A){return(this.substr(this.length-A.length)==A);};String.prototype.startsWith=function(A){return(this.substr(0,A.length)==A);};function trim(C){var A=0;var B=C.length-1;while(C.charAt(A)==" "){A++;}while(C.charAt(B)==" "){B--;}return(C.substr(A,(B-A+1)));}function getMouseX(A){if(!A){var A=window.event;}if(A.pageX){return A.pageX;}return A.clientX+getViewportScrollX();}function getMouseY(A){if(!A){var A=window.event;}if(A.pageY){return A.pageY;}return A.clientY+getViewportScrollY();}function getWidth(A){return(parseInt(A.offsetWidth));}function getHeight(A){return(parseInt(A.offsetHeight));}function getLeft(A){return(parseInt(A.offsetLeft));}function getTop(A){return(parseInt(A.offsetTop));}function setLeft(A,B){A.style.left=B+"px";}function setTop(A,B){A.style.top=B+"px";}function getXCoord(A){x=getLeft(A);while(A.offsetParent.tagName.toLowerCase()!="body"&&A.offsetParent.tagName.toLowerCase()!="html"){A=A.offsetParent;if(A.offsetParent.tagName.toLowerCase()!="form"){x+=getLeft(A);}}return(x);}function getYCoord(A){y=getTop(A);while(A.offsetParent.tagName.toLowerCase()!="body"&&A.offsetParent.tagName.toLowerCase()!="html"){A=A.offsetParent;if(A.offsetParent.tagName.toLowerCase()!="form"){y+=getTop(A);}}return(y);}function isVisible(A){return(A.style.display!="none");}function hideObject(A){if(A){A.style.display="none";}}function showObject(A){if(A){A.style.display="";}}function toggleVisibility(A){if(isVisible(A)){hideObject(A);}else{showObject(A);}}function getWindowHeight(){if(ie){return(document.body.offsetHeight);}else{return(window.innerHeight);}}function getWindowWidth(){if(ie){return(document.body.offsetWidth);}else{return(window.innerWidth);}}function getDocumentHeight(){if(ie){return(document.body.scrollHeight);}else{return(document.documentElement.offsetHeight);}}function getWindowScroll(A){if(!A){if(document.documentElement&&document.documentElement.scrollTop){return document.documentElement.scrollTop;}else{if(document.body.scrollTop){return document.body.scrollTop;}else{if(window.pageYOffset){return window.pageYOffset;}}}}else{if(A.document.documentElement&&A.document.documentElement.scrollTop){return A.document.documentElement.scrollTop;}else{if(A.document.body.scrollTop){return A.document.body.scrollTop;}else{if(A.pageYOffset){alert(A.pageYOffset);return A.pageYOffset;}}}}return(0);}function getCurrentUrl(){if(SS_RETURN_URL){return(SS_RETURN_URL);}else{return("/");}}function getIFrameWindow(A){if(window.safari){return(window.frames[A]);}else{return(document.getElementById(A).contentWindow);}}function suppressEnter(B,A){if(!B){B=window.event;}if(B.keyCode==13){if(A){A();}return false;}return true;}function getViewportHeight(){if(self.innerHeight){y=self.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){y=document.documentElement.clientHeight;}else{if(document.body){y=document.body.clientHeight;}}}return(y);}function getViewportWidth(){if(self.innerHeight){x=self.innerWidth;}else{if(document.documentElement&&document.documentElement.clientHeight){x=document.documentElement.clientWidth;}else{if(document.body){x=document.body.clientWidth;}}}return(x);}function getViewportScrollX(){if(self.pageYOffset){x=self.pageXOffset;}else{if(document.documentElement&&document.documentElement.scrollTop){x=document.documentElement.scrollLeft;}else{if(document.body){x=document.body.scrollLeft;}}}return(x);}function getViewportScrollY(){if(self.pageYOffset){y=self.pageYOffset;}else{if(document.documentElement&&document.documentElement.scrollTop){y=document.documentElement.scrollTop;}else{if(document.body){y=document.body.scrollTop;}}}return(y);}function toggleContentElement(B,A){if(B.checked){showObject(A);}else{hideObject(A);}}function setCookie(D,E,A,C,B){document.cookie=D+"="+escape(E)+"; expires="+(A==null?new Date("January 1, 2023").toGMTString():A)+"; path="+((C==null)?"/":C)+((B==null)?"":"; domain="+B);}function delCookie(C,B,A){document.cookie=C+"="+escape(getCookie(C))+";expires="+new Date("December 31, 1975").toGMTString()+"; path="+((B==null)?"/":B)+((A==null)?"":"; domain="+A);}function getCookie(D){var B=document.cookie.split(";");for(var C=0;C<B.length;C++){var A=B[C].split("=");if(D==trim(unescape(A[0]))){return(unescape(A[1]));}}return(null);}function getCookieDomain(B){var A=B.split(".");if(A.length-2<0){return("");}else{return("."+A[A.length-2]+"."+A[A.length-1]);}}function setRadioValue(A,B,C){obj=document.forms[A][B];for(i=0;i<obj.length;i++){if(obj[i].value==C){obj[i].checked=true;}}}function setRadioHighlight(C,D,B,A){obj=document.forms[C][D];for(i=0;i<obj.length;i++){obj[i].parentNode.parentNode.style.color=(obj[i].checked?B:A);obj[i].parentNode.style.color=obj[i].parentNode.parentNode.style.color;}}function getRadioValue(A,B){obj=document.forms[A][B];for(i=0;i<obj.length;i++){if(obj[i].checked){return(obj[i].value);}}}function getRadio(A,B,C){obj=document.forms[A][B];for(i=0;i<obj.length;i++){if(obj[i].value==C){return(obj[i]);}}}function getSelectOptionTitleByValue(B,D,C){obj=document.forms[B][D];for(var A=0;A<obj.length;++A){if(obj[A].value==C){return(obj[A].text);}}return(null);}function setFieldValue(B,D,C){obj=document.forms[B][D];if(obj.tagName.toLowerCase()=="select"){for(var A=0;A<obj.length;++A){if(obj[A].value==C){obj.selectedIndex=A;break;}}}else{obj.value=C;}}function setFieldDisabled(A,B){obj=document.forms[A][B];obj.style.color="#727272";obj.style.backgroundColor="#F9F9F9";obj.readOnly=1;}function setFieldEnabled(A,B){obj=document.forms[A][B];obj.style.color="#000000";obj.style.backgroundColor="#FFFFFF";obj.readOnly=0;}function debug(A){dm=document.getElementById("debugAreaMessages");if(!dm){da=document.createElement("div");da.id="debugArea";document.body.appendChild(da);dh=document.createElement("div");dh.id="debugAreaHeader";dh.innerHTML="Debug Messages";da.appendChild(dh);dm=document.createElement("div");dm.id="debugAreaMessages";da.appendChild(dm);}dm.style.bottom="0px";dm.style.right="0px";m=document.createElement("div");m.innerHTML=A;dm.appendChild(m);}function isDefined(A){return(typeof (A)=="undefined");}function getStyle(A,B){var C="";if(document.defaultView&&document.defaultView.getComputedStyle){C=document.defaultView.getComputedStyle(A,"").getPropertyValue(B);}else{if(A.currentStyle){B=B.replace(/\-(\w)/g,function(D,E){return E.toUpperCase();});C=A.currentStyle[B];}}return C;}if(typeof aeOL=="undefined"){var aeOL=[];var addEvent=function(A,B,G,C){var H="addEventListener",F="on"+B,J,I;if(A[H]&&!C){return A[H](B,G,false);}if(!A.aE){A.aE=aeOL.length||1;aeOL[A.aE]={o:A};}J=aeOL[A.aE][B]||(aeOL[A.aE][B]=[]);for(var E=0;E<J.length;E++){for(var D=0;D<J[E].length;D++){if(J[E][D]==G){return ;}}}if(A[F]&&A[F]._ae){I=J[J.length-1];I[I.length]=G;}else{J[J.length]=A[F]?[A[F],G]:[G];A[F]=new Function("e","var r = true, i = 0, o = aeOL["+A.aE+"].o,"+"a = aeOL["+A.aE+']["'+B+'"]['+(J.length-1)+"];"+"for (; i < a.length; i++) { "+"o._f = a[i]; r = o._f(e||window.event) != false && r; o._f = null;"+"} return r");A[F]._ae=1;}};var removeEvent=function(A,B,F,C){var G="removeEventListener",I,H,E,D,J;if(A[G]&&!C){return A[G](B,F,false);}if(!A.aE||!aeOL[A.aE]){return ;}I=aeOL[A.aE][B];E=I.length;while(E--){H=I[E];D=H.length;J=0;while(D--){if(H[D]==F){J=1;}if(J){H[D]=H[D+1];}}if(J){H.length--;break;}}};}

