// JavaScript Document
function checkForMessages(){
      var msg = location.hash;
      if (!(msg == null) && (msg.length > 0)) {
        if (lastMsg != msg) {
          lastMsg = msg;
          if (msg == '#FADEOUT') {
            //First clear the hash
            location.hash="";
            popinFadeOut();
          }
          
        }
     }
}

setInterval(checkForMessages, 200);

function loadIframe(iframeName, url, pUrl) {
  var newURL = url + '&parent_url=' + pUrl;
  document.getElementById('SymantecIFrameDiv').style.visibility='visible';
  document.getElementById(iframeName).src=newURL;
  compareFadeIn();
}

function CheckIsIE() 
{ 
if (navigator.appName.toUpperCase() == 'MICROSOFT INTERNET EXPLORER') { return true;} 
else { return false; } 
} 







function unloadIframe() {
  
  document.getElementById('SymantecIFrameDiv').style.visibility='hidden';
  popinFadeOut();
}
function transitionToExternalURL(url) {

window.location=url;


}


function transitionAwayFromPopin(URLToTransitionTo) {
  
  popinFadeOut();
        
  setTimeout(function() {transitionToExternalURL(URLToTransitionTo);}, 500);

}
