
function act(imgName) {
	if (document.images)
		document[imgName].src = eval(imgName + "b.src");
}

function inact(imgName) {
	if (document.images)
		document[imgName].src = eval(imgName + "a.src");
}

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,bgcolor,FlashVars)
{
	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="' + width + '" height="' + height + '" id="home1" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="' + url + '" /><param name="quality" value="high" /><PARAM NAME="FlashVars" Value="' + FlashVars + '" /><PARAM NAME=bgcolor VALUE=' + bgcolor + ' />'); 
	document.write('<embed src="' + url + '" quality="high" width="' + width + '" height="' + height + '" name="home1" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="' + FlashVars + '"  bgcolor="' + bgcolor + '" />');
	document.write('</object>');
}

function openWin(file,windowName,w,h,prop)
{
	// some values that can be passed
	// width=600,height=500,left=20,top=20,scrollbars=yes,resizable=yes
	var winl = (screen.width - w) / 2;
	var wint = ((screen.height - h) / 2) - 25;
	var ObjWin = new Object()
	ObjWin.win = window.open(file, windowName, prop+',top='+wint+',left='+winl+',width='+w+',height='+h)
	if (parseInt(navigator.appVersion) >= 4) { ObjWin.win.window.focus(); }
}