var parametr="resizable=no, menubar=no, status=no, toolbar=no, location=no, scrollbars=no";
function OpenFlash(fName, fVersion, fWidth, fHeight, fColor) {
    WinFlash=window.open('', fName,  parametr+', width='+fWidth+',height='+fHeight+',top='+(screen.height-fHeight)/2+',left='+(screen.width-fWidth)/2);
    WinFlash.document.write('<HTML>\n<HEAD>\n<meta http-equiv=Content-Type content="text/html; charset=utf-8">\n');
    WinFlash.document.write('<TITLE>'+fName+'.4ub.ru</TITLE>\n');
    WinFlash.document.write('</HEAD>\n');
    WinFlash.document.write('<BODY bgcolor="'+fColor+'" leftmargin="20" topmargin="0" rightmargin="0" bottommargin="0">\n');
    WinFlash.document.write('<table cellpadding="0" cellspacing="0" width="100%" height="100%"><tr><td align="center" valign="middle">');
    WinFlash.document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+fVersion+',0,0,0" WIDTH="'+fWidth+'" HEIGHT="'+fHeight+'" id="'+fName+'">\n');
    WinFlash.document.write('<PARAM NAME=movie VALUE="'+fName+'.swf">\n');
    WinFlash.document.write('<PARAM NAME=quality VALUE=high>\n');
    WinFlash.document.write('<PARAM NAME=wmode VALUE=transparent>\n');
    WinFlash.document.write('<PARAM NAME=bgcolor VALUE='+fColor+'>\n');
    WinFlash.document.write('<EMBED src="'+fName+'.swf" quality=high bgcolor='+fColor+' WIDTH="'+fWidth+'" HEIGHT="'+fHeight+'" NAME="'+fName+'" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" wmode="transparent"></EMBED>\n');
    WinFlash.document.write('</OBJECT>\n');
    WinFlash.document.write('</td></tr></table>');
    WinFlash.document.write('');
    WinFlash.document.write('</BODY>\n</HTML>\n');
}

