var wordpressCookie="armyvollogin";function printPage(){if(window.print){window.print()}else{alert(page.noPrintMessage)}}function ZoomediaMenu(){this.ptr=null;this.timer=null;this.delay=1000;this.liList=new Array();this.init=function(b){if(!document.getElementById){return}var a=document.getElementById(b);if(a){this.build(a)}};this.setTimeOut=function(a){this.timer=window.setTimeout("ZoomediaMenu.mouseOut('"+a+"');",this.delay)};this.mouseOver=function(d){if(!document.getElementById(d)){return}for(var b=0;b<this.liList.length;b++){if(this.liList[b]==d){break}}if(b==this.liList.length){this.liList[b]=d}if(this.timer!=null&&this.ptr!=null){var a=document.getElementById(this.ptr);a.firstChild.className="";var c=a.getElementsByTagName("ul");for(var b=0;b<c.length;b++){c.item(b).style.visibility="hidden"}window.clearTimeout(this.timer);this.timer=null;this.liList=new Array()}this.ptr=d;var a=document.getElementById(this.ptr);if(a.tagName.toLowerCase()=="li"){a.firstChild.className="hover"}var a=a.getElementsByTagName("ul");if(a.length>0){a.item(0).style.visibility="visible"}};this.mouseOut=function(f){var c=document.getElementById(f);if(!c){return}if(this.timer!=null&&this.ptr==f){c.firstChild.className="";var e=c.getElementsByTagName("ul");for(var b=0;b<e.length;b++){e.item(b).style.visibility="hidden"}var a=c.getElementsByTagName("li");for(var b=0;b<a.length;b++){a.item(b).firstChild.className=""}this.ptr=null;this.liList=new Array();return}var d="";for(var b=0;b<this.liList.length;b++){if(this.liList[b]==f){d="hover";break}}c.firstChild.className=d};this.build=function(b){for(i=0;i<b.childNodes.length;++i){if(b.childNodes[i].nodeName.toLowerCase()!="li"){continue}for(var a=0;a<b.childNodes[i].childNodes.length;++a){if(b.childNodes[i].childNodes[a].nodeName.toLowerCase()=="ul"){b.childNodes[i].onmouseover=function(){try{ZoomediaMenu.mouseOver(this.getAttribute("id"))}catch(c){}};b.childNodes[i].onmouseout=function(){try{ZoomediaMenu.setTimeOut(this.getAttribute("id"))}catch(c){}}}}}}}var ZoomediaMenu=new ZoomediaMenu();var hbx=undefined;function ZoomediaForm(){this.submit=function(a){if(hbx!=undefined){hbx.pn+="+FORM+SUBMIT"}document.getElementById(a).submit()};this.formatNumber=function(a){return a.replace(/[^\d.]/g,"")};this.formatTelephoneNumber=function(a){return a.replace(/[^\d]/g,"")}}var ZoomediaForm=new ZoomediaForm();function toggleitem(a){x=document.getElementById(a);if(x.style.display=="block"){x.style.display="none"}else{x.style.display="block"}}function createCookie(c,d,e){if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString()}else{a=""}document.cookie=c+"="+d+a+"; path=/"}function readCookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null}function setActiveStyleSheet(e){var d,c,b;for(d=0;(c=document.getElementsByTagName("link")[d]);d++){if(c.getAttribute("rel").indexOf("style")!=-1&&c.getAttribute("title")){c.disabled=true;if(c.getAttribute("title")==e){c.disabled=false}}}}function getActiveStyleSheet(){var c,b;for(c=0;(b=document.getElementsByTagName("link")[c]);c++){if(b.getAttribute("rel").indexOf("style")!=-1&&b.getAttribute("title")&&!b.disabled){return b.getAttribute("title")}}return null}function getPreferredStyleSheet(){var c,b;for(c=0;(b=document.getElementsByTagName("link")[c]);c++){if(b.getAttribute("rel").indexOf("style")!=-1&&b.getAttribute("rel").indexOf("alt")==-1&&b.getAttribute("title")){return b.getAttribute("title")}}return null}window.onload=function(b){var a=readCookie("style");var c=a?a:getPreferredStyleSheet();setActiveStyleSheet(c)};window.onunload=function(a){var b=getActiveStyleSheet();createCookie("style",b,365)};var cookie=readCookie("style");var title=cookie?cookie:getPreferredStyleSheet();setActiveStyleSheet(title);function getLoggedInLink(){var a=unescape(readCookie("friendlyname"));if(a&&a!="null"){document.write('<span class="pink">Welcome, <a href="/manageaccount">'+a+'</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/logout">Sign Out</a></span>')}else{document.write('<a class="pink" href="/getinvolved">Join the Army</a><a class="pink" href="/forvolunteers">Volunteer Sign-in</a>')}}function toggleSelectOther(d,a,c,b){if(a.charAt(0)=="!"){a=a.slice(1);if(d.value!=a){document.getElementById(c).style.display=b}else{document.getElementById(c).style.display="none"}}else{if(d.value==a){document.getElementById(c).style.display=b}else{document.getElementById(c).style.display="none"}}};