function loadIngredientAnimation(){
	//time value to bypass cache
	var time = (new Date()).getTime();
	var ingredient=document.getElementById('ingAnim').title;

	//set swf path
	var swfSource="/files/swf/ingredientPreloader.swf";

	var flashvars = {
		configPath:"/files/xml/",
		assetsPath: "/files/",
		xmlFile:"animdata.xml",
		ingredientID: ingredient
	};

	var params = {menu:"false", scale:"noscale", align:"T", allowScriptAccess:"always", allowFullScreen:"true", wmode:"transparent"};
	var attributes = {id:"ingredientAnimation"};
	swfobject.embedSWF(swfSource, 'ingAnim', "264", "294", "9.0.0", "", flashvars, params, attributes);
}
Event.observe(window,'load',loadIngredientAnimation,false);
