// JavaScript Document function rollOverBG(divID, srcName){ var divID = document.getElementById(divID); divID.style.backgroundImage = 'url(/images/'+srcName+')'; } function rollOver(divID, srcName){ var divID = document.getElementById(divID); divID.src = '/images/'+srcName; } //DROP DOWN MENU PLACEMENT? function getCenter() { var centerPoint = (document.body.offsetWidth / 2); return centerPoint; } $(document).ready(function() { //BEGIN FLASH DETECTION hideAlert(); var flashVersion = swfobject.getFlashPlayerVersion(); //Uncomment the following line to reset the cookie. FOR TESTING ONLY //$.cookie('EQTRemind', 'true'); if($.cookie('EQTRemind') == "true" || $.cookie('EQTRemind') == null){ //If the reminder cookie is true then proceed if(flashVersion.major <= 9 && flashVersion.release < 155){ //If the Flash version is less than our specified version then proceed if(flashVersion.major == 0){ $("#flashMessage").slideDown("1000"); $("#alertIcon").fadeIn("700"); $("#alertMessage").html("Get Flash"); $("#alertMessage").fadeIn("700"); $("#dontAsk").fadeIn("700"); $("#alertClose").fadeIn("700"); } else{ //If there is no Flash then proceed $("#flashMessage").slideDown("1000"); $("#alertIcon").fadeIn("700"); //Easiest way to detect what has been checked on the "Don't Ask Again" box. $("#alertMessage").html("Get Flash"); $("#alertMessage").fadeIn("700"); $("#dontAsk").fadeIn("700"); $("#alertClose").fadeIn("700"); } } } $("#dontAsk").click(function(){ $("#dontAsk img").toggle(); }); $("#alertClose").click(function(){ if($("#dontAskNoCheck").css("display") == "block" || $("#dontAskNoCheck").css("display") == "inline"){ $.cookie('EQTRemind', 'true'); } if($("#dontAskCheck").css("display") == "block" || $("#dontAskCheck").css("display") == "inline"){ $.cookie('EQTRemind', 'false'); } $("#flashMessage").slideUp("600"); }); // END FLASH DETECTION $("#pressRoomDDL").hide(); $("#pressRoomContainer").hover( function(){ $("#pressRoomDDL").slideDown("fast"); $("#pressRoomContainer").css("height",110); }, function(){ $("#pressRoomContainer").css("height",34); $("#pressRoomDDL").slideUp("fast"); } ); $("#intFeatured a").click(function() { var thisID = $(this).attr("id"); var thisTarget = $(this).attr("href"); }); }); function hideAlert(){ $("#flashMessage").hide(); $("#alertIcon").hide(); $("#alertMessage").hide(); $("#dontAsk").hide(); $("#alertClose").hide(); }