function embed_write(url2){
	var flashstr1='<center><embed src="'+url2+'" autostart=true></center><p>';

	document.write(flashstr1);
}

function flash_write(url,w,h,id,bg,win){

	var flashstr='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+w+'" HEIGHT="'+h+'" id="'
	+id+'"> ';
	flashstr+='<PARAM NAME=allowScriptAccess value="always"> ';
	flashstr+='<PARAM NAME=movie VALUE="'+url+'"> ';
	flashstr+='<PARAM NAME=quality VALUE=high> ';
	flashstr+='<PARAM NAME=menu VALUE=false> ';
	if(win){flashstr+='<PARAM NAME=wmode VALUE="'+win+'"> ';}
	if(bg){	flashstr+='<PARAM NAME=bgcolor VALUE="'+bg+'"> ';}
	flashstr+='<EMBED src="'+url+'" wmode="'+win+'"  bgcolor="'+bg+'" quality=high menu=false WIDTH="'+w+'" HEIGHT="'+h+'" NAME="'+id+'" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>';
	flashstr+='</OBJECT>';

	document.write(flashstr);
}

