var bgc = "#ffffff";
var tbgc = "#75B2DD";
var textbgc = "#FFFFff";
var rtbgc = "#75B2DD";
var bbgc = "#00ff00";


function initpage(img)
{
  with(this.document)
  {
//    write('</head><body bgcolor="'+bgc+'">');

    write('</head><body topmargin="20" leftmargin="20" bgcolor="#E3DCAE" background="images/HDC_main_bg.gif" text="#000000" link="#000000" vlink="#000000" alink="#000000" style="background-image:url(images/HDC_main_bg.gif);background-repeat:repeat-y">');

    write('<table width="800" border="0" cellpadding="0" cellspacing="0" bgcolor="'+tbgc+'">');
    write('<tr><td colspan="2" bgcolor="'+tbgc+'" row height="2"></td></tr>');
    write('<tr><td width="800" height="109">');
    write('<img src="'+img+'" width="800" height="109" alt="Heritage Discovery Center">');
    write('</td></tr>');
    write('</table>');

    write('<table width="800" height="650" border="0" align="left" cellpadding="0" cellspacing="0">');
    write('<tr><td width="160" valign="top" bgcolor="'+tbgc+'">');
    writeMenu();
  }
}

function writeMenu()
{
//  alert("hello");
  with(this.document)
  {
    write('<table border="0" cellpadding="0" cellspacing="0" width="160">');
    write('<tr><td>');
    write('<a href="index.html" class="left1">WELCOME</a>');
    write('<br/><br/>');


    write('<a href="ecology.html" class="left1">WILDLIFE &amp; ECOLOGY</a>');
    write('<br/><br/>');


    write('<a href="native.html" class="left1">NATIVE AMERICANS</a>');
    write('<br/><br/></td></tr>');


    write('<tr><td bgcolor="#A7DBFF"><a href="maritime.html" class="left1">MARITIME</a>');
    write('<br/>');

    write('<a href="maritime_naval.html" class="left1">&bull;&nbsp;Naval Powers</a><br/>');
    write('<a href="maritime_discovery.html" class="left1">&bull;&nbsp;Discovery</a><br/>');
    write('<a href="maritime_california.html" class="left1">&bull;&nbsp;California</a><br/>');
    write('<a href="maritime_missions.html" class="left1">&bull;&nbsp;Missions</a><br/>');
    write('<a href="maritime_trade.html" class="left1">&bull;&nbsp;Trade</a><br/>');
    write('<a href="maritime_foreign.html" class="left1">&bull;&nbsp;Foreign Influence</a><br/>');
    write('<a href="maritime_goldrush.html" class="left1">&bull;&nbsp;Gold Rush</a><br/>');
    write('<a href="maritime_monterey.html" class="left1">&bull;&nbsp;Monterey</a><br/>');
    write('<a href="maritime_navigation.html" class="left1">&bull;&nbsp;Navigation</a><br/>');
    write('<a href="maritime_shiplife.html" class="left1">&bull;&nbsp;Ship Life</a></td></tr>');

    write('<tr><td><br/><a href="missions.html" class="left1">MISSIONS</a>');
    write('<br/><br/>');


    write('<a href="ranching.html" class="left1">RANCHING</a>');
    write('<br/><br/>');

    write('<a href="agriculture.html" class="left1">AGRICULTURE</a>');
    write('<br/><br/>');


    write('<a href="military.html" class="left1">MILITARY</a>');
    write('<br/><br/>');


    write('<a href="equine.html" class="left1">EQUINE</a>');
    write('<br/><br/>');

    write('<a href="historiclinks.html" class="left1">HISTORIC LINKS</a>');
    write('<br/><br/>');
 



//    write('<a href="http://www.gocalaveras.com/" class="left1" target="_blank">&bull;&nbsp;Calaveras County<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Visitors Bureau</a><br/><br/>');
    write('</td></tr>');
    write('</table>');

  }
}


function setup_main(c)
{
  third_col = c;
  with(this.document)
  {
    if(c)
    {
      write('</td><td width="460" valign="top" bgcolor="'+textbgc+'">');
    }
    else
    {
      write('</td><td width="640" valign="top" bgcolor="'+textbgc+'">');
    }
  }
}


function setup_right()
{
  with(this.document)
  {
    write('</td><td width="180" bgcolor="'+rtbgc+'" valign="top">');
    writeMenuWinedrop();
  }
}

function writeMenuWinedrop()
{
//  alert("hello");
  with(this.document)
  {

write('<table width="150" border="0" cellspacing="0" cellpadding="6">');
write('<tr><td style="color:#000000;font-family:arial;font-size:10pt"><center><b>Select an Option</b></center>');
write('<form name="form1">');
write('<center>');
write('<select name="selectPage" size="6" width="30" onclick="loadPg()">');
write('<option value="1lettertovisitors.html" class="right2">Letter to our Visitors</option>');
write('<option value="sponsorship.pdf" class="right2">Download Sponsor Form</option>');
write('<option value="donorship.pdf" class="right2">Download Donor Form</option>');
write('<option value="contactwindow.html" class="right2">Contact Us</option>');
write('</select>');
write('</center>');
write('</form>');
write('</td></tr>');
write('</table>');    
  }
}



/**/
function writeMenuGrowers()
{
  with(this.document)
  {

write('<table width="180" border="0" cellspacing="0" cellpadding="6">');
write('<tr><td>');
//write('<form name="form1">');

write('<br/><span class="style17"><center>GROWERS</center></span><br/>');
write('<a href="2appaloosa.html" class="right2">&bull;&nbsp;Appaloosa Vineyard</a><br/>');
write('<a href="2ayrael.html" class="right2">&bull;&nbsp;Ayrael Vieux Farm</a><br/>');
write('<a href="2bascella.html" class="right2">&bull;&nbsp;Bascella Creek Vineyards</a><br/>');
write('<a href="2calcreek.html" class="right2">&bull;&nbsp;Calaveras Creek/Star Cyn*</a><br>');
write('<a href="2cave.html" class="right2">&bull;&nbsp;Cave City Vineyards*</a><br/>');
write('<a href="2cherokee.html" class="right2">&bull;&nbsp;Cherokee Vineyards*</a><br/>');
write('<a href="2chiarella.html" class="right2">&bull;&nbsp;Chiarella Vineyard*</a><br/>');
write('<a href="2delatreca.html" class="right2">&bull;&nbsp;Delatreca</a><br/>');
write('<a href="2dalton.html" class="right2">&bull;&nbsp;Dalton Vineyard*</a><br/>');
write('<a href="2frogstooth.html" class="right2">&bull;&nbsp;Frogs Tooth Vineyard*</a><br/>');
write('<a href="2golden.html" class="right2">&bull;&nbsp;Golden Creek Vineyards</a><br/>');
write('<a href="2hawkhill.html" class="right2">&bull;&nbsp;Hawk Hill Vineyard</a><br/>');
write('<a href="2holleman.html" class="right2">&bull;&nbsp;Holleman Vineyards*</a><br/>');
write('<a href="2locke.html" class="right2">&bull;&nbsp;Locke Vineyards</a><br/>');
write('<a href="2martin.html" class="right2">&bull;&nbsp;Martin Vineyard</a><br/>');
write('<a href="2parcel17.html" class="right2">&bull;&nbsp;Parcel 17*</a><br/>');
write('<a href="2ponte.html" class="right2">&bull;&nbsp;Ponte-Stephens Vineyard</a><br/>');
write('<a href="2rasmussen.html" class="right2">&bull;&nbsp;Rasmussen Vineyard</a><br/>');
write('<a href="2rocky.html" class="right2">&bull;&nbsp;Rocky Hill Ranch*</a><br/>');
write('<a href="2tanner.html" class="right2">&bull;&nbsp;Tanner Vineyards*</a><br/>');
write('<a href="2vallecito.html" class="right2">&bull;&nbsp;Vallecito Vineyards*</a><br/>');
write('<a href="2villa.html" class="right2">&bull;&nbsp;Villa Vallecito Vineyards*</a><br/>');
write('<a href="2westernoff.html" class="right2">&bull;&nbsp;Westernoff Ranch</a><br/>');
write('<a href="2woods.html" class="right2">&bull;&nbsp;Woods Agri-Business</a><br/><br/>');  

write('<span class="style22">* Voting Membership</span>');
//write('</form>');
write('</td></tr>');
write('</table>');     
  }
}
/**/

function loadPg()
{
  var loc;
  loc = document.form1.selectPage.value;
//  alert("Loc is "+loc);
  var ok;
  var pageName = '';

  ok = window.open(loc,pageName,"width=550,height=520,resizable=0,scrollbars=yes,menubar=no,statusbar=no,toolbar=no");
  if(!ok)alert("Window did not open");
}

function endpage()
{
  with(this.document)
  {
    write('</td></tr>');
    write('<tr><td colspan="3" bgcolor="#000000"><center>');
    writeNavMenu();
    write('</center></td></tr>');
    write('<tr><td colspan="3" bgcolor="'+tbgc+'" row height="1"</td></tr>');
    write('</table>');
  }
}

function writeNavMenu()
{
  with(this.document)
  {
write('<center>');
write('<div class="bottom" style="margin-bottom:5px">phone 559-868-8681&nbsp;&nbsp;&nbsp;&nbsp;&bull;&nbsp;&nbsp;&nbsp;&nbsp;HERITAGE DISCOVERY CENTER&nbsp;&nbsp;&nbsp;&nbsp;&bull;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:hdcinc@netptc.net" class="navbottom1">email: hdcinc@netptc.net</a>');
write('<br/>Mailing Address:&nbsp;&nbsp;&nbsp;&nbsp;PO Box 807&nbsp;&nbsp;&nbsp;&nbsp;&bull;&nbsp;&nbsp;&nbsp;&nbsp;Madera, CA 93639</div>');
write('</center>');
  }
}
