<!--
/**********************************************************
This file will detect a browser's flash capabilities, 
then it will display the .swf or its non-flash equivalent. 
Please adjust the following 6 variables accordingly. 
(all paths are relative to the calling document)
**********************************************************/
var width=305;
var height=185;
var bgcolor='#2F5B38';
var source='/perks-and-prizes/index/20040901/swf/perks-sign.swf'; // location of the flash .SWF file
var img_path='/perks-and-prizes/index/20040901/images/perks-txt.gif'; // location of the alternate image
var name='perks-sign';

var MM_contentVersion = 5;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
  var words = navigator.plugins["Shockwave Flash"].description.split(" ");
  for (var i = 0; i < words.length; ++i) {
	if (isNaN(parseInt(words[i]))) continue;
	var MM_PluginVersion = words[i]; 
  }
  var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
  var var1 = "";
  var1 += '<SCR' + 'IPT LANGUAGE="VBScript"\> \n'; //FS hide this from IE4.5 Mac by splitting the tag
  var1 += 'on error resume next \n';
  var1 += 'MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n';
  var1 += '</SCR' + 'IPT\> \n';
  document.write(var1);
}
if ((MM_FlashCanPlay) && (!((navigator.platform.toLowerCase().indexOf('mac') != -1) && (navigator.userAgent.toLowerCase().indexOf("msie") != -1)))){
  document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
  document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
  document.write(' WIDTH="' + width + '" HEIGHT="' + height + '" id="' + name + '" ALIGN="">');
  document.write(' <PARAM NAME=movie VALUE="' + source + '"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=' + bgcolor + '>  '); 
  document.write(' <EMBED src="' + source + '" quality=high bgcolor=' + bgcolor + '  ');
  document.write(' swLiveConnect=FALSE WIDTH="' + width + '" HEIGHT="' + height + '" NAME="' + name + '" ALIGN=""');
  document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
  document.write(' </EMBED></OBJECT>');
} else{
  document.write('<img src="' + img_path + '" width="' + width + '" height="' + height + '" border="0">');
};
//-->