function SCFlashstr (movie, wdth, hght, bgnd, idName) {
 to_write="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'";
 to_write+=" id='"+idName+"' width='"+wdth+"' height='"+hght+"'>\n";
 to_write+=" <param name='movie' value='"+movie+"'>\n";
 to_write+=" <param name='bgcolor' value='"+bgnd+"'>\n";
 to_write+=" <param name='quality' value='high'>\n";
 to_write+=" <param name='allowscriptaccess' value='samedomain'>\n";
 to_write+=" <embed type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'";
 to_write+=" name='"+idName+"' width='"+wdth+"' height='"+hght+"' src='"+movie+"' bgcolor='"+bgnd+"'";
 to_write+=" quality='high' swliveconnect='true' allowscriptaccess='samedomain'>\n";
 to_write+="</embed></object>";
 
 return(to_write);
}

function SCFlash(movie, wdth, hght, bgnd, idName) {
to_write=SCFlashstr(movie, wdth, hght, bgnd, idName);
//alert(to_write);
document.write(to_write);
}

function writeobject(name,str) {
	document.getElementById(name).innerHTML=str;
}