// JavaScript Document
//Loads the embeded flash so the user does not have to activate

function runFlash(type) {
	var fileName = "";
	if (type == "flash") {
		fileName = "flash/feature.swf";
	}
	else if (type == "image") {
		fileName = "flash/feature_img.swf";
	}
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="730" height="150">');
	document.write("<param name='movie' value='" + fileName + "' />");
    document.write('<param name="quality" value="high" />');
    document.write('<param name="wmode" value="transparent" />');
    document.write("<embed src='" + fileName + "' width='730' height='150' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='transparent'></embed>");
	document.write('</object>');
}