'; var htmlContent='
'; // browser detection function drawCONTENT(){ var browser = navigator.userAgent.toLowerCase(); if(browser.indexOf('iphone')!=-1 || browser.indexOf('ipad')!=-1){ document.writeln(htmlContent); } else { document.writeln(flashContent); } } // flash detection function detectFLASH(required, max) { var required_version = required; var max_version = max; var available_version = 0; if(typeof(navigator.plugins["Shockwave Flash"]) == "object") { var description = navigator.plugins["Shockwave Flash"].description; available_version = description.substr(16, (description.indexOf(".", 16) - 16)); }else if(typeof(ActiveXObject) == "function"){ for(var i = 2; i < (max_version + 1); i ++){ try{ if(typeof(new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i)) == "object"){ available_version = i; } } catch(error){ } } } return [available_version, required_version]; }