// JavaScript Document

       var size = ' width="250" height="140" ';
	   //var fileName6 = "img/flash/production6.swf";
	   var fileName ="/bitrix/templates/main/img/leaf4.swf";
       var c13=String.fromCharCode(10);
       var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) 
{
       var plugin2 = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 6;
	   if(!plugin2) {
		   plugin = plugin.description.substring(0,plugin.description.indexOf("."));
		   plugin = parseInt(plugin.substring(plugin.lastIndexOf(" "))) >= 6;
	   } else {
		   plugin = plugin2;
	   }
}
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('<scr'+'ipt type="text/vbscr'+'ipt"> '+c13);
       document.write('Function VBGetSwfVer(i) '+c13);
       document.write('on error resume next '+c13);
       document.write('Dim swControl, swVersion '+c13);
       document.write('swVersion = 0 '+c13);
       document.write('set swControl = CreateObject("ShockwaveFlash.ShockwaveFlash." + CStr(i)) '+c13);
       document.write('if (IsObject(swControl)) then '+c13);
       document.write('swVersion = swControl.GetVariable("$version") '+c13);
       document.write('end if '+c13);
       document.write('VBGetSwfVer = swVersion '+c13);
       document.write('End Function '+c13);
       document.write('</sc'+'ript> '+c13);

       function cycleSwfVers(min,max) {
               for(var i=max;i>=min;i--) {
                       if(VBGetSwfVer(i)!=0) return i;
               }
               return 0;
       }
       plugin = cycleSwfVers(6,12);
}

if ( plugin && navigator.userAgent )  
{
	   //if ((plugin>=6) && (plugin<=7)) fileName = fileName6;
	   //alert(plugin + " " + fileName);
       var flashObj='';
	   //flashObj+='<div id="productionFlash">'
       flashObj+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"';
       flashObj+='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
       flashObj+=' ' + size + ' ID=file>';
       var seed=Math.round(Math.random()*65535);
       flashObj+=' <param name="movie" value="' + fileName + '"><param name="quality" VALUE="high">';
	   
	   flashObj+='<param name="flashvars" value="blickplay=false">';       
	   flashObj+='<param name="wmode" value="opaque">';       
	   flashObj+=' <embed src="' + fileName + '" quality="high" ';
       flashObj+=' ' + size + ' swLiveConnect="false" wmode="opaque"';
	   
	   flashObj+='flashvars="blickplay=false"'; 	   
       flashObj+=' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">';
       flashObj+=' </embed>';
       flashObj+=' </object>';
	   //flashObj+='</div>';
       document.write(flashObj);
       flashObj='';
}
else if (        !(navigator.appName 
                       && navigator.appName.indexOf("Netscape")>=0 
                       && navigator.appVersion.indexOf("2.")>=0)
               )
{document.write('');
}
