<!--
/*
This code is from Dynamic Web Coding 
www.dyn-web.com 
Copyright 2001 by Sharon Paine 
Permission granted to use this code as long as this 
entire notice is included.
*/

/* IMPORTANT: Put script after tooltip div or 
	 put tooltip div just before </BODY>. */

var dom = (document.getElementById) ? true : false;
var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
var ns4 = (document.layers && !dom) ? true : false;
var ie4 = (document.all && !dom) ? true : false;
var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;

// resize fix for ns4
var origWidth, origHeight;
if (ns4) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

// avoid error of passing event object in older browsers
if (nodyn) event = "nope";

///////////////////////  CUSTOMIZE HERE   ////////////////////
// settings for tooltip 
// Do you want tip to move with mouse movement along link?
var tipFollowMouse	= false;	
var tipWidth 			 	= 205;
var offX					 	= 20;	// how far from mouse to show tip
var offY					 	= 3; 
var tipFontFamily 	= "arial, helvetica, sans-serif";
var tipFontSize			= "8pt";
var tipFontColor		= "#000000";
var tipBgColor 			= "#ffffff";
var tipBorderColor 	= "#666666";
var tipBorderWidth 	= 1;
var tipBorderStyle 	= "solid";
var tipPadding		 	= 1;

// preload images to be placed in tooltip
//var img1 = new Image(100,100);	// (width,height)
// img1.src = "your.gif";


// variables for tooltip content 
var tip0 = '<img src="http://www.relocatemetoindiana.com/images/city/ANDERSON.gif" width="205" height="24" border="0"><br><table width="205" cellpadding=3 cellspacing=0 border=0><tr><td BGCOLOR="#ffffff"><font size="1" face="arial" color="#000000">Anderson is the county seat of Madison County. It is home to the Church of God and Anderson University. Attractions include the historic Paramount Theatre and the Gruenwald Home.'
var tip1 = '<img src="http://www.relocatemetoindiana.com/images/city/BLOOMINGTON.gif" width="205" height="24" border="0"><br><table width="205" cellpadding=3 cellspacing=0 border=0><tr><td BGCOLOR="#ffffff"><font size="1" face="arial" color="#000000">Bloomington is best known as the home of Indiana University with 40,0000 students on one of the loveliest university campuses in the U.S.'
var tip2 = '<img src="http://www.relocatemetoindiana.com/images/city/CARMEL.gif" width="205" height="24" border="0"><br><table width="205" cellpadding=3 cellspacing=0 border=0><tr><td BGCOLOR="#ffffff"><font size="1" face="arial" color="#000000">Carmel is an affluent suburb of Indianapolis and boasts its own emerging downtown area. It is home to large companies, such as HSBC, Conseco and McMillin Publishing, and to many companies on the cutting edge of their fields. It is in Hamilton County, one of the fastest growing counties in Indiana.'
var tip3 = '<img src="http://www.relocatemetoindiana.com/images/city/COLUMBUS.gif" width="205" height="24" border="0"><br><table width="205" cellpadding=3 cellspacing=0 border=0><tr><td BGCOLOR="#ffffff"><font size="1" face="arial" color="#000000">Columbus is the Bartholomew County seat. It is a small city with a big reputation for modern architecture. Six of its buildings are National Historic Landmarks.'
var tip4 = '<img src="http://www.relocatemetoindiana.com/images/city/EVANSVILLE.gif" width="205" height="24" border="0"><br><table width="205" cellpadding=3 cellspacing=0 border=0><tr><td BGCOLOR="#ffffff"><font size="1" face="arial" color="#000000">Located on a bend on the Ohio River, Evansville is known as the River City. Major industries include manufacturing, warehousing and distribution, retailing, health care, financial services and business services. The third largest city in Indiana, it prides itself as a safe, secure city offering Hoosier hospitality.'
var tip5 = '<img src="http://www.relocatemetoindiana.com/images/city/FORTWAYNE.gif" width="205" height="24" border="0"><br><table width="205" cellpadding=3 cellspacing=0 border=0><tr><td BGCOLOR="#ffffff"><font size="1" face="arial" color="#000000">Fort Wayne is an industrial center of northern Indiana, known for machinery manufacturing. It is home to the Lincoln Museum, Science Central, the restored Embassy Theatre and the Memorial Coliseum.'
var tip6 = '<img src="http://www.relocatemetoindiana.com/images/city/GARY.gif" width="205" height="24" border="0"><br><table width="205" cellpadding=3 cellspacing=0 border=0><tr><td BGCOLOR="#ffffff"><font size="1" face="arial" color="#000000">Gary borders Lake Michigan and is the home of Indiana University Northwest. The principal industrial area, the Calumet region, includes the cities of Gary, East Chicago, Hammond, and Whiting.'
var tip7 = '<img src="http://www.relocatemetoindiana.com/images/city/INDIANAPOLIS.gif" width="205" height="24" border="0"><br><table width="205" cellpadding=3 cellspacing=0 border=0><tr><td BGCOLOR="#ffffff"><font size="1" face="arial" color="#000000">Indianapolis is the state capital of Indiana and takes pride in its cultural heritage, reflected in its many musuems, and a re-vitalized downtown. Adding to the excitement of city life are the Indianapolis 500, Indiana Pacers, Indiana Fever, Indianapolis Colts, Indy Jazz Festival and the Indiana State Fair.'
var tip8 = '<img src="http://www.relocatemetoindiana.com/images/city/KOKOMO.gif" width="205" height="24" border="0"><br><table width="205" cellpadding=3 cellspacing=0 border=0><tr><td BGCOLOR="#ffffff"><font size="1" face="arial" color="#000000">Kokomo is known as the "City of Firsts" for, among other achievements, as a pioneer of American automobile manufacturing. Entrepreneur magazine and the National Policy Research Council named Kokomo as one of the hottest places for entrepreneurs.'
var tip9 = '<img src="http://www.relocatemetoindiana.com/images/city/LAFAYETTE.gif" width="205" height="24" border="0"><br><table width="205" cellpadding=3 cellspacing=0 border=0><tr><td BGCOLOR="#ffffff"><font size="1" face="arial" color="#000000">Lafayette is the seat of Tippecanoe County. It has a national award-winning downtown and a well diversified economy. Purdue University enriches the cultural scene.'
var tip10 = '<img src="http://www.relocatemetoindiana.com/images/city/MUNCIE.gif" width="205" height="24" border="0"><br><table width="205" cellpadding=3 cellspacing=0 border=0><tr><td BGCOLOR="#ffffff"><font size="1" face="arial" color="#000000">Muncie is home to Ball State University. It is a thriving convention center and boasts many attractions, including Oakhurst Gardens, Minnetrista Cultural Center and the Muncie Childrens Museum.'
var tip11 = '<img src="http://www.relocatemetoindiana.com/images/city/SOUTHBEND.gif" width="205" height="24" border="0"><br><table width="205" cellpadding=3 cellspacing=0 border=0><tr><td BGCOLOR="#ffffff"><font size="1" face="arial" color="#000000">South Bend is near the University of Notre Dame and campuses of the Indiana University system. It has been re-energized as the financial center of the Michiana area. The Morris Performing Arts Center is a nationally top-ranking theater. The South Bend area specializes in transportation equipment.'
var tip12 = '<img src="http://www.relocatemetoindiana.com/images/city/TERREHAUTE.gif" width="205" height="24" border="0"><br><table width="205" cellpadding=3 cellspacing=0 border=0><tr><td BGCOLOR="#ffffff"><font size="1" face="arial" color="#000000">Terre Haute is home to several campuses, including Indiana State University and one of the best engineering colleges in the nation, the Rose-Hulman Institute of Technology, just east of the city. The Historic National Road, US 40, runs through the heart of Terre Haute.'



////////////////////  END OF CUSTOMIZATION AREA  ///////////////////

////////////////////////////////////////////////////////////
//  initTip	- initialization for tooltip.
//		Global variables for tooltip. 
//		Set styles for all but ns4. 
//		Set up mousemove capture if tipFollowMouse set true.
////////////////////////////////////////////////////////////
var tooltip, tipcss;
function initTip() {
	if (nodyn) return;
	tooltip = (ns4)? document.tipDiv.document: (ie4)? document.all['tipDiv']: (ie5||ns5)? document.getElementById('tipDiv'): null;
	tipcss = (ns4)? document.tipDiv: 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) {
		if (ns4) document.captureEvents(Event.MOUSEMOVE);
		document.onmousemove = trackMouse;
	}
}
window.onload = initTip;

/////////////////////////////////////////////////////////////
//  doTooltip function
//			Assembles content for tooltip and writes it to tipDiv.
//			Call positionTip function from here if tipFollowMouse
//			is set to false.
//////////////////////////////////////////////////////////////
var t1,t2;	// for setTimeouts
var tipOn = false;	// check if over tooltip link
function doTooltip(evt,txt) {
	if (!tooltip) return;
	if (t1) clearTimeout(t1);	if (t2) clearTimeout(t2);
	tipOn = true;
	if (ns4) {
		tip = '<table bgcolor="' + tipBorderColor + '" width="' + tipWidth + '" cellspacing="0" cellpadding="' + tipBorderWidth + '" border="0"><tr><td><table bgcolor="' + tipBgColor + '" width="100%" cellspacing="0" cellpadding="' + tipPadding + '" border="0"><tr><td><span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + tipFontColor + ';">' + txt  + '</span></td></tr></table></td></tr></table>';
		tooltip.write(tip);
		tooltip.close();
	} else if (ie4||ie5||ns5) {
		tip = txt;
	 	tooltip.innerHTML = tip;
	}
	if (!tipFollowMouse) positionTip(evt);
}

var mouseX, mouseY;
function trackMouse(evt) {
	mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft;
	mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.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) {
		mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft;
		mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop;
	}
	// tooltip width and height
	var tpWd = (ns4)? tooltip.width: (ie4||ie5)? tooltip.clientWidth: tooltip.offsetWidth;
	var tpHt = (ns4)? tooltip.height: (ie4||ie5)? tooltip.clientHeight: tooltip.offsetHeight;
	// document area in view (subtract scrollbar width for ns)
	var winWd = (ns4||ns5)? window.innerWidth-20+window.pageXOffset: document.body.clientWidth+document.body.scrollLeft;
	var winHt = (ns4||ns5)? window.innerHeight+window.pageYOffset: document.body.clientHeight+document.body.scrollTop;
	// check mouse position against tip and window dimensions
	// and position the tooltip 
	if ((mouseX+offX+tpWd)>winWd) 
		tipcss.left = (ns4)? mouseX-(tpWd+offX): mouseX-(tpWd+offX)+"px";
	else tipcss.left = (ns4)? mouseX+offX: mouseX+offX+"px";
	if ((mouseY+offY+tpHt)>winHt) 
		tipcss.top = (ns4)? mouseY-(tpHt+offY): mouseY-(tpHt+offY)+"px";
	else tipcss.top = (ns4)? mouseY+offY: mouseY+offY+"px";
	t1=setTimeout("tipcss.visibility='visible'",100);
}

function hideTip() {
	if (!tooltip) return;
//	tipcss.visibility = "hidden";
	t2=setTimeout("tipcss.visibility='hidden'",100);
	tipOn = false;
}

//-->
