﻿function HideContent(d) {
    document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
    document.getElementById(d).style.display = "block";
}

function show_subcription_advantages() {
    var content = '<div class="divCelebritiesContainer"><span onmouseout ="tooltip1.hide();" onclick ="tooltip1.hide();" class="divMouseOver"></span><div class="divCelebritiesHeader"> CELEBRITY APPEARANCES  <font style="font-size: 18px; font-weight: normal;">at Gamo Outdoor USA</font>      <font style="color: #D20000">Booth  # 11053</font> </div> <div class="divCelebritiesString"> Mix and mingle with these industry celebrities <br />throughout      <font style="color: #D20000">&nbsp;2011 SHOT SHOW!</font> </div> <div class="divCelebritiesSchedule"> <h1>TUESDAY, JANUARY 18</h1> <strong>9:00 am – 10:00 am:</strong> <span>Doug Koenig, World&#39s Best All-Around Shooter</span> <strong>2:00 pm – 3:00 pm:</strong> <span>Cast of &#39The Legends of the Fall&#39</span> <h1>WEDNESDAY, JANUARY 19</h1> <strong>11:00 am – 12:00 pm:  </strong>  <span>Jon and Gina Brunson, hosts of <br />&#39Addicted to the Outdoors&#39 </span>  <strong>11:30 am – 12:00 pm:  </strong>  <span>Craig Morgan, country music star and  host of <br />&#39All Access Outdoors&#39 </span>  <strong>12:00 pm – 1:00 pm:  </strong>  <span>Cast of &#39The Legends of the Fall&#39 </span>  <strong>1:00 pm – 2:00 pm:  </strong>  <span>Keith Warren, host of &#39The High Road&#39 </span>  <strong>1:30 pm – 2:30 pm:  </strong>  <span>Travis "T-Bone" Turner,  co-host of <br />&#39Michael Waddell&#39s Bone Collector&#39</span>    <strong>2:00 pm – 3:00 pm:  </strong>  <span>Steve Scott, &#39Safari Hunter&#39s Journal&#39 </span>  <h1>THURSDAY, JANUARY 20 </h1>  <strong>10:30 am – 11:30 am:  </strong>   <span>Keith Warren, host of &#39The High Road&#39 </span>   <strong>11:00 am – 12:00 pm:  </strong>   <span>Travis “T-Bone” Turner, co-host of  &#39Michael Waddell&#39s Bone Collector&#39  </span>    <strong>11:00am – 12:00 pm: </strong>   <span>Jon and Gina Brunson, hosts of  &#39Addicted to the Outdoors&#39 </span>    <strong>12:00 pm – 1:00 pm: </strong>   <span>Cast of &#39The Legends of the Fall&#39 </span>    <strong>3:00 pm – 4:00 pm: </strong>   <span>Doug Koenig, World&#39s Best All-Around Shooter</span>  </div> <div class="divCelebrityName" style="top: 293px; left: 340px">Doug Koenig</div> <div class="divCelebrityName" style="top: 293px; left: 528px">Craig Morgan</div> <div class="divCelebrityName" style="top: 293px; left: 718px">Keith Warren</div> <div class="divCelebrityName" style="top: 508px; left: 340px">Gina &amp; Jon Brunson</div> <div class="divCelebrityName" style="top: 508px; left: 528px">Steve Scott</div> <div class="divCelebrityName" style="top: 508px; left: 718px">Travis Turner</div><div class="divCelebrityName" style="top: 750px; left: 528px">The Legends of the Fall Cast</div></div>';
   
    tooltip1.show(content, 900);
}

var tooltip1 = function () {
    var id = 'tt';
    var top = 0;
    var left = 0;
    var maxw = 1800;
    var speed = 10;
    var timer = 20;
    var endalpha = 100;
    var alpha = 0;
    var tt, t, c, b, h;
    var ie = document.all ? true : false;
    return {
        show: function (v, w) {
            if (tt == null) {
                tt = document.createElement('div');
                tt.setAttribute('id', id);
                             
                t = document.createElement('div');
                t.setAttribute('id', id + 'top');
                c = document.createElement('div');
                c.setAttribute('id', id + 'cont');
                b = document.createElement('div');
                b.setAttribute('id', id + 'bot');
                tt.appendChild(c);
                document.body.appendChild(tt);
                tt.style.opacity = 0;
                tt.style.filter = 'alpha(opacity=0)';
                tt.style.top = '160px';
                tt.style.left = '0px';
                tt.style.width = '100%';
               // document.onmousemove = this.pos;
            }
            tt.style.display = 'block';
            c.innerHTML = v;
            tt.style.width = tt.style.width = '100%';
            if (!w && ie) {
                t.style.display = 'none';
                b.style.display = 'none';
                tt.style.width = tt.offsetWidth;
                t.style.display = 'block';
                b.style.display = 'block';
            }
            if (tt.offsetWidth > maxw) { tt.style.width = '100%' }
            h = parseInt(tt.offsetHeight) + top;
            clearInterval(tt.timer);
            tt.timer = setInterval(function () { tooltip1.fade(1) }, timer);
        },
        pos: function (e) {
            var u = ie ? event.clientY + document.documentElement.scrollTop : e.pageY;
            var l = ie ? event.clientX + document.documentElement.scrollLeft : e.pageX;
            tt.style.top = '10px';
            tt.style.left = '0px';
            tt.style.width = '100%';
           
        },
        fade: function (d) {
            var a = alpha;
            if ((a != endalpha && d == 1) || (a != 0 && d == -1)) {
                var i = speed;
                if (endalpha - a < speed && d == 1) {
                    i = endalpha - a;
                } else if (alpha < speed && d == -1) {
                    i = a;
                }
                alpha = a + (i * d);
                tt.style.opacity = alpha * .01;
                tt.style.filter = 'alpha(opacity=' + alpha + ')';
            } else {
                clearInterval(tt.timer);
                if (d == -1) { tt.style.display = 'none' }
            }
        },
        hide: function () {
            clearInterval(tt.timer);
            tt.timer = setInterval(function () { tooltip1.fade(-1) }, timer);
        }
    };
} ();

//Roll Over Functions
function setOpacity(obj, opacity) {
    opacity = (opacity == 100) ? 99.999 : opacity;

    // IE/Win
    obj.style.filter = "alpha(opacity:" + opacity + ")";

    // Safari<1.2, Konqueror
    obj.style.KHTMLOpacity = opacity / 100;

    // Older Mozilla and Firefox
    obj.style.MozOpacity = opacity / 100;

    // Safari 1.2, newer Firefox and Mozilla, CSS3
    obj.style.opacity = opacity / 100;
};
function fadeIn(objId, opacity) {
    if (document.getElementById) {
        obj = document.getElementById(objId);
        if (opacity <= 100) {
            setOpacity(obj, opacity);
            opacity += 50;
            window.setTimeout("fadeIn('" + objId + "'," + opacity + ")", 100);
        }
        else { setOpacity(obj, 100); }
    }
};

function initImage(img_name) {
    imageId = img_name;
    image = document.getElementById(imageId);
    setOpacity(image, 0);
    image.style.visibility = 'visible';
    fadeIn(imageId, 0);
};
function roll_over(img_name, img_src) {
    document[img_name].src = img_src;
    initImage(img_name);
};
