// JavaScript Document

// load images
if (document.images)
{
  pic0= new Image(126,126); 
  pic0.src="images/LargeRoom/ClockTowerRmSm.jpg"; 

  pic1= new Image(126,126); 
  pic1.src="images/LargeRoom/Shell_SeekerSm.jpg"; 

  pic2= new Image(126,126); 
  pic2.src="images/LargeRoom/RockandRollViewSm.jpg"; 
  
  pic3= new Image(126,126); 
  pic3.src="images/LargeRoom/Whale_Watcher_GrannyRoomSm.jpg"; 

  pic4= new Image(126,126); 
  pic4.src="images/LargeRoom/wickerRmBedSm.jpg"; 

  pic5= new Image(126,126); 
  pic5.src="images/LargeRoom/NW_Timber_RoomSm.jpg";
  
  pic6= new Image(126,126); 
  pic6.src="images/LargeRoom/bubbleRoomSm.jpg"; 

  pic7= new Image(126,126); 
  pic7.src="images/LargeRoom/Sports_CornerSm.jpg"; 

  pic8= new Image(126,126); 
  pic8.src="images/LargeRoom/LibraryRmHotTubSm.jpg";
  
  pic9= new Image(126,126); 
  pic9.src="images/LargeRoom/CityofRosesSm.jpg"; 

  pic10= new Image(126,126); 
  pic10.src="images/LargeRoom/Seaside_Beach_RoomSm.jpg"; 

  pic11= new Image(126,126); 
  pic11.src="images/LargeRoom/TheSunMoonStarsRmSm.jpg";
  
  pic12= new Image(126,126); 
  pic12.src="images/LargeRoom/CaptainQuartersSm.jpg";
  
 
  pic13= new Image(126,126); 
  pic13.src="images/LargeRoom/KingsRetreatSm.jpg";
  
  pic14= new Image(126,126); 
  pic14.src="images/LargeRoom/MountainCabinSm.jpg";
  
  }
//rollover menu

image1 = new Image();
image1.src = "images/offhome.jpg";  
image1on = new Image(); 
image1on.src = "images/onhome.jpg";

image2 = new Image();
image2.src = "images/offhosting.jpg";
image2on = new Image(); 
image2on.src = "images/onhosting.jpg";

image3 = new Image();
image3.src = "images/offpayment.jpg";
image3on = new Image(); 
image3on.src = "images/onpayment.jpg";

image4 = new Image();
image4.src = "images/offlinks.jpg";
image4on = new Image(); 
image4on.src = "images/onlinks.jpg";

image5 = new Image();
image5.src = "images/offcontact.jpg";
image5on = new Image(); 
image5on.src = "images/oncontact.jpg";

image6 = new Image();
image6.src = "images/offlodging.jpg";  
image6on = new Image(); 
image6on.src = "images/onlodging.jpg";

image7 = new Image();
image7.src = "images/offactivities.jpg";
image7on = new Image(); 
image7on.src = "images/onactivities.jpg";

image8 = new Image();
image8.src = "images/offdining.jpg";
image8on = new Image(); 
image8on.src = "images/ondining.jpg";

image9 = new Image();
image9.src = "images/offcoffee.jpg";
image9on = new Image(); 
image9on.src = "images/oncoffee.jpg";

image10 = new Image();
image10.src = "images/offcamping.jpg";
image10on = new Image(); 
image10on.src = "images/oncamping.jpg";

image11 = new Image();
image11.src = "images/offshopping.jpg";  
image11on = new Image(); 
image11on.src = "images/onshopping.jpg";

image12 = new Image();
image12.src = "images/offlinks.jpg";
image12on = new Image(); 
image12on.src = "images/onlinks.jpg";

image13 = new Image();
image13.src = "images/offemailrob.jpg";
image13on = new Image(); 
image13on.src = "images/onemailrob.jpg";





function on(name) 
{document[name].src = eval(name + "on.src");
}

function off(name)
{document[name].src = eval(name + ".src");
}


//guest room descriptions

<!--

/*
Textual Tooltip Script- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/


var content=new Array()
//change the array below to the text associated with your links Expand or contract the array, depending on how many links you have
content[0]='<table align="center"width="90%" border="0"><tr><td width="37%"><a href="images/LargeRoom/ClockTowerRm.html" target="_blank"><img src="images/LargeRoom/ClockTowerRmSm.jpg" border="0" width="126" height="126"></a></td><td width="63%"><b>Clock Tower Room...</b> This room is named for the large clock on the top of the outside building...a landmark for anyone on the beach.  This large suite has a sweeping view of the Pacific Ocean.  Featuring a king sized round bed, vaulted ceilings, gas fireplace, and a 2-person jetted tub.  The loft has a queen sized bed...also offering the Pacific Ocean Views.<br></td></tr></table>'
content[1]='<table align="center"width="90%" border="0"><tr><td width="37%"><a href="images/LargeRoom/ShellSeekerRm.html" target="_blank"><img src="images/LargeRoom/Shell_SeekerSm.jpg" border="0" width="126" height="126"></a></td><td width="63%"><b>Shell Seeker...</b> This charming room is located in the front of the building and offers a spectacular view of the Pacific Ocean and Tillamook Head.  The queen bed has a cozy down comforter...snuggle down in front of the gas fireplace.  This room is handicap accessible.  This is a pet friendly room; a $25.00 fee is charged per pet, up to two pets, for the length of stay.<br></td></tr></table>'
content[2]='<table align="center"width="90%" border="0"><tr><td width="37%"><a href="images/LargeRoom/RockandRollRm.html" target="_blank"><img src="images/LargeRoom/RockandRollRmViewSm.jpg" border="0" width="126" height="126"></a></td><td width="63%"><b>Rock-n-Roll...</b> Your bed is a &lsquo;59 Oldsmobile...enjoy the rock-n-roll memorabilla.  This room has a full Pacific Ocean View, fireplace and jetted tub.<br></td></tr></table>'
content[3]='<table align="center"width="90%" border="0"><tr><td width="37%"><a href="images/LargeRoom/WhaleWatcherGrannysRm.html" target="_blank"><img src="images/LargeRoom/Whale_Watcher_GrannyRoomSm.jpg" border="0" width="126" height="126"></a></td><td width="63%"><b>Granny&rsquo;s House...</b> Enjoy the spectacular full Pacific Ocean View while relaxing in a comfortable atmosphere...Do not let the name fool you, this room is tastefully decorated with antiques and features a charming bay window and queen sized bed. This is a pet friendly room; a $25.00 fee is charged per pet, up to two pets, for the length of stay.<br></td></tr></table>'
content[4]='<table align="center"width="90%" border="0"><tr><td width="37%"><a href="images/LargeRoom/WickerRm.html" target="_blank"><img src="images/LargeRoom/wickerRmBedSm.jpg" border="0" width="126" height="126"></a></td><td width="63%"><b>Wicker Room...</b> You will feel as though you are relaxing on a private East Coast porch...charming wicker d&eacute;core adorn this Pacific Ocean View room.  Rest in the king sized bed and relax in the jetted tub.<br></td></tr></table>'
content[5]='<table align="center"width="90%" border="0"><tr><td width="37%"><a href="images/LargeRoom/NWTimberRoom.html" target="_blank"><img src="images/LargeRoom/NW_Timber_RoomSm.jpg" border="0" width="126" height="126"></a></td><td width="63%"><b>NorthWest Timber Room...</b> This fabulous Pacific Ocean view room has a large king four poster log bed, fireplace and jetted tub.  The 2-person jetted tub is in the loft and has a sweeping view of the Ocean.<br></td></tr></table>'
content[6]='<table align="center"width="90%" border="0"><tr><td width="37%"><a href="images/LargeRoom/BubbleRoom.html" target="_blank"><img src="images/LargeRoom/bubbleRoomSm.jpg" border="0" width="126" height="126"></a></td><td width="63%"><b>Bubble Room...</b> This corner room offers spectacular views of the Pacific Ocean and Tillamook Head...from the queen sized bed and the 2 person jetted tub.  Enjoy the gas fireplace on those chilly nights. This is a pet friendly room; a $25.00 fee is charged per pet,up to two pets, for the length of stay.<br></td></tr></table>'
content[7]='<table align="center"width="90%" border="0"><tr><td width="37%"><a href="images/LargeRoom/SportsCorner.html" target="_blank"><img src="images/LargeRoom/Sports_CornerSm.jpg" border="0" width="126" height="126"></a></td><td width="63%"><b>Sport&rsquo;s Corner...</b> This corner room offers spectacular views of the Pacific Ocean and Tillamook Head.  Queen bed, gas fireplace and jetted tub make this a sure bet for relaxation. This is a pet friendly room; a $25.00 fee is charged per pet,up to two pets, for the length of stay.<br></td></tr></table>'
content[8]='<table align="center"width="90%" border="0"><tr><td width="37%"><a href="images/LargeRoom/TheLibrary.html" target="_blank"><img src="images/LargeRoom/LibraryRmHotTubSm.jpg" border="0" width="126" height="126"></a></td><td width="63%"><b>The Library...</b> This wonderful room offers a large 2-person hot tub, gas fireplace and cozy queen bed.  Partial Ocean view...romantically restful.<br></td></tr></table>'
content[9]='<table align="center"width="90%" border="0"><tr><td width="37%"><a href="images/LargeRoom/CityofRoses.html" target="_blank"><img src="images/LargeRoom/CityofRosesSm.jpg" border="0" width="126" height="126"></a></td><td width="63%"><b>City of Roses...</b> This room is tastefully decorated and comfortable...ocean view from alcove.  This room offers a queen bed and additional day bed.This is a pet friendly room; a $25.00 fee is charged per pet,up to two pets, for the length of stay.<br></td></tr></table>'
content[10]='<table align="center"width="90%" border="0"><tr><td width="37%"><a href="images/LargeRoom/SeasideBeachRm.html" target="_blank"><img src="images/LargeRoom/Seaside_Beach_RoomSm.jpg" border="0" width="126" height="126"></a></td><td width="63%"><b>Seaside Beach Room...</b> This large room features blue/white linens and charming vintage beach photos.  King sized bed and a day bed.  Enjoy the jetted tub after playing on the beach.<br></td></tr></table>'
content[11]='<table align="center"width="90%" border="0"><tr><td width="37%"><a href="images/LargeRoom/TheSunMoonStarRm.html" target="_blank"><img src="images/LargeRoom/theSunMoonStarsRmSm.jpg" border="0" width="126" height="126"></a></td><td width="63%"><b>The Playroom...</b> The Pacific Ocean can be seen from the 2-person jetted tub.  This room features vaulted ceilings and a queen 4-poster bed.<br></td></tr></table>'
content[12]='<table align="center"width="90%" border="0"><tr><td width="37%"><a href="images/LargeRoom/CaptainsQuarters.html" target="_blank"><img src="images/LargeRoom/CaptainQuartersSm.jpg" border="0" width="126" height="126"></a></td><td width="63%"><b>Captain&rsquo;s Quarters...</b> Natical theme with view of the city and Costal Range...king brass bed.<br></td></tr></table>'
content[13]='<table align="center"width="90%" border="0"><tr><td width="37%"><a href="images/LargeRoom/KingsRetreat.html" target="_blank"><img src="images/LargeRoom/KingsRetreatSm.jpg" border="0" width="126" height="126"></a></td><td width="63%"><b>King&rsquo;s Jungle Retreat...</b> This room features a custom oak king bed and a pull out sofa sleeper.<br></td></tr></table>'
content[14]='<table align="center"width="90%" border="0"><tr><td width="37%"><a href="images/LargeRoom/MountainCabin.html" target="_blank"><img src="images/LargeRoom/MountainCabinSm.jpg" border="0" width="126" height="126"></a></td><td width="63%"><b>Mountain Cabin...</b> This charming room features a log four poster queen sized bed and hand painted adirondack furniture.  Views of the city and mountains.This is a pet friendly room; a $25.00 fee is charged per pet,up to two pets, for the length of stay.<br></td></tr></table>'

var picture=new Array()
//change the arract below to the text associated with the picutres
picture[0]='<table width="50%" border="0"><tr><td><div align="center"><img src="/images/LargeRoom/ClockTowerRmLg.jpg" width="301" height="400"></div></td></tr></table>'
picture[1]='<table width="50%" border="0"><tr><td><div align="center"><img src="/images/LargeRoom/ClockTowerUpstairsLg.jpg" width="301" height="400"></div></td></tr></table>'



function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
appear()
setTimeout("window.onresize=regenerate",450)
}
}

function changetext(whichcontent){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions"):document.all.descriptions
cross_el.innerHTML='<font face="Verdana"><small>'+whichcontent+'<font></small>'
}
else if (document.layers){
document.d1.document.d2.document.write('<font face="Verdana"><small>'+whichcontent+'</small></font>')
document.d1.document.d2.document.close()
}

}

function appear(){
document.d1.visibility='show'
}

window.onload=regenerate2


//-->


// creates file name to room check availability

function createFilename() {
	var m = document.getElementById("month").selectedIndex;
	var d = document.getElementById("day").selectedIndex;
	var y = document.getElementById("year").selectedIndex;
	
	if (m == 0)
		window.location = "availability.html";
	else if (m == 1)
		month = "Jan";
	else if (m == 2)
		month = "Feb";
	else if (m == 3)
		month = "Mar";
	else if (m == 4)
		month = "Apr";
	else if (m == 5)
		month = "May";
	else if (m == 6)
		month = "June";
	else if (m == 7)
		month = "July";
	else if (m == 8)
		month = "Aug";
	else if (m == 9)
		month = "Sep";
	else if (m == 10)
		month = "Oct";
	else if (m == 11)
		month = "Nov";
	else
		month = "Dec";
		
	if (d == 0)
		window.location="availability.html";
	else 
		day = d;
		
	if (y == 0)
		window.location = "availability.html";
	else if (y == 1)
		year = "2007";
	else
		year = "2008";
		
		
					
	var filename = year + month + day + ".html";
	window.open = "Availability/" + filename;
	}
	
	//to open new window to calendars, to check room availability
	
function openWindow ()  {
	var now = new Date();
	var a = now.getMonth();
	var availYear = now.getYear();
	
	if (a == 0)
		availMon = "Jan";
	else if (a == 1)
		availMon = "Feb";
	else if (a ==2)
		availMon = "Mar";
	else if (a==3)
		availMon = "Apr";
	else if (a==4)
		availMon = "May";
	else if (a==5)
		availMon = "June";
	else if (a==6)
		availMon = "July";
	else if (a==7)
		availMon = "Aug";
	else if (a==8)
		availMon = "Sep";
	else if (a==9)
		availMon = "Oct";
	else if (a==10)
		availMon = "Nov";
	else
		availMon = "Dec";
	
	var availFile = "Availability/" + availYear + availMon + ".html"
	OpenWindow=window.open(availFile, "Availability", "resizable=yes,height=550,width=700,toolbar=no,scrollbars="+scroll+",menubar=no");
	}





