// JavaScript Document
// variables
// linkpath:  relative path to links
// imagepath:  relative path to image location

function left_nav()
  {
//  -- About Us Link -- //
//  document.write('<a href="'+linkpath+'learn2skate/skatingschool.html">');
//  document.write('<img src="'+imagepath+'images3/buttons/skatingacademy.jpg" alt="About Us" name="SA" border="0" id="SA"');
//  document.write('onMouseOver="FP_swapImg(1,0,\'SA\',\''+imagepath+'images3/buttons/skatingacademyOV.jpg\')"');
//  document.write('onMouseOut="FP_swapImg(0,0,\'SA\',\''+imagepath+'images3/buttons/skatingacademy.jpg\')"></a><br>');

//  -- Coaching Link -- //
//  document.write('<a href="'+linkpath+'learn2skate/coaching.html">');
//  document.write('<img src="'+imagepath+'images3/buttons/coaches.jpg" alt="Coaching Staff" name="PROS" border="0" id="PROS"');
//  document.write('onMouseOver="FP_swapImg(1,0,\'PROS\',\''+imagepath+'images3/buttons/coachesOV.jpg\')"');
//  document.write('onMouseOut="FP_swapImg(0,0,\'PROS\',\''+imagepath+'images3/buttons/coaches.jpg\')"></a><br>');

//  -- Skating School Link -- //
//  document.write('<a href="'+linkpath+'learn2skate/SchoolApplication.asp">');
//  document.write('<img src="'+imagepath+'images2/buttons2/SkatingSchool2.jpg" alt="Skating School" name="img3" border="0" id="img3"');
//  document.write('onMouseOver="FP_swapImg(1,0,\'img3\',\''+imagepath+'images2/buttons2/SkatingSchool2OV.jpg\')"');
//  document.write('onMouseOut="FP_swapImg(0,0,\'img3\',\''+imagepath+'images2/buttons2/SkatingSchool2.jpg\')"></a><br>');

//  -- Total Package Link -- //
//  document.write('<a href="'+linkpath+'totalpackage/totalpackage.htm">');
//  document.write('<img src="'+imagepath+'images2/buttons2/totalpackage.jpg" alt="Total Package" name="img4" border="0" id="img4"');
//  document.write('onMouseOver="FP_swapImg(1,0,\'img4\',\''+imagepath+'images2/buttons2/totalpackageOV.jpg\')"');
//  document.write('onMouseOut="FP_swapImg(0,0,\'img4\',\''+imagepath+'images2/buttons2/totalpackage.jpg\')"></a><br>');

//  -- Schedule and Fees Link -- //
//  document.write('<a href="'+linkpath+'learn2skate/schedule-fee.html">');
//  document.write('<img src="'+imagepath+'images3/buttons/schedules_fees.jpg" alt="Total Package" name="sched" border="0" id="sched"');
//  document.write('onMouseOver="FP_swapImg(1,0,\'sched\',\''+imagepath+'images3/buttons/schedules_feesOV.jpg\')"');
//  document.write('onMouseOut="FP_swapImg(0,0,\'sched\',\''+imagepath+'images3/buttons/schedules_fees.jpg\')"></a><br>');

//  -- Forms & Applications Link -- //
  document.write('<a href="'+linkpath+'forms/forms.html">');
  document.write('<img src="'+imagepath+'images3/buttons/forms.jpg" alt="Forms and Applications" name="forms" border="0" id="forms"');
  document.write('onMouseOver="FP_swapImg(1,0,\'forms\',\''+imagepath+'images3/buttons/formsOV.jpg\')"');
  document.write('onMouseOut="FP_swapImg(0,0,\'forms\',\''+imagepath+'images3/buttons/forms.jpg\')"></a><br>');

//  -- Our Skaters Link -- //
  document.write('<a href="'+linkpath+'ourskaters/ourskaters.html">');
  document.write('<img src="'+imagepath+'images3/buttons/ourskaters.jpg" alt="Our Skaters!" name="ourskaters" border="0" id="ourskaters"');
  document.write('onMouseOver="FP_swapImg(1,0,\'ourskaters\',\''+imagepath+'images3/buttons/ourskatersOV.jpg\')"');
  document.write('onMouseOut="FP_swapImg(0,0,\'ourskaters\',\''+imagepath+'images3/buttons/ourskaters.jpg\')"></a><br>');

//  -- Jamestown Skating Club Link -- //
//  document.write('<a href="'+linkpath+'JSC/home.html">');
//  document.write('<img src="'+imagepath+'images3/buttons/JSC.jpg" alt="Jamestown Skating Club" name="img5" border="0" id="img5"');
//  document.write('onMouseOver="FP_swapImg(1,0,\'img5\',\''+imagepath+'images3/buttons/JSCOV.jpg\')"');
//  document.write('onMouseOut="FP_swapImg(0,0,\'img5\',\''+imagepath+'images3/buttons/JSC.jpg\')"></a><br>');

//  -- Learn to Skate Link -- //
  document.write('<a href="'+linkpath+'learn2skate/kids.html">');
  document.write('<img src="'+imagepath+'images3/buttons/learn2skate.jpg" alt="Learn to Skate" name="L2S" border="0" id="L2S"');
  document.write('onMouseOver="FP_swapImg(1,0,\'L2S\',\''+imagepath+'images3/buttons/learn2skateOV.jpg\')"');
  document.write('onMouseOut="FP_swapImg(0,0,\'L2S\',\''+imagepath+'images3/buttons/learn2skate.jpg\')"></a><br>');
  }

function right_nav()
  {
//  -- Skate Chautauqua Link -- //
  document.write('<a href="'+linkpath+'skatechautauqua/overview.html">');
  document.write('<img src="'+imagepath+'images3/buttons/skatechautauqua.jpg" alt="Skate Chautauqua" name="skatechautauqua" border="0" id="skatechautauqua"');
  document.write('onMouseOver="FP_swapImg(1,0,\'skatechautauqua\',\''+imagepath+'images3/buttons/skatechautauquaOV.jpg\')"');
  document.write('onMouseOut="FP_swapImg(0,0,\'skatechautauqua\',\''+imagepath+'images3/buttons/skatechautauqua.jpg\')"></a><br>');

//  -- Eastern Sectionals Link -- //
	document.write('<a href="'+linkpath+'easterns/index.html">');
	document.write('<img src="'+imagepath+'images3/buttons/easterns.jpg" alt="Eastern Sectionals" name="easterns" border="0" id="easterns"');
	document.write('onMouseOver="FP_swapImg(1,0,\'easterns\',\''+imagepath+'images3/buttons/easternsOV.jpg\')"');
	document.write('onMouseOut="FP_swapImg(0,0,\'easterns\',\''+imagepath+'images3/buttons/easterns.jpg\')"></a><br>');

//  -- Winter Games Link -- //
//  document.write('<a href="'+linkpath+'Winter/wintergames.html">');
//  document.write('<img src="'+imagepath+'images3/buttons/wintergames.jpg" alt="Winter Games" name="CWG" border="0" id="CWG"');
//  document.write('onMouseOver="FP_swapImg(1,0,\'CWG\',\''+imagepath+'images3/buttons/wintergamesOV.jpg\')"');
//  document.write('onMouseOut="FP_swapImg(0,0,\'CWG\',\''+imagepath+'images3/buttons/wintergames.jpg\')"></a><br>');

//  -- Excellence on Ice Link -- //
//  document.write('<a href="'+linkpath+'excellence/excellence.html">');
//  document.write('<img src="'+imagepath+'images3/buttons/excellence.jpg" alt="Excellence on Ice" name="EOI" border="0" id="EOI"');
//  document.write('onMouseOver="FP_swapImg(1,0,\'EOI\',\''+imagepath+'images3/buttons/excellenceOV.jpg\')"');
//  document.write('onMouseOut="FP_swapImg(0,0,\'EOI\',\''+imagepath+'images3/buttons/excellence.jpg\')"></a><br>');

//  -- North Atlantic Regionals Link -- //
//document.write('<a href="'+linkpath+'regionals/regionals.html">');
//document.write('<img src="'+imagepath+'images3/buttons/regionals.jpg" alt="North Atlantic Regionals" name="img6" border="0" id="img6"');
//document.write('onMouseOver="FP_swapImg(1,0,\'img6\',\''+imagepath+'images3/buttons/regionalsOV.jpg\')"');
//document.write('onMouseOut="FP_swapImg(0,0,\'img6\',\''+imagepath+'images3/buttons/regionals.jpg\')"></a><br>');

//  -- Teaching Seminars Link -- //
//document.write('<a href="'+linkpath+'seminars/index.html">');
//document.write('<img src="'+imagepath+'images3/buttons/seminars.jpg" alt="Teaching Seminars" name="seminars" border="0" id="seminars"');
//document.write('onMouseOver="FP_swapImg(1,0,\'seminars\',\''+imagepath+'images3/buttons/seminarsOV.jpg\')"');
//document.write('onMouseOut="FP_swapImg(0,0,\'seminars\',\''+imagepath+'images3/buttons/seminars.jpg\')"></a><br>');

//  -- About JSB Ice Arena Link -- //
  document.write('<a href="'+linkpath+'JSBArena/about.html">');
  document.write('<img src="'+imagepath+'images3/buttons/JSBArena.jpg" alt="JSB Ice Arena" name="JSB" border="0" id="JSB"');
  document.write('onMouseOver="FP_swapImg(1,0,\'JSB\',\''+imagepath+'images3/buttons/JSBArenaOV.jpg\')"');
  document.write('onMouseOut="FP_swapImg(0,0,\'JSB\',\''+imagepath+'images3/buttons/JSBArena.jpg\')"></a><br>');

//  -- Latest Press Releases Link -- //
//  document.write('<a href="'+linkpath+'press/press_releases.html">');
//  document.write('<img src="'+imagepath+'images3/buttons/news.jpg" alt="Latest Press Releases" name="news" border="0" id="news"');
//  document.write('onMouseOver="FP_swapImg(1,0,\'news\',\''+imagepath+'images3/buttons/newsOV.jpg\')"');
//  document.write('onMouseOut="FP_swapImg(0,0,\'news\',\''+imagepath+'images3/buttons/news.jpg\')"></a><br>');
  }

function footer_nav()
  {
  document.write('<div align="center" id="footer" class="footerplate">');
  document.write('<table>');
// first line of links
  document.write('<tr>');
  document.write('<td  align="center">');
  document.write('<a href="'+linkpath+'index.html">Home</a>&nbsp;|&nbsp;');
  document.write('<a href="'+linkpath+'JSC/home.html">About JSC</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'totalpackage/totalpackage.html">Total Package</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'learn2skate/kids.html">Skating Classes</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'learn2skate/ballet.html">Ballet Program</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'learn2skate/hockey.html">Hockey Skating Classes</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'learn2skate/kids.html">Hockey Skating Classes</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'learn2skate/conditioning.html">Strength &amp; Conditioning</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'learn2skate/sportspsychology.html">Sports Psychology</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'learn2skate/pilates.html">Pilates</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'dartfish/dartfish.html">Dartfish</a>&nbsp;|&nbsp;');
  document.write('<a href="'+linkpath+'galleries/mainGallery.html">Photo Galleries</a>');
//  document.write('<a href="'+linkpath+'learn2skate/summerCamp.html">Summer Camp</a>');

// 2 new lines
  document.write('<br />');
  document.write('<br />');
//  document.write('<a href="'+linkpath+'learn2skate/skatingschool.html">About Skating Academy</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'learn2skate/coaching.html">Coaching Staff</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'learn2skate/schedule-fee.html">Schedules &amp; Fees</a>&nbsp;|&nbsp;');
  document.write('<a href="'+linkpath+'forms/forms.html">Forms &amp; Applications</a>&nbsp;|&nbsp;');
  document.write('<a href="'+linkpath+'ourskaters/ourskaters.html">Our Skaters!</a>&nbsp;|&nbsp;');
  document.write('<a href="'+linkpath+'learn2skate/kids.html">Learn to Skate</a>&nbsp;|&nbsp;');
  document.write('<a href="'+linkpath+'skatechautauqua/overview.html">Skate Chautauqua</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'Winter/wintergames.html">Winter Games</font></a>&nbsp;|&nbsp;');
  document.write('<a href="'+linkpath+'easterns/index.html">Eastern Sectionals</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'excellence/excellence.html">Excellence On Ice</a>&nbsp;|&nbsp;');
  document.write('<a href="'+linkpath+'JSBArena/about.html">About JSB Ice Arena</a>');
//  document.write('<a href="'+linkpath+'press/press_releases.html">Press Release</a>');
// end of links
  document.write('</td>');
  document.write('</tr>');
  document.write('</table>');
  document.write('</div>');
  }

function header_nav()
  {
  document.write('<div style="width:90%;" id="header_links">');
  document.write('<p>');
// all links on one line, let them wrap
  document.write('<a href="'+linkpath+'index.html">Home</a>&nbsp;|&nbsp;');
  document.write('<a href="'+linkpath+'JSC/home.html">About JSC</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'totalpackage/totalpackage.html">Total Package</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'learn2skate/kids.html">Skating Classes</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'learn2skate/ballet.html">Ballet Program</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'learn2skate/hockey.html">Hockey Skating Classes</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'learn2skate/kids.html">Hockey Skating Classes</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'learn2skate/conditioning.html">Strength &amp; Conditioning</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'learn2skate/sportspsychology.html">Sports Psychology</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'learn2skate/pilates.html">Pilates</a>&nbsp;|&nbsp;');
//  document.write('<a href="'+linkpath+'dartfish/dartfish.html">Dartfish</a>&nbsp;|&nbsp;');
  document.write('<a href="'+linkpath+'galleries/mainGallery.html">Photo Galleries</a>');
//  document.write('<a href="'+linkpath+'learn2skate/summerCamp.html">Summer Camp</a>');
// end of links
  document.write('</p>');
  document.write('</div>');
  }

 // swaps center image, called on mouseover on main left and right navigation
    function doButtons(picimage) 
    {
      document['picture'].src=picimage;
    }

// swaps nav button image on mouseover
    function FP_swapImg() 
    {
      var doc=document,args=arguments,elm,n; 
      doc.$imgSwaps=new Array(); 
      for(n=2; n<args.length; n+=2) 
      { 
        elm=FP_getObjectByID(args[n]); 
        if(elm)   
        { 
          doc.$imgSwaps[doc.$imgSwaps.length]=elm;
          elm.$src=elm.src; 
          elm.src=args[n+1]; 
        } 
      }
    }

// get object image to use for swaping 
function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}

// opens new window
function MM_openBrWindow(theURL,winName,features) 
  {
    window.open(theURL,winName,features);
  }

