window.onload = Init;

function Init()
{
	MM_preloadImages();
}

function MM_preloadImages()
{
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore()
{
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d)
{
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage()
{
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function Red1()
{
	window.location = "/5-arguments-for-occasion-based-marketing";
}

function Red2()
{
	window.location = "/culture-of-food";
}
		
function MouseOverTab(tab)
{
	if (tab == "1")
	{
		document.getElementById("webinar_image").src = "/images/OBM-webinar.gif";
		document.getElementById("webinar_title").innerHTML = "<b>5 ARGUMENTS FOR OCCASION-BASED MARKETING</b>";
		document.getElementById("webinar_description").innerHTML = "<br>Bust out of the rut of marketing myopia. We've identified over 150 eating occasions capturing the where, when, what and who around consumption inside and outside the home. &raquo; <a href=\"/5-arguments-for-occasion-based-marketing\">View Webinar</a>";
		document.getElementById("webinar_presenting").innerHTML = "<b>PRESENTING:</b><br>Harvey Hartman, Founder, Chairman &amp; CEO<br>James Richardson, Ph.D., VP, Strategic Insights";
		document.getElementById("webinar_image1").src = "/images/OBM-webinar-on.gif";
		document.getElementById("webinar_image2").src = "/images/culture-of-food-off.gif";
		document.getElementById("webinar_image1").onclick = Red1;
	}
	else if (tab == "2")
	{
		document.getElementById("webinar_image").src = "/images/culture-of-food-pict.gif";
		document.getElementById("webinar_title").innerHTML = "<b>CULTURE OF FOOD</b>";
		document.getElementById("webinar_description").innerHTML = "<br>America is becoming a food culture. We know from our 20-years being immersed in consumers' lives that people do not eat ingredients or nutrients or platforms or mission statements&mdash;they eat food. Find out why culture matters. &raquo; <a href=\"/culture-of-food\">View Webinar</a><p><a href=\"/downloads/Culture of Food Webinar Oct09.pdf\">Download Webinar PDF (2MB)</a></p>";
		document.getElementById("webinar_presenting").innerHTML = "<b>PRESENTING:</b><br>Jarrett Paschel, Ph.D.";
		document.getElementById("webinar_image1").src = "/images/OBM-webinar-off.gif";
		document.getElementById("webinar_image2").src = "/images/culture-of-food-on.gif";
		document.getElementById("webinar_image2").onclick = Red2;
	}
}