<!--
//	My functions here

function commonPageHeader (){
  //  Write the page header for every page on the site
  document.writeln("<table id='pageHeader' width='950' border='0' align='center' cellpadding='0' cellspacing='0' bordercolor='#FFFFFF'>");
  document.writeln(" <tr>");
  document.writeln("    <td colspan='2' bgcolor='#EDCD68'>");
  document.writeln("      <table id='Table_01' width=950 height=288 border=0 cellpadding=0 cellspacing=0>");
  document.writeln("        <tr>");
  document.writeln("          <td><img src='images/BeaversBendAdventurehead2_01.gif' width=726 height=138 alt='' /></td>");
  document.writeln("          <td><img src='images/BeaversBendAdventurehead2_02.gif' width=224 height=138 alt='' /></td>");
  document.writeln("        </tr>");
  document.writeln("        <tr>");
  document.writeln("          <td><img src='images/BeaversBendAdventurehead2_03.gif' width=726 height=150 alt='' /></td>");
  document.writeln("          <td><img src='images/BeaversBendAdventureheadan.gif' width=224 height=150 alt='' /></td>");
  document.writeln("        </tr>");
  document.writeln("      </table>");
  document.writeln("    </td>");
  document.writeln(" </tr>");
  document.writeln("</table>");
}

function commonNavBar (){
  //  Write the Navigation menu for every page on the site
  document.writeln("<table height='100%' width='165' valign='top' background='button/buttonback2.jpg' bgcolor='#EDCD68'>")
  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 href='page1.html' target='main'>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 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 href='cabinrental.htm' target='main'>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 href='concierge.htm' target='main'>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 href='map.htm' target='main'>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 href='contactus.html' target='main'>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 href='faq.htm' target='main'>F.A.Q.s</a><a href='http://www.lagovistabedandbreakfast.com/' target='_blank'></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 href='dirman/index.htm' target='main'>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 href='cabinpolicies.htm' target='main'>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 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 href='links.htm' target='main'>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("<table id='pageFooter' width=100% border='0' align='center' cellpadding='0' cellspacing='0' bordercolor='#FFFFFF'>");
  document.writeln(" <tr>");
  document.writeln("    <td width=30% align='left'> ");
  document.writeln("      Copyright Beavers Bend Adventures - 2008");
  document.writeln("    </td>");
  document.writeln("    <td width=40% align='center'> ");
  document.writeln("      ");
  document.writeln("    </td>");
  document.writeln("    <td width=30% align='right'> ");
  document.writeln("      Website managment by <a class='aqua' href='http://www.viamediainc.com'>Via Media Inc.</a>");
  document.writeln("    </td>");
  document.writeln(" </tr>");
  document.writeln("</table>");
}

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>");
}

//	Build a cabin info table item that can be used anywhere
function buildItem(cabinName,newWin) {
  if(newWin == null) {newWin=window.self;}
  var specialLine1="";
  var specialLine2="";
  switch(cabinName)
  {
  case "Copper Pines":
		var sleeps="7";
		var weekdayrate="$280";
		var weekendrate="$295";
		var cabinURL="Copperpines.htm";
		var cabinPic="Copper-Pines/CopperPines_small.jpg";
		var pets=true;
		var special=false;
		var specialLine1="";
    var specialLine2="";
		break;
  case "Coyote Ridge":
		var sleeps="12";
		var weekdayrate="$350";
		var weekendrate="$375";
		var cabinURL="CoyoteRidge.htm";
		var cabinPic="coyoteridge/CRsmall.jpg";
		var pets=true;
		var specialLine1="";
    var specialLine2="";
		break;
  case "Woodmist":
		var sleeps="13";
		var weekdayrate="$335";
		var weekendrate="$355";
		var cabinURL="Woodmist.htm";
		var cabinPic="Woodmist/Woodmist_small.jpg";
		var pets=false;
		var special=false;
		var specialLine1="";
    var specialLine2="";
		break;
  case "Peaceful Pines":
		var sleeps="6";
		var weekdayrate="$210";
		var weekendrate="$225";
		var cabinURL="PeacefulPines.htm";
		var cabinPic="PeacefulPines/peacefulpinessmall.jpg";
		var pets=true;
		var special=false;
		var specialLine1="";
    var specialLine2="";
		break;
  case "Deer Ridge":
		var sleeps="9";
		var weekdayrate="$280";
		var weekendrate="$295";
		var cabinURL="DeerRidge.htm";
		var cabinPic="DeerRidge/DeerRidge_small.jpg";
		var pets=true;
		var special=false;
		var specialLine1="";
    var specialLine2="";
		break;
		case "The Dreamcatcher":
		var sleeps="8";
		var weekdayrate="$295";
		var weekendrate="$310";
		var cabinURL="Dreamcatcher.htm";
		var cabinPic="Dreamcatcher/Dreamcatcher_small.jpg";
		var pets=true;
		var special=false;
		var specialLine1="";
    var specialLine2="";
		break;
		case "Rusty Spur":
		var sleeps="8";
		var weekdayrate="$295";
		var weekendrate="$295";
		var cabinURL="RustySpur.htm";
		var cabinPic="RustySpur/RustySpur_small.jpg";
		var pets=true;
		var special=false;
		var specialLine1="";
    var specialLine2="";
		break;
    case "Hacienda Hideaway":
		var sleeps="10";
		var weekdayrate="$320";
		var weekendrate="$320";
		var cabinURL="Hacienda.html";
		var cabinPic="Hacienda/Hacienda_small.jpg";
		var pets=false;
		var special=false;
		var specialLine1="";
    var specialLine2="";
		break;
		case "Buck Fever":
		var sleeps="11";
		var weekdayrate="$295";
		var weekendrate="$295";
		var cabinURL="BuckFever.htm";
		var cabinPic="BuckFever/BuckFever_small.jpg";
		var pets=true;
		var special=false;
		var specialLine1="";
    var specialLine2="";
		break;
  case "Heavenly Ridge":
		var sleeps="8";
		var weekdayrate="$275";
		var weekendrate="$310";
		var cabinURL="Heavenly-Ridge.htm";
		var cabinPic="heavenly/HeavenlyRidge_small.jpg";
		var pets=true;
		var special=false;
		var specialLine1="<span><FONT face=Rockwell color=#800000 size=3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<STRONG>Feb Special</STRONG></FONT></span>";
		var specialLine2="<span><FONT face=Rockwell color=#800000 size=3>&nbsp;&nbsp; <STRONG>15% Off!</STRONG></FONT></span>";
		break;
		case "Finchs Nest":
		var sleeps="10";
		var weekdayrate="$295";
		var weekendrate="$295";
		var cabinURL="FinchsNest.htm";
		var cabinPic="FinchsNest/FinchsNest_small.jpg";
		var pets=true;
		var special=false;
		var specialLine1="";
    var specialLine2="";
		break;
		case "Creekside Lodge":
		var sleeps="10";
		var weekdayrate="$325";
		var weekendrate="$340";
		var cabinURL="CreeksideLodge.htm";
		var cabinPic="CreeksideLodge/CreeksideLodge_small.jpg";
		var pets=false;
		var special=false;
		var specialLine1="";
    var specialLine2="";
		break;
		case "Moonshine Ridge":
		var sleeps="12";
		var weekdayrate="$295";
		var weekendrate="$325";
		var cabinURL="MoonshineRidge.htm";
		var cabinPic="MoonshineRidge/MoonshineRidge_small.jpg";
		var pets=false;
		var special=false;
		var specialLine1="";
    var specialLine2="";
		break;
  default:
	var sleeps="0";
		var weekdayrate="$000";
		var weekendrate="$000";
		var cabinURL="none.htm";
		var cabinPic="none.jpg";
		var pets=false;
		var special=false;
		var specialLine1="";
    var specialLine2="";
  }
  newWin.document.write("<td><table border=1 align='center'><tr><td align='center' valign='middle'>");
  newWin.document.write("<a href=" + cabinURL + ">");
  newWin.document.write("<img src='" + cabinPic + "' width='216' height='162' border='2'>");
  newWin.document.write("</a></td></tr><tr><td align='left' valign='top' bgcolor='#CCCCCC'>");
  newWin.document.write("<span class='style7'>" + cabinName + "</span>");
  if(special)
  {
	newWin.document.writeln(specialLine1 + "<br>");
  }
  else
  {
    newWin.document.writeln("<br>");
  }
  newWin.document.write("Sleeps up to " + sleeps + " people");
  if(special)
  {
	newWin.document.writeln(specialLine2 + "<br>");
  }
  else
  {
    newWin.document.writeln("<br>");
  }
  newWin.document.write("<span class='style9'>");
  if(pets)
  {
	newWin.document.write("<img src='dog31.gif' width='47' height='36' align='left'>");
  }
	if(weekdayrate == weekendrate)
	{
		newWin.document.writeln(weekdayrate + " per Night");
		newWin.document.writeln("<br><br>");
	}
	else
	{
		newWin.document.writeln(weekdayrate + " Mon &ndash; Thur");
		newWin.document.writeln("<br>");
		newWin.document.writeln(weekendrate + " Fri &ndash; Sun");
	}
  newWin.document.writeln("</span>");
  newWin.document.write("</td></tr>");
  newWin.document.write("</table></td>"); 
}

//-->

