
function PP_preloadImages() {
  var PP_cod=document; if(PP_cod.images){ if(!PP_cod.PP_p) PP_cod.PP_p=new Array();
    var PP_cnti,PP_locj=PP_cod.PP_p.length,PP_ara=PP_preloadImages.arguments; for(PP_cnti=0; PP_cnti<PP_ara.length; PP_cnti++)
    if (PP_ara[PP_cnti].indexOf('#')!=0){ PP_cod.PP_p[PP_locj]=new Image; PP_cod.PP_p[PP_locj++].src=PP_ara[PP_cnti];}}
}

function imgOnOff(imgName,imgFile,othName,othFile) {
   if (document.images) {
       document[imgName].src = 'images/' + imgFile;
       if (othName>'') {
       document[othName].src = 'images/' + othFile; }
   }
}

function glue(passname) {
  var myform = document.getElementById( 'fairform' );
  myform.recipient.value = passname.value+"@wvstatefair.com";
}

function mex(PP_mex_x,PP_mex_o) {
   mexsi='mexsign'+ PP_mex_x; mexwi='mexword';
   if (PP_mex_o=='1') {
      mexwf='images/mexword_' + PP_mex_x + '.gif'; mexsf='images/mexsign' + PP_mex_x + '_o.gif';}
   else { mexwf='images/mexword.gif'; mexsf='images/mexsign' + PP_mex_x + '.gif';}
   document[mexwi].src = mexwf; document[mexsi].src = mexsf;
}


function PP_Loader() {
var PP_LoadList="'images/chick_leftec150.gif','images/chick_leftec150o.gif'";
PP_preloadImages(PP_LoadList);
}


function PP_LogoWrite() {
document.write("<table id='logo_top' class='logo_top' border='0' cellspacing='0' cellpadding='0' width='150' background='images/top_map2.gif'");
document.write("onMouseOver=\"this.background='images/top_map1.gif';\" ");
document.write("onMouseOut=\"this.background='images/top_map2.gif';\" ><TR>");
document.write("<td width=150><a href='index.htm' title=\"Parks and Rec Home Page\"><img src='nav/space2.gif' width='150' height='135' border='0'></a><td></tr></table>");
}

function PP_BotMenWrite() {
document.write("<center><table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='b'><center>");
document.write("<a href='calendar.htm' title=\"Calendar of Events\">Calendar of Events</a>&nbsp;");
document.write("<img src='images/bullet3.gif'>&nbsp;<a href='index.htm' title=\"Back to Main Home Page\">Parks and Rec</a>&nbsp;");
document.write("<img src='images/bullet3.gif'>&nbsp;<a href='gal/galportal.htm' title=\"See Photos of kids having fun.\">Photo Gallery</a>&nbsp;");
document.write("<img src='images/bullet3.gif'>&nbsp;<a href='plantrip.htm' title=\"Find your way here\">Maps &amp; Directions</a>&nbsp;");
document.write("<img src='images/bullet3.gif'>&nbsp;<a href='parksinfo.htm'>Parks and Facilities</a>&nbsp;");
document.write("</center></td></tr></table></center>");
}
function PP_BotLinksWrite() {
document.write("<center><table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td class='b'><center>");
document.write("</center></td></tr></table></center>");
}

function PP_OrgWrite() {
document.write("<p align='center' class='footerorg'>");
document.write("926 5th Ave<BR>");
document.write("Marlinton, WV 24954<BR>");
document.write("Phone: (304) 799-7386 <BR>");
document.write("</p><BR>");
}

function orgname() {return ("Pocahontas Parks and Recreation");}


function PP_Mex_Write() {
document.write("<a href='facilities.htm' class='ectopr' title=\"A look at the buildings and grounds at the fair.\">Facilities</a>&nbsp;");
document.write("|&nbsp;<a href='maps.htm' class='ectopr' title=\"Maps, Directions, Accomodations and More.\">Maps</a>&nbsp;");
}

