// JavaScript Document
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function flaMovie_DoFSCommand(command, args) 
{
  //var flaMovieObj = 
  //  InternetExplorer ? flaMovie : document.flaMovie;
  //Code from Flash  
  if (command == "unloadmovie")
    hideFlash();
  //
}

// Hook for Internet Explorer
if (navigator.appName && 
  navigator.appName.indexOf("Microsoft") != -1 &&
  navigator.userAgent.indexOf("Windows") != -1 && 
  navigator.userAgent.indexOf("Windows 3.1") == -1) 
{
  document.write('<SCRIPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write(
    'Sub flaMovie_FSCommand(ByVal command, ByVal args)\n');
  document.write(
    ' call flaMovie_DoFSCommand(command, args)\n');
  document.write('end sub\n');
  document.write('</SCRIPT\> \n');
}
//second
function peeloff_DoFSCommand(command, args) 
{
  //var peeloffObj = 
  //  InternetExplorer ? peeloff : document.peeloff;
  //Code from Flash  
  if (command == "showPeel")
    showFlash();
  //
}

// Hook for Internet Explorer
if (navigator.appName && 
  navigator.appName.indexOf("Microsoft") != -1 &&
  navigator.userAgent.indexOf("Windows") != -1 && 
  navigator.userAgent.indexOf("Windows 3.1") == -1) 
{
  document.write('<SCRIPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write(
    'Sub peeloff_FSCommand(ByVal command, ByVal args)\n');
  document.write(
    ' call peeloff_DoFSCommand(command, args)\n');
  document.write('end sub\n');
  document.write('</SCRIPT\> \n');
}
function showFlash()
  {
	document.getElementById("flashani").style.display="block";
  }
function hideFlash()
  {
	document.getElementById("flashani").style.display="none";
  }
