/*
ÊµÀý
<script language="JavaScript" type="text/javascript"> 
			  swf_load('main','swf/index.swf','800','520','username='+loginname,'');
</script>
*/
function swf_load(fileid, filename, widths, heights, fvs, wmd)
{
    this.FlashVars = (fvs != undefined)? fvs :'';
    this.Wmod = (wmd != undefined)? wmd :''; 

    var strSwf = "";

    strSwf += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
    strSwf += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"';
    strSwf += 'width="'+widths+'" height="'+heights+'" id="'+fileid+'" >';
    strSwf += '<param name="movie" value="'+filename+'" />';
    strSwf += '<param name="quality" value="high" />';
    strSwf += '<param name="menu" value="false" />';
    strSwf += (FlashVars != null) ? '<param name="FlashVars" value="'+FlashVars+'">' : '';
    strSwf += (Wmod != null) ? '<param name="wmode" value="'+Wmod+'">' : ''; 
    strSwf += '<embed';
    strSwf += (FlashVars != null) ? ' FlashVars="'+FlashVars+'"' : ''; 
    strSwf += (Wmod != null) ? ' wmode="'+Wmod+'"' : ''; 
    strSwf += ' src="'+filename+'" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer"';
    strSwf += 'type="application/x-shockwave-flash" width="'+widths+'" height="'+heights+'"  name="'+fileid+'" ></embed>';
    strSwf += '</object>';

    document.write(strSwf);
}
