self.onerror = function() { return true; };

var stsheet=getcssfile();
var txt="<link rel=\"stylesheet\" type=\"text/css\" href=\"\.\.\/css/"+stsheet+"\">";
document.write(txt);

writeMap();
function writeMap()
{
	var sMap="";
	document.open;
	sMap+="<map name=\"logo\">";
	sMap+="<area shape=\"rect\" coords=\"82,58,105,81\" href=\"tour.html?page=1\" alt=\"Start the Tour\" \/>";
	sMap+="<area shape=\"poly\" coords=\"37,55,32,59,30,60,26,60,24,64,24,67,28,65,29,70,33,69,40,79,41,84,41,88,41,97,45,98,46,85,";
	sMap+="52,79,54,78,53,75,54,72,56,73,58,73,62,71,67,67,66,63,63,61,59,63,57,63,56,63,56,59,57,57,56,55,57,54,55,52,51,53,50,55,";
	sMap+="43,55,37,55\" href=\"gardentour.html?page=1\" alt=\"Tour the Garden\" \/>";
	sMap+="<area shape=\"rect\" coords=\"57,31,68,44\" href=\"tour.html?page=5\" alt=\"View the Lord Room\" \/>";
	sMap+="<area shape=\"rect\" coords=\"106,35,117,46\" href=\"tour.html?page=6\" alt=\"View the Maid\'s Room\" \/>";
	sMap+="<area shape=\"rect\" coords=\"78,10,97,19\" href=\"tour.html?page=7\" alt=\"View the Billiards Suite\" \/>";
	sMap+="<area shape=\"rect\" coords=\"0,90,10,100\" href=\"http:\/\/www\.gladstonemanor\.com\" ";
	sMap+="alt=\"Site designed,developed,and maintained by Gladstone Manor\" \/>";
	sMap+="<\/map>";
	document.write(sMap);
	document.close;
}

function writeHeader(pageTitle)
{
	document.open;
	document.writeln('<div align=\"center\">');
	document.writeln('<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"100%\">');
	document.writeln('<tr>');
	document.writeln('<td valign=\"top\" align=\"left\" width=\"10%\" height=\"50\">');
	document.writeln('<img src=\"\.\.\/images\/logo\.gif\" usemap=\"#logo\" border=\"0\" width=\"150\" height=\"100\">');
	document.writeln('<\/td>');
	document.writeln('<td valign=\"top\" align=\"center\" width=\"90%\" height=\"50\">');
	document.writeln('<span class=\"pageheader\">\&nbsp;\&nbsp;\&nbsp;\&nbsp;'+pageTitle+'<\/span>');
	document.writeln('<\/td>');
	document.writeln('<\/tr>');
	document.writeln('<tr>');
	document.writeln('<td colspan=\"2\" valign=\"top\" align=\"center\" width=\"25%\" height=\"400\">');
	document.close;
}

function writeFooter()
{
	document.open;
	document.writeln('<\/td>');
	document.writeln('<\/tr>');
	document.writeln('<\/table>');
	document.writeln('<\/div>');
	document.close;
}


var imgpath="../images/garden/";
var blurb=new Array();
var img=new Array();
var titl=new Array();
var incr=0;

incr++;
img[incr]=new Image();
img[incr].src=(imgpath+'fullgarden.jpg');
titl[incr]="The Garden";
blurb[incr]="Gardening is a passion at this home\.  ";
blurb[incr]+="Guests will enjoy a morning stroll to check out the seasonal blossoms\. ";
blurb[incr]+="There are many perennials as well as various annuals to fill in the gaps of the season\.  ";
blurb[incr]+="The host has a large variety of daylilies,";
blurb[incr]+=" so that something is usually in bloom throughout the months of late spring through fall\.";
blurb[incr]+="<br \/><br \/>";
blurb[incr]+="During the cold months guests will enjoy relaxing in the hot tub, ";
blurb[incr]+="which is secluded in an enclosed gazebo\.  Robes are provided\.  It is secure and very private\.";

incr++;
img[incr]=new Image();
img[incr].src=(imgpath+'pond.jpg');
titl[incr]="Koi Pond";
blurb[incr]="A favorite spot in the garden is the koi pond with a pool-side pergola where you can relax and ";
blurb[incr]+="reflect on the day\'s activities while you watch the fish.<br \/><br \/>Or, you might ask your host if you ";
blurb[incr]+="can take your morning coffee at the water garden.  It is especially nice in the early morning.";

incr++;
img[incr]=new Image();
img[incr].src=(imgpath+'irises.jpg');
titl[incr]="Irises";
blurb[incr]="There are many iris varieties blooming during the month of May. ";

incr++;
img[incr]=new Image();
img[incr].src=(imgpath+'wisteria.jpg');
titl[incr]="Wisteria";
blurb[incr]="Wisteria covers the house and garden pergola in the early spring. ";

incr++;
img[incr]=new Image();
img[incr].src=(imgpath+'sweetwilliam.jpg');
titl[incr]="Sweet William";
blurb[incr]="Take a stroll through the garden to enjoy Sweet William blooming next to a flowering pear. ";

incr++;
img[incr]=new Image();
img[incr].src=(imgpath+'walkingarden.jpg');
titl[incr]="Walk further...";
blurb[incr]="And view the many other flowers blooming throughout the summer months. ";

incr++;
img[incr]=new Image();
img[incr].src=(imgpath+'longstocking.jpg');
titl[incr]="Long Stocking";
blurb[incr]="The garden has around 85 different varieties of daylilies.  Long Stocking is an early bloomer, beginning in June. ";

incr++;
img[incr]=new Image();
img[incr].src=(imgpath+'solomon.jpg');
titl[incr]="Song of Solomon";
blurb[incr]="Song of Solomon is a prolific charmer that blooms in early July.";

incr++;
img[incr]=new Image();
img[incr].src=(imgpath+'daylilies.jpg');
titl[incr]="Daylilies";
blurb[incr]="There are many other daylilies to enjoy during the bloom season.";

/*
incr++;
img[incr]=new Image();
img[incr].src=(imgpath+'.jpg');
titl[incr]="aa";
blurb[incr]="bb";
*/

function gardentourpage(num)
{
	var bck=true;
	var forw=true;

	if(num==1) { bck=false; }
	if(num==incr) { forw=false }
	writegardenpage(num,img[num].src,titl[num],blurb[num],bck,forw);
}

	var hmnu="<a href=\"html\/rates\.htm\" class=\"active\" onmouseover=\"window\.status=\'See Our Rates\'; return true;\" ";
	hmnu+="title=\"See Our Rates\" onmouseout=\"window\.status=\' \'; return true;\">";
	hmnu+="<span class=\"hmenu\">Rates<\/span><\/a>\&nbsp;";
	hmnu+="<a onmouseover=\"window\.status=\'Take the Tour\'; return true;\" ";
	hmnu+="title=\"Take the Tour\" onmouseout=\"window\.status=\' \'; return true;\" href=\"html\/tour\.htm\">";
	hmnu+="<span class=\"hmenu\">Tour<\/span><\/a>\&nbsp;";
	hmnu+="<a onmouseover=\"window\.status=\'See What\\\'s Interesting in the Neighborhood\'; ";
	hmnu+="return true;\" title=\"See What\'s Interesting in the Neighborhood\" onmouseout=\"window\.status=\' \'; ";
	hmnu+="return true;\" href=\"html\/areaguide\.htm\"><span class=\"hmenu\">Area Info<\/span><\/a>\&nbsp;";
	hmnu+="<a onmouseover=\"window\.status=\'Request More Info\'; return true;\" title=\"Request\" More\" Info\" ";
	hmnu+="onmouseout=\"window\.status=\' \'; return true;\" href=\"javascript:sendit\(\'More Information Please\',\'Dear ";
	hmnu+="Bruce And Veda, Would You Please Send Me More Information About Gladstone Manor\?\'\)\" >";
	hmnu+="<span class=\"hmenu\">Contact Us<\/span><\/a>";

function writegardenpage(num,imag,alter,scopy,bck,forw)
{
	var nxt=0;
	var prev;
	nxt=prev=num;
	nxt++;
	prev--;

	var msg="<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1\.0 Transitional\/\/EN\" ";
	msg+="\"http:\/\/www\.w3\.org\/TR\/xhtml1\/DTD\/xhtml1-transitional\.dtd\" \/>";
	msg+="<html dir=\"ltr\" xml:lang=\"en\" lang=\"en\">";
	msg+="<head><title>Gladstone Manor B&B Garden Tour - "+alter+"</title>";
	msg+="<meta name=\"description\" content=\"Enjoy a night, a week, or a weekend in a beautifully restored Victorian home.  ";
	msg+="Non-Victorian ameneties like DSL connectivity are available to all guests.\" />";
	msg+="<meta name=\"keywords\" content=\"historic,garden,kansas city,museum,scenic byway\" />";
	msg+="<meta name=\"generator\" content=\"MaghickŪ WebMistress\" />";
	msg+="<script src=\"\.\.\/jscripts/gardentour.js\"><\/script>";
	msg+="</head>";
	msg+="<body><div align=\"center\"><table border=\"0\" cellpadding=\"5\" width=\"100%\"><tr>";
	msg+="<td valign=\"top\" align=\"center\" width=\"25%\" height=\"50\"><span class=\"pageheader\">";
	msg+=alter;
	msg+="</span>";
	msg+="</td><td valign=\"top\" align=\"right\" width=\"75%\" height=\"50\">";
	msg+="<img src=\"\.\.\/images\/logo\.gif\" usemap=\"#logo\" border=\"0\"  width=\"150\" height=\"100\" \/>";
	msg+="</td></tr><tr>";
	msg+="<td colspan=\"1\" valign=\"top\" align=\"left\" width=\"25%\" height=\"100\">";
	msg+="<img class=\"photo\" src=\"";
	msg+=imag;
	msg+="\" height=\"300\" title=\"";
	msg+=alter;
	msg+="\"  align=\"top\" />";
	msg+="</td><td colspan=\"1\" valign=\"top\" align=\"left\" width=\"50%\" height=\"100\"><span class=\"roomblurb\">";
	msg+=scopy;
	msg+="<tr><td colspan=\"2\" valign=\"top\" align=\"center\" width=\"100%\" height=\"50%\">";
	if(bck)
	{
		msg+="<strong><big><big>\&larr;<\/big>&nbsp;<a href=\"javascript:gardentourpage\("+prev+"\)\" ";
		msg+="onmouseover=\"window.status=\'tour page ";
		msg+=prev+"\'; return true;\" ";
		msg+="onmouseout=\"window.status=\' \'; return true;\">";
		msg+="<em>Back<\/em><\/big></strong></a>&nbsp;&nbsp;";
	}
	if(forw)
	{
		msg+="<a href=\"javascript:gardentourpage\("+nxt+"\)\" onmouseover=\"window.status=\'Tour Page ";
		msg+=nxt+"\'; return true;\" onmouseout=\"window.status=\' \'; return true;\">";
		msg+="<strong><big><em>Next<\/em></a>&nbsp;<big>\&rarr;<\/big><\/big></strong>";
	}
	msg+="</td></tr></table><br \/></div><p>";
	msg+="<a href=\"\.\.\/index.html\" onmouseover=\"window.status=\'Go Home\'; return true;\" ";
	msg+="onmouseout=\"window.status=\' \'; return true;\"><span class=\"returnhome\">";
	msg+="Return</a> to Home Page</span></body></html>";
	document.open();
	document.write(msg);
}


function getcssfile()
{
	var cssFile="";
	if (screen.width <= 800)
		cssFile = "800gm.css";
	else if (screen.width <= 1024) 
		cssFile = "1024gm.css";
	else if (screen.width > 1024) 
		cssFile = "1152gm.css";
	
	return cssFile;
}

var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")

