			var IS_FLASH;
			var flashVersion, flashVersionInt;
			
			function doRegular(w){
                 IS_FLASH = false;
            }
            
            //
            function doFlash(w){
                 IS_FLASH = true;
            }
            
            //
            function detectFlash(){
                 //
                 function reviewVersion(ver){
                      vo = ver.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(",");
                      flashVersion = vo[0]+"."+vo[1]+"."+vo[2];
                      flashVersionInt = parseInt(flashVersion);
                      doFlash();
                 }
                 
                 //
                 function detectVersion(ver){
                      if (ver == 6){
                           try {
                                var ax=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
                                reviewVersion(ax.GetVariable("$version"));
                           }
                           catch (e) {
                                doRegular();
                           }
                           return;
                           }
                      try {
                           var ax=new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + ver);
                           reviewVersion(ax.GetVariable("$version"));
                      }
                      catch (e) {
                           detectVersion(ver - 1);
                      }
                 }
                 
                 if(navigator.plugins&&navigator.mimeTypes.length){
                      var x=navigator.plugins["Shockwave Flash"];
                      if(x&&x.description){
                           vo = x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(".");
                           flashVersion = vo[0]+"."+vo[1]+"."+vo[2];
                           flashVersionInt = parseInt(flashVersion);
                           doFlash();
                           } else {
                                doRegular();
                           }
                 } else {
                      detectVersion(9);
                 }
            }
            
            detectFlash(); 
            
            

function PageFlash()
 {
 	if( IS_FLASH ){
		 document.write('<object style="margin: 0px;" data="/logo.swf" type="application/x-shockwave-flash" width="420" height="122">');
		 document.write('<param name="movie" value="/logo.swf">');
		 document.write('<param name="quality" value="high">');
		 document.write('<param name="wmode" value="transparent">');
		 document.write('</object>');
 	}else{
 		 document.write('<img src="/img/title.gif" alt="" width="411" height="115" />')
 	}
 }
