/*
IE Flash ActiveContent Activation Script
Author: Faisal Iqbal (chall3ng3r)
Blog: http://www.orison.biz/blog/chall3ng3r/
Feel free to modify or distribute.
*/
/*
Method: FlashObject
Param1: SWF path
Param2: Movie width
Param3: Movie height
Param4: BGColor
Param5: Flashvars (Optional)
*/
function FlashObject(swf, width, height, bgcolor, id, flashvars)
{
var strFlashTag = new String();
if(navigator.appName.indexOf("Microsoft") != -1)
{
strFlashTag += '';
}
else
{
strFlashTag += '';
}
document.write(strFlashTag);
}
/*
image_2 : flash°¡ ¼³Ä¡¾ÈµÈ°æ¿ì º¸¿©Áö´Â ±×¸²
*/
function FlashObject_2(swf, width, height, bgcolor, id, flashvars, image_2 )
{
var MM_contentVersion = 5; // Change this value to match your movies exported version 4, 5, 6
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)) {
document.write(' \n'); //FS hide this from IE4.5 Mac by splitting the tag
document.write('on error resume next \n');
document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
document.write(' \n');
}
if( MM_FlashCanPlay ) {
FlashObject(swf, width, height, bgcolor, id, flashvars);
} else{
// This is where JS writes your NON Flash version code - you could add a redirect here to your HTML version.
document.write('');
}
}