// JavaScript Document

	var focus_width=400 /**flash宽度**/ 
	var focus_height=240 /**图片高度**/ 
	var text_height=0 /**标题高度**/ 
	var swf_height = focus_height-2 
	var swf_width = focus_width-2   //为了去边框-2

    var swf_path = "images/links/";
    var config = '0xFFFFFF|0x2|0099FF|15|0xFFFFFF|0x0099FF|0x000000|8|3|1|_blank';
    var files = '';
    var links = '';
    var texts = '';
    for (var ADID in this.AllAD) {
        if (ADID < this.AllAD.length-1) {
            files += this.AllAD[ADID].ImgUrl + "|";
            links += this.AllAD[ADID].LinkUrl + "|";
            texts += this.AllAD[ADID].imgtext + "|";
        }
        else {
            files += this.AllAD[ADID].ImgUrl;
            links += this.AllAD[ADID].LinkUrl;
        }
    }

    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="' + swf_width + '" height="' + swf_height + '">');
    document.write('<param name="movie" value="' + swf_path + 'Focus.swf">'); document.write('<param name="quality" value="high">'); document.write('<param name="menu" value="false">');
    document.write('<param name="wmode" value="opaque">'); document.write('<param name="FlashVars" value="bcastr_config=' + config + '&amp;bcastr_file=' + files + '&amp;bcastr_link=' + links + '&amp;bcastr_title=' + texts + '">');
    document.write('<embed src="' + swf_path + 'Focus.swf" wmode="opaque" FlashVars="bcastr_config=' + config + '&amp;bcastr_file=' + files + '&amp;bcastr_link=' + links + '&amp;bcastr_title=' + texts + '" menu="false" quality="high" width="' + swf_width + '" height="' + swf_height + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
    document.write('</object>');

