/*______________________________________ putFlash Version 0.8 r16 Customized by dahari Last updated on 2006-10-06 ______________________________________*/ var pluginspages = new Array(); pluginspages[0] = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"; // English pluginspages[1] = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&Lang=Japanese"; // Japanese var pluginVer = 0; function pfAltAction(Obj) { if (Obj.nonflashSW == 1) location.href = Obj.nonFlashSRC; return Obj.nonFlashSRC; } function pfAltContent(Obj) { if (Obj.nonflashSW == 1) return ""; return Obj.nonFlashSRC; } function pfFlashPlayerMeetRequiredVersion(requiredVer) { var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : null; if (plugin) { pluginVer = parseInt(plugin.description.substring(plugin.description.indexOf(".") -1)); } else { // for Win MSIE if (!arguments.callee.__alreadyExecuted___) { arguments.callee.__alreadyExecuted___ = true; document.writeln(''); } } return (pluginVer >= requiredVer); } function putflash (Obj) { if (!Obj.dir) Obj.dir = ''; if (!Obj.id) Obj.id = 'putflash'; if (!Obj.requiredVer) Obj.requiredVer = 6; if (!Obj.bgcolor) Obj.bgcolor = "#ffffff"; if (!Obj.quality) Obj.quality = "high"; if (!Obj.language) Obj.language = 0; if (!Obj.macie4exec && Obj.macie4exec != "0") Obj.macie4exec = 0; if (!Obj.moz_exec && Obj.moz_exec != "0") Obj.moz_exec = 1; if (!Obj.opera_exec && Obj.opera_exec != "0") Obj.opera_exec = 0; if (!Obj.nonflashSW && Obj.nonflashSW != "0") Obj.nonflashSW = 0; if (!Obj.nonFlashSRC) Obj.nonFlashSRC = ""; if (!Obj.swLiveConnect) Obj.swLiveConnect = "false"; if (!Obj.menu) Obj.menu = "false"; if (!Obj.disableCodebase) Obj.disableCodebase = 0; if (!Obj.allowScriptAccess) Obj.allowScriptAccess ="always"; if (!Obj.className) Obj.className ="flash"; // document.open(); if (Obj.hedSRC) document.write(Obj.hedSRC); if (pfFlashPlayerMeetRequiredVersion(Obj.requiredVer)){ document.write(pfGetObjectElement(Obj)); } else { document.write(pfAltAction(Obj)); } if (Obj.fotSRC) document.write(Obj.fotSRC); // document.close(); } function pfGetObjectElement(Obj){ var ua = navigator.userAgent; var isSafari = ua.match(/AppleWebKit/); var isSafari1 = isSafari && parseFloat(BA.ua.revision) < 412 ? 1 : 0; if (window.opera && Obj.opera_exec != 1) { return pfAltAction(Obj); } if (isSafari1 && Obj.opera_exec != 1) { return pfAltAction(Obj); } if (!Obj.file || !Obj.width || !Obj.height || !Obj.id) { return ""; } var result = ""; result += ''; result += ''; result += ''; result += ''; result += ''; if (Obj.salign) result += ''; if (Obj.scale) result += ''; if (Obj.FlashVars) result += ''; if (Obj.allowScriptAccess) result += ''; if ((navigator.appVersion.indexOf('Win',0) != -1 && navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1) && !window.opera){ result += pfAltContent(Obj); } else { result += pfGetEmbedElement(Obj); } result += ''; return result; } function pfGetEmbedElement(Obj){ if (Obj.moz_exec != 1 && (navigator.userAgent.indexOf("Gecko/") != -1)) return pfAltAction(Obj); if (Obj.macie4exec != 1 && (navigator.appVersion.indexOf('Mac',0) != -1)){ if (navigator.appVersion.indexOf('MSIE 4.',0) != -1) return pfAltAction(Obj); if (navigator.appVersion.indexOf('MSIE 3.',0) != -1) return pfAltAction(Obj); } var ua = navigator.userAgent; var reviseFlag = false; if (ua.match(/Gecko\//)) { var key = 'rv:'; var sRv = ua.substr(ua.indexOf(key) + key.length, 4); var fRv = parseFloat(sRv); reviseFlag = (fRv > 1.4 && (fRv < 1.7 || sRv == '1.7a')); } var result = ""; result += '.' + altCName + ' { display: none }'); document.write(''); } else { document.write(''); } } else { document.write(''); } }