function bye()
{ if (myref.indexOf("wgs0.html")<0)
  {  alert("The complete course is available at http://windgenzen.com.\n\nProceeds go to support Kids Computer Kamp's FREE PCs FOR KIDS program.\n\nYou can also get the password at the Scout web site on my video page")
     window.location="http://eduhosting.org/classes/windgens/free.html"
     location.replace("http://eduhosting.org/classes/windgens/wgs0.html")
     return
  }
}

function dopass()
{ if (autopass=="")
  {  var ok=prompt("ENTER THE PASSWORD FOR THIS CLASS. Its free for schools, youth and family centers and is the first name of the Polish girl singing and playing the guitar. (see my video section at the Scout site)","")
  }  else
  {  var ok=autopass
  }
  if (!ok)
  {  var ok=""
  }
  ok=ok.toLowerCase()
  if (ok!="")
  {  var gothere="wgs"+ok+".html"
     gothere="<a href=\""+gothere+"\><font color=yellow size=+1>Click here</a><font color=white> to continue</a><p>"
     document.getElementById('pagego').innerHTML = gothere
     return
  }
}

var myref=window.location.href
var myrefr=document.referrer
var autopass=""

if (myref.indexOf("wgs")>-1 && myref.indexOf("uoin.org")>-1 && myrefr.indexOf("eduhosting.org/classes/windgens/wgs")<0)
{  bye()
}

if (myrefr.indexOf("uoin.org")>0 && myref.indexOf("?")>-1)
{  msplit=myref.split("?")
   autopass=msplit[1]
}

if (myrefr.indexOf("windpics")>0)
{  newsee('http://eduhosting.org/windpics/wghints.html')
}


if (myref.indexOf("http://eduhosting.org/classes/windgens/free.html")>-1)
{  newsee('survey.html')
}  
if (myref.indexOf("wgs")>-1)
{  var mydown="<a href=\"http://eduhosting.org/classes/windgens/windgenzencdv3.exe\"><font color=red>FULL DOWNLOAD<br><font color=blue>WindGenZen CD Class</a><p>"
   mydown+="<a href=\"http://eduhosting.org/classes/windgens/macwgzen.zip\"><font color=red>MAC ZIP DOWNLOAD<br><font color=blue>Works on new Macs<br>(no AVI video)<br>Use as a smaller download<br>for Windows too.</a><br>"
   var mydown2="note: the password for the CD version of this class is nasa<br>You can download <a href=\"http://eduhosting.org/classes/windgens/hold2/wgencd.avi\">THE UNZIPPED VIDEO HERE.</a><p>"
   mydown2+="<a href=\"http://eduhosting.org/classes/windgens/book/jackpark.zip\">DOWNLOAD JACK PARK'S COLLECTOR BOOK<br>SIMPLIFIED WIND POWER SYSTEMS<br>HERE - ALL 80 PLUS PAGES</a>"
}

var mybody="<body bgcolor=040404 background=\"wggreen.jpg\">"
mybody+="<table bgcolor=\"000033\" width=100%>"
mybody+="<tr><td rowspan=2 align=right><center>"

if (myref.indexOf("free.htm")>-1)
{  mybody+="<img src=\"http://eduhosting.org/windpics/wglogo.jpg\"><p>"
   mybody+="<img src=\"http://eduhosting.org/windpics/makethis.jpg\"><p>"
   mybody+="<font color=white>Great Video on Cheap WindGen<br>with great alternator<br>from WindBluePower.com<br>"
   mybody+="<a href=\"javascript:newsee('http://www.youtube.com/watch?v=aHB4zxWd3Ls')\"><font color=white>PART 1</a><br>"
   mybody+="<a href=\"javascript:newsee('http://www.youtube.com/watch?v=K0YxYDnmaO0')\"><font color=white>PART 2</a><br>"
   mybody+="<a href=\"javascript:newsee('http://www.youtube.com/watch?v=s75-lCKKK8g')\"><font color=white>PART 3</a><p>"
   mybody+="Produced Produced by<br>Layne Erickson<br>layneerickson at<br>yahoo.com<p>Good news<br>cheap, robust, works well<br>Bad news<br>a better blade (full profile airfoil) can be made of wood for more power<p>Its up to you!"
   mybody+="<iframe src=\"http://eduhosting.org/windpics/lee2.html\" height=690 width=200></iframe><p><hr><p>"
   mybody+="<a href=\"http://eduhosting.org/windpics/retail.html\"><img src=\"http://eduhosting.org/windpics/oilup.jpg\" border=0></a><p><hr><p>"
   mybody+="<font color=white face=arial size=+0><b>Free Guide for quickly making no twist airfoils</b><p><font color=yellow><i>While this can all be rocket science, it really doesn't have to be.<p><font color=white></i><hr><p>Find the center<p><hr><p><img src=\"freetip1.jpg\"><p><hr><p>"
   mybody+="<font color=white face=arial size=+0>Just two tools - table saw and belt sander<p><br><img src=\"freetip2.jpg\"><p><hr><p>"
   mybody+="<font color=white face=arial size=+0>Paint your tips RED or our turbine engine blade designer will beat ya with your prop!<p><br><img src=\"freetip4.jpg\"><p><hr><p>"
   mybody+="Get a 36 to 99 volt (higher is better) ametek from eBay for less than $50.00.<p><br><img src=\"http://eduhosting.org/wgss/ametek7.jpg\" width=150><p><hr><p>"
   mybody+="Get your battery ready before mounting your prop and test your motor first.<p><i>Note: complete circuits, inexpensive switches, diodes, brakes, desulfators and controllers are covered in the CD and Online Classes</i><br><img src=\"freetip3.gif\"><p><hr><p>"
   mybody+="<font color=white>And for only $900 bucks you could have bought an Air-X (ouch) and made just a hair more power than this no-twist, slap-it-up system.<p><br><img src=\"http://eduhosting.org/wgss/airxw.gif\"><p><br><p>"
   mybody+="<a href=\"http://eduhosting.org/windpics/wgoutlet.html\"><img border=0 src=\"http://eduhosting.org/wgss/motor3hp.jpg\"><p>MONSTER GENS<br>FOR LESS THAN $500</a><p><hr><p>"
   mybody+="<a href=\"http://eduhosting.org/windpics/payyou.html\"><img border=0 src=\"http://eduhosting.org/windpics/payyou.jpg\"></a><p><hr><p>"
   mybody+="<a href=\"http://eduhosting.org/windpics/myths.html\"><img border=0 src=\"http://eduhosting.org/windpics/myths.jpg\"></a><p><hr><p>"
   mybody+="<font color=white><p><br><p><hr><p>CD AND ONLINE CLASSES INCLUDE TONS OF DRAWINGS AND DIAGRAMS<p><hr><p><img src=\"http://eduhosting.org/windpics/mohog7a.jpg\"><p><hr><p>"
   mybody+="<font color=white>BIGGER AIRFOILS GET TO PLAY WITH BIGGER GENS<p><br><img src=\"http://eduhosting.org/wgss/2165b.jpg\"><p><hr><p>"
   mybody+="<img src=\"http://eduhosting.org/windpics/mohogtip.jpg\" width=150\"><p>"
   mybody+="<img src=\"http://eduhosting.org/classes/windgens/wgs2d.jpg\" width=150><p><img src=\"http://eduhosting.org/classes/windgens/wgs7a.jpg\" width=150\"><p>"
   mybody+="<img src=\"http://eduhosting.org/classes/windgens/wgs7j.jpg\" width=150><p><img src=\"http://eduhosting.org/classes/windgens/wgs8j10.gif\" width=150\"><p>"
}
mybody+="<img src=\"wgmoon.jpg\" width=200><br>"
mybody+="<img src=\"spacer.gif\" height=10 width=150><br><font color=yellow><b>STEPS:</b><p><hr></center>"
mybody+="<font face=arial color=white size=-1><b>"
mybody+="<a href=\"wgclass.html\"><font color=white>Class Overview, Tools and Materials</a><hr><p>"
mybody+="<a href=\"wgs1.html\"><font color=white>"
mybody+="1. Select Vertical Grain<br>"
mybody+="Douglas Fir.</a><hr><p>"
mybody+="<a href=\"wgs2.html\"><font color=white>"
mybody+="2. Draw the Lines.</a></a><hr><p>"
mybody+="<a href=\"wgs3.html\"><font color=white>"
mybody+="3. Carve the<br>Flat Side</a><hr><p>"
mybody+="<a href=\"wgs4.html\"><font color=white>"
mybody+="4. Carve the<br>Curved Side</a><hr><p>"
mybody+="<a href=\"wgs5.html\"><font color=white>"
mybody+="5. Shape the Tip, Sanding and Rounding Edges</a><hr><p>"
mybody+="<a href=\"wgs6.html\"><font color=white>"
mybody+="6. Mount the Hub</a><hr><p>"
mybody+="<a href=\"wgs7.html\"><font color=white>"
mybody+="7. Build a Stand</a><hr><p>"
mybody+="<a href=\"wgs8.html\"><font color=white>"
mybody+="8. Connect a <br>Wind Switch and ON/OFF.</a><hr><p>"
mybody+="<a href=\"wgs9.html\"><font color=white>"
mybody+="9. Test your<br>WindGen-Zen</a><hr><p>"
mybody+="<a href=\"wgs10.html\"><font color=white>"
mybody+="10. Refine your<br>WindGen-Zen</a><hr><p>"
mybody+="<b>NOTE:</b> you must enable cookies on your PC to use this online class.<p>"

var myspace="<img src=\"spacer.gif\" height=500 width=10>"
if (myref.indexOf("s0.")>0)
{  myspace="<img src=\"spacer.gif\" height=600 width=10>"
}
if (myref.indexOf("s2.")>0)
{  myspace="<img src=\"spacer.gif\" height=11400 width=10>"
}
if (myref.indexOf("s3.")>0)
{  myspace="<img src=\"spacer.gif\" height=3000 width=10>"
}
if (myref.indexOf("s4.")>0)
{  myspace="<img src=\"spacer.gif\" height=2200 width=10>"
}
if (myref.indexOf("s5.")>0)
{  myspace="<img src=\"spacer.gif\" height=3300 width=10>"
}
if (myref.indexOf("s6.")>0)
{  myspace="<img src=\"spacer.gif\" height=2400 width=10>"
}
if (myref.indexOf("s7.")>0)
{  myspace="<img src=\"spacer.gif\" height=3500 width=10>"
}
if (myref.indexOf("s8.")>0)
{  myspace="<img src=\"spacer.gif\" height=8588 width=10>"
}
if (myref.indexOf("s9.")>0)
{  myspace="<img src=\"spacer.gif\" height=800 width=10>"
}
if (myref.indexOf("s10.")>0)
{  myspace="<img src=\"spacer.gif\" height=800 width=10>"
}
if (myref.indexOf("free")>-1)
{  myspace="<img src=\"spacer.gif\" height=800 width=10>"
}
mybody+=myspace
mybody+="</td><td>"
mybody+="<img src=\"wgtop.jpg\"></td></tr><tr>"

var farright="<center>"
farright+="<font color=blue size=+2>"
farright+="<a href=\"wgs0.html\"><img src=\"wgs0a.gif\" border=0 width=100><br>"
farright+="Overview</a><hr><p><font size=+0>"
farright+="<a href=\"wgs1.html\"><img src=\"wgs1a.jpg\" border=0 width=50><br>"
farright+="1. Select Vertical Grain<br>"
farright+="Douglas Fir.</a><hr><p>"
farright+="<a href=\"wgs2.html\"><img src=\"wgs2a.jpg\" border=0 width=50\"><br>"
farright+="2. Draw the Lines.</a><hr><p>"
farright+="<a href=\"wgs3.html\"><img src=\"wgs3a.jpg\" border=0 width=50><br>"
farright+="3. Carve the<br>Flat Side.</a><hr><p>"
farright+="<a href=\"wgs4.html\"><img src=\"wgs4a.jpg\" border=0 width=50><br>"
farright+="4. Carve the<br>Curved Side.</a><hr><p>"
farright+="<a href=\"wgs5.html\"><img src=\"wgs5a.jpg\" border=0 width=50><br>"
farright+="5. Shape the Tip, Sanding and Rounding Edges.</a><hr><p>"
farright+="<a href=\"wgs6.html\"><img src=\"wgs6a.jpg\" border=0 width=50><br>"
farright+="6. Mount the Hub.</a><hr><p>"
farright+="<a href=\"wgs7.html\"><img src=\"wgs7a.jpg\" border=0 width=50><br>"
farright+="7. Build a Stand.</a><hr><p>"
farright+="<a href=\"wgs8.html\"><img src=\"wgs8a.jpg\" border=0 width=50><br>"
farright+="8. Connect a <br>Wind Switch and ON/OFF.</a><hr><p>"
farright+="<a href=\"wgs9.html\"><img src=\"wgs9a.jpg\" border=0 width=50><br>"
farright+="9. Test your<br>WindGen-Zen.</a><hr><p>"
farright+="<a href=\"wgs10.html\"><img src=\"wgs10a.jpg\" border=0 width=50><br>"
farright+="10. Refine your<br>WindGen-Zen.</a><hr><p>"
farright+="</td></tr>"

function video()
{ newsee('wgvid.html')
}

function woodie()
{ newsee('http://eduhosting.org/windpics/woodshop.html')
}

function morefree()
{ newsee('http://eduhosting.org/windpics/freegen.html')
}

function gofoil()
{ newsee('http://eduhosting.org/windpics/wgfoil.html')
}

function gohp()
{ newsee('http://homepower.com')
}

function google()
{ newsee('http://eduhosting.org/windpics/googlead.html')
}

function newsee(pass)
{ window.open(pass)
}

function auction()
{ alert("To purchase a WindGenZen blade we suggest you visit the www.scoutface.com web site and buy your blades made by Scouts from all around the world!")
}
