﻿          var pic_width=620;
          var pic_height=237;
          var button_pos=3;
          var stop_time=4000;
          var show_text=1;
          var txtcolor="dddddd";
          var bgcolor="f8c300";
          var imag=new Array();
          var link=new Array();
          var text=new Array();
          imag[1]="uploads/image/news/NPN/npn-1.jpg";
          link[1]="du-an,ngoc-phuong-nam-38.html";
          text[1]="";
           imag[2]="uploads/image/news/NPN/hinh-2.jpg";
          link[2]="du-an,ngoc-phuong-nam-38.html";
          text[2]="";
          
          imag[3]="uploads/image/news/NPN/hinh-3.jpg";
          link[3]="du-an,ngoc-phuong-nam-38.html";
          text[3]="";
          imag[4]="uploads/image/news/Era/era-6.jpg";
          link[4]="";
          text[4]="KỶ Nguyên Tower";      
          imag[5]="uploads/image/news/Era/era-2.jpg";
          link[5]="";
          text[5]="KỶ Nguyên Tower";
          imag[6]="uploads/image/news/Era/era-3.jpg";
          link[6]="";
          text[6]="KỶ Nguyên Tower";
          imag[7]="uploads/image/news/Era/era-4.jpg";
          link[7]="";
          text[7]="KỶ Nguyên Tower";
          imag[8]="uploads/image/news/Era/era-5.jpg";
          link[8]="";
          text[8]="KỶ Nguyên Tower";
        
         
        
          
          var swf_height=show_text==1?pic_height+0:pic_height;
          var pics="", links="", texts="";
          for(var i=1; i<imag.length; i++){
                  pics=pics+("|"+imag[i]);
                  links=links+("|"+link[i]);
                  texts=texts+("|"+text[i]);
          }
          pics=pics.substring(1);
          links=links.substring(1);
          texts=texts.substring(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" width="'+ pic_width +'" height="'+ swf_height +'" style="z-index:1;margin: 3px 0px 5px 0px;">');
// <param name="wmode" value="window">";
          document.write('<param name="movie" value="themes/ruby/gallery.swf">');
          document.write('<param name="quality" value="high">');
          document.write('<param name="wmode" value="opaque">');
          document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&pic_width='+pic_width+'&pic_height='+pic_height+'&show_text='+show_text+'&txtcolor='+txtcolor+'&bgcolor='+bgcolor+'&button_pos='+button_pos+'&stop_time='+stop_time+'">');
          document.write('<embed wmode="opaque" style="z-index:1;margin: 3px 0px 5px 0px;" src="themes/ruby/gallery.swf" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&pic_width='+pic_width+'&pic_height='+pic_height+'&show_text='+show_text+'&txtcolor='+txtcolor+'&bgcolor='+bgcolor+'&button_pos='+button_pos+'&stop_time='+stop_time+'" quality="high" width="'+ pic_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer">');
          document.write('</object>');
