//Created by Timothy Lafontaine
//timothy@eastfountain.com

var pyarray = new Array(100);
var myarray = new Array(100);
var cyarray = new Array(100);
var parksect = new Array(100);
var iaa = new Image();
var iab = new Image();
var iac = new Image();
var iad = new Image();
var iae = new Image();
var iaf = new Image();
var iag = new Image();
var iah = new Image();
var slidetimer;
var isplaying = 0;
var numsecpages;

//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
//Menu and Navigation

//This will display the address and navigation at the bottom of the page
function nav()
   {
      document.write("<br/>");
      document.write("<br/>");
      document.write("<hr width=\"975\">");
      document.write("<a href=\"welcome.html\">Home</a> | ");
      document.write("<a href=\"map.html\">Map</a> | ");
      document.write("<a href=\"satmap.html\">Satellite</a> | ");
      document.write("<a href=\"gallery.html\">Gallery</a> | ");
      document.write("<a href=\"advertise.php\">Advertising</a> | ");
      document.write("<a href=\"about.html\">About Us</a>");
      document.write("<br/><br/>");
      document.write("Copyright © 2008 LakeLenapePark.com");
   }

function menubar()
   {
      document.write("<img id=\"banner\" alt=\"Lake Lenape Park\" src=\"images/lake/banner.gif\">");
      document.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"975\">");
      document.write("<tr>");
      document.write("<td>");
      document.write("<span class=\"preload2\"></span>");
      document.write("<ul class=\"menu2\">");
      document.write("<li class=\"top\"><a href=\"welcome.html\" id=\"home\" class=\"top_link\"><span>Home</span></a></li>");
      document.write("<li class=\"top\"><a href=\"map.html\" id=\"Park\" class=\"top_link\"><span class=\"down\">Park</span><!--[if gte IE 7]><!--></a><!--<![endif]-->");
      document.write("<!--[if lte IE 6]><table><tr><td><![endif]-->");
      document.write("<ul class=\"sub\">");
      document.write("<li><a href=\"map.html\">Map</a></li>");
      document.write("<li class=\"mid\"><a href=\"map.html\" class=\"fly\">Sections<!--[if gte IE 7]><!--></a><!--<![endif]-->");
      document.write("<!--[if lte IE 6]><table><tr><td><![endif]-->");
      document.write("<ul>");
      document.write("<li><a href=\"menlo.html\">Menlo</a></li>");
      document.write("<li><a href=\"lenape.html\">Lenape</a></li>");
      document.write("<li><a href=\"lenare.html\">Lake Lenape</a></li>");
      document.write("</ul>");
      document.write("<!--[if lte IE 6]></td></tr></table></a><![endif]-->");
      document.write("</ul>");
      document.write("<!--[if lte IE 6]></td></tr></table></a><![endif]-->");
      document.write("</li>");
      document.write("<li class=\"top\"><a href=\"satmap.html\" id=\"satellite\" class=\"top_link\"><span>Satellite</span></a></li>");
      document.write("<li class=\"top\"><a href=\"gallery.html\" id=\"Park\" class=\"top_link\"><span class=\"down\">Gallery</span><!--[if gte IE 7]><!--></a><!--<![endif]-->");
      document.write("<!--[if lte IE 6]><table><tr><td><![endif]-->");
      document.write("<ul class=\"sub\">");
      document.write("<li><a href=\"gallery.html\">View All</a></li>");
      document.write("<li><a href=\"menlo-gal.html\">Menlo</a></li>");
      document.write("<li><a href=\"lenape-gal.html\">Lenape</a></li>");
      document.write("<li><a href=\"lenare-gal.html\">Lake Lenape</a></li>");
      document.write("</ul>");
      document.write("<!--[if lte IE 6]></td></tr></table></a><![endif]-->");
      document.write("</li>");
      document.write("<li class=\"top\"><a href=\"slideshow.html\" id=\"slideshow\" class=\"top_link\"><span>Slideshow</span></a></li>");
      document.write("<li class=\"top\"><a href=\"exercise.html\" id=\"Park\" class=\"top_link\"><span class=\"down\">Exercise Trail</span><!--[if gte IE 7]><!--></a><!--<![endif]-->");
      document.write("<!--[if lte IE 6]><table><tr><td><![endif]-->");
      document.write("<ul class=\"sub\">");
      document.write("<li><a href=\"exercise.html\">Overview</a></li>");
      document.write("<li><a href=\"sel-trail.html\">Sellersville</a></li>");
      document.write("<li><a href=\"perk-trail.html\">Perkasie Trail</a></li>");
      document.write("</ul>");
      document.write("<!--[if lte IE 6]></td></tr></table></a><![endif]-->");
      document.write("</li>");
      document.write("<li class=\"top\"><a href=\"business-dir.html\" id=\"Business Dir\" class=\"top_link\"><span>Business Dir</span></a></li>");
      document.write("<li class=\"top\"><a href=\"about.html\" id=\"About Us\" class=\"top_link\"><span>About Us</span></a></li>");
      document.write("</ul>");
      document.write("</td>");
      document.write("</tr>");
      document.write("</table>");
   }

function sidebar()
   {
      document.write("<div class=\"menu3\">");
      document.write("<ul>");
      document.write("<li><a href=\"welcome.html\">Home</a></li>");
      document.write("<li><a href=\"map.html\">Park<!--[if IE 7]><!--></a><!--<![endif]-->");
      document.write("<!--[if lte IE 6]><table><tr><td><![endif]-->");
      document.write("<ul>");
      document.write("<li><a href=\"map.html\">Map</a></li>");
      document.write("<li><a href=\"map.html\">Sections<!--[if IE 7]><!--></a><!--<![endif]-->");
      document.write("<!--[if lte IE 6]><table><tr><td><![endif]-->");
      document.write("<ul>");
      document.write("<li><a href=\"menlo.html\">Menlo</a></li>");
      document.write("<li><a href=\"lenape.html\">Lenape</a></li>");
      document.write("<li><a href=\"lenare.html\">Lake Lenape</a></li>");
      document.write("</ul>");
      document.write("<!--[if lte IE 6]></td></tr></table></a><![endif]-->");
      document.write("</li>");
      document.write("</ul>");
      document.write("<!--[if lte IE 6]></td></tr></table></a><![endif]-->");
      document.write("</li>");
      document.write("<li><a href=\"satmap.html\">Satellite</a></li>");
      document.write("<li><a href=\"gallery.html\">Gallery<!--[if IE 7]><!--></a><!--<![endif]-->");
      document.write("<!--[if lte IE 6]><table><tr><td><![endif]-->");
      document.write("<ul>");
      document.write("<li><a href=\"gallery.html\">View All</a></li>");
      document.write("<li><a href=\"menlo-gal.html\">Menlo</a></li>");
      document.write("<li><a href=\"lenape-gal.html\">Lenape</a></li>");
      document.write("<li><a href=\"lenare-gal.html\">Lake Lenape</a></li>");
      document.write("</ul>");
      document.write("<!--[if lte IE 6]></td></tr></table></a><![endif]-->");
      document.write("</li>");
      document.write("<li><a href=\"slideshow.html\">Slideshow</a></li>");
      document.write("<li><a href=\"exercise.html\">Exercise Trail<!--[if IE 7]><!--></a><!--<![endif]-->");
      document.write("<!--[if lte IE 6]><table><tr><td><![endif]-->");
      document.write("<ul>");
      document.write("<li><a href=\"exercise.html\">Overview</a></li>");
      document.write("<li><a href=\"sel-trail.html\">Sellersville</a></li>");
      document.write("<li><a href=\"perk-trail.html\">Perkasie Trail</a></li>");
      document.write("</ul>");
      document.write("<!--[if lte IE 6]></td></tr></table></a><![endif]-->");
      document.write("</li>");
      document.write("<li><a href=\"business-dir.html\">Business Dir</a></li>");
      document.write("<li><a href=\"about.html\">About Us</a></li>");
      document.write("</ul>");
      document.write("</div>");
   }

function tomail()
   {
      document.write("<a href=\"mailto:lakelenapepark@com");
      document.write("cast.net\"> LakeLenapePark@comcast.net</a>.");
   }

//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

//Map scripts
function writeText(txt1)
   {
      document.getElementById("desc").innerHTML=txt1;
   }

function exerciseText(txt1)
   {
      document.getElementById("map").src="images/lake/map-ex.png";
      document.getElementById("desc").innerHTML=txt1;
   }

function infoText(txt1)
   {
      document.getElementById("map").src="images/lake/map-info.png";
      document.getElementById("desc").innerHTML=txt1;
   }

function clearExercise()
   {
      document.getElementById("map").src="images/lake/map.png";
      document.getElementById("desc").innerHTML="Place your mouse on a push pin for more information.";
   }

function clearText()
   {
      document.getElementById("desc").innerHTML="Place your mouse on a push pin for more information.";
   }

function mapload()
   {
      iag.src="images/lake/map-ex.png";
      iah.src="images/lake/map-info.png";
   }
