// Flash header Script
/******************** Event registration ********************/
if(window.attachEvent) //IE
{
	window.attachEvent("onload", _initPageFunction);
}
else if(window.addEventListener) //DOM
{
	window.addEventListener("load", _initPageFunction, false);
}


function _initPageFunction()
{
	_initLogo();
_initHeader();
}

// function that insert a link over the logo in the header of the page for SEO
function _initLogo()
{
	var oDivLogo = document.getElementById('contentLogo');
	if(oDivLogo){oDivLogo.innerHTML = '<a id="insoleLogo" href="/" title="The Insole Shop">The Insole Shop</a>';}
}

function _initHeader(){
	
	var oFlashObject = new FlashObject("/img/Medias/Insoleshop-com/header.swf", "oFlashHeader", "609", "179", "6", "FFFFFF");
	oFlashObject.addParam("wmode", "transparent");
	oFlashObject.addParam("menu", "false");
	oFlashObject.addParam("quality", "high");
	oFlashObject.addParam("swLiveConnect", "true");
	oFlashObject.addParam("allowScriptAccess", "sameDomain");
	oFlashObject.addVariable("CurrentLang", EcommercePageCulture);
	oFlashObject.addVariable("FolderName", "Insoleshop-com/");
	oFlashObject.write("contentHeader"); 
}
