function writeNutritionSWF(swfFile,defaultPanel)
{
	switch (swfFile){
		
		case 0:
		//alert('LESS THAN FLASH 6.0.65');
		window.location = "../upgrade.aspx";
		break;
		
		case 1:
		//alert('LESS THAN REQUIRED BUT >= 6.0.65');
		var MMPlayerType = (IE == true) ? "ActiveX" : "PlugIn";
		var MMredirectURL = window.location;
		document.title = document.title.slice(0, 47) + " - Flash Player Installation";
		var MMdoctitle = document.title;
	

		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="645" height="250" id="nutritionflashpanel" align="middle">\n');
		document.write('<param name="allowScriptAccess" value="always" />\n');
		document.write('<param name="movie" value="../expressInstall.swf" />');
		document.write('<param name="quality" value="high" />\n');
		document.write('<param name="FlashVars" value="MMredirectURL='+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+'">');
		document.write('<param name="bgcolor" value="#e4881b" />');
		document.write('<embed src="../expressInstall.swf" flashvars="MMredirectURL='+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+'" width="645" height="250" name="nutritionflashpanel" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" menu="false" />');
		document.write('</object>\n');
		break;
		
		case 2:
		//alert('SUCCESS!');
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="645" height="250">');
		document.write('<param name="movie" value="nutrition_explorer.swf" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="flashvars" value="defaultPanel='+ defaultPanel +'" />');
		document.write('<embed src="nutrition_explorer.swf" quality="high" flashvars="defaultPanel='+ defaultPanel +'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="645" height="250"></embed>');
		document.write('</object>');
		break;
		
		default:
		break;
	}
	
	
}
