/*************************************************************************
  This code is from Dynamic Web Coding at www.dyn-web.com
  Copyright 2001-5 by Sharon Paine 
  See Terms of Use at www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

function doTooltip(e, ar) {
    if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
    var cntnt = wrapTipContent(ar);
    var tip = document.getElementById( Tooltip.tipID );
    if ( ar[2] ) tip.style.width = ar[2] + "px";
    else tip.style.width = Tooltip.defaultWidth + "px";
    Tooltip.show(e, cntnt);
}

function hideTip() {
    if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
    Tooltip.hide();
}

function wrapTipContent(ar) {
    var cntnt = "";
    if ( ar[0] ) cntnt += '<div class="img"><img src="' + ar[0] + '" /></div>';
    if ( ar[1] ) cntnt += '<div class="txt">' + ar[1] + '</div>';
    return cntnt;
}

// tooltip content here
var messages = new Array();
// array elements: image file name, optional text, optional width of tooltip 
// NOTE: Be sure width you specify is at least image width + 2 X border-width + 2 X padding-width !

// used on industrial-lathe-quote.html
messages[0]  = ['resources/HelpTagLogo.gif', 'unused', 180];
messages[1]  = ['resources/HelpTagLogo.gif', 'Please tell us which type of CNC lathe best fits your needs.  If you are unsure, or if the lathe type you need is not featured in the question, please mark &quot;other,&quot; and fill in the blank.', 180];
messages[2]  = ['resources/HelpTagLogo.gif', 'Please tell us how many CNC lathe(s) you need.', 180];
messages[3]  = ['resources/HelpTagLogo.gif', 'Please tell us how you will use your CNC lathe(s) most of the time.', 180];
messages[4]  = ['resources/HelpTagLogo.gif', 'Please specify whether or not you would like a professional training on the use of your CNC lathe(s).', 180];
messages[5]  = ['resources/HelpTagLogo.gif', 'Please tell us how you would prefer to pay for your CNC lathe(s).  If you are unsure which choice would be best for your business, or if you would like to receive quotes for all three, please mark \"Unsure/no preference.\"', 180];
messages[6]  = ['resources/HelpTagLogo.gif', 'Please specify when you would like your CNC lathe(s) to be delivered.  Although this is a non-binding estimate on your part, your potential CNC lathe suppliers will be notified of your time constraints.', 180];
messages[7]  = ['resources/HelpTagLogo.gif', 'Please specify the 5 digit ZIP code for the location you want your CNC lathe(s) to be delivered to.', 180];
messages[8]  = ['resources/HelpTagLogo.gif', 'category 1, question 8', 180];
messages[9]  = ['resources/HelpTagLogo.gif', 'category 1, question 9', 180];

// used on industrial-router-quote.html
messages[10] = ['resources/HelpTagLogo.gif', 'unused', 180];
messages[11] = ['resources/HelpTagLogo.gif', 'Please tell us which type of CNC router best fits your needs.  If you are unsure, or if the router type you need is not featured in the question, please mark &quot;other,&quot; and fill in the blank.', 180];
messages[12] = ['resources/HelpTagLogo.gif', 'Please tell us how many CNC router(s) you need.', 180];
messages[13] = ['resources/HelpTagLogo.gif', 'Please tell us how you will use your CNC router(s) most of the time.', 180];
messages[14] = ['resources/HelpTagLogo.gif', 'Please specify whether or not you would like a professional training on the use of your CNC router(s).', 180];
messages[15] = ['resources/HelpTagLogo.gif', 'Please tell us how you would prefer to pay for your CNC router(s).  If you are unsure which choice would be best for your business, or if you would like to receive quotes for all three, please mark \"Unsure/no preference.\"', 180];
messages[16] = ['resources/HelpTagLogo.gif', 'Please specify when you would like your CNC router(s) to be delivered.  Although this is a non-binding estimate on your part, your potential CNC router suppliers will be notified of your time constraints.', 180];
messages[17] = ['resources/HelpTagLogo.gif', 'Please specify the 5 digit ZIP code for the location you want your CNC router(s) to be delivered to.', 180];
messages[18] = ['resources/HelpTagLogo.gif', 'category 2, question 8', 180];
messages[19] = ['resources/HelpTagLogo.gif', 'category 2, question 9', 180];

// used on air-compressor-quote.html
messages[20] = ['resources/HelpTagLogo.gif', 'unused', 180];
messages[21] = ['resources/HelpTagLogo.gif', '<p><strong>Rotary screw air compressors</strong><br /> are usually more expensive than reciprocating air compressors, but they are much better for constant use.  <br /><br /><strong>Reciprocating air compressors</strong><br /> are more affordable and are better for portable air compressors and home workshops.  <br /><br /><strong>Centrifugal air compressors</strong><br /> are used almost exclusively for large-scale industrial applications and are best when a lot of air is required.</p> <br />Please select the option that best fits your needs.  If you are still unsure what type of air compressor you need, or if you would like a type of air compressor that isn\'t featured in the question, please choose the \"Other\" option', 230];
messages[22] = ['resources/HelpTagLogo.gif', 'Please select the option that best fits your needs.  If you would like to use your air compressor for something not featured in the question set, or if you are unsure, please mark \"unsure, please advise/Other.\"', 180];
messages[23] = ['resources/HelpTagLogo.gif', 'Please select the option that best fits your needs.', 180];
messages[24] = ['resources/HelpTagLogo.gif', 'Please select the option that best fits your needs.  If you are not sure how much air pressure your air compressor needs, please mark \"Unsure/no preference.\"', 180];
messages[25] = ['resources/HelpTagLogo.gif', 'Please select the option that best fits your needs.  If you are not sure what size you would like your air compressor to be, please mark \"Unsure/no preference\"', 180];
messages[26] = ['resources/HelpTagLogo.gif', 'Please select the option that best fits your needs.  If you do not have a preference, or if you are not sure of what choice would be best, please select \"Unsure/ No Preference.\"', 180];
messages[27] = ['resources/HelpTagLogo.gif', 'Please select the option that best fits your needs.  The timeframes are just suggestions, however, and are non-binding.  However, your potential air compressor suppliers will be advised of your time constraints.', 180];
messages[28] = ['resources/HelpTagLogo.gif', 'Please specify the 5 digit ZIP code at the location you need the air compressor(s).', 180];
messages[29] = ['resources/HelpTagLogo.gif', 'Please select the option that best fits your needs.', 180];
