<!--


/***********************************************
* Image w/ description tooltip- By Dynamic Web Coding (www.dyn-web.com)
* Copyright 2002-2007 by Sharon Paine
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* IMPORTANT: Put script after tooltip div or 
	 put tooltip div just before </BODY>. */

var dom = (document.getElementById) ? true : false;
var ns5 = (!document.all && dom || window.opera) ? true: false;
var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
var ie4 = (document.all && !dom) ? true : false;
var nodyn = (!ns5 && !ie4 && !ie5 && !dom) ? true : false;

var origWidth, origHeight;

// avoid error of passing event object in older browsers
if (nodyn) { event = "nope" }

///////////////////////  CUSTOMIZE HERE   ////////////////////
// settings for tooltip 
// Do you want tip to move when mouse moves over link?
var tipFollowMouse= true;	
// Be sure to set tipWidth wide enough for widest image
var tipWidth= 410;
var offX= 20;	// how far from mouse to show tip
var offY= 12; 
var tipFontFamily= "Verdana, arial, helvetica, sans-serif";
var tipFontSize= "8pt";
// set default text color and background color for tooltip here
// individual tooltips can have their own (set in messages arrays)
// but don't have to
var tipFontColor= "#000000";
var tipBgColor= "#DDECFF"; 
var tipBorderColor= "#000080";
var tipBorderWidth= 3;
var tipBorderStyle= "ridge";
var tipPadding= 4;

// tooltip content goes here (image, description, optional bgColor, optional textcolor)
var messages = new Array();
// multi-dimensional arrays containing: 
// image and text for tooltip
// optional: bgColor and color to be sent to tooltip
messages[0] = new Array('/logoblacks.bmp','     <font size="4"> Suggestions/Comments</font> <br> <br><b>Buy the yearly National Park Pass in the US if you are visiting more than 1 Park. A great value in the Western States.  <br> <br> Take along a laptop computer if you have one, as most locations now provide internet access, but no terminals <font color="red"> <br><br>Your participation in using our affiliate accommodation bookings is appreciated, but really if you leave a comment that would be<font color="blue" size="4">better</font> than anything. Remember this is a hobby to us, but we do use the accommodation affilates for our own travels as it gives us the variety and we can book on the road using the internet.</font><font color="black"> <br><br> Site made for broadband so be sure to click the many  </font><font color="red"> YOUR GUIDES </font> <font color="black">  throughout, for movie clips and pics</font><font color="red"> <br><br> Also, if you would rather select from a picture use our PICTURE blog, as it does link to the web site. </b></font> ',"yellow");
messages[1] = new Array('/key-west/keywest-sunset.jpg','<font size="4" color="red"><b>Key West</b></font> <font size="3" color="black"><br><b>Sunsets happen almost every night</font><br><font size="4" color="blue">Enjoy Your Travels </b></font>',"yellow");
messages[2] = new Array('/fort-lauderdale/fort-lauderdale-beach.jpg','<font size="4" color="red"><b>Fort Lauderdale</b></font> <font size="3" color="black"><br><b>Super today, but also with a great past</font><br><font size="4" color="blue">Enjoy Your Travels </b></font>',"yellow");
messages[3] = new Array('/clearwater/clearwater-palmpavilion.jpg','<font size="4" color="red"><b>Clearwater Beach</b></font> <font size="3" color="black"><br><b>Great Beach and Surroundings</font><br><font size="4" color="blue">Enjoy Your Travels </b></font>',"yellow");
messages[4] = new Array('/saint-petersburg/johns-pass.jpg','<font size="4" color="red"><b>Saint Petersburg</b></font> <font size="3" color="black"><br><b>Super Downtown & Beach</font><br><font size="4" color="blue">Enjoy Your Travels </b></font>',"yellow");
messages[5] = new Array('/united-states/florida-map-small.gif','<font size="4" color="red"><b>State of Florida</b></font> <font size="3" color="black"><br><b>Sun & Fun</font><br><font size="4" color="blue">Enjoy Your Travels </b></font>',"yellow");
messages[6] = new Array('/bahamas/bahamas-abaco-sunrise-sunset.jpg','<font size="4" color="red"><b>Bahamas</b></font> <font size="3" color="black"><br><b>Sunset in Abaco</font><br><font size="4" color="blue">Enjoy Your Travels </b></font>',"yellow");
messages[7] = new Array('/mexico/mazatlan-overview.jpg','<font size="4" color="red"><b>Mexico</b></font> <font size="3" color="black"><br><b>Mazatlan Beach Vendors</font><br><font size="4" color="blue">Enjoy Your Travels </b></font>',"yellow");
messages[8] = new Array('/panama/santa-clara-accommodation-1.jpg','<font size="4" color="red"><b>Panama</b></font> <font size="3" color="black"><br><b>Rustic Accommodation, but we just loved it</font><br><font size="4" color="blue">Enjoy Your Travels </b></font>',"yellow");
messages[9] = new Array('/united-states/washington-whidbey-island.jpg','<font size="4" color="red"><b>Washington</b></font> <font size="3" color="black"><br><b>Whidbey Island</font><br><font size="4" color="blue">Enjoy Your Travels </b></font>',"yellow");
messages[10] = new Array('/united-states/oregon-pacific-coast.jpg','<font size="4" color="red"><b>Oregon</b></font> <font size="3" color="black"><br><b>Pacific Ocean</font><br><font size="4" color="blue">Enjoy Your Travels </b></font>',"yellow");
messages[11] = new Array('/united-states/california-sonoma-wineries.jpg','<font size="4" color="red"><b>California</b></font> <font size="3" color="black"><br><b>Sonoma Wineries</font><br><font size="4" color="blue">Enjoy Your Travels </b></font>',"yellow");
messages[12] = new Array('/united-states/colorado-rocky-mountains.jpg','<font size="4" color="red"><b>Colorado</b></font> <font size="3" color="black"><br><b>Rocky Mountains</font><br><font size="4" color="blue">Enjoy Your Travels </b></font>',"yellow");
messages[13] = new Array('/united-states/arizona-grand-canyon.jpg','<font size="4" color="red"><b>Arizona</b></font> <font size="3" color="black"><br><b>Grand Canyon</font><br><font size="4" color="blue">Enjoy Your Travels </b></font>',"yellow");
messages[14] = new Array('/united-states/utah-bryce-canyon.jpg','<font size="4" color="red"><b>Utah</b></font> <font size="3" color="black"><br><b>Bryce Canyon</font><br><font size="4" color="blue">Enjoy Your Travels </b></font>',"yellow");
messages[15] = new Array('/canada/lake-superior-rossport.jpg','<font size="4" color="red"><b>North Western Ontario</b></font> <font size="3" color="black"><br><b>Lake Superior</font><br><font size="4" color="blue">Enjoy Your Travels </b></font>',"yellow");
messages[16] = new Array('/dr/st-louis-arch.jpg','<font size="4" color="red"><b>Missouri</b></font> <font size="3" color="black"><br><b>St. Louis Arch</font><br><font size="4" color="blue">Enjoy Your Travels </b></font>',"yellow");
messages[17] = new Array('/dr/mackinac.jpg','<font size="4" color="red"><b>Michigan</b></font> <font size="3" color="black"><br><b>Mackinac Island</font><br><font size="4" color="blue">Enjoy Your Travels </b></font>',"yellow");
messages[18] = new Array('/united-states/texas-alamo.jpg','<font size="4" color="red"><b>Texas</b></font> <font size="3" color="black"><br><b>The Alamo</font><br><font size="4" color="blue">Enjoy Your Travels </b></font>',"yellow");
messages[19] = new Array('http://www.fans-of-mlb.com/logoball.jpg','<font size="4" color="red"><center><b>Baseball, Baseball, Baseball</b></font> <font size="3" color="black"><br><b>Where it all began</font><br><font size="4" color="blue"> Travel with Us </b></font>',"yellow");
messages[20] = new Array('http://www.fans-of-mlb.com/trip605.jpg','<font size="4" color="red"><center><b>All Major League Teams</b></font> <font size="3" color="black"><br><b>Let`s Play Ball</font><br><font size="4" color="blue"> Great Hobby </b></font>',"yellow");
messages[21] = new Array('http://www.two-friends-travels.com/bicycle/trip242.jpg','<font size="4" color="red"><center><b>Bicycle Trips</b></font> <font size="3" color="black"><br><b>See the Country Close Up</font><br><font size="4" color="blue"> Good Exercise </b></font>',"yellow");
messages[22] = new Array('http://www.two-friends-travels.com/nas.GIF','<font size="4" color="red"><center><b>Share our travels</b></font> <font size="3" color="black"><br><b>Look before you Go</font><br><font size="4" color="blue">Happy travels and stay safe!</b></font>',"yellow");
messages[23] = new Array('http://www.two-friends-travels.com/Img0330.JPG','<font size="4" color="red"><center><b>Finger Lakes</b></font> <font size="3" color="black"><br><b>Look before you Go</font><br><font size="4" color="blue">Wine country in the North-East</b></font>',"yellow");
messages[24] = new Array('http://www.two-friends-travels.com/dr3700s.gif','<font size="4" color="red"><center><b>California</b></font> <font size="3" color="black"><br><b>An exciting State</font><br><font size="4" color="blue">Enjoy Your Travels</b></font>',"yellow");
messages[25] = new Array('http://www.two-friends-travels.com/panning.jpg','<font size="4" color="red"><center><b>Panning for Gold</b></font> <font size="3" color="black"><br><b>Up in the Mountains</font><br><font size="4" color="blue">Enjoy Your Travels</b></font>',"yellow");
messages[26] = new Array('http://www.two-friends-travels.com/niagara.jpg','<font size="4" color="red"><center><b>Niagara Falls</b></font> <font size="3" color="black"><br><b>Falls view</font><br><font size="4" color="blue">Enjoy Your Travels</b></font>',"yellow");
messages[27] = new Array('http://www.two-friends-travels.com/NOTES.GIF','<font size="4" color="red"><center><b>Favorite </b></font> <font size="3" color="black"><br><b>Song Lists</font><br><font size="4" color="blue">Son`s Hobby</b></font>',"yellow");
messages[28] = new Array('http://www.two-friends-travels.com/logoblacks.bmp','<font size="4" color="red"><center><b>Your Two Friends</font><br><font size="4" color="blue">You Found Us!!!<br>Have Fun & Enjoy your Travels.<br> Nothing to Buy Here, But you may find a place to GO. </b></font>',"yellow");
messages[29] = new Array('http://www.two-friends-travels.com/clearwater/clearwater-dunedin.jpg','<font size="4"> Dunedin - Downtown </font> <br> <b>Actually quite a small town, but a great place to live.</b><br><font color="red" size="4"><b>Click for Video Clip</b></font>',"yellow");

////////////////////  END OF CUSTOMIZATION AREA  ///////////////////

// preload images that are to appear in tooltip
// from arrays above
if (document.images) {
	var theImgs = new Array();
	for (var i=0; i<messages.length; i++) {
  	theImgs[i] = new Image();
		theImgs[i].src = messages[i][0];
  }
}

// to layout image and text, 2-row table, image centered in top cell
// these go in var tip in doTooltip function
// startStr goes before image, midStr goes between image and text
var startStr = '<table width="' + tipWidth + '"><tr><td align="center" width="100%"><img src="';
var midStr = '" border="0"></td></tr><tr><td valign="top">';
var endStr = '</td></tr></table>';

////////////////////////////////////////////////////////////
//  initTip	- initialization for tooltip.
//		Global variables for tooltip. 
//		Set styles
//		Set up mousemove capture if tipFollowMouse set true.
////////////////////////////////////////////////////////////
var tooltip, tipcss;
function initTip() {
	if (nodyn) return;
	tooltip = (ie4)? document.all['tipDiv']: (ie5||ns5)? document.getElementById('tipDiv'): null;
	tipcss = tooltip.style;
	if (ie4||ie5||ns5) {	// ns4 would lose all this on rewrites
		tipcss.width = tipWidth+"px";
		tipcss.fontFamily = tipFontFamily;
		tipcss.fontSize = tipFontSize;
		tipcss.color = tipFontColor;
		tipcss.backgroundColor = tipBgColor;
		tipcss.borderColor = tipBorderColor;
		tipcss.borderWidth = tipBorderWidth+"px";
		tipcss.padding = tipPadding+"px";
		tipcss.borderStyle = tipBorderStyle;
	}
	if (tooltip&&tipFollowMouse) {
		document.onmousemove = trackMouse;
	}
}

window.onload = initTip;

/////////////////////////////////////////////////
//  doTooltip function
//			Assembles content for tooltip and writes 
//			it to tipDiv
/////////////////////////////////////////////////
var t1,t2;	// for setTimeouts
var tipOn = false;	// check if over tooltip link
function doTooltip(evt,num) {
	if (!tooltip) return;
	if (t1) clearTimeout(t1);	if (t2) clearTimeout(t2);
	tipOn = true;
	// set colors if included in messages array
	if (messages[num][2])	var curBgColor = messages[num][2];
	else curBgColor = tipBgColor;
	if (messages[num][3])	var curFontColor = messages[num][3];
	else curFontColor = tipFontColor;
	if (ie4||ie5||ns5) {
		var tip = startStr + messages[num][0] + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr;
		tipcss.backgroundColor = curBgColor;
	 	tooltip.innerHTML = tip;
	}
	if (!tipFollowMouse) positionTip(evt);
	else t1=setTimeout("tipcss.visibility='visible'",100);
}

var mouseX, mouseY;
function trackMouse(evt) {
	standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
	mouseX = (ns5)? evt.pageX: window.event.clientX + standardbody.scrollLeft;
	mouseY = (ns5)? evt.pageY: window.event.clientY + standardbody.scrollTop;
	if (tipOn) positionTip(evt);
}

/////////////////////////////////////////////////////////////
//  positionTip function
//		If tipFollowMouse set false, so trackMouse function
//		not being used, get position of mouseover event.
//		Calculations use mouseover event position, 
//		offset amounts and tooltip width to position
//		tooltip within window.
/////////////////////////////////////////////////////////////
function positionTip(evt) {
	if (!tipFollowMouse) {
		standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
		mouseX = (ns5)? evt.pageX: window.event.clientX + standardbody.scrollLeft;
		mouseY = (ns5)? evt.pageY: window.event.clientY + standardbody.scrollTop;
	}
	// tooltip width and height
	var tpWd = (ie4||ie5)? tooltip.clientWidth: tooltip.offsetWidth;
	var tpHt = (ie4||ie5)? tooltip.clientHeight: tooltip.offsetHeight;
	// document area in view (subtract scrollbar width for ns)
	var winWd = (ns5)? window.innerWidth-20+window.pageXOffset: standardbody.clientWidth+standardbody.scrollLeft;
	var winHt = (ns5)? window.innerHeight-20+window.pageYOffset: standardbody.clientHeight+standardbody.scrollTop;
	// check mouse position against tip and window dimensions
	// and position the tooltip 
	if ((mouseX+offX+tpWd)>winWd) 
		tipcss.left = mouseX-(tpWd+offX)+"px";
	else tipcss.left = mouseX+offX+"px";
	if ((mouseY+offY+tpHt)>winHt) 
		tipcss.top = winHt-(tpHt+offY)+"px";
	else tipcss.top = mouseY+offY+"px";
	if (!tipFollowMouse) t1=setTimeout("tipcss.visibility='visible'",100);
}

function hideTip() {
	if (!tooltip) return;
	t2=setTimeout("tipcss.visibility='hidden'",100);
	tipOn = false;
}

document.write('<div id="tipDiv" style="position:absolute; visibility:hidden; z-index:100"></div>')

//-->

