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://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"';
strSwf += 'width="'+widths+'" height="'+heights+'" id="'+fileid+'" >';
strSwf +='<param name="allowScriptAccess" value="Always" />';
strSwf += '<param name="movie" value="'+filename+'" />';
strSwf += '<param name="quality" value="high" />';
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"  allowScriptAccess="Always" 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);
}



function winResize() 
{ 

    var Dwidth = parseInt(document.body.scrollWidth); 
    var Dheight = parseInt(document.body.scrollHeight); 
    var divEl = document.createElement("div"); 
    divEl.style.position = "absolute"; 
    divEl.style.left = "0px"; 
    divEl.style.top = "0px"; 
    divEl.style.width = "100%"; 
    divEl.style.height = "100%"; 

    document.body.appendChild(divEl); 

    window.resizeBy(1000-divEl.offsetWidth, 710-divEl.offsetHeight); 
    document.body.removeChild(divEl); 
} 
