/* 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 += ''; strFlashTag += ''; if(flashvars != null) {strFlashTag += ''}; strFlashTag += ''; strFlashTag += ''; strFlashTag += ''; strFlashTag += ''; //strFlashTag += ''; strFlashTag += ''; strFlashTag += ''; strFlashTag += ''; } else { strFlashTag += '= 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(''); } }