<!--

/*
Image w/ description tooltip- By Dynamic Web Coding (www.dyn-web.com)
Copyright 2002 by Sharon Paine
Visit http://www.dynamicdrive.com for this script
*/

/* 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 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= "Times New Roman, Times, serif";
var tipFontSize= "13px";
// 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= "#505050";
var tipBgColor= "#000000"; 
var tipBorderColor= "#111111";
var tipBorderWidth= 10;
var tipBorderStyle= "solid";
var tipPadding= 30;
//var tipBackground= "background-Image: url(imgs/loading.gif)";

// 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('imgs/ancest_draft.gif','Flash microsite for Ancestry.com. Includes intro flash film, flash activity and HTML components. All design and production','','');
messages[1] = new Array('imgs/ancest_connect.gif','Flash banner advertisement for Ancestry.com','','');
messages[2] = new Array('imgs/ances_draft.jpg','Flash ad for Ancestry.com','','');
messages[3] = new Array('imgs/doglatin.jpg','Doglatin Site - Art direction, design, animation, implementation','','');
messages[4] = new Array('imgs/motovoy1.jpg','Motovoy.com website design and implementation','','');
messages[5] = new Array('imgs/cassidy1.gif','Resume microsite for dirt bike racer, in Flash','','');
messages[6] = new Array('imgs/nuskin1.jpg','Flash Ad for Nuskin weight-loss product launch. All writing and production','','');
messages[7] = new Array('imgs/imanage.gif','Flash movie for iManage product and services. All design and production','','');
messages[8] = new Array('imgs/interlink_remotes1.jpg','Flash movie for Interlink Electronics OEM product. All design and production','','');
messages[9] = new Array('imgs/ehealth.jpg','Flash eHealth tool - a series of 10+ movies that a user can navigate through to learn about the eHealth product from Nuskin. All design and production','','');
messages[10] = new Array('imgs/symantec.jpg','Flash product review for Symantec security system. All design and production','','');
messages[11] = new Array('imgs/ancest_wanted.jpg','Flash ad for Ancestry.com product. All design and production','','');
messages[12] = new Array('imgs/novell1.gif','Flash product presenation for Novell product. All production and design','','');
messages[13] = new Array('imgs/dynix3.jpg','Flash intro/screensaver for Dynix trade show booth. All design and production','','');
messages[14] = new Array('imgs/change.jpg','Flash ad for a variety of campuses. All design and production','','');
messages[15] = new Array('imgs/ancest_census2.jpg','Flash microsite for Ancestry.com Census product. Includes intro flash film, flash activity and HTML components. All design and production','','');
messages[16] = new Array('imgs/dynix.jpg','Dynix corporate intranet, deployed worldwide. All design and production. Functioned also as webmaster','','');
messages[17] = new Array('imgs/ancest_census.jpg','Ancestry.com Flash intro to Census product. All design and production','','');
messages[18] = new Array('imgs/nextpage.jpg','Flash product movie for NextPage services. All design and production','','');
messages[19] = new Array('imgs/fullnelson.jpg','Flash site for FullNelson design studio. Some design, all animation design and production','','');
messages[20] = new Array('imgs/richard3.jpg','Flash product movie for Synergy insurance products. All design and production','','');
messages[21] = new Array('imgs/ancest_filmstrip.jpg','Flash ad for Ancestry.com product. All design and production','','');
messages[22] = new Array('imgs/video.gif','Site design for Video Chat company. All design and production','','');
messages[23] = new Array('imgs/agape.jpg','Site design and production for new york therapist','','');
messages[24] = new Array('imgs/horz.jpg','Flash intro/screensaver for Dynix trade show booth. All design and production','','');
messages[25] = new Array('imgs/instinct.jpg','Site for Tom Harrison, CEO of DAS Agency worldwide book publishing and tour. All design','','');
messages[26] = new Array('imgs/thmpsnbrnds.jpg','Logo design and site for Thompson Brands, umbrella for 3 divisions of Thompson candy and chocolate companies. All design and production','','');
messages[27] = new Array('imgs/hart.jpg','Logo design and site for non-profit organization specializing in medical care for the third world. All design and production','','');
messages[28] = new Array('imgs/airport_slc.gif','Flash movie and televtion ad for Salt Lake City Airport. Award winner. All design and production','','');
messages[29] = new Array('imgs/grnyellow.jpg','Event site for Medical Education conference. Designed for HSC','','');
messages[30] = new Array('imgs/interlink_meetings.jpg','Flash movie for Interlink Electronics product. All design and production','','');
messages[31] = new Array('imgs/sexy.jpg','Flash intro/ad for an restaurant/store combmination centered around an automobile collection. All design and production','','');
messages[32] = new Array('imgs/hippy.jpg','Flash invite for HP event. All production.','','');
messages[33] = new Array('imgs/motovoy3.jpg','Flash microsite for Motovoy.com for racing bikes. Intended with further development and budget as a shopping device for high-end racing parts. All photography, production and design','','');
messages[34] = new Array('imgs/missionties.gif','Animated television commercial for Missionties.com. All art direction and production','','');
messages[35] = new Array('imgs/blank.gif','More to come...','','');
messages[36] = new Array('imgs/orngprple.jpg','Registration site design for HSC','','');
messages[37] = new Array('imgs/entrusted.jpg','Directory for construction services with flash banners. All design site architecture and production','','');
messages[38] = new Array('imgs/sky_banner1a.jpg','Static ad banner for Ranexa and CVT Pharmaceuticals','','');
messages[39] = new Array('imgs/molecule.jpg','Testing interface designed for HSC','','');
messages[40] = new Array('imgs/hematog_orng.jpg','Registration site for HSC. All design','','');
messages[41] = new Array('imgs/schemamidwest.jpg','Site for Schema Therapy Midwest. All design and production.','','');
messages[42] = new Array('imgs/ifoundmore.jpg','Flash and HTML site for IFoundmore.com - a recruitment site for CompHealth. Site features Flash streaming Quicktime Real Player and Windows Media video. ','','');
messages[43] = new Array('imgs/bankcourt.jpg','Flash training interface for U.S. Bankruptcy Court case tracking product. All design and production','','');
messages[44] = new Array('imgs/mfrastr.jpg','Site and logo design for Mfrastructure - a marketing product services company. All design and production','','');
messages[45] = new Array('imgs/myogen_corp1.jpg','Site design for Myogen pharmaceutical corporate site. All design','','');
messages[46] = new Array('imgs/sleepcntr.jpg','Website resource center for Med-Ed faculty. Designed for HSC','','');
messages[47] = new Array('imgs/mock3.jpg','Testing interface for HSC training product. All design','','');
messages[48] = new Array('imgs/ranexa2.jpg','Ranexa.com product site design for CVT Therapeutics. All design','','');
messages[49] = new Array('imgs/lifeheart.jpg','Site design for LifeHeart.org - a resource site about heart health. All design completed for HSC','','');
messages[50] = new Array('imgs/MedImmune-FRC1.jpg','MedImmune resource portal design for Hyphen Health','','');
messages[51] = new Array('imgs/bloodtrans.jpg','Registration and resource site design for HSC','','');
messages[52] = new Array('imgs/homebound.jpg','Site design and production for Homewardbound.net - providing therapy services for wayward teens','','');
messages[53] = new Array('imgs/duosite.jpg','Dual registration site for two medical education programs. All design for HSC','','');
messages[54] = new Array('imgs/knob.jpg','Testing interface design for HSC - intended as flash application. All design','','');
messages[55] = new Array('imgs/nineblue.jpg','Site designs for Nine Blue travel information parent company','','');
messages[56] = new Array('imgs/hsc_cme.jpg','Corporate site for Health Science Communications Continuing Medical Education. All design','','');
messages[57] = new Array('imgs/databas_app.jpg','Flash application for large database of documentation on pharmaceutical product. All design for Hyphen Health','','');
messages[58] = new Array('imgs/eyexchange.jpg','Resource center site design for Eye Health medical education faculty. All design for HSC','','');
messages[59] = new Array('imgs/rituxan_media.jpg','Flash application design for Rituxan RA product. Contains Flash Video and Flash Paper content. All design','','');
messages[60] = new Array('imgs/mph.jpg','Heavily themed website, logo and application design for marketing product purveyor MarketingMPH. All design and production','','');
messages[61] = new Array('imgs/illustration1.jpg','Medical Method of Action illustration for HSC','','');
messages[62] = new Array('imgs/lindi.jpg','Site for musician Lindi Wiggins featuring downloadable MP3s and Flash music player. All design and production','','');
messages[63] = new Array('imgs/breastcanc.jpg','Registration and testing site for HSC. All design','','');
messages[64] = new Array('imgs/thmpsnorganics.jpg','Microsite for Thompsan Organics - featuring products. All design and production','','');
messages[65] = new Array('imgs/elsabelle.jpg','Site design and production for baby product and furniture retailer','','');
messages[66] = new Array('imgs/burton.jpg','Informationa and registration site for The Burton Group annual Catalyst convention. All design and production','','');
messages[67] = new Array('imgs/RIT_RA_public7.jpg','Rituxan information portal site. All design for Hyphen Health','','');
messages[68] = new Array('imgs/birdsite.jpg','Registration site for HSC. All design','','');
messages[69] = new Array('imgs/adhere2.jpg','Designs for Adhere.com corporate site. All design for Hyphen Health','','');
messages[70] = new Array('imgs/marketmph_banner1.jpg','Flash banner for MarketingMPH. All writing design and production','','');
messages[71] = new Array('imgs/HYP_corp_jp3.jpg','Design for Hyphen Health corporate site','','');
messages[72] = new Array('imgs/lasvegaskids.jpg','Site design for LasvegasKids.net - event and information travel site in many cities with focus on children and families','','');
messages[73] = new Array('imgs/cogn_md.jpg','Site design and production for Maryland therapist','','');
messages[74] = new Array('imgs/aceon1.jpg','ACEON product site for Hyphen Health. All design','','');
messages[75] = new Array('imgs/adora.jpg','Site design and flash banners plus shopping cart for Adora Chocolate. A Thompson Candy product. All production design and implementation','','');
messages[76] = new Array('imgs/sparkol_map.jpg','Myogen resource center for sales and faculty. Designed for Hyphen Health','','');
messages[77] = new Array('imgs/comphealt_cd.jpg','Flash CDROM interface for CompHealth. All design and production. Mac and PC compatible','','');
messages[78] = new Array('imgs/xbd_movie2.jpg','Pharmaceutical Method of Action Flash movie for HSC. All illustration, design and production','','');
messages[79] = new Array('imgs/zoom1.jpg','Newsletter product header design for MarketingMPH.com - design and production','','');
messages[80] = new Array('imgs/globalmtg1.jpg','Program design for Medical Education poster for HSC','','');
messages[81] = new Array('imgs/lyrica.jpg','Pfizer product Lyrica DVD interface design for HSC','','');
messages[82] = new Array('imgs/actofny.jpg','Advanced Cognitive Therapy branding and website design/production','','');
messages[83] = new Array('imgs/breast5.jpg','Program design for Medical Education poster for HSC','','');
messages[84] = new Array('imgs/cvt_corpsite1.jpg','Corporate website design for CVT','','');
messages[85] = new Array('imgs/leukemia5.jpg','Program theme design for Med Ed event. All design for HSC','','');
messages[86] = new Array('imgs/agilix.jpg','Corporate website design for Agilix - a software developer for business and education. All design and template production','','');
messages[87] = new Array('imgs/hcg_intranet.jpg','Intranet for Healthcare Consultancy Group. All design','','');
messages[88] = new Array('imgs/backpack.jpg','Software interface design for Agilix product Backpack. All design','','');
messages[89] = new Array('imgs/jazz_interface.jpg','Flash CDROM interface design with intro for HSC','','');
messages[90] = new Array('imgs/blank.gif','More to come...','','');
messages[91] = new Array('imgs/vip_banner.gif','LasVegasKids.net Flash banner for membership promotion. All design illustration and production','','');
messages[92] = new Array('imgs/phone_demo.jpg','Flash capabilities demo for Interlink Electronics. All design and production','','');
messages[93] = new Array('imgs/library_pwr.gif','Flash piece designed for Dynix convention booth screensaver and plasma animation. All design and production','','');
messages[94] = new Array('imgs/hsc_interface1.jpg','Interface design for Flash samples presentation. All design and production','','');
messages[95] = new Array('imgs/blank.gif','More to come...','','');
messages[96] = new Array('imgs/ribbon_intro.jpg','Flash intro for CDROM. All animation','','');
messages[97] = new Array('imgs/interlink_infield1.jpg','Flash product animation for Interlink Electronics. All design and animation','','');
messages[98] = new Array('imgs/jazz_intro.gif','Flash intro for CDROM. All animation','','');
messages[99] = new Array('imgs/faces_movie.jpg','Video loop for medical meeting created in After Effects. All animation','','');
messages[100] = new Array('imgs/oldwoman1.jpg','Flash intro for CDROM. All animation','','');
messages[101] = new Array('imgs/london_intro.jpg','Flash loop created for medical meeting. All animation','','');
messages[102] = new Array('imgs/breast_intro1.jpg','Flash CDROM intro. All animation','','');
messages[103] = new Array('imgs/ppr_ribbion_intro.jpg','Flash animated intro for CDROM. All design and animation','','');
messages[104] = new Array('imgs/worldmap_intro.jpg','Flash intro for CDROM. All animation','','');
messages[105] = new Array('imgs/blank.gif','More to come...','','');
messages[106] = new Array('imgs/purple_man_intro.jpg','Flash animation for CDROM intro. All animation','','');
messages[107] = new Array('imgs/foldermovie.jpg','Video loop for medical meeting created in After Effects. All animation','','');
messages[108] = new Array('imgs/lcic_intro.jpg','Flash animation loop for medical meeting. All design and animation','','');
messages[109] = new Array('imgs/voodoo.jpg','Flash Invitation with game for corporate event. Poke the heart with one of the pins. All design and production ','','');
messages[110] = new Array('imgs/CML_investigate2.jpg','Poster design for Medical Education Board meeting. All design for Health Science Communications','','');
messages[111] = new Array('imgs/nasal_intro.jpg','Flash invitation. All animation and design','','');
messages[112] = new Array('imgs/SABCSwrkshop2.jpg','Poster design for Medical Education event. All design for Health Science Communications','','');
messages[113] = new Array('imgs/motovoy2.jpg','HTML driven interactive piece for motorcycle racing sponsorship. All design and production','','');
messages[114] = new Array('imgs/blank.gif','More to come...','','');
messages[115] = new Array('imgs/schmitts_acctnt.jpg','Site design for accounting firm. All design and template production','','');
messages[116] = new Array('imgs/blank.gif','More to come...','','');
messages[117] = new Array('imgs/whale.jpg','Flash Webmercial for Pharmanex, promoting weight-loss program. All writing direction and production.','','');
messages[118] = new Array('imgs/adamscott.jpg','Flash CDROM - Microsite for racing team member. All design and production','','');
messages[119] = new Array('imgs/peo_cdrom.jpg','Informative Flash CDROM with voice-over for business promotion. All design production and talent direction','','');
messages[120] = new Array('imgs/blank.gif','More to come...','','');
messages[121] = new Array('imgs/brown_intro.jpg','Flash intro for CDROM. All production and design','','');
messages[122] = new Array('imgs/skulls.gif','Banner ad for LasVegasKids.net Halloween promotion. All writing design and production','','');
messages[123] = new Array('imgs/blank.gif','More to come...','','');
messages[124] = new Array('imgs/blank.gif','More to come...','','');
messages[125] = new Array('imgs/arthritis_intro.jpg','Animation loop for medical meeting. Created in AfterEffects. All production','','');
messages[126] = new Array('imgs/blank.gif','More to come...','','');
messages[127] = new Array('imgs/richard2.jpg','Large scale Flash presentation tool for Synergy Graphics - combining print functionality, storing user information, and 15 in-depth animations detailing products. All design and animation production. Also managed programming team','','');
messages[128] = new Array('imgs/fence.jpg','Flash sales piece produced for Pharmanex. All writing, design and production','','');
messages[129] = new Array('imgs/measure_nuskin1.jpg','Promotional Flash animation for weightloss program and competition. Pharmanex. All writing, design and production','','');
messages[130] = new Array('imgs/ehealth1.jpg','Dubbed the Wow Presentation this is a 3 minute flash piece promoting a business opportunity. Late 90s. All design and production','','');
messages[131] = new Array('imgs/atl.jpg','HTML corporate website. All design, production and product photography','','');
messages[132] = new Array('imgs/beach.jpg','Flash webmercial for weightloss program. All writing, production and design','','');
messages[133] = new Array('imgs/red_arrow.jpg','Poster design for Health Science Communications. All design','','');
messages[134] = new Array('imgs/care_heart.jpg','Brochure design for Health Science Communications. All design','','');
messages[135] = new Array('imgs/brain.jpg','Poster design for Health Science Communications. All design','','');
messages[136] = new Array('imgs/blank.gif','More to come...','','');
messages[137] = new Array('imgs/blank.gif','More to come...','','');
messages[138] = new Array('imgs/halloween.jpg','Halloween theme applied to LasVegasKids.net website for promotional purposes. All design and production','','');
messages[139] = new Array('imgs/vampire.gif','Banner ad for LasVegasKids.net Halloween promotion. All writing design and production','','');
messages[140] = new Array('imgs/neon_vegas.jpg','Neon LasVegasKids.net newsletter theme. All design and production','','');
messages[141] = new Array('imgs/ibahn.jpg','Site design for IBahn Meeting Consultants website. All design','','');
messages[142] = new Array('imgs/eovegas.jpg','Young Entrepreneur Organization HTML email template design. All design and production','','');
messages[143] = new Array('new/3steps.gif','Flash banner. All animation','','');
messages[144] = new Array('new/10younger.gif','Flash banner. All design and animation','','');
messages[145] = new Array('new/bluepeople.gif','Flash banner for Charter Business. All design and animation','','');
messages[146] = new Array('new/aceoncourt.gif','Flash banner. All design and animation','','');
messages[147] = new Array('new/charterbundle.gif','Flash banner for Charter Communications. All design and animation','','');
messages[148] = new Array('new/cars.gif','Interactive Flash banner for AAA Auto Insurance. All design and animation','','');
messages[149] = new Array('new/chefsdiet.jpg','Flash animation series for Chefsdiet.com. All design writing and animation. 11 animations in total','','');
messages[150] = new Array('new/cindycraw.jpg','Flash banner. All design and animation','','');
messages[151] = new Array('new/evree.gif','Flash animation for Evree.com. All writing design and animation','','');
messages[152] = new Array('new/game.gif','Flash banner for AAA Auto Insurance. All animation','','');
messages[153] = new Array('new/stayyoung.gif','Fash banner. All design and animation','','');
messages[154] = new Array('new/livingroom.gif','Flash banner. All design and animation','','');
messages[155] = new Array('new/pavement.gif','Flash banner for AAA Auto Insurance. All animation','','');
messages[156] = new Array('new/springinto.jpg','Flash banner for AAA Auto Insurance. All design and animation','','');
messages[157] = new Array('new/signs.gif','Flash banner for Charter Business Products. All animation','','');
messages[158] = new Array('new/3m.jpg','Flash cartoon presentation for 3M Data products. All design and animation','','');
messages[159] = new Array('new/slider.jpg','Flash banner. All animation','','');
messages[160] = new Array('new/workingrx.jpg','Flash sales presentation for WorkingRX. All design and animation','','');
messages[161] = new Array('new/revolutionary.gif','Flash banner. All design and animation','','');
messages[162] = new Array('new/ryanskate.gif','Flash banner. All animation','','');
messages[163] = new Array('new/rollover.jpg','Flash banner. All animation','','');
messages[164] = new Array('new/hello.gif','Flash banner for Charter Business Telephone. All design and animation','','');
messages[165] = new Array('new/fathersday.jpg','Charter Communications HD TV spot. All design and production in After Effects','','');
messages[166] = new Array('imgs/blank.gif','More to come...','','');
messages[167] = new Array('imgs/blank.gif','More to come...','','');
messages[168] = new Array('imgs/blank.gif','More to come...','','');
messages[169] = new Array('imgs/blank.gif','More to come...','','');
messages[170] = new Array('imgs/blank.gif','More to come...','','');
messages[171] = new Array('imgs/blank.gif','More to come...','','');
messages[172] = new Array('imgs/blank.gif','More to come...','','');
messages[173] = new Array('imgs/blank.gif','More to come...','','');
messages[174] = new Array('imgs/blank.gif','More to come...','','');
messages[175] = new Array('imgs/blank.gif','More to come...','','');

////////////////////  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    background="imgs/loading.gif"
// 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 class="tdback" 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 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;
//		tipcss.backgroundImage = tipBackground;
	}
	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
/////////////////////////////////////////////////
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 (messages[num][4])	var curBackground = messages[num][4];
//	else curBackground = tipBackground;
	if (ns4) {
		var tip = '<table bgcolor="' + tipBorderColor + '" width="' + tipWidth + '" cellspacing="0" cellpadding="' + tipBorderWidth + '" border="0"><tr><td><table bgcolor="' + curBgColor + '" width="100%" cellspacing="0" cellpadding="' + tipPadding + '" border="0"><tr><td>'+ startStr + messages[num][0] + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr + '</td></tr></table></td></tr></table>';
		tooltip.write(tip);
		tooltip.close();
	} else 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) {
	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-20+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)? winHt-(tpHt+offY): winHt-(tpHt+offY)+"px";
	else tipcss.top = (ns4)? mouseY+offY: mouseY+offY+"px";
	if (!tipFollowMouse) t1=setTimeout("tipcss.visibility='visible'",100);
}

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

//-->
