var plugin=(navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

function flash(arg,w,h,path,img,flag) {

if ( plugin ) {
        plugin=parseInt(plugin.description.substring(plugin.description.indexOf(".")-1))>=6;
}
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)) {
        document.write('<SCRIPT LANGUAGE=VBScript\> \n');
        document.write('on error resume next \n');
        document.write('plugin=( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
        document.write('</SCRIPT\> \n');
}
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(' width="'+w+'" height="'+h+'" id="'+arg+'" align="middle">');
        document.write(' <PARAM NAME=movie VALUE="'+path+arg+'.swf"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>  ');
        document.write(' <param name="allowScriptAccess" value="sameDomain" />');
        document.write(' <EMBED src="'+path+arg+'.swf" menu=false quality=high bgcolor=#FFFFFF  ');
        document.write(' swLiveConnect=FALSE WIDTH='+w+' height='+h+' name="'+arg+'" align="middle" allowScriptAccess="sameDomain" ');
        document.write(' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> ');
        document.write(' </EMBED><br></OBJECT>');

}
else {
      if ( !flag ) {
        document.write('<IMG SRC="'+path+img+'" WIDTH="'+w+'" HEIGHT="'+h+'" BORDER= "0" ALT = "" ><br>');
     } else {
       main_info(path);
     }
}
}

function main_info(path) {
        document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
        document.write('<tr><td width="9" height="9" valign="top"><IMG SRC="'+path+'cent_tl.png" WIDTH="9" HEIGHT="9" BORDER= "0" ALT = "" ><br></td>');
        document.write('<td width="100%"  bgcolor="#b1b7b9" rowspan="3">');
        document.write('<table width="100%" border="0" cellspacing="3" cellpadding="3" bgcolor="#b1b7b9">');
        document.write('<tr><td width="100%" align="center"><font color="#025291" size="3" face="Times New Roman">Добро пожаловать в наш центр!</font></td>');
        document.write('</tr>');
        document.write('<tr><td width="100%"><IMG SRC="'+path+'fileno.gif" WIDTH="280" HEIGHT="1" BORDER= "0" ALT = "" ><br>');
        document.write('Предлагаем Вам обновленные программы обслуживания в нашем центре');
        document.write('<li><a href="http://www.diplomatclinic.ru/index.php/alias/progo6" class=menutext>Программа <font color="#025291" size="3" face="Times New Roman"><strong>"Ваш лечащий доктор"</strong></font></a></li>');
        document.write('<li><a href="http://www.diplomatclinic.ru/index.php/alias/progo4" class=menutext>Программа <font color="#025291" size="3" face="Times New Roman"><strong>"Будущая мама"</strong><font></a></li>');
        document.write('</td>');
        document.write('</tr>');
        document.write('</table>');
        document.write('</td>');
        document.write('<td width="217" height="158" bgcolor="#b1b7b9"  rowspan="3"><IMG SRC="'+path+'doctor_on_main_1.gif" WIDTH="217" HEIGHT="158" BORDER= "0" ALT = "" ><br></td>');
        document.write('<td width="9" height="9"  valign="top"><IMG SRC="'+path+'cent_tr.png" WIDTH="9" HEIGHT="9" BORDER= "0" ALT = "" ><br></td>');
        document.write('</tr>');
        document.write('<tr><td width="9"  height="100%"  bgcolor="#b1b7b9"><IMG SRC="'+path+'fileno.gif" WIDTH="9" HEIGHT="140" BORDER= "0" ALT = "" ><br></td>');
        document.write('<td width="9" height="100%"   bgcolor="#b1b7b9"><IMG SRC="'+path+'fileno.gif" WIDTH="9" HEIGHT="1" BORDER= "0" ALT = "" ><br></td>');
        document.write('</tr>');
        document.write('<tr><td width="9" height="9" valign="bottom"><IMG SRC="'+path+'cent_bl.png" WIDTH="9" HEIGHT="9" BORDER= "0" ALT = "" ><br></td>');
        document.write('<td width="9" height="9"  valign="bottom"><IMG SRC="'+path+'cent_br.png" WIDTH="9" HEIGHT="9" BORDER= "0" ALT = "" ><br></td>');
        document.write('</tr>');
        document.write('</table>');

} 
