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','<h1>Please install Flash!</h1>',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('<SCR' + 'IPT LANGUAGE=VBScript\>\n');
//document.write('on error resume next \n');
document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+MM_contentVersion+'")))\n');
document.write('</SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay )
{
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
document.write(' ID="script" MENU="FALSE" WIDTH="'+width+'" HEIGHT="'+height+'" ALIGN="">');
document.write(' <PARAM NAME=movie VALUE="'+strMoviePath+'"> <PARAM NAME=quality VALUE=high>  ');
document.write(' <PARAM NAME=bgcolor VALUE="'+strBGColor+'">');
document.write(' <EMBED src="'+strMoviePath+'" quality=high bgcolor='+strBGColor);
document.write(' swLiveConnect=FALSE WIDTH="'+width+'" HEIGHT="'+height+'" NAME="script" MENU="FALSE" ALIGN=""');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write(' </EMBED>');
document.write(' </OBJECT>');
}
else
{
document.write(strAlternative);
}
}//..function InsertFlash
