function atp_BrowserDetectLite(){var A=navigator.userAgent.toLowerCase();this.isGecko=(A.indexOf("gecko")!=-1&&A.indexOf("safari")==-1);this.isMozilla=(this.isGecko&&A.indexOf("gecko/")+14==A.length);this.isNS=((this.isGecko)?(A.indexOf("netscape")!=-1):((A.indexOf("mozilla")!=-1)&&(A.indexOf("spoofer")==-1)&&(A.indexOf("compatible")==-1)&&(A.indexOf("opera")==-1)&&(A.indexOf("webtv")==-1)&&(A.indexOf("hotjava")==-1)));this.isIE=((A.indexOf("msie")!=-1)&&(A.indexOf("opera")==-1)&&(A.indexOf("webtv")==-1));this.isSafari=(A.indexOf("safari")!=-1);this.isOpera=(A.indexOf("opera")!=-1);this.isKonqueror=(A.indexOf("konqueror")!=-1&&!this.isSafari);this.isIcab=(A.indexOf("icab")!=-1);this.isAol=(A.indexOf("aol")!=-1);this.isIECompatible=((A.indexOf("msie")!=-1)&&!this.isIE);this.isNSCompatible=((A.indexOf("mozilla")!=-1)&&!this.isNS&&!this.isMozilla);this.versionMinor=parseFloat(navigator.appVersion);if(this.isNS&&this.isGecko){this.versionMinor=parseFloat(A.substring(A.lastIndexOf("/")+1))}else{if(this.isIE&&this.versionMinor>=4){this.versionMinor=parseFloat(A.substring(A.indexOf("msie ")+5))}else{if(this.isMozilla){this.versionMinor=parseFloat(A.substring(A.indexOf("rv:")+3))}else{if(this.isSafari){this.versionMinor=parseFloat(A.substring(A.lastIndexOf("/")+1))}else{if(this.isOpera){if(A.indexOf("opera/")!=-1){this.versionMinor=parseFloat(A.substring(A.indexOf("opera/")+6))}else{this.versionMinor=parseFloat(A.substring(A.indexOf("opera ")+6))}}else{if(this.isKonqueror){this.versionMinor=parseFloat(A.substring(A.indexOf("konqueror/")+10))}else{if(this.isIcab){if(A.indexOf("icab/")!=-1){this.versionMinor=parseFloat(A.substring(A.indexOf("icab/")+6))}else{this.versionMinor=parseFloat(A.substring(A.indexOf("icab ")+6))}}}}}}}}this.versionMajor=parseInt(this.versionMinor);this.geckoVersion=((this.isGecko)?A.substring((A.lastIndexOf("gecko/")+6),(A.lastIndexOf("gecko/")+14)):-1);this.isDOM1=(document.getElementById);this.isDOM2Event=(document.addEventListener&&document.removeEventListener);this.mode=document.compatMode?document.compatMode:"BackCompat";this.isWin=(A.indexOf("win")!=-1);this.isWin32=(this.isWin&&(A.indexOf("95")!=-1||A.indexOf("98")!=-1||A.indexOf("nt")!=-1||A.indexOf("win32")!=-1||A.indexOf("32bit")!=-1||A.indexOf("xp")!=-1));this.isMac=(A.indexOf("mac")!=-1);this.isUnix=(A.indexOf("unix")!=-1||A.indexOf("sunos")!=-1||A.indexOf("bsd")!=-1||A.indexOf("x11")!=-1);this.isLinux=(A.indexOf("linux")!=-1);this.isNS4x=(this.isNS&&this.versionMajor==4);this.isNS40x=(this.isNS4x&&this.versionMinor<4.5);this.isNS47x=(this.isNS4x&&this.versionMinor>=4.7);this.isNS4up=(this.isNS&&this.versionMinor>=4);this.isNS6x=(this.isNS&&this.versionMajor==6);this.isNS6up=(this.isNS&&this.versionMajor>=6);this.isNS7x=(this.isNS&&this.versionMajor==7);this.isNS7up=(this.isNS&&this.versionMajor>=7);this.isIE4x=(this.isIE&&this.versionMajor==4);this.isIE4up=(this.isIE&&this.versionMajor>=4);this.isIE5x=(this.isIE&&this.versionMajor==5);this.isIE55=(this.isIE&&this.versionMinor==5.5);this.isIE5up=(this.isIE&&this.versionMajor>=5);this.isIE6x=(this.isIE&&this.versionMajor==6);this.isIE6up=(this.isIE&&this.versionMajor>=6);this.isIE6down=(this.isIE&&this.versionMajor<=6);this.isIE7x=(this.isIE&&this.versionMajor==7);this.isIE7up=(this.isIE&&this.versionMajor>=7);this.isIE4xMac=(this.isIE4x&&this.isMac)}var atp_browser=new atp_BrowserDetectLite();function stripCharacter(D,C){var B=D.length;for(var A=1;A<B;++A){D=D.replace(C,"")}return D}function changecss(G,C,F){var A;if(document.all){A="rules"}else{if(document.getElementById){A="cssRules"}}var E=false;for(var B=0;B<document.styleSheets.length;B++){for(var D=0;D<document.styleSheets[B][A].length;D++){if(document.styleSheets[B][A][D].selectorText==G){if(document.styleSheets[B][A][D].style[C]){document.styleSheets[B][A][D].style[C]=F;E=true;break}}}if(!E){if(document.styleSheets[B].insertRule){document.styleSheets[B].insertRule(G+" { "+C+": "+F+"; }",document.styleSheets[B][A].length)}else{if(document.styleSheets[B].addRule){document.styleSheets[B].addRule(G,C+": "+F+";")}}}}}function checkUncheckAll(A){var C=A.form,B=0;for(B=0;B<C.length;B++){if(C[B].type=="checkbox"&&C[B].name!="checkall"){C[B].checked=A.checked}}}function checkUncheckSome(A,D){var C=D.split(",");var B=document.getElementById(A);for(var E=0;E<C.length;E++){theItem=document.getElementById(C[E]);if(theItem.type){if(theItem.type=="checkbox"){theItem.checked=B.checked}}else{theInputs=theItem.getElementsByTagName("input");for(var F=0;F<theInputs.length;F++){if(theInputs[F].type=="checkbox"&&theInputs[F].id!=B.id){theInputs[F].checked=B.checked}}}}}function insideHTML(cell){eval('theCell = document.getElementById("'+cell+'").innerHTML');return theCell}function checkValueAgainst(A,B){if(insideHTML(A)==B){verify=true}else{verify=false}return verify}var SMO_TEMPLATE_TOP=1;var SMO_TEMPLATE_SUB=2;var SMO_TEMPLATE_BOTTOM=4;var SMO_TEMPLATE_RIGHT=8;var SMO_TEMPLATE_LEFT=16;var SMO_TEMPLATE_PIX=32;var SMO_NAVIGATION_USE=1;var SMO_NAVIGATION_DROP=2;var SMO_NAVIGATION_CASCADE=4;var inv="Invalid";var restrictWord=new Array("vi@gra","viagr@","vi@gr@");var extraDocTypes=null;var Global_Errors=new Array();function badWords(C){var B=false;var C=new String(C);C=C.toLowerCase();for(var A=0;A<restrictWord.length;A++){if(C.match(restrictWord[A])){B=true;alert("A label you chose is inappropriate for this site. Please be considerate, as children often visit this site.")}}return B}function checkEmail(B){var A=true;var C=new String(B.value);ok="0987654321qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM[].@-_";for(i=0;i<=C.length;i++){if(ok.indexOf(C.charAt(i))<0){A=false;return A}}re=/(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;re_two=/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;if(!C.match(re)&&!C.match(re_two)){A=false;B.style.color="red"}else{B.style.color="black"}return A}function changeVal(A,B,D){var C=true;var E;E=0;if(A){if(B==true){if(A.type){if(A.type=="checkbox"){if(!A.checked){C=false}}}if(A.value==""){C=false}}if(D==true){badword=badWords(A.value);if(badword==true){C=false}}if(C==false){A.style.color="red";E=1}if(C==true){A.style.color="black"}}return E}function requiredFields(formObj){var bandMessage="";var errors=0;if(formObj.BIO){if(formObj.first_name){formObj.saveName.value=formObj.first_name.value}if(changeVal(formObj.ALIAS,true,true)){errors++;bandMessage+="\n\nYou must enter a username."}}if(formObj.PASSWORD){errors=errors+changeVal(formObj.PASSWORD,true,false);if(formObj.PASSWORDR){errors=errors+changeVal(formObj.PASSWORDR,true,false);if(formObj.PASSWORD.value!=formObj.PASSWORDR.value){formObj.PASSWORD.style.color="red";formObj.PASSWORDR.style.color="red";errors++;bandMessage+="\n\nYou did not type in the same password in both password fields."}}}if(formObj.EMAIL){errors=errors+changeVal(formObj.EMAIL,true,false);if(checkEmail(formObj.EMAIL)==false){bandMessage+="\n\nYou have not entered a valid email address.";errors++}else{formObj.EMAIL.style.color="black"}}if(formObj.article_id){if(changeVal(formObj.title,true,true)){errors++;bandMessage+="\n\nYou must enter a title for your article."}if(changeVal(formObj.article_about,true,true)){errors++;bandMessage+="\n\nYou must enter a brief description of this article."}if(changeVal(formObj.body,true,true)){errors++;bandMessage+="\n\nYou must enter content for the article."}}if(formObj.vaddress){if(changeVal(formObj.vaddress,true,true)){errors++;bandMessage+="\n\nYou must enter the venue/host address."}if(changeVal(formObj.venue,true,true)){errors++;bandMessage+="\n\nYou must enter the venue/host Name."}if(changeVal(formObj.info,true,false)){errors++;bandMessage+="\n\nYou must enter the event details."}if(changeVal(formObj.state,true,true)){errors++;bandMessage+="\n\nYou must enter the event state/province."}if(changeVal(formObj.COUNTRY,true,true)){errors++;bandMessage+="\n\nYou must enter the event country."}if(changeVal(formObj.title,true,true)){errors++;bandMessage+="\n\nYou must enter a Title for your event."}if(changeVal(formObj.city,true,true)){errors++;bandMessage+="\n\nYou must enter the city/town where the event is located. If the event is not in a town, enter the closest town."}}if(formObj.terms){if(formObj.terms.type=="checkbox"){if(!formObj.terms.checked){errors++;bandMessage+="\n\nYou must check that you have read and agree to our terms of service to continue."}}}if(formObj.web){formObj.web.value=stripCharacter(formObj.web.value,"http://")}if(formObj.URL){formObj.URL.value=stripCharacter(formObj.URL.value,"http://")}if(formObj.required){formArray=new Array();theFields=formObj.required.value;formArray=theFields.split(",");for(x=0;x<formArray.length;x++){var theName=formArray[x];if(theName!=""){str="var tobj = formObj."+theName+";";eval(str);if(tobj){if(changeVal(tobj,true,true)){errors++;if(tobj.title){bandMessage+="\n\n"+tobj.title}}}}}}var theCustomErrors=customErrorChecking(formObj);errors=errors+(theCustomErrors.customError*1);bandMessage+=theCustomErrors.customMessage;if(Global_Errors.length>0){for(var ge=0;ge<=Global_Errors.length;ge++){bandMessage+="\n\n"+Global_Errors[ge]}}if(formObj.smoRememberMe){if(formObj.smoRememberMe.checked&&getCookieValue("alias")==null){var smoRemember=confirm('You should only check the "Remember Username" option if this is a private computer.\n\nDo not check this option on a public computer.\n\nClick "OK" to continue login or "Cancel" to uncheck the remember option.')}if(smoRemember==false){formObj.smoRememberMe.checked=""}}if(errors==0){return true}else{alert("There are errors on your form... please verify the information. Fields with red text or the word 'Invalid' must be filled out."+bandMessage+'\n\n**NOTE** If all required fields are filled, you may have entered certain "banned" words that are not appropriate for this page. Such words include vulgarity and spam-like keywords.');return false}}function clearForm(formObj){if(formObj){if(formObj.clearfields){formArray=new Array();theFields=formObj.clearfields.value;formArray=theFields.split(",");for(x=0;x<formArray.length;x++){string="if(formObj."+formObj[x]+".value){formObj."+formArray[x]+'.value = "";}';eval(string)}}else{for(x=0;x<formObj.length;x++){string="if(formObj."+formObj[x]+".value){formObj."+formObj[x]+'.value = "";}';eval(string)}}}}function deleteConfirm(A,B){if((A!="")&&(B!="")){switch(A){case"usermod.php":comment="your account? Doing so will remove your account, all articles, events, photos, art, guestbook and music. You will no longer be able to access your control panel on this site.";break;case"articlemod.php":comment="this article? Doing so will permanently remove this article.";break;case"publicationWizard.php":comment="your publication?";break;case"shop.php":comment="all the items from your shopping cart?";break;default:comment="this item?"}return confirm("Do you really want to delete "+comment)}}function showThumb(articleId,newImg,preId){if(preId==""){preId="Pic"}changeString='if(document.getElementById("Pic'+articleId+'")){document.getElementById("Pic'+articleId+'").src="'+newImg+'";}';eval(changeString)}function getRadioValue(B){var C=null;if(B){for(var A=0;A<B.length;A++){if(B[A].checked){C=B[A].value;break}}}return C}function changeSearchType(A){switch(A.searchtype.value){case"member":A.action="/directory/";break;case"arts":A.action="/webonizer_core/search.php";break;case"events":A.action="/webonizer_core/events.php";default:if(extraDocTypes){pluginDocTypes=extraDocTypes.split(";");for(x=0;x<=pluginDocTypes.length;x++){thisDoc=pluginDocTypes[x].split(",");if(thisDoc[0]==A.searchtype.value){if(A.search.value*1>0){document.location="/"+thisDoc[1]+"/"+A.search.value+"/";return }}}}break}}function searchType(A,B){if(A.search.value!=""){if(A.search.value*1>0){switch(A.searchtype.value){case"member":if(A.search.value*1>0){document.location="/"+SMO_MEMBERS_FILE+"/"+A.search.value+"/";return }break;case"arts":if(A.search.value*1>0){document.location="/"+SMO_ARTICLES_FILE+"/"+A.search.value+"/";return }break;case"events":if(A.search.value*1>0){document.location="/webonizer_core/events.php?eid="+A.search.value;return }break;default:if(B){pluginDocTypes=B.split(";");for(x=0;x<=pluginDocTypes.length;x++){thisDoc=pluginDocTypes[x].split(",");if(thisDoc[2]){if(A.search.value*1>0){document.location="/"+thisDoc[2]+"/"+A.search.value+"/";return false}}}}}}else{changeSearchType(A,B);A.submit()}}else{alert("Enter Search Terms");return false}}function showFile(C,B,A){if(window.picWIndow){picWIndow.close()}B=(B*1)+30;A=(A*1)+60;if(B>830){B=830}picWIndow=window.open("/webonizer_core/show_image.php?id="+C,"imagewindow","toolbar=no,menubar=no,width="+B+",height="+A*1+",scrollbars=yes,status=yes,resizable=yes");if(!window.picWIndow){alert("Your browser or security settings are set to block pop-ups; this is stopping the browser from showing you the image.")}}function copyGbox(){document.getElementById("gbox2").innerHTML=document.getElementById("gbox").innerHTML}function CreateBookmarkLink(){if(window.sidebar){window.sidebar.addPanel(document.title,document.location,"")}else{if(window.external){window.external.AddFavorite(document.location,document.title)}}}function showBookmark(){if(window.external||window.sidebar){document.write('<button onclick="CreateBookmarkLink();" id="smoBookMark">Bookmark</button>')}}function smo_layout(){if(SMO_LOGIN_LINKS&SMO_TEMPLATE_TOP){if(document.getElementById("atp_menu")&&document.getElementById("smo_siteLinks")){var B="<ul>"+document.getElementById("smo_siteLinks").innerHTML+"</ul>";if(!document.getElementById("smoNavSiteLinksCore")){document.getElementById("atp_menu").innerHTML+='<li><a href="/webonizer_core/siteLinks.php">Site Links</a>'+B+"</li>"}else{document.getElementById("smoNavSiteLinksCore").innerHTML+=B}}}if(SMO_SITE_LINKS_NAV&SMO_TEMPLATE_TOP){if(document.getElementById("atp_menu")&&document.getElementById("smo_externalLinks")){if(document.getElementById("smo_externalLinks")){document.getElementById("atp_menu").innerHTML+='<li><a href="/webonizer_core/externalLinks.php">Links</a><ul>'+document.getElementById("smo_externalLinks").innerHTML+"</ul></li>"}}}if(atp_browser.isIE){var C=0;var A=1}else{var C=1;var A=2}if((SMO_LOGIN_LINKS&SMO_TEMPLATE_RIGHT)==0){document.getElementById("smo_rightLinks").childNodes[C].style.display="none"}if((SMO_SITE_LINKS_NAV&SMO_TEMPLATE_RIGHT)==0&&document.getElementById("smo_rightLinks").childNodes[A]){document.getElementById("smo_rightLinks").childNodes[A].style.display="none"}if(((SMO_SITE_LINKS_NAV&SMO_TEMPLATE_RIGHT)==0)&&((SMO_LOGIN_LINKS&SMO_TEMPLATE_RIGHT)==0)){document.getElementById("smo_rightLinks").style.display="none"}}function smo_navWrite(A){switch(A){case"topNav":document.write('<span style="text-decoration:blink">Loading Navigation...</span>');break}}function getCookieValue(E){var A=null;var F=" "+document.cookie+";";var C=" "+E+"=";var B=F.indexOf(C);if(B!=-1){B+=C.length;var D=F.indexOf(";",B);A=unescape(F.substring(B,D))}return A}function runStartUpFuncs(){smo_layout();atp_initMenu()}function switchHideDiv(A){if(document.getElementById(A)){switch(document.getElementById(A).style.display){case"none":document.getElementById(A).style.display="block";break;case"block":document.getElementById(A).style.display="none";break}}}function isPageSecure(){var B=new String(document.location);var A=B.split("//");B=A[0];if(B.search("https")!=-1){return true}else{return false}}function handleError(){return true}function dhtmlLoadScript(A){var B=document.createElement("script");B.src=A;B.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(B)}var atp_timeout=200;function atp_initMenu(){for(var i=0;i<document.getElementById("atp_menu").getElementsByTagName("li").length;i++){eval("atp_timeoutli"+i+" = false;")}if(atp_browser.isDOM1&&!(atp_browser.isOpera&&atp_browser.versionMajor<7)&&!(atp_browser.isIE&&atp_browser.versionMajor<5)){var menu=document.getElementById("atp_menu");var lis=menu.getElementsByTagName("li");menu.className="atp_menu";for(var i=0;i<lis.length;i++){if(lis.item(i).getElementsByTagName("ul").length>0){if(atp_browser.isIE){atp_addAnEvent(lis.item(i),"keyup",atp_show)}atp_addAnEvent(lis.item(i),"mouseover",atp_show);atp_addAnEvent(lis.item(i),"mouseout",atp_timeoutHide);atp_addAnEvent(lis.item(i),"blur",atp_timeoutHide);atp_addAnEvent(lis.item(i),"focus",atp_show);lis.item(i).setAttribute("id","li"+i);lis.item(i).getElementsByTagName("a")[0].className="atp_menuExpandable";lis.item(i).getElementsByTagName("ul")[0].setAttribute("id","li"+i+"ul")}}}}function atp_addAnEvent(target,eventName,functionName){if(atp_browser.isIE){eval("target.on"+eventName+"=functionName")}else{target.addEventListener(eventName,functionName,true)}}function atp_timeoutHide(){eval("atp_timeout"+this.id+" = window.setTimeout('atp_hideUlUnder( \""+this.id+"\" )', "+atp_timeout+" );")}function atp_hideUlUnder(A){document.getElementById(A).getElementsByTagName("ul")[0].style.visibility="hidden"}function atp_show(){document.getElementById(this.id+"ul").style.visibility="visible";eval("clearTimeout( atp_timeout"+this.id+");");atp_hideAllOthersUls(this)}function atp_hideAllOthersUls(A){var C=A.parentNode;for(var B=0;B<C.childNodes.length;B++){if(C.childNodes[B].id&&C.childNodes[B].id!=A.id){atp_hideUlUnderLi(C.childNodes[B])}}}function atp_hideUlUnderLi(A){var C=A.getElementsByTagName("ul");for(var B=0;B<C.length;B++){C.item(B).style.visibility="hidden"}}window.onerror=handleError;window.onload=runStartUpFuncs;