
function changeElementDisplay(el_id, value) {
	var el = document.getElementById(el_id);
	if (el != null) {
		el.style.display=value;
	}
}

function changeElementClass(el_id, value) {
	var el = document.getElementById(el_id);
	if (el != null) {
		el.className=value;
	}
}

function FlashInstalled() {
	result = false;
	if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])
	{
		result = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
	}
	else if (document.all && (navigator.appVersion.indexOf("Mac")==-1))
	{
		// IE Windows only -- check for ActiveX control, have to hide code in eval from Netscape (doesn't like try)
		eval ('try {var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj)	result = true; xObj = null;	} catch (e)	{}');
	}
	return result;
}

function FlashWrite(url,width,height,flashvars) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="' + width + '" height="' + height + '">');
	document.write('<param name="movie" value="' + url + '" /> <param name="quality" value="high" /><param name="flashvars" value="' + flashvars + '" />');
	document.write('<embed src="' + url + '" quality="high" flashvars="' + flashvars + '" width="' + width + '" height="' + height + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
}
