﻿function SetImgFlash(path,jsonarr,width,height,textheight){
 var pics='';
 var links="";
 var texts="";
 var text_height=20; 
 if(text_height!=null)
 text_height=textheight;
 var swf_height = height;
 height=height-text_height;
 if (window.XMLHttpRequest) 
 { //Mozilla, Safari,...IE7 
     if(!window.ActiveXObject){ // Mozilla, Safari,...
        
     }
 }
 for(i=0;i< jsonarr.length;i++){
     pics+=path+jsonarr[i][0]+(i==jsonarr.length-1?'':"|");
     links+=jsonarr[i][1]+(i==jsonarr.length-1?'':"|");
     texts+=jsonarr[i][2]+(i==jsonarr.length-1?'':"|");
 }
 document.write('<object  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" border="0" width="'+ width +'" height="'+ swf_height +'">');
 document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
 document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
 document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+width+'&borderheight='+height+'&textheight='+text_height+'">');
 document.write('<embed src="images/focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+width+'&borderheight='+height+'&textheight='+text_height+'" menu="false" bgcolor="#ffffff"  border="0"  quality="high" width="'+ width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  
 document.write('</object>');
 

}
