var so = null;

$(document).ready(function()
	{
		ShowInspireTLA();
	});

function ShowInspireTLA()
{
	var anchor = GetRef("footerlogo");
	if (anchor == null) return;
	
	var target = GetRef("inspire_tla");
	if (target == null) return;
	
	var pos = findPos(anchor);
	//target.style.top = (pos.top - 100) +"px";
	//target.style.left = (pos.left + 1) +"px";
	target.style.top = (pos.top - 114) +"px";
	target.style.left = (pos.left - 90) +"px";
	
	ShowHide("inspire_tla", true);
	
}

function ShowHeaderImage(img, lang)
{
	var oImg = GetRef("headerShot");
	if (oImg == null) return;
	oImg.src = "/"+ lang +"/img/"+ img;
}

function ShowHeaderFlash(swf)
{
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
		
	var flashvars = {
		link_1: "/creativerecipes/index.do",
		link_2: "/chefsnotes/grilling.do"
	};
	var params = {
		menu: "false",
		wmode: "transparent"
	};
	/*
	 * ,
		flashvars: "link_1=/creativerecipes/index.do&link_2=/chefsnotes/grilling.do"
	 */
	var attributes = {};
	if (isIE) 
	{
		attributes.name = "mainFlashAnimation";
	}
	else
	{
		attributes.id = "mainFlashAnimation";
	}
	swfobject.embedSWF("/flash/"+ swf +".swf", "headerShotWrapper", "642", "319", "9.0.0", false, flashvars, params, attributes);
}

