<!--
function myFlash()
{
/*** variables ***/
/*** private *****/
 this.name  = arguments[0];
 this.flashUrl  = arguments[1];
 this.width  = arguments[2];
 this.height  = arguments[3];
 this.autostart  = (arguments[4])?(arguments[4]):(true);
 this.loop  = (arguments[5])?(arguments[5]):(true);
 this.requiredVersion = 4;
 this.hasRightVersion = false;
 this.params  = new Array();
 this.objParam  = '';
 this.embParam  = '';
 this.isIE   = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
 this.isWin  = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;
 this.isMac   = (navigator.appVersion.indexOf("MacPPC") != -1) ? true : false;
 this.actualVersion = 0;
 this.maxVersion  = 6;
 this.flash2Installed = false;
 this.flash3Installed = false;
 this.flash4Installed = false;
 this.flash5Installed = false;
 this.flash6Installed = false;
 this.altUrl  = '';
 this.altTarget  = '';
 this.altImg  = '';
 
 
/*** methodes ****/
/*** public ******/
 this.check  = checkFlash;
 this.write  = writeFlash;
 this.setParam  = setParam;
 
}
function checkFlash()
{
 if(this.isIE && this.isWin)
 {
  document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write(''+this.name+'.flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');
  document.write(''+this.name+'.flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');
  document.write(''+this.name+'.flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
  document.write(''+this.name+'.flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');
  document.write(''+this.name+'.flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');
  document.write('</SCR' + 'IPT\> \n');
 }
 if (navigator.plugins)
 {
  if ( navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"])
  {
   var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
   var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;
   var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));
   this.flash2Installed = flashVersion == 2;
   this.flash3Installed = flashVersion == 3;
   this.flash4Installed = flashVersion == 4;
   this.flash5Installed = flashVersion == 5;
   this.flash6Installed = flashVersion >= 6;
  }
 }
  
 for (var i = 2; i <= this.maxVersion; i++)
 {
  if (eval("this.flash" + i + "Installed") == true) this.actualVersion = i;
 }
 if (this.actualVersion >= this.requiredVersion) this.hasRightVersion = true;
   else this.hasRightVersion = false;
   return this.hasRightVersion;
}
function writeFlash()
{
 if (this.hasRightVersion)
 {
  var oeTags = '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
  + 'WIDTH="'+this.width+'" HEIGHT="'+this.height+'" NAME="'+this.name+'"'
  + 'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
  + '<PARAM NAME="MOVIE" VALUE="'+this.flashUrl+'">'
  + '<PARAM NAME="PLAY" VALUE="'+this.autostart+'">'
  + '<PARAM NAME="LOOP" VALUE="'+this.loop+'">'
  + '<PARAM NAME="QUALITY" VALUE="high">'
  + '<PARAM NAME="MENU" VALUE="false">'
  + this.objParam
  + '<EMBED SRC="'+this.flashUrl+'"'
  + 'WIDTH="'+this.width+'" HEIGHT="'+this.height+'" NAME="'+this.name+'"'
  + 'PLAY="'+this.autostart+'"'
  + 'LOOP="'+this.loop+'"'
  + 'QUALITY="high"'
  + 'MENU="false"'
  + this.embParam
  + 'TYPE="application/x-shockwave-flash"'
  + 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
  + '</EMBED>'
  + '</OBJECT>';
  document.write(oeTags);
 }
 else
 {
  var alternateContent = '<a href="'+this.altUrl+'" '+this.altTarget+'><img src="'+this.altImg+'" width="'+this.width+'" height="'+this.height+'" border="0"></a>';
  document.write(alternateContent);
 }
}
function setParam(param, value)
{
 var count = this.params.length;
 this.params[count] = param;
 this.params[count+1] = value;
 var i=0;
 this.objParam = '';
 while (i<=this.params.length-1)
 {
  this.objParam += '<PARAM NAME="'+this.params[i]+'" VALUE="'+this.params[i+1]+'">';
  i=i+2;
 }
 var i=0;
 this.embParam = '';
 while (i<=this.params.length-1)
 {
  this.embParam += this.params[i]+'="'+this.params[i+1]+'" ';
  i=i+2;
 }
}


// -->