var UseFlash = 0;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ) {
var plugin = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1))>=4)
   UseFlash = 1;
} else if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
          UseFlash = 1;
      }
     if ( UseFlash )
     {
	 document.write('<center>');
					 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="766" height="230" id="menu" align="middle">');
					 document.write('<param name="allowScriptAccess" value="sameDomain" />');
					 document.write('<param name="allowFullScreen" value="false" />');
					 document.write('<param name="movie" value="img/menu.swf" />');
					 document.write('<param name="quality" value="high" />');
					 document.write('<param name="bgcolor" value="#311009" />');
					 document.write('<embed src="img/menu.swf" quality="high" bgcolor="#311009" width="766" height="230" name="menu" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
					 document.write('</object>');
				 document.write('</center>');

      }
       else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)) {
           document.write('<center>');
           document.write('<table cellpadding="0" cellspacing="0" width="766" height="227" border="0">');
           document.write('<tr><td colspan="3"><img src="header/out/header1.jpg" width="766" height="177" border="0"></td></tr>');
           document.write('<tr>');
                 document.write('<td rowspan="2"><img src="header/out/header2.jpg" width="37" height="50" border="0"></td>');
                 document.write('<td>');
                               document.write('<a href="index.php"><img src="header/out/header3.jpg" width="101" height="32" border="0"></a>');
                               document.write('<a href="?pg=login"><img src="header/out/header4.jpg" width="70" height="32" border="0"></a>');
                               document.write('<a href="?pg=reg"><img src="header/out/header5.jpg" width="140" height="32" border="0"></a>');
                               document.write('<a href="?pg=games"><img src="header/out/header6.jpg" width="69" height="32" border="0"></a>');
                               document.write('<a href="?pg=rules"><img src="header/out/header7.jpg" width="95" height="32" border="0"></a>');
                               document.write('<a href="?pg=contact"><img src="header/out/header8.jpg" width="118" height="32" border="0"></a>');
                               document.write('<a href="?pg=help"><img src="header/out/header9.jpg" width="97" height="32" border="0"></a>');
                 document.write('</td>');
                 document.write('<td rowspan="2"><img src="header/out/header10.jpg" width="39" height="50" border="0"></td>');
           document.write('</tr>');
           document.write('<tr>');
                 document.write('<td colspan="7"><img src="header/out/header11.jpg" width="690" height="18" border="0"></td>');
           document.write('</tr>');


           document.write('</table>');
           document.write('</center>');

         }