
function generate_flash(file_, width_, height_){		
	var mstring="";
	
	mstring = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width_+'" height="'+height_+'" id="falsh_" align="middle"> \n';
	mstring += '<param name="allowScriptAccess" value="always" /> \n';
	mstring += '<param name="movie" value="'+file_+'" /> \n';
	mstring += '<param name="quality" value="high" /> \n';
	mstring += '<param name="wmode" value="Transparent" /> \n';
	mstring += '<param name="bgcolor" value="#ffffff" /> \n';
	mstring += '<embed src="'+file_+'" quality="high" bgcolor="#ffffff" width="'+width_+'" height="'+height_+'" name="flash_" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> \n';
	mstring += '</object> \n';
	
	document.write(mstring);
}


function flashView(file_path, wmode, wsize, hsize){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width='+wsize+' height='+hsize+' VIEWASTEXT ID="Object1">');
document.write('<param name="movie" value='+file_path+' />');
document.write('<param name="quality" value="best">');
document.write('<param name="wmode" value='+wmode+'>');
document.write('<embed src='+file_path+' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+wsize+' height='+hsize+'></embed>');
document.write('</object>');
}
