if (is_mac&&is_ie) {
  document.getElementById("viewFSBtn").style.display = "none"; 
}

var blnAnimationStart = 0;

function animationStart()
{
  //alert("animationStart");
  blnAnimationStart = 1;
  var blnPopupPlaying = document.getElementById("blnPopupPlaying").value;
  document.getElementById("blnAnimationStart").value = "true";
  if (window.location.pathname.indexOf("invprint.pd") > 0) {
    if  (is_mac) {
      alert("Please use File -> Print to print");
    } else {
      window.print();
    }
  } else {
    if ((!is_mac) && (blnPopupPlaying == "true")) {
      if (document.all) {
        prdFlash = document.all["FlashProduct"];
      } else {
        prdFlash = document.FlashProduct;
      }
      prdFlash.TGotoLabel("/animationCtrl", "GotoLastFrame");
      prdFlash.TGotoLabel("/musicCtrl", "StopMusic");
    }
  }
}

function openFS(url)
{
  if ((!is_Flash) || (is_Flash && is_FlashVersion < 6))
  {
    if (!is_safari) {
      alert("Please make sure you have the latest Flash Player installed and be sure you have it enabled.");
      return;
    }
  }
  if ((is_nav) && (is_major < 7)) 
  {
    alert("Please use the latest version of the browser to view this invite in full size.");
    return;
  }
  if (blnAnimationStart) 
  {
    url += "?rw=0";
  } else {
    url += "?rw=1";
  }
  if (is_mac) {
    url += "&mac=1";
  }
  if (is_nav) {
    url += "&nav=1";
  }
  if (is_aol) {
    url += "&aol=1";
  }
  if (is_ie) {
    url += "&ie=1";
  }
  //alert("url " + url);
  if (is_win && is_ie && !is_aol) {
    NewWindow=window.open(url, 'fs', 'fullscreen=1');
  } else if (is_aol) {
    var w = 800; 
    var h = 600; 
    NewWindow=window.open(url, 'fs', 'height=' + h + ',width=' + w + ',screenX=0,screenY=0,directories=0,location=0,menubar=0,scrollbars=0,status=0,toolbar=0,titlebar=no');
  } else {
    var w = window.screen.width - 10;
    var h = window.screen.height - 30;
    NewWindow=window.open(url, 'fs', 'height=' + h + ',width=' + w + ',screenX=0,screenY=0,directories=0,location=0,menubar=0,scrollbars=0,status=0,toolbar=0,titlebar=no');
  }
}
