﻿var tooltipTxtHarrah = new Array()
tooltipTxtHarrah[0] = "You must be 21 or older in order to redeem this offer.<br/>Reward Yourself Rate: Exclusive Discount off the Lowest Rates (of at least 10%)";
tooltipTxtHarrah[1] = "You must be 21 or older in order to redeem this offer.<br/>Book a group trip with Harrah’s \"Total Experiences\" and get 2 complimentary spa pedicures.";
tooltipTxtHarrah[2] = "You must be 21 or older in order to redeem this offer.<br/>Book a group trip with Harrah’s \"Total Experiences\" and the group leader receives their hotel stay for free.";


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 showTooltipLtf(e, tooltipTxtHarrah) {
    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 = 165;
    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() * tooltipTxtHarrah.length);
    tooltip_str.innerHTML = tooltipTxtHarrah[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';
}
	