function flashload(filename, width, height, gif_file, gif_file_w, gif_file_h, gif_file_url, bgcolor)
{
if(!bgcolor){bgcolor = "#DDDDDD";}
if(!gif_file) {var alert = '<div style=\'color:#FFFFFF; font-size:9pt\'>На Вашем компьютере не установлен Flash-плеер.<br>Нажмите <a target=\'_blank\' href=\'http://www.macromedia.com/go/getflashplayer\' style=\'color:red\'>здесь</a> для его установки</div>';}

/*
if(!gif_file) {gif_file = "img/archiru_2006.gif";} 
if(!gif_file_w) {gif_file_w = "100";} 
if(!gif_file_h) {gif_file_h= "100";} 
if(!gif_file_url) {gif_file_url = "http://www.archi.ru/";}
*/

var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;


if ( plugin ) {
 if(navigator.userAgent.indexOf("Presto") < 0 && navigator.userAgent.indexOf("Gecko") < 0) 
   {plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 5;}     

}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
 try {
 lastVersion = 9;
 for(i=3; i<=lastVersion; i++)
   {
    if(eval('new ActiveXObject("ShockwaveFlash.ShockwaveFlash.'+i+'")'))
     {version=i;} 
   }
 if(version > 2) {plugin = 1;}
    }
 catch(e) {plugin = "";}
}


if ( plugin ) {
 document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
 document.write('  codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
 document.write(' ID=FLASH_AD WIDTH=\''+width+'\' HEIGHT=\''+height+'\'>');
 document.write(' <PARAM NAME=movie VALUE=\''+filename+'\'> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE='+bgcolor+'> <PARAM NAME=wmode VALUE=transparent>'); 
 document.write(' <EMBED src=\''+filename+'\' quality=high wmode=transparent ');
 document.write(' swLiveConnect=FALSE WIDTH=\''+width+'\' HEIGHT=\''+height+'\' bgcolor='+bgcolor+'');
 document.write(' TYPE="application/x-shockwave-flash" hspace="0" vspace="0" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
 document.write(' </EMBED>');
 document.write(' </OBJECT>');
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
 if(gif_file) {
  document.write('<A TARGET=\'_blank\' HREF=\''+gif_file_url+'\'><IMG SRC=\''+gif_file+'\' WIDTH=\''+gif_file_w+'\' HEIGHT=\''+gif_file_h+'\' BORDER=0></A>');}
 else {document.write(''+alert+'');}
}
}
