// Flash Activating Script 
// http://support.microsoft.com/?kbid=912945

// s: source url
// w: source width
// h: source height
// b: bgcolor
// t: wmode (transparent)
// v: FlashVars
// select: Simple sound
// align: align=absmiddle

function aflash(s,w,h,b,t,v,select,align){	
	var str = "";		
	switch(select) {
		case "sound":
		str = "<embed src='"+s+"'+ quality=low width=0 height=0 pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash></embed>"
		break;	

		default:		
		str  = "<object classid=CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000 codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0 width="+w+" height="+h+" "+align+">"
		str += "<param name=allowscriptaccess value=samedomain />"
		str += "<param name=movie value='"+s+"' />"	
		str += "<param name=bgcolor value='"+b+"' />"
		str += "<param name=quality value=high />"		
		str += "<param name=loop value=false />"
		str += "<param name=menu value=false />"
		if(t) str += "<param name=wmode value=transparent />"
		str += "<param name=FlashVars value='"+v+"' />"
		str += "<embed src='"+s+"' width='"+w+"' height='"+h+"' bgcolor='"+b+"' wmode='"+t+"' "+align+" loop=false menu=false quality=high allowscriptaccess=samedomain type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer FlashVars="+v+" />"	
		str += "</object>"
		break;	
	}
	document.writeln(str);
}
function writeln(id){
	document.writeln(document.getElementById(id).value)
}