if(!window.sPie){window.sPie={init:function(){this.sFirstClick=false;document.write('<table id="skipThePieTable" border="0" cellpadding="0" cellspacing="0"><tr><td><input type="text" id="pieSearch1" value="Search nutrition info" style="color: #999; width: 105px; font-size: 10px;" onkeydown="if(event.keyCode == 13){ sPie.search(); return false; }" onfocus="sPie.searchFirstClick(); return true;" /></td><td style="padding-left: 4px;"><input type="button" name="pieButton1" value="Search" style="font-size: 10px;" onclick="sPie.search(); return false;" /></td></tr></table>');
var a=this;setTimeout(function(){a.checkPieLink()},1E3)},searchFirstClick:function(){if(!this.sFirstClick){this.sFirstClick=true;var a=this.e("pieSearch1");a.value="";a.style.color="#000"}},checkPieLink:function(){for(var a=this.e("skipThePieTable").parentNode.childNodes,b=false,c=0;c<a.length;c++){var d=a[c];if(d.id=="skipThePieLink"&&/^http:\/\/skipthepie.(?:org|com)\//i.test(d.href)&&d.rel!="nofollow"&&d.style.display!="none")if(/(?:Nutrition|skipthepie)/i.test(d.innerText||d.textContent)){b=true;
break}}b||alert("Please paste the SkipThePie code exactly as given\nto you, including the link below the search box.\nPlease don't edit the code or link in any way.")},e:function(a){return document.getElementById(a)},search:function(){if(this.sFirstClick){var a=this.winSize(),b=this;this.createElement({id:"pieOnion1",opacity:60,width:a.width+"px",height:a.height+"px",position:"fixed",left:"0px",top:"0px",backgroundColor:"#777",zIndex:1E4,onclick:function(){b.closePanel()}},document.body);this.createElement({id:"piePanel1",
opacity:100,width:"600px",height:"500px",position:"fixed",top:a.height/2-200+"px",left:a.width/2-300+"px",margin:"0 auto 0 auto",backgroundColor:"#FFF",border:"1px solid #555",zIndex:10001},document.body);this.createElement({id:"pieClose1",width:"11px",height:"14px",position:"absolute",right:"0px",top:"0px",innerHTML:'<a href="#" onclick="sPie.closePanel(); return false;" style="text-decoration: underline; color: #000;">x</a>',textAlign:"right",fontFamily:"arial",fontSize:"14px",lineHeight:"10px",
textAlign:"center"},this.e("piePanel1"));a=this.createElement({id:"pieFrame",width:"589px",height:"490px",position:"absolute",left:"0px",top:"0px",borderWidth:0,zIndex:1},false,"IFRAME");a.width=589;a.height=490;a.src="http://skipthepie.org/?tmpl=w&q="+encodeURIComponent(this.e("pieSearch1").value);a.name="pieIframe1";a.scrolling="no";a.frameBorder="0";a.marginWidth="0";a.marginHeight="0";this.e("piePanel1").appendChild(a)}else alert("Please enter a search and then click the 'Search' button.")},closePanel:function(){var a=
this.e("pieOnion1");a.parentNode.removeChild(a);a=this.e("piePanel1");a.parentNode.removeChild(a)},createElement:function(a,b,c){c||(c="DIV");c=document.createElement(c);for(var d in a)if(d=="id")c.id=a.id;else if(d=="opacity")this.opacity(c,a.opacity);else if(/^(?:inner|on)[a-zA-Z]+$/.test(d))c[d]=a[d];else c.style[d]=a[d];b&&b.appendChild(c);return c},opacity:function(a,b){a.style.opacity=b/100;a.style.MozOpacity=b/100;a.style.KhtmlOpacity=b/100;a.style.filter="alpha(opacity="+b+")"},winSize:function(){var a=
0,b=0;if(window.innerWidth){a=window.innerWidth;b=window.innerHeight}else if(document.documentElement.clientWidth!=0){a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}else{a=document.body.clientWidth;b=document.body.clientHeight}return{width:a,height:b}}};sPie.init()};

