function getId(a){return document.getElementById(a)}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[e+2]}}}function P7_autoLayers(){var m,c,e,n,l=P7_autoLayers.arguments;var d=parseInt(l[0]);if(isNaN(d)){d=0}if(!document.p7setc){p7c=new Array();document.p7setc=true;for(var h=0;h<10;h++){p7c[h]=new Array()}}for(e=0;e<p7c[d].length;e++){if((m=MM_findObj(p7c[d][e]))!=null){c=(document.layers)?m:m.style;c.visibility="hidden"}}for(e=1;e<l.length;e++){if((m=MM_findObj(l[e]))!=null){c=(document.layers)?m:m.style;c.visibility="visible";n=false;for(j=0;j<p7c[d].length;j++){if(l[e]==p7c[d][j]){n=true}}if(!n){p7c[d][p7c[d].length++]=l[e]}}}}function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var e,c=f.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){f.MM_p[c]=new Image;f.MM_p[c++].src=b[e]}}}}function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function MM_findObj(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}if(!a&&e.getElementById){a=e.getElementById(f)}return a}function popup(b,d,c,a){popWindow(b,d,c,a)}function popWindow(b,d,c,a){if(!startNewWindow(b,d,c,a)){alert("Ooops\n\nYou seem to have a popup blocker. Please disable it to see the page!")}}function startNewWindow(b,f,d,a){var e=document.location.host;e=e.replace(/./g,"");this.name=e+"Main";var c=window.open(b,f,"menubar=no,scrollbars=1,width="+d+",height="+a+",resizable=1,status=1");if(c==null){return false}return true}function openVideoWindow(a){var b=open(a,"VideoWindow","width=320,height=320,screenX=0,screenY=0");if(b=null){alert("Ooops\n\nYou seem to have a popup blocker. Please disable it to see the video!")}}function donate(){var a=document.location.host;if(a.indexOf(":")>0){a=a.substring(0,a.indexOf(":"))}var b=startNewWindow("/apps/s/donations/index.jsp?h="+a,"SecureDonations",700,480);if(!b){alert("You seem to have a popup blocker. We will continue in the main browser window.");window.location.href="/apps/s/donations/index.jsp?h="+a}}function getRN(){return Math.round(Math.random()*10000000)}function trimString(b){if(typeof b!="string"){return b}var a=b;var d=a.substring(0,1);while(d==" "||d=="\n"||d=="\r"||d=="\t"){a=a.substring(1,a.length);d=a.substring(0,1)}d=a.substring(a.length-1,a.length);while(d==" "||d=="\n"||d=="\r"||d=="\t"){a=a.substring(0,a.length-1);d=a.substring(a.length-1,a.length)}return a}function validatePositiveInteger(b){if(b==null||b==""){return false}var a="0123456789";for(i=0;i<b.length;i++){if(a.indexOf(b.charAt(i))<0){return false}}return true}function validateDollarAmount(c){if(c==null||c==""){return false}var b="0123456789.";var a=0;for(i=0;i<c.length;i++){if(c.charAt(i)=="."){a++}if(b.indexOf(c.charAt(i))<0){return false}}if(a>1||(a==1&&c.indexOf(".")!=c.length-3)){return false}return true}function rotatePics(c,e,a){var b=getId(c);if(b!=null){var d;do{d="/pics/"+c+"/"+Math.floor(Math.random()*e)+".jpg"}while(b.src.indexOf(d)>=0);b.src=d;setTimeout('rotatePics("'+c+'",'+e+","+a+")",a)}}function toUTF8(a){if(a==null){return a}for(i=0;i<a.length;i++){if(a.charCodeAt(i)>126){var b="&#"+a.charCodeAt(i)+";";a=a.substring(0,i)+b+a.substring(i+1,a.length)}}return a}function setCookie(b,c,a){if(a!=null&&a!=""){document.cookie=b+"="+escape(c)+"; path=/; expires="+a}else{document.cookie=b+"="+escape(c)+"; path=/;"}}function getCookie(d){var b=document.cookie.split("; ");for(var c=0;c<b.length;c++){var a=b[c].split("=");if(d==a[0]){return unescape(a[1])}}return null}function delCookie(b,a){document.cookie=escape(b)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(a?"; path="+a:"")}function areCookiesEnabled(){var d=false;var a=Math.floor(Math.random()*1000001);var c=new Date();c.setTime(c.getTime()+(1*24*60*60*1000));var b=c.toGMTString();setCookie(a,b,b);if(getCookie(a)!=null){d=true;delCookie(a)}return d}function getExpirationString(b){b=parseInt(b,10);var a=new Date();a.setTime(a.getTime()+b*60*1000);return a.toGMTString()}function onEnter(e,callback){var characterCode;if(e&&e.which){characterCode=e.which}else{e=window.event;try{characterCode=e.keyCode}catch(ex){characterCode=-1}}if(characterCode==13){eval(callback);return false}else{return true}}function CommonIsLoaded(){return true}(function(){document.addEventListener("DOMContentLoaded",function(){var c=document.querySelectorAll("marquee");for(var b=0;b<c.length;b++){c[b].onmouseover=function(d){d.target.stop()};c[b].onmouseout=function(d){d.target.start()}}var a=document.querySelectorAll(".marquee-inner");for(var b=0;b<a.length;b++){a[b].onmouseover=function(d){d.target.style.animationPlayState="paused";d.target.style["-webkit-animation-play-state"]="paused"};a[b].onmouseout=function(d){d.target.style.animationPlayState="running";d.target.style["-webkit-animation-play-state"]="running"}}})})();function validateFormField(a){if(a.value===""){a.parentElement.classList.add("revise");return false}else{if(a.parentElement.classList.contains("revise")){a.parentElement.classList.remove("revise")}return true}}function validateFormIconField(a){var b=a.parentElement.parentElement;if(a.value===""){b.classList.add("revise");return false}else{if(b.classList.contains("revise")){b.classList.remove("revise")}return true}}function validateFormEmailField(a){var b=a.parentElement.classList.contains("error");var c=a.parentElement.parentElement.parentElement;if(a.value===""||b){c.classList.add("revise");return false}else{if(c.classList.contains("revise")){c.classList.remove("revise")}return true}}function showValidationErrorNotice(){document.querySelector("#validation_error").innerHTML='<section class="validation message"><svg viewbox="0 0 2048 2048" class="icon"><path d="M1152 1503v-190q0-14-9.5-23.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 23.5v190q0 14 9.5 23.5t22.5 9.5h192q13 0 22.5-9.5t9.5-23.5zm-2-374l18-459q0-12-10-19-13-11-24-11h-220q-11 0-24 11-10 7-10 21l17 457q0 10 10 16.5t24 6.5h185q14 0 23.5-6.5t10.5-16.5zm-14-934l768 1408q35 63-2 126-17 29-46.5 46t-63.5 17h-1536q-34 0-63.5-17t-46.5-46q-37-63-2-126l768-1408q17-31 47-49t65-18 65 18 47 49z"/></svg><section class="message"><h1>Please fix the highlighted areas below before submitting.</h1></section></section>';window.scrollTo(0,0);return}function getAuthInputs(){return{authName:document.getElementById("auth_name").value,authEmail:document.getElementById("auth_email").value,authType:document.getElementById("auth_type").value,authCode:document.getElementById("auth_code").value,authToken:document.getElementById("access_token").value}}function getInputValue(a){return document.getElementById(a).value}function isEquals(b,a){return JSON.stringify(b)===JSON.stringify(a)};