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,0,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 += "<param name='wmode' value='transparent' />";
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 setFlashWidth(divid, newW){
	document.getElementById(divid).style.width = newW+"px";
}
function setFlashHeight(divid, newH){
	document.getElementById(divid).style.height = newH+"px";		
}
function setFlashSize(divid, newW, newH){
	setFlashWidth(divid, newW);
	setFlashHeight(divid, newH);
}
function canResizeFlash(){
	var ua = navigator.userAgent.toLowerCase();
	var opera = ua.indexOf("opera");
	if( document.getElementById ){
		if(opera == -1) return true;
		else if(parseInt(ua.substr(opera+6, 1)) >= 7) return true;
	}
	return false;
}