﻿
var tooltipTxt = new Array()
tooltipTxt[0] = "$10 Off any purchase of $60 + FREE Shipping";
tooltipTxt[1] = "$20 Off any purchase of $100 + FREE Shipping";
tooltipTxt[2] = "$50 off any purchase of $200 + FREE Shipping";

var tooltipTxtColeman = new Array()
tooltipTxtColeman[0] = "15 % Off";
tooltipTxtColeman[1] = "20 % Off";
tooltipTxtColeman[2] = "30% Off any purchase of $60 or more";

var tooltipTxtEASports = new Array()
tooltipTxtEASports[0] = "$5 off Game Purchase + FREE shipping";
tooltipTxtEASports[1] = "$10 off Game Purchase + FREE shipping";

var tooltipTxtMassage = new Array()
tooltipTxtMassage[0] = "10% off an Introductory 1-1/2 Hour Massage Session";
tooltipTxtMassage[1] = "10% off an Introductory Hot-Stone Massage";

var tooltipTxtKennedySpace = new Array()
tooltipTxtKennedySpace[0] = "$5 off each admission to Kennedy Space Center Visitor Complex (up to 6 people)";
tooltipTxtKennedySpace[1] = "Get 15% off Astronaut Training Experience";
tooltipTxtKennedySpace[2] = "Buy one Space Pass, Get One Free";

var tooltipTxtNorwegianCruise = new Array()
tooltipTxtNorwegianCruise[0] = "Up to $100 on-board credit";
tooltipTxtNorwegianCruise[1] = "$300 on-board credit when booking for Suites and Villas on 7-Day or longer cruises";

var tooltipTxtTaylorMade = new Array()
tooltipTxtTaylorMade[0] = "$5 off one dozen TP BLACK golf balls";
tooltipTxtTaylorMade[1] = "$5 off one dozen TP BURNER golf balls";
tooltipTxtTaylorMade[2] = "$5 off one dozen BURNER golf balls";
tooltipTxtTaylorMade[3] = "$10 off one dozen Penta golf balls";
tooltipTxtTaylorMade[4] = "$15 off men’s ClimaProof Wind Half-Zip Shirt";
tooltipTxtTaylorMade[5] = "$15 off men’s ClimaProof Half-Zip Fleece Pullover";
tooltipTxtTaylorMade[6] = "FREE Burner 09 Driver [$149 value] with purchase of R9 or BURNER irons [set of 8]";
tooltipTxtTaylorMade[7] = "FREE pair of select INNOLUX 2.0 Adidas golf shoes with purchase of $399 driver or more";
tooltipTxtTaylorMade[8] = "$15 off Women’s ClimaProof Wind Full-Zip Jacket";
tooltipTxtTaylorMade[9] = "$15 off Women’s ClimaWarm Fleece Jacket";
tooltipTxtTaylorMade[10] = "$25 off the Daytona, Fontana, Monte Carlo and Rossa Itsy Bitsy Putters";
tooltipTxtTaylorMade[11] = "$50 off with the purchase of a $300 TaylorMade gift card";
tooltipTxtTaylorMade[12] = "$100 off with the purchase of a $750 TaylorMade gift card";

var tooltipTxtYosemite = new Array()
tooltipTxtYosemite[0] = "Buy One Valley Floor Tour, Get One Free";
tooltipTxtYosemite[1] = "Buy one, all-day adult, full-price ticket, get one Badger Pass Ski Area Lift Ticket Free";
tooltipTxtYosemite[2] = "Get 2 free Yosemite “Stay and Play” passes with a one-night stay in any Delaware North Property";

var tooltip_sbl = false;
var tooltip_str = false;
var tooltip_Container = false;
var productInfo_iframe = false;
var tooltip_is_msie = false;
var sbl_shadowSize = 4;

if (navigator.userAgent.indexOf('MSIE') >= 0)
{
	tooltip_is_msie = true;
}

function showTooltip(e, tooltipTxt)
{
	if (!tooltip_Container)
    {
        tooltip_Container = document.createElement('DIV');
        tooltip_Container.id = 'Container';
        tooltip_sbl = document.createElement('DIV');
        tooltip_sbl.id = 'sbl';
        tooltip_str = document.createElement('DIV');
        tooltip_str.id = 'str';
        tooltip_sb = document.createElement('DIV');
        tooltip_sb.id = 'sb';

        document.body.appendChild(tooltip_Container);
        tooltip_Container.appendChild(tooltip_sbl);
        tooltip_sbl.appendChild(tooltip_str);
        tooltip_Container.appendChild(tooltip_sb);

        if (tooltip_is_msie)
        {
            productInfo_iframe = document.createElement('IFRAME');
            productInfo_iframe.frameborder = '5';
            productInfo_iframe.style.backgroundColor = '#FFFFFF';
            productInfo_iframe.src = 'javascript:false;';
            productInfo_iframe.style.zIndex = 100;
            productInfo_iframe.style.position = 'absolute';
            document.body.appendChild(productInfo_iframe);
        }
    }

    tooltip_sbl.style.display = 'block';
    tooltip_Container.style.display = 'block';
    if (tooltip_is_msie)
    {
    	productInfo_iframe.style.display = 'none';
    }

    var x = 0, y = 0; var offsetX = 135, offsetY = 105;
    if (document.all)
    {
        x = (document.documentElement && document.documentElement.scrollLeft) ? document.documentElement.scrollLeft : document.body.scrollLeft;
        y = (document.documentElement && document.documentElement.scrollTop) ? document.documentElement.scrollTop : document.body.scrollTop;
        x += window.event.clientX;
        y += window.event.clientY;
	}
	else
    {
        x = e.pageX;
        y = e.pageY;
       }
    
    tooltip_Container.style.left = (x - offsetX) + "px";
    tooltip_Container.style.top = (y - offsetY) + "px";
    t = Math.floor(Math.random() * tooltipTxt.length);
    tooltip_str.innerHTML = tooltipTxt[t];

    if (tooltip_is_msie)
    {
        productInfo_iframe.style.left = tooltip_Container.style.left;
        productInfo_iframe.style.top = tooltip_Container.style.top;
        productInfo_iframe.style.width = tooltip_Container.style.width;
    }
}

function hideTooltip()
{
    tooltip_Container.style.display = 'none';
    if (tooltip_is_msie)
    {
    	productInfo_iframe.style.display = 'none';
    }
}
	