/* All intellectual property rights relating to this code are owned by EURO RSCG 4D Digital. */

/* REQUIRED MINIMUM FLASH VERSION */
var flash_version=9;


var MAC=(navigator.userAgent.indexOf('Mac')!=-1)?1:0;

var IE40WIN=((navigator.appVersion.toString().indexOf('MSIE 4')!=-1)&&!MAC)?1:0;

var IE45MAC=((navigator.appVersion.toString().indexOf('MSIE 4.5')!=-1)&&MAC)?1:0;
var IE50MAC=(navigator.userAgent.toString().indexOf('MSIE 5.0')!=-1&&MAC)?1:0;
var IE51MAC=(navigator.userAgent.toString().indexOf('MSIE 5.1')!=-1&&MAC)?1:0;

var NS4=(document.layers)?1:0;
var NS6=(navigator.userAgent.indexOf('Netscape/6')!=-1)?1:0;

var NOFLASHDHTML=(IE40WIN||IE45MAC||IE50MAC||IE51MAC||NS4||NS6)?1:0;


var SWF=0; 
var sfobj='ShockwaveFlash.ShockwaveFlash.'+eval(flash_version);
var VBS='<SCRIP'; 
VBS+='T LANGUAGE=VBScript\> \n'; 
VBS+='on error resume next \n'; 
VBS+='SWF=IsObject(CreateObject(sfobj)) \n'; 
VBS+='</S'; VBS+='CRIPT\> \n';

if (!MAC)document.write(VBS);

var plugin=(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]?navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin:0);
var flv = parseInt(plugin.description.substring(plugin.description.indexOf("Flash ")+6,plugin.description.indexOf(".")));

if (plugin&&flv>=flash_version) { SWF=1; }

function flash(src,color,width,height,noflash,underdhtml,forceie45mac,overwrite) {
 var EC; 

 if (NOFLASHDHTML && SWF) gn_DHTML=0;
 if (forceie45mac&&IE45MAC) SWF=1;

 if (SWF||overwrite) { 
  EC='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+ ((overwrite)?overwrite:flash_version) +',0,0,0" ID=themovie WIDTH='+width+' HEIGHT='+height+'>'+ ((underdhtml)?'<param name="wmode" value="transparent" />':'') + '<PARAM NAME=movie VALUE="'+src+'"> <PARAM NAME=quality VALUE=high> <PARAM NAME=menu VALUE=false> <PARAM NAME=bgcolor VALUE='+color+'> <EMBED NAME="themovie" SRC="'+src+'" menu=false quality=high bgcolor='+color+'  WIDTH='+width+' HEIGHT='+height+' TYPE="application/x-shockwave-flash" swLiveConnect="true" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"'+ ((underdhtml)?' WMODE="transparent"':'') + '></EMBED></OBJECT>'; 
 } 

 else { 
  EC=noflash; 
 } 

 document.write(EC); 
}