var MM_FlashControlInstalled;
function showFlash(animation, height, width) {
	if (checkFlash()) {
		document.write('<td width="575" colspan="3" height="200"><div align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" height="200" width="575"><param name="movie" value="flipper.swf"><param name="quality" value="best"><param name="play" value="true"><embed height="200" pluginspage="http://www.macromedia.com/go/getflashplayer" src="flipper.swf" type="application/x-shockwave-flash" width="575" quality="best" play="true"></object></div></td>');
	}
	else {
		document.write('<td width="190" height="154"><div align="center"><img src="imageFlipper/a/a1.jpg" name="flippya" alt="" height="154" width="154" border="0" /></div></td><td width="190" height="154"><div align="center"><img src="imageFlipper/b/b1.jpg" name="flippyb" alt="" height="154" width="154" border="0"></div></td><td width="190" height="154"><div align="center"><img src="imageFlipper/c/c1.jpg" name="flippyc" alt="" height="154" width="154" border="0" onload="beginFlipping();"></div></td>');
	}
}
function newParam(name, value) {
	var p = document.createElement("param");
	p.setAttribute("name", name);
	p.setAttribute("value", value);
	return p;
}

function checkFlash() {
	/* Check to see if Flash is installed */
	var installed;	
	if (navigator.plugins && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash"]) {
			installed = true;			
		}
	}
	else if (MM_FlashControlInstalled != null) {
		installed = MM_FlashControlInstalled;
	}
	else {
		installed = false;
	}
	return installed;
	
}
