<!--


/***********************************************
* 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('/logowhite.bmp',         '<font size="4"> To Mobile, New Orleans</font> <br> <font color="red" size="4"><b>Click for Map</b></font>',"yellow");
messages[1] = new Array('/logowhite.bmp',         '<font size="4"> To Atlanta, Cincinnatti</font> <br> <font color="red" size="4"><b>Click for Map</b></font>',"yellow");
messages[2] = new Array('/logowhite.bmp',         '<font size="4"> To Washington, New York</font> <br> <font color="red" size="4"><b>Click for Map</b></font>',"yellow");
messages[3] =  new Array('/logowhite.bmp',        '<font size="4">To Key West</font> <br> <font color="red" size="4"><b>Click for Map</b></font>',"yellow");
messages[4] =  new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Jascksonville area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[5] =  new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the St. Augustine area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[6] =  new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Daytona Beach area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[7] =  new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Titusville / Cape Canaveral area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[8] =  new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Melbourne / Sesbastian area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[9] =  new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Vero Beach / Stuart area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[10] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Palm Beach / Lake Worth  area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[11] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Fort Lauderdale area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[12] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Miami area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[13] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Suwannee / Lake City area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[14] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Gainsville area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[15] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Silver Springs / Ocala area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[16] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Inverness / Bushnell area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[17] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Tampa Bay area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[18] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Sarasota / Englewood area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[19] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Venice / Punta Gorda area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[20] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Fort Myers area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[21] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Naples / Marcos Island area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[22] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Miami area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[23] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Naples / Marcos Island area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[24] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Lakeland / Lake Mary area <br> <font color="red" size="4"><b>Click for further selections</b></font> ',"yellow");
messages[25] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Orlando area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[26] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Kissimmee / Disneyworld / Plant City area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[27] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Pensacola area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[28] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Talahassee area <br> <font color="red" size="4"><b>Click for further selections</b></font>',"yellow");
messages[29] = new Array('http://alabamatravel.org/images/dbimages/members/91/20050719_093937.jpg',           '<font size="4">State of Alabama</font> <br> <font color="red" size="4"><b>Click for Map</b></font>',"yellow");
messages[30] = new Array('http://www.georgia.org/NR/rdonlyres/E8D86BA7-7ED1-43CE-A146-FF324DF06F65/0/logogeorgia.gif',           '<font size="4">State of Georgia</font> <br> <font color="red" size="4"><b>Click for Map</b></font>',"yellow");
messages[31] = new Array('/key-west/kwmaps.gif',                              '<font size="4"> Key West</font> <br><b>Visit our Key West area map for much, much more</b><br> <font color="red" size="4"><b>Click for further selections,<br> video clips & slideshow </b></font>',"yellow");
messages[32] = new Array('/clearwater/Clearwater-Dunedin-maps.gif',                     '<font size="4"> Clearwater</font> <br><b>Visit our Clearwater area map for more</b><br><font color="red" size="4"><b>Click for further selections,<br> video clips & slideshow </b></font>',"yellow");
messages[33] = new Array('/saint-petersburg/stpetes.gif',                              '<font size="4"> St Petersburg</font> <br><b>Visit our St Petersburg area map for more</b><br><font color="red" size="4"><b>Click for further selections,<br> video clips & slideshow </b></font>',"yellow");
messages[34] = new Array('/fort-lauderdale/flmap01s.gif',                           '<font size="4"> Fort Lauderdale</font> <br><b>Visit our Fort Lauderdale area map for MUCH more</b><br><font color="red" size="4"><b>Click for further selections,<br> video clips & slideshow </b></font>',"yellow");
messages[35] = new Array('/miami/miamis.gif',                                '<font size="4"> Miami</font> <br><b>Visit our Miami area map for more</b><br><font color="red" size="4"><b>Click for further selections,<br> video clips & slideshow </b></font>',"yellow");
messages[36] = new Array('/bicycle/sv04.jpg',     '<font size="4"> Bicycle Trips for the Semi-Retired</font> <br><b>Shark Valley Trail meanders thru the Florida Everglades <br><font color="red" size="4"><b>Click for further writeup,<br> and pictures</b></font>',"yellow");
messages[37] = new Array('/bicycle/trip12109.jpg','<font size="4"> Bicycle Trips for the Semi-Retired</font> <br><b>Clearwater Trail passes thru  parks, wooded areas and by Tampa Bay. <br><font color="red" size="4"><b>Click for further writeup,<br> and pictures</b></font>',"yellow");
messages[38] = new Array('http://www.fans-of-mlb.com/trip901a.jpg','<font size="4"> Florida Marlins - Joe Robbie Stadium </font> <b> <br><br> <font size="3" color="red"> Did You Know?</font><br>The original name of the Rays home field (Tropicana Field) was the Thunderdome while the Tampa Bay Lightening (hockey) used it as their home rink.<br> April 2000 saw the Rays show off the new “Field Turf” which is an artificial grass with all of the characteristics of natural grass. This was the first professional baseball game to be played on this type of turf. </b> <br><br>Click to transfer to Baseball trip highlights',"yellow");
messages[39] = new Array('http://www.fans-of-mlb.com/tripa02a.jpg','<font size="4"> Tampa Devil Rays - Tropicana Dome </font> <b> <br><br> <font size="3" color="red"> Did You Know?</font><br>The original name of the Rays home field (Tropicana Field) was the Thunderdome while the Tampa Bay Lightening (hockey) used it as their home rink.<br> April 2000 saw the Rays show off the new “Field Turf” which is an artificial grass with all of the characteristics of natural grass. This was the first professional baseball game to be played on this type of turf. </b> <br><br>Click to transfer to Baseball trip highlights',"yellow");
messages[40] = new Array('/dr/driving-to-florida-space-shot.jpg',         '<font size="4"> Cape Canaveral</font> <br><b> Space Shot<br></b></font> <font color="red" size="4"><b>Click for further writeup,<br> video clips & slideshow </b></font>',"yellow");
messages[41] = new Array('/affaccom.jpg',         '<font size="4"> Pensacola</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[42] = new Array('/affaccom.jpg',         '<font size="4"> Tallahassee</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[43] = new Array('/affaccom.jpg',         '<font size="4"> Jacksonville</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[44] = new Array('/affaccom.jpg',         '<font size="4"> St Augustine</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[45] = new Array('/affaccom.jpg',         '<font size="4"> Daytona</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[46] = new Array('/affaccom.jpg',         '<font size="4"> Gainsville</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[47] = new Array('/affaccom.jpg',         '<font size="4"> Ocala</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[48] = new Array('/affaccom.jpg',         '<font size="4"> Orlando</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[49] = new Array('/affaccom.jpg',         '<font size="4"> Kissimmee</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[50] = new Array('/affaccom.jpg',         '<font size="4"> Tampa</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[51] = new Array('/affaccom.jpg',         '<font size="4"> Clearwater</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[52] = new Array('/affaccom.jpg',         '<font size="4"> St Petersburg</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[53] = new Array('/affaccom.jpg',         '<font size="4"> Sarasota</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[54] = new Array('/affaccom.jpg',         '<font size="4"> Venice</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[55] = new Array('/affaccom.jpg',         '<font size="4"> Port Charlotte</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[56] = new Array('/affaccom.jpg',         '<font size="4"> Fort Pierce</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[57] = new Array('/affaccom.jpg',         '<font size="4"> Port St. Lucie</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[58] = new Array('/affaccom.jpg',         '<font size="4"> Fort Myers</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[59] = new Array('/affaccom.jpg',         '<font size="4"> Naples</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[60] = new Array('/affaccom.jpg',         '<font size="4"> Miami</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[61] = new Array('/dr/2005-florida-tarpon-springs.jpg',  '<font size="4"> Tarpon Springs</font> <br><b> Sponge Docks<br></b></font> <font color="red" size="4"><b>Click for further writeup,<br> video clips & slideshow </b></font>',"yellow");
messages[62] = new Array('/affaccom.jpg',         '<font size="4"> Fort Lauderdale</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[63] = new Array('/affaccom.jpg',         '<font size="4"> Key West</font> <br><b> Hotels in Area<br></b></font> <font color="red" size="4"><b>Click to review & book online</b></font>',"yellow");
messages[64] = new Array('/logowhite.bmp',        '<font size="4"> Tamiami Trail</font> <br><b> Watch out for alligators on this road<br></b></font> ',"yellow");
messages[65] = new Array('/united-states/florida-flagler-beach.jpg', '<font size="4"> Flagler Beach</font> <br><b> Great Beach for a relaxing stay<br></b></font> <font color="red" size="4"><b>Click for further writeup,<br> video clip </b></font> ',"yellow");
messages[66] = new Array('/united-states/florida-saint-augustine.jpg', '<font size="4"> St. Augustine</font> <br><b> A first stop from Spain<br></b></font><font color="red" size="4"><b>Click for further writeup,<br> video clip </b></font> ',"yellow");
messages[67] = new Array('/logowhite.bmp',        '<font size="4">Internet Links</font> <br> From the Mount Dora / Yeehaw Junction areas <br> <font color="red" size="4"><b>Click for further selections</b></font> ',"yellow");
messages[68] = new Array('/dr/dr8600s.gif',       '<font size="4">Puerto Rico</font> <br> <font color="red" size="4"><b>Click for Map</b></font>',"yellow");
messages[69] = new Array('/dunedin/dunedins.jpg',       '<font size="4">Dunedin</font> <br> <font color="red" size="4"><b>Click for Map</b></font>',"yellow");
messages[70] = new Array('/dr/CARBAN.GIF',       '<font size="4">Drive I4 & I95</font> <br> <font color="red" size="4"><b>Click to drive along with us</b></font>',"yellow");
messages[71] = new Array('/dr/CARBAN.GIF',       '<font size="4">Daytona Bike Week</font> <br> <font color="red" size="4"><b>Click to drive along with us</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;
}

//-->


