var pic_width = 230; //ͼƬ���
var pic_height = 165 //ͼƬ�߶�
var button_pos = 4; //��Ťλ�� 1�� 2�� 3�� 4��
var stop_time = 4000; //ͼƬͣ��ʱ��(1000Ϊ1����)
var show_text = 0; //�Ƿ���ʾ���ֱ�ǩ 1��ʾ 0����ʾ
var txtcolor = "FFFFFF"; //����ɫ
var bgcolor = "FFFFFF"; //����ɫ
var imag = new Array("/pictruesIndex/01.jpg","/pictruesIndex/02.jpg");
var link = new Array("http://","http://");
var text = new Array("图1","图2");

//�ɱ༭���ݽ���
var swf_height = show_text == 1 ? pic_height + 20 : pic_height;
var pics = "", links = "", texts = "";
for (var i = 0; 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);

function DisplayFlash() {
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cabversion=6,0,0,0" width="' + pic_width + '" height="' + swf_height + '">');
    document.write('<param name="movie" value="Flash/focus.swf">');
    document.write('<param name="quality" value="high"><param name="wmode" value="transparent">'); //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 src="Flash/focus.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" wmode="transparent" />');
    document.write('</object>');
}

