<!--
//	My functions here

function mainPageHeader(){
  //  Write the page header for every page on the site
  document.writeln("<table>");
  document.writeln(" <tr>");
  document.writeln("   <td>");
  document.writeln("     <img src='images/dennisjordan_fade.jpg' width=195 height=150>")
  document.writeln("   </td>");
  document.writeln("   <td width=100>&nbsp;</td>");
  document.writeln("   <td>");
  document.writeln("     <div class='headerlogo'>&nbsp;&nbsp;&nbsp;&nbsp;Dennis Jordan<br></div>");
  document.writeln("     <div class='headerlogo2'>The<br>&nbsp;&nbsp;Cabin<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Contractor</div>");
  document.writeln("   </td>");
  document.writeln(" </tr>");
  document.writeln("</table>");
  document.writeln("<hr>");
}

function commonPageHeader(){
  //  Write the page header for every page on the site
  document.writeln("<table cellpadding=2 cellspacing=2>");
  document.writeln(" <tr>");
  document.writeln("   <td>");
  document.writeln("     <img src='images/cabinblueprint_small.png'>")
  document.writeln("   </td>");
  document.writeln("   <td width=100>&nbsp;</td>");
  document.writeln("   <td width=780 align='center'><span class='header2logo'>Dennis Jordan - </span>");
  document.writeln("     <span class='header2logo2'>The Cabin Contractor</span></td>");
  document.writeln(" </tr>");
  document.writeln("</table>");
  document.writeln("<hr>");
}

function writeCommonNavBar() {
  document.writeln("<div class='navbar'>");
  document.writeln("  <div class='cssnav'><a href='index.html' title='Home'><img src='images/amber_button_off.png' alt='Home'><span>Home</span></a></div>");
  document.writeln("  <div class='cssnav'><a href='land.html' title='Land for Sale' onMouseOut='HideItem('land_submenu');' onMouseOver=ShowItem('land_submenu', 'land');'><img src='images/amber_button_off.png' alt='Land for Sale'><span>Land</span></a></div>");
  document.writeln("  <div class='cssnav'><a href='customBuilding.html' title='Custom Cabins' onMouseOut='HideItem('building_submenu');' onMouseOver='ShowItem('building_submenu', 'building');'><img src='images/amber_button_off.png' alt='Cabin Building' /><span>Custom Cabins</span></a></div>");
  document.writeln("  <div class='cssnav'><a href='cabins4sale.html' title='Cabins for Sale'><img src='images/amber_button_off.png' alt='Cabins for Sale' /><span>Cabins for Sale</span></a></div>");
  document.writeln("  <div class='cssnav'><a href='aboutus.html' title='Contact Us'><img src='images/amber_button_off.png' alt='Contact Us' /><span>Contact Us</span></a></div>");
  document.writeln("  <div class='submenu' id='land_submenu' onMouseOver='ShowItem('land_submenu');' onMouseOut='HideItem('land_submenu');'>");
  document.writeln("    <div class='submenubox'>");
  document.writeln("     <ul>");
  document.writeln("       <li><a href='lots.html' class='submenlink'>Lots for Sale</a></li>");
  document.writeln("       <li><a href='developments.html' class='submenlink'>Developments</a></li> ");
  document.writeln("     </ul></div></div>");
  document.writeln("  <div class='submenu' id='building_submenu' onMouseOver='ShowItem('building_submenu');' onMouseOut='HideItem('building_submenu');'>"); 
  document.writeln("    <div class='submenubox'>");
  document.writeln("     <ul>");
  document.writeln("       <li><a href='cabinGallery.html' class='submenlink'>Gallery</a></li>");
  document.writeln("       <li><a href='cabinFloorplans.html' class='submenlink'>Floor Plans</a></li>");
  document.writeln("     </ul></div></div>");
  document.writeln("</div>");
  document.writeln("<hr>");
 }

function commonNavBar (){
  //  Write the Navigation menu for every page on the site
  document.writeln("<table height='100%' width='160' valign='top' bgcolor='#EDCD68' background='images/gradientbackground.jpg' border=0>")
  document.writeln("<tr bordercolor='#FFFFFF'><td background='button/buttonback.jpg' height='35' valign='top' align='left'>")
  document.writeln("<table width='160' height='29' border='0' cellpadding='3' cellspacing='0'><tr><td>");
  document.writeln("<a class='nav' href='index.html' target='_self'>Home</a>")
  document.writeln("</td></tr></table>")
  document.writeln("</td></tr>")
  document.writeln("<tr bordercolor='#FFFFFF'><td background='button/buttonback.jpg' height='35' valign='top' align='left'>")
  document.writeln("<table width='160' height='29' border='0' cellpadding='3' cellspacing='0'><tr><td>");
  document.writeln("<a class='nav' href='http://www.webervations.com/magic-scripts/resbook.asp?memberid=BeaversBendAdventure' target='_blank'>Availability Calendar</a>")
  document.writeln("</td></tr></table>")
  document.writeln("</td></tr>")
  document.writeln("<tr bordercolor='#FFFFFF'><td background='button/buttonback.jpg' height='35' valign='top' align='left'>")
  document.writeln("<table width='160' height='29' border='0' cellpadding='3' cellspacing='0'><tr><td>");
  document.writeln("<a class='nav' href='cabinrental.html' target='_self'>Cabin Rental</a>")
  document.writeln("</td></tr></table>")
  document.writeln("</td></tr>")
  document.writeln("<tr bordercolor='#FFFFFF'><td background='button/buttonback.jpg' height='35' valign='top' align='left'>")
  document.writeln("<table width='160' height='29' border='0' cellpadding='3' cellspacing='0'><tr><td>");
  document.writeln("<a class='nav' href='concierge.html' target='_self'>Concierge Services </a>")
  document.writeln("</td></tr></table>")
  document.writeln("</td></tr>")
  document.writeln("<tr bordercolor='#FFFFFF'><td background='button/buttonback.jpg' height='35' valign='top' align='left'>")
  document.writeln("<table width='160' height='29' border='0' cellpadding='3' cellspacing='0'><tr><td>");
  document.writeln("<a class='nav' href='maps.html' target='_self'>Maps</a>")
  document.writeln("</td></tr></table>")
  document.writeln("</td></tr>")
  document.writeln("<tr bordercolor='#FFFFFF'><td background='button/buttonback.jpg' height='35' valign='top' align='left'>")
  document.writeln("<table width='160' height='29' border='0' cellpadding='3' cellspacing='0'><tr><td>");
  document.writeln("<a class='nav' href='contactus.html' target='_self'>Contact Us </a>")
  document.writeln("</td></tr></table>")
  document.writeln("</td></tr>")
  document.writeln("<tr bordercolor='#FFFFFF'><td background='button/buttonback.jpg' height='35' valign='top' align='left'>")
  document.writeln("<table width='160' height='29' border='0' cellpadding='3' cellspacing='0'><tr><td>");
  document.writeln("<a class='nav' href='faq.html' target='_self'>F.A.Q's</a>");
  document.writeln("</td></tr></table>")
  document.writeln("</td></tr>")
  document.writeln("<tr bordercolor='#FFFFFF'><td background='button/buttonback.jpg' height='35' valign='top' align='left'>")
  document.writeln("<table width='160' height='29' border='0' cellpadding='3' cellspacing='0'><tr><td>");
  document.writeln("<a class='nav' href='area_attractions.html' target='_self'>Area Attractions </a>")
  document.writeln("</td></tr></table>")
  document.writeln("</td></tr>")
  document.writeln("<tr bordercolor='#FFFFFF'><td background='button/buttonback.jpg' height='35' valign='top' align='left'>")
  document.writeln("<table width='160' height='29' border='0' cellpadding='3' cellspacing='0'><tr><td>");
  document.writeln("<a class='nav' href='cabinpolicies.html' target='_self'>Rental Policies</a>")
  document.writeln("</td></tr></table>")
  document.writeln("</td></tr>")
  document.writeln("<tr bordercolor='#FFFFFF'><td background='button/buttonback.jpg' height='35' valign='top' align='left'>")
  document.writeln("<table width='160' height='29' border='0' cellpadding='3' cellspacing='0'><tr><td>");
  document.writeln("<a class='nav' href='http://www.thegirlsgonewine.com' target='_blank'>Winery</a><a href='index.html'>")
  document.writeln("</td></tr></table>")
  document.writeln("</td></tr>")
  document.writeln("<tr bordercolor='#FFFFFF'><td background='button/buttonback.jpg' height='35' valign='top' align='left'>")
  document.writeln("<table width='160' height='29' border='0' cellpadding='3' cellspacing='0'><tr><td>");
  document.writeln("<a class='nav' href='links.html' target='_self'>Links </a>")
  document.writeln("</td></tr></table>")
  document.writeln("</td></tr>")
  document.writeln("</table>")
}

function commonPageFooter (){
  //  Write the page Footer for every page on the site
  document.writeln("<hr>");
  document.writeln("<span class='normaltext'>");
  document.writeln("<table id='pageFooter' width=100% border='0' align='center' cellpadding='5' cellspacing='0' bordercolor='#FFFFFF'>");
  document.writeln(" <tr>");
  document.writeln("    <td width=40% align='left'> ");
  document.writeln("      The Cabin Contractor - 2011");
  document.writeln("    </td>");
  document.writeln("    <td width=20% align='center'> ");
  document.writeln("      ");
  document.writeln("    </td>");
  document.writeln("    <td width=40% align='right'> ");
  document.writeln("      Website management by <a class='viamedia' href='http://www.viamediainc.com'>Via Media Inc.</a>");
  document.writeln("      &nbsp");
  document.writeln("    </td>");
  document.writeln(" </tr>");
  document.writeln("</table>");
  document.writeln("<hr>");
  document.writeln("</span>");
}

function writeHeader(newWin,newTitle) {
 newWin.document.writeln("<html><head><title>" + newTitle + "</title>");
 //newWin.document.writeln("<script src='js/commonscripts.js'>");
 //newWin.document.writeln("// Common scripts we use in several pages");
 //newWin.document.writeln("</script>");
 newWin.document.writeln("<style type='text/css'>");
 newWin.document.writeln(" <!--");
 newWin.document.write("body {");
 newWin.document.write(" 	background-image: url();");
 newWin.document.write("	background-color: #EDCD68;");
 newWin.document.write("	margin-left: 0px;");
 newWin.document.write("	margin-top: 0px;");
 newWin.document.write("	margin-right: 0px;");
 newWin.document.write("	margin-bottom: 0px;");
 newWin.document.write("}");
 newWin.document.write("a {");
 newWin.document.write("	font-family: Verdana, Arial, Helvetica, sans-serif;");
 newWin.document.write("	font-size: 12px;");
 newWin.document.write("	color: #FFFFFF;");
 newWin.document.write("	font-weight: bold;");
 newWin.document.write("}");
 newWin.document.write("a:link {");
 newWin.document.write("	text-decoration: none;");
 newWin.document.write("}");
 newWin.document.write("a:visited {");
 newWin.document.write("	text-decoration: none;");
 newWin.document.write("	color: #FFFFFF;");
 newWin.document.write("}");
 newWin.document.write("a:hover {");
 newWin.document.write("	text-decoration: underline;");
 newWin.document.write("	color: #99FF00;");
 newWin.document.write("}");
 newWin.document.write("a:active {");
 newWin.document.write("	text-decoration: none;");
 newWin.document.write("	color: #FFFFFF;");
 newWin.document.write("}");
 newWin.document.write(".style7 {");
 newWin.document.write("	font-family: Georgia, 'Times New Roman', Times, serif;");
 newWin.document.write("	font-size: 16px;");
 newWin.document.write("	font-style: italic;");
 newWin.document.write("}");
 newWin.document.write(".style8 {");
 newWin.document.write("	font-family: Georgia, 'Times New Roman', Times, serif;");
 newWin.document.write("	font-weight: bold;");
 newWin.document.write("	font-style: italic;");
 newWin.document.write("	font-size: 14px;");
 newWin.document.write("}");
 newWin.document.write(".style9 {");
 newWin.document.write("	font-family: Georgia, 'Times New Roman', Times, serif;");
 newWin.document.write("	font-size: 14px;");
 newWin.document.write("}");
 newWin.document.write(".style10 {");
 newWin.document.write("	font-family: Verdana, Arial, Helvetica, sans-serif;");
 newWin.document.write("	font-weight: bold;");
 newWin.document.write("}");
 newWin.document.write(".style11 {");
 newWin.document.write("	font-family: Verdana, Arial, Helvetica, sans-serif;");
 newWin.document.write("	font-size: 16px;");
 newWin.document.write("	font-weight: bold;");
 newWin.document.write("	color: #40574E;");
 newWin.document.write("}");
 newWin.document.write(".style12 {");
 newWin.document.write("	font-family: Arial, Helvetica, sans-serif;");
 newWin.document.write("	font-style: italic;");
 newWin.document.write("	font-size: 12px;");
 newWin.document.write("}");
 newWin.document.write("a {");
 newWin.document.write("	font-family: Verdana, Arial, Helvetica, sans-serif;");
 newWin.document.write("	font-size: 12px;");
 newWin.document.write("}");
 newWin.document.write("-->");
 newWin.document.write("</style>");
 newWin.document.write("</head>");
}

function makeqlist()  {
  pass++;
  if (pass >= quoteList.length) {pass=1;}
  opac = min;
  document.getElementById("cabinquotes").innerHTML = "''" + quoteList[pass] + "''";
  fadein();
}

function fadein(){
  
  opac+=fde;
  if(opac>max) {
    setTimeout('fadeout()', 2000);
    return;
  }
 
  document.getElementById("cabinquotes").style.filter = "alpha(opacity="+opac+")";
  document.getElementById("cabinquotes").style.opacity = (opac / 100);
  setTimeout('fadein()', tme);
}

function fadeout(){
  opac-=fde;
  if(opac<min) {
    setTimeout('makeqlist()',1000)
    return;
  }
  document.getElementById("cabinquotes").style.filter = "alpha(opacity="+opac+")";
  document.getElementById("cabinquotes").style.opacity = (opac / 100);
  setTimeout('fadeout()', tme);
}

// JavaScript functions to show and hide drop-down menus.
// In SimpleNavBar.html we call ShowMenuDiv each time the mouse goes over 
// either the menu title or the submenu itself, and call HideMenuDiv when the
// mouse goes out of the menu title or the submenu iteslf (onMouseOut).

function ShowItem (itemID) {
  var x = document.getElementById(itemID);
  if (x)
    x.style.visibility = "visible";
  return true;
}

function HideItem (itemID) { 
  var x = document.getElementById(itemID);
  if (x)
     x.style.visibility = "hidden";
  return true;
}

//-->

