// <script language="JavaScript" type="text/javascript">

/***********************************************
* 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
***********************************************/

// June 23/10

/* 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
var tipWidth= 480;
var offX= 10;	// how far from mouse to show tip
var offY= 12;
var tipFontFamily= "Verdana, arial, helvetica, sans-serif";
var tipFontSize= "9pt";
// 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 (description, optional bgColor, optional textcolor)
var messages = new Array();
// multi-dimensional arrays containing:
// text for tooltip
// optional: bgColor and color to be sent to tooltip

// The following will preload images, makes tooltip windows appear quicker.
// document.write("<img src='air2-graphics/xyz.jpg' style='display: none'>")

messages[0] = new Array('A pop-up window with additional information will appear when you place your mouse over each of the following headings.',"#DDECFF");

// The Platform
messages[1] = new Array("<strong><center>** The Platform **</center></strong><br>&bull;&nbsp;We specifically chose a purpose-built unmanned aerial photography platform with a multiple rotor configuration because of it's compact design, minimal moving parts and inherent stability.<br><img src='air2-graphics/preview2.jpg' align=right border=2 width=195 height=124 vspace='4' hspace='3'><br>&bull;&nbsp;The system is equipped with military grade technology, sophisticated electronics that aid in it's stability and multiple safety systems.<br><br>&bull;&nbsp;The maneuverability and efficiency of this system is unmatched by any other aerial photography platform. These technologies, coupled with high quality vibration dampened camera mounts, allow us to put digital cameras and camcorders into locations never before possible.<br><br>&bull;&nbsp;We can capture images &amp; video from a few meters overhead up to 100 meters in the air.<br><br>&bull;&nbsp;The entire system was designed, developed and is manufactured in Canada.<br>","#DDECFF");

// Real Time
messages[2] = new Array("<table border=0 cellpadding=0 cellspacing=0><tr><td valign=top><strong><center>** Real Time **</center></strong><br>&bull;&nbsp;With wireless real-time video streaming from the helicopter, aerial photography and videography has never been easier. Using streaming video technology in conjunction with high-resolution colour video goggles or a ground based video monitor our clients can view their subject at altitude in real-time!</td><td><img src='air2-graphics/video-goggles.jpg' align='right' border=2 width=175 height=130 hspace='3' vspace='4'></td></tr></table>&bull;&nbsp;With this level of technology at our disposal, we are able to place our system in the same location (latitude, longitude &amp; altitude) time after time, permitting us to supply you with a unique series of work-in-progress images as your project progresses.<br><br><img src='air2-graphics/real-time1a.jpg' align='right' border=2 width=220 height=260 hspace='3' vspace='4'>&bull;&nbsp;From the ground station we can monitor many aspects of the UAV's performance in real time, such as:<br>&nbsp;. On-Board Battery Voltage<br>&nbsp;. Data Link Quality<br>&nbsp;. Number of GPS Satellites<br>&nbsp;. GPS Signal Quality<br>&nbsp;. Heading &amp; Bearing<br>&nbsp;. Throttle, Speed &amp; Climb Rate<br>&nbsp;. Altitude (GPS & Barometric)<br>&nbsp;. Artificial Horizon<br>&nbsp;. Magnetometer Readings<br>&nbsp;. Attitude (Roll, Pitch, Yaw)<br>&nbsp;. Temperature &amp; Throttle<br>&nbsp;. Latitude & Longitude<br>&nbsp;. GPS Accuracy<br><br>","#DDECFF");

// Safety First
messages[3] = new Array("<img src='air2-graphics/blvd-dam.jpg' align='right' border=2 width=150 height=243 hspace='3' vspace='4'><strong><center>** Safety First **</center></strong><br>&bull;&nbsp;Public safety is always our main concern therefore we only operate under strict Transport Canada guidelines.<br><br>&bull;&nbsp;A site inspection is required prior to quotation. We attend all sites in person and carry out a risk assessment. At the same time mapping co-ordinates are obtained and plotted into a portable GPS unit, following a full brief received from the client on the exact task required.<br><br>&bull;&nbsp;Operating in high winds or other adverse weather conditions can be risky resulting in reduced visability, reduced vehicle stability and poor image/video quality. It is up to our crew to decide if the weather is satisfactory for flying at that time.<br><br>&bull;&nbsp;We will not operate directly <strong>over</strong> crowds or in an area we deem public safety would be at risk.<br><br>&bull;&nbsp;Please DO NOT ask us to spy on someone! We will refuse the request and the photo assignment will be deemed to have been cancelled by the client.","#DDECFF");

// Services Overview
messages[4] = new Array("<strong><center><img src='air2-graphics/con-college.jpg' align=right border=2 width=220 height=122  vspace='4' hspace='3'>** Services Overview **</center></strong><br>&bull;&nbsp;Our normal operating altitude is up to 300 feet (over 30 stories), although we've found that most tasks can be completed at much lower altitudes.<br><br>&bull;&nbsp;As with all photography, lighting is a big factor. For aerial photography, the lighting is best during the morning or late in the day, when the low-angle sun creates long, dramatic shadows. Ideally, you also want a clear and calm day, because hazy weather makes for murky photos, and turbulence may cause image blur and missed compositions.","#DDECFF");

// Applications #1
messages[5] = new Array("<img src='air2-graphics/elevator.jpg' align='right' border=2 width=210 height=190 vspace='4' hspace='3'><strong><center>How our aerial photography/videography services can benefit you:</center></strong><br><strong>&nbsp;Engineers:</strong> The variety of high-resolution images we can provide you will help you plan, inspect, and display your work like never before. Commercial inspections of buildings, bridges, wind turbines, radio towers, chimney or dangerous structures can easily be assessed with close up video relayed live to your team for analyses. All high resolution images are recorded and can be played back for further inspection by your own experts at a later date.<br><br><strong>&nbsp;Construction:</strong> Aerial photos can be used to document your construction project, site survey, groundbreaking, progress and completion of your project. Our system can easily navigate your site and can provide you with low altitude perspectives that would be impossible to obtain with a full sized aircraft.<br><br><strong>&nbsp;Architects:</strong> We can supply you with unique work-in-progress photos for your latest project, simply tell us what angle and altitude you would like to view your structure from and we will capture it. Provide us with a building layout, indicate the locations and elevations you wish to view from and we will do the rest.<br><br><strong>&nbsp;Developers:</strong> Do you realize we can show you what the view will be like from any window in a proposed development or renovation? We can provide the balcony view for a new condominium development or the office view for your new building before building construction has started.<br><br><strong>&nbsp;Legal &amp; Insurance:</strong> Aerial photos can be used for accident investigation, land use determination, property line disputes, etc. They also offer an opportunity to document property, improvements or damage, and could make a difference in the event of an insurance claim.","#DDECFF");

// The Crew
messages[6] = new Array("<img src='air2-graphics/ppoc-ont-sml.gif' align=right border=0 width=65 height=76 hspace='3' alt='ppoc logo'><strong><center>** The Crew **</center></strong><br>&bull;&nbsp;Our primary photographer is a member of the Professional Photographers of Ontario and the Professional Photographers of Canada.<br><br><img src='air2-graphics/opg-mission.jpg' align=left border=2 width=118 height=130 vspace='4' hspace='3'>&bull;&nbsp;We encourage our clients to come out to the shoot and participate in the process. You'll find the process interesting and you won’t need to worry about cramped conditions, airsickness or heights.<br><br>&bull;&nbsp;Our pilot is a member of the Remote Aerial Photography Association and Unmanned Systems Canada.<br><br>&bull;&nbsp;We are fully insured for business operations and approved by Transport Canada when conducting Special Flight Operations with our remotely piloted system.","#DDECFF");

// Camera & Video Systems
messages[7] = new Array("<strong><center>** Camera &amp; Video Systems **</center></strong><br>&bull;&nbsp;The system is currently equipped with a 1080p Panasonic HD video camera, a 10 megapixel digital camera and a micro-analog video camera. We can provide post processing of video and still mages or deliver unaltered original files to the client.<br><br><img src='air2-graphics/preview1.jpg' align=right border=2 width=264 height=149 vspace='4' hspace='3'>&bull;&nbsp;The platform uses custom designed camera mounts as part of its Variable Payload System. These camera mounts are specifically designed to eliminate vibration and ensure clear photographs and video. Each camera mount uses oil-filled spring-loaded shock absorbers, tuned and arranged to optimally support each camera.<br><br>&bull;&nbsp;Future system plans include investigating low-light/infrared cameras. The system can be equipped with a variety of imaging systems including a state of the art FLIR (forward looking infrared) camera which can identify hot spots in mechanical &amp; electrical equipment or assist in commercial &amp; residential heat loss location.<br>","#DDECFF");

// New Perspectives
messages[8] = new Array("<strong><center>** New Perspectives **</center></strong><br>&bull;&nbsp;We can capture remarkable high-resolution photographs &amp; video with this system at low altitudes that simply would not be possible with a full-size aircraft.<br><br><img src='air2-graphics/silver-harbour.jpg' align=right border=2 width=220 height=140 vspace='4' hspace='3'>&bull;&nbsp;Operating at lower altitudes will give you higher quality images with greater details, and that unique perspective that better serves your needs.<br><br>&bull;&nbsp;We can also fly our system into limited space situations, showing you perspectives that have been previously unattainable.<br><br>&bull;&nbsp;Does your building have a grand entrance or foyer with features that are only seen from ground level? Has your building undergone major renovations? With our electrically powered aerial photography platform, we can fly inside your building and highlight those features from angles that were previously impossible or impractical to photograph.","#DDECFF");

// Transport Canada
messages[9] = new Array("<strong><center>** Transport Canada Requirements **</center></strong><br>&bull;&nbsp;Transport Canada air regulations for UAV's require that we make application for and obtain a Special Flight Operation Certificate (SFOC) in advance of each flight. We must be in possession of this certificate when making the flight. Typical SFOC application processing times are approximately 4 weeks.<br><br><img src='air2-graphics/bare-point.jpg' align=right border=2 width=220 height=119 vspace='4' hspace='3'>&bull;&nbsp;The application for a SFOC requires that we provide Transport Canada with detailed flight information such as the purpose of the flight, the location, the property owner, the proposed dates and times, a description of the UAV to be used, assurance of the air-worthiness of the vehicle, adequate public liability and property damage insurance coverage and all of the safety measures we propose to take to assure the flight will be carried out safely and thus minimize any risk to people or property.<br><br>&bull;&nbsp;There are minimal regulations governing the recreational use of remote controlled aircraft. However, if it performs a specific purpose, or is used commercially, then it is considered by Transport Canada to be an Unmanned Air Vehicle (UAV), and must conform to the regulations set out in the Canadian Aviation Regulations.","#DDECFF");

// Training Sessions
messages[10] = new Array("<img src='air2-graphics/tx-in-hands.jpg' align='right' border=2 width=128 height=100 vspace='3' hspace='3'><strong><center>** Training Sessions **</center></strong><br>&bull;&nbsp;You're more than welcome to drop in at one of our indoor winter training sessions. We're planning to be at the Sports Dome (Thunder Bay, CLE grounds) on the following dates:<br>&nbsp;. Nov 22/09 - 2:30pm-3:30pm&nbsp;&nbsp;<strong>**&nbsp;Date Change **</strong><br>&nbsp;. Dec 13/09 - 4:30pm-5:30pm<br>&nbsp;. Jan 17/10 - 2:00pm-3:00pm&nbsp;&nbsp;<strong>** Cancelled **</strong><br><br><center><strong>Please contact us to confirm training dates &amp; times.</strong></center>","#DDECFF");

// FAQ #1
messages[11] = new Array("<img src='air2-graphics/floodway.jpg' align='right' border=2 width=120 height=153 vspace='4' hspace='3'><strong><center>** Frequently Asked Questions **</center></strong><br><strong>Why should we choose your service over a traditional aircraft?</strong><br>We offer several advantages:<br>&bull;&nbsp;We don't have minimum altitude limitations.<br>&bull;&nbsp;We can produce oblique (low-angle) views of your property that are impossible to get with a full-size aircraft.<br>&bull;&nbsp;Our system is environmentally friendly, no fuel, no exhaust and very quiet.<br>&bull;&nbsp;Our clients can be on-site during the shoot with no worries about cramped conditions, airsickness or heights.<br><br><strong>I want the photos taken on a specific day for an event.</strong><br>&bull;&nbsp;All aircraft are at the mercy of the weather, however we will endeavour to meet your requirements.<br>&bull;&nbsp;Poor weather conditions such as fog that would ground traditional aircraft generally won't affect us.<br><br><strong>How long can you fly?</strong><br>&bull;&nbsp;Our system is electric with typical flight time between 10 and 20 minutes, depending upon payload and weather conditions.<br>&bull;&nbsp;When the battery pack is almost exhausted, we simply land the vehicle and replace the exhausted battery pack with a fully charged one.<br>&bull;&nbsp;We have several battery packs and a portable charging station on-site.<br><br><strong>Can you really fly indoors?</strong><br>&bull;&nbsp;Yes. Our system is completely electric and very quiet.<br>&bull;&nbsp;All we need is a location with a large open unobstructed area, such as a Sports Dome or an Auditorium. As a safety precaution we also require the area beneath our vehicle to be unoccupied.","#DDECFF");

// FAQ #2
messages[12] = new Array("<img src='air2-graphics/street.jpg' align='right' border=2 width=120 height=213 vspace='4' hspace='3'><strong><center>** Frequently Asked Questions (Part 2) **</center></strong><br><strong>We have our own graphics department.<br>Can we acquire the original files and process them ourselves?</strong><br>&bull;&nbsp;Yes you can. Processing your files in-house may reduce your costs and allow you greater flexibility in the 'look &amp; feel' of the finished product.<br><br><strong>How much lead time do you require?</strong><br>&bull;&nbsp;We need at least 5 weeks notice. At the moment, it takes approximately 4 weeks for our SFOC (Special Flight Operations Certificate) application to be processed and approved by Transport Canada.<br><br><strong>What about the Winter?</strong><br>&bull;&nbsp;Our primary issue with cold temperatures is reduced flight times.<br><br><strong>Do your SFOC permits expire?</strong><br>&bull;&nbsp;Yes they do. Although a permit can be valid for a period of several weeks which gives us plenty of time in case the weather isn't co-operating.<br><br><strong>Sounds interesting, what's it going to cost?</strong><br>&bull;&nbsp;Each job will be priced individually as there are many factors involved, such as who will be processing the images, amount of flight time required, are we shooting stills or video (or both) and type of aircraft required.<br><br><strong>&nbsp;What about Gift Certificates?</strong><br>&bull;&nbsp;Looking for that special, unique gift? Give your friends or loved ones the gift of aerial photography! Please contact us to discuss location, scheduling, etc.","#DDECFF");

// Applications #2
messages[13] = new Array("<img src='air2-graphics/marina.jpg' align='right' border=2 width=119 height=217 vspace='4' hspace='3'><strong><center>** Typical Applications (Part 2) **</center></strong><br><strong>&nbsp;Retirement Homes &amp; Shopping Centres:</strong> Virtual tours of your premises or venues take on a whole new meaning when we can literally fly down the approach roads, around the property and inside the buildings.<br><br><strong>&nbsp;Golf Courses:</strong> Aerial photos &amp; video tours of club events, signature holes and tournaments can be used for scorecards, websites, hole in one plaques and other advertising or fundraising activities.<br><br><strong>&nbsp;Resorts, Hotels &amp; Motels:</strong> Allow us to present you with high-resolution aerial photographs/video of your business. Display your aerial photographs in your main lobby, and outshine your competition with the unique ways in which we will help you display your property.<br><br><strong>&nbsp;Landscaping:</strong> Aerial photos can assist in providing unique portfolios for the landscaper. Aerial photos of pre-landscaped properties can be used to demonstrate proposed improvements.<br><br><strong>&nbsp;Realtors:</strong> Entice your clients with high quality marketing materials. We will help you show off that tough to sell house from a unique perspective, visually setting your listing apart from others in advertising.","#DDECFF");

// Applications #3
messages[14] = new Array("<img src='air2-graphics/golf-course.jpg' align='right' border=2 width=115 height=163 vspace='4' hspace='3'><strong><center>** Typical Applications (Part 3) **</center></strong><br><strong>&nbsp;Marketing Firms:</strong> In an extremely competitive market, wouldn’t it be nice to actually make people stop and ask, 'how did they get that picture?' Once you see the reaction people have to low-altitude oblique images, the value of our services becomes very apparent.<br><br><strong>&nbsp;Government:</strong> Aerial photos for traffic issues, planning and zoning, parks and recreation make excellent documentation for public meetings and presentations.<br><br><strong>&nbsp;Weddings:</strong> Make your special day a day to remember with unique aerial shots of your wedding venue, 360° video of your guests or even a tour of the church and grounds. We can supply our footage to your photographer who can then integrate our images into your own video or photo album of your special day.<br><br><strong>&nbsp;Surveying &amp; Orthography:</strong> Utilizing image processing and analysis software, our images can be used to measure the distances, angles, and areas of objects on the ground. Being able to fly at low altitudes further increases the accuracy of these measurements.<br><br><strong>&nbsp;Vertical Sporting Events:</strong> Just imagine the images we can capture at outdoor activities such as ice climbing or rock climbing.<br><br>&nbsp;&nbsp;The possibilities are almost endless...<br>","#DDECFF");

// blog
messages[15] = new Array("Air2You's blog contains notes on some of the behind the scenes activities and other goings on.","#DDECFF");

// FAQ #3
messages[16] = new Array("<img src='air2-graphics/snow.jpg' align='right' border=2 width=148 height=218 vspace='4' hspace='3'><strong><center>** Frequently Asked Questions (Part 3) **</center></strong><br><strong>Can you fly in the rain or when it's snowing?</strong><br>&bull;&nbsp;Light rain normally won't cause problems as long as we have good visibility. It will be up to our crew to decide if the weather is satisfactory for flying at that time.<br>&bull;&nbsp;Flying during a light snowfall usually doesn't bother the vehicle either, as with flying in other adverse weather conditions the final go/no-go decision will be up to our crew.<br><br><strong>&nbsp;Why use a remotely piloted system?</strong><br>&bull;&nbsp;There are many drawbacks to using planes for low-level aerial photography. Of course, the biggest drawback is the cost! Commercially, you need to hire a plane with a pilot and a photographer. The plane alone will set you back about $250-$350/hr. The pilot and photographer will typically cost you that much again. One of the most difficult photos to capture is from heights between 50 feet and 300 feet. Planes are prohibited from low level flights above populated areas, so your photo would be taken from a higher altitude, on a single pass at about 150 to 180 KPH. You can explain to the pilot and photographer what you want, but if the shoot has to be done over, you will be paying the same fees again.<br>&bull;&nbsp;Helicopters offer a much slower and more maneuverable platform, but minimums can range from $500 to $600 dollars before they even leave the ground. Once in the air, they will cost about $1200 to $1500 per hour.<br>&bull;&nbsp;Modern technology, and advances in remotely controlled systems have made it possible to use UAV's for aerial photography, allowing for photographic access to those areas previously restricted from planes and helicopters. Our Draganflyer X6 system is capable of GPS position hold which provides for a very stable aerial platform and the ability to change its position in a very precise manner.<br><br><strong>My project needs to be photographed from a higher altitude.</strong><br>&bull;&nbsp;We limit our UAV operations to an altitude of 300' (for legal &amp; safety reasons) and use full-size aircraft when necessary, preferably helicopters but fixed wing aircraft are also available.","#DDECFF");

// applications & faq header
messages[17] = new Array("This list seemed to take on a life of its own and became larger than expected. Each #'d item to the right will display a single page of the list.","#DDECFF");

// odds 'n ends
messages[18] = new Array("<strong><center>** Odds 'n Ends **</center></strong><br>The following is a collection of notes which don't easily fit into any of the other categories:<ul style='text-align:left; font-family:verdana,arial,helvetica,sans-serif; font-size:9pt; color:black; list-style-type:lower-roman; list-style-image:none'><li>The client is responsible for any model or property releases, etc that may be required.<li>Our client will have full copyright/ownership of all images/video material. A photo credit is requested where practical and we retain the right to display the images/video material for promotional purposes only.<li>Site inspections:<ul style='text-align:left; font-family:verdana,arial,helvetica,sans-serif; font-size:9pt; color:black; list-style-type:lower-roman; list-style-image:none'><li>A site inspection is required prior to the quotation, the cost will be agreed and invoiced in advance.<li>We attend all sites in person and carry out a risk assessment. At the same time mapping co-ordinates are obtained and plotted into a portable GPS unit, following a full brief received from the client on the exact task required.</ul></ul>","#DDECFF");

// Tech info - the numbers
messages[19] = new Array("<strong><center>** Tech Info - some numbers for the curious **</center></strong><br><table border=0 width='100%' cellpadding=0 cellspacing=0><tr><td><img src='air2-graphics/sigma.gif' align='right' border=0 width=31 height=35 vspace='20' hspace='20'><strong>Size:</strong><br>Width: 99cm<br>Height: 26cm<br>Length: 85cm<br><br><strong>On Board Sensors:</strong><br>3 Solid State MEMS Gyros<br>3 Solid State MEMS Accelerometers<br>3 Magnetometers<br>1 Barometric pressure sensor<br>1 GPS receiver</td><td><strong>Flight Characteristics:</strong><br>Climb Rate: 7m/s<br>Turn Rate: 90&deg;/sec<br>Cruise speed: 10 km/h<br>Maximum speed: 50 km/h<br>Maximum Altitude (AGL): 650m<br>Max Operating Alt. (ASL): 2500m<br><br><strong>Materials:</strong><br>Carbon Fibre<br>Glass Filled Injected Nylon</td></tr></table>","#DDECFF");

// Paypal info
messages[20] = new Array("PayPal can securely process transactions when using a major credit card. You no longer need a PayPal account when using PayPal to handle online purchases or payments.","#DDECFF");

messages[21] = new Array("Test description","black","white");

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


// 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 valign="top" width="100%" style="text-align:left;">';
var midStr = '';
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][1])	var curBgColor = messages[num][1];
	else curBgColor = tipBgColor;
	if (messages[num][2])	var curFontColor = messages[num][2];
	else curFontColor = tipFontColor;
	if (ie4||ie5||ns5) {
		var tip = startStr + '<span style="font-family:' + tipFontFamily + '; background-color:' + tipBgColor + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][0] + '</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) {
		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>')

// </script>
