/* function openNewWindow(sURL, sName, iWidth, iHeight, bResizable, bScrollbars) { var iTop = (screen.height - iHeight) / 2 ; var iLeft = (screen.width - iWidth) / 2 ; var sOptions = "toolbar=no" ; sOptions += ",width=" + iWidth ; sOptions += ",height=" + iHeight ; sOptions += ",resizable=" + (bResizable ? "yes" : "no") ; sOptions += ",scrollbars=" + (bScrollbars ? "yes" : "no") ; sOptions += ",left=" + iLeft ; sOptions += ",top=" + iTop ; var oWindow = window.open(sURL, sName, sOptions) oWindow.focus(); return oWindow ; } */ function openNewWindow(sURL, sName, iWidth, iHeight, bResizable, bScrollbars) { var iTop = (screen.height - iHeight) / 2 ; var iLeft = (screen.width - iWidth) / 2 ; var sOptions = "toolbar=no" ; sOptions += ",width=" + iWidth ; sOptions += ",height=" + iHeight ; sOptions += ",resizable=" + (bResizable ? "yes" : "no") ; sOptions += ",scrollbars=" + (bScrollbars ? "yes" : "no") ; sOptions += ",left=" + iLeft ; sOptions += ",top=" + iTop ; var oWindow = window.open(sURL, sName, sOptions) oWindow.focus(); return oWindow ; } var MM_FlashCanPlay = false; // global var /** installing flash script, checks flash @param strMoviePath string - path to an .swf file @param strBGColor string - color like #121212 @param strAlternative string - alternative HTML @param width, height string - width and height for a movie @param contentVersion int - version of flash (6,7...) @par example InsertFlash('/download/pn_tr.swf','#666666','

Please install Flash!

',6, 549,401 ); */ function InsertFlash(strMoviePath, strBGColor, strAlternative, contentVersion, width, height) { MM_contentVersion = contentVersion; 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]; } MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion; } else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) { document.write('\n'); //document.write('on error resume next \n'); document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+MM_contentVersion+'")))\n'); document.write(' \n'); } if ( MM_FlashCanPlay ) { document.write(''); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); } else { document.write(strAlternative); } }//..function InsertFlash