/*************************************************************************
  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 commercial-roof-quote.html
messages[0]  = ['resources/HelpTagLogo.gif', 'unused', 180];
messages[1]  = ['resources/HelpTagLogo.gif', 'Please tell us what kind of materials you would like your roof to be made of.', 180];
messages[2]  = ['resources/HelpTagLogo.gif', 'Please tell us what the approximate square footage of the roof area that you need repaired, replaced, or installed is.  If you need the whole roof either installed or replaced, the square footage would be roughly akin to.', 180];
messages[3]  = ['resources/HelpTagLogo.gif', 'Please specify when you would like your roof work to be finished.  Although this is a non-binding estimate on your part, your potential roofing experts will be notified of your time constraints..', 180];
messages[4]  = ['resources/HelpTagLogo.gif', 'Please specify the 5 digit ZIP code (6 for Canada) for the location you need roof work completed.', 180];
messages[5]  = ['resources/HelpTagLogo.gif', 'unused', 180];
messages[6]  = ['resources/HelpTagLogo.gif', 'unused', 180];
messages[7]  = ['resources/HelpTagLogo.gif', 'unused', 180];
messages[8]  = ['resources/HelpTagLogo.gif', 'unused', 180];
messages[9]  = ['resources/HelpTagLogo.gif', 'unused', 180];

// used on residential-roof-quote.html
messages[10] = ['resources/HelpTagLogo.gif', 'unused', 180];
messages[11] = ['resources/HelpTagLogo.gif', 'Please tell us what kind of materials you would like your roof to be made of.', 180];
messages[12] = ['resources/HelpTagLogo.gif', 'Please specify when you would like your roof work to be finished.  Although this is a non-binding estimate on your part, your potential roofing experts will be notified of your time constraints.', 180];
messages[13] = ['resources/HelpTagLogo.gif', 'unused.', 180];
messages[14] = ['resources/HelpTagLogo.gif', 'unused', 180];
messages[15] = ['resources/HelpTagLogo.gif', 'Please specify the 5 digit ZIP code for the location you need roof work completed.', 180];
messages[16] = ['resources/HelpTagLogo.gif', 'unused', 180];
messages[17] = ['resources/HelpTagLogo.gif', 'unused', 180];
messages[18] = ['resources/HelpTagLogo.gif', 'unused', 180];
messages[19] = ['resources/HelpTagLogo.gif', 'unused', 180];
