// JavaScript Document

 //get current location 
var currentHost = location.host;
var GameUrl = "";
var PodiumUrl = "";

// Changed 8/21/08 - GSI Please update
var SiteUrlLink = "";

if ( currentHost != "") {
	GameUrl = "http://" + currentHost + "/unexpectedobstacles/";
	PodiumUrl = "http://" + currentHost + "/podium/assets/";
	SiteUrlLink = "http://" + currentHost;
}
else { // testing locally
	PodiumUrl = "assets/";
	GameUrl = "http://tbl-uat01.uat.gsipartners.com/unexpectedobstacles";
	SiteUrlLink = "http://www.timberland.com";
}
//testing 
//alert (currentHost);

var currentPodium = "podium_coded_v4.swf";

//alert (PodiumUrl);
var so = new SWFObject(currentPodium, "podium", "100%", "100%", "8", "#FF6600");
so.addParam("scale", "noscale");
so.addParam("wmode", "transparent");
so.addParam("allowScriptAccess", "always");
//so.addParam("allowFullScreen", "true");
so.addVariable("FlashStaticCont", "http:/tbl.imageg.net");
//so.addVariable("FlashDynamicCont", "http://www.timberland.com/unexpectedobstacles/");
so.addVariable("FlashDynamicCont", PodiumUrl);
so.addVariable("gameUrl", GameUrl);
so.addVariable("siteUrlLink", SiteUrlLink);

// end changed area

// Changed 8/11/08 - GSI Please update
/*
if (showMovie){

	so.write("hiddenConent");
	currentInnerHTML = document.getElementById('hiddenConent').innerHTML;
	initialFlashContent = document.getElementById('hiddenConent').innerHTML;
	//document.getElementById('hiddenConent').innerHTML = "";
	so.write("flashcontent");
	//alert(currentInnerHTML);
}

else {

	so.write("hiddenConent");
	currentInnerHTML = document.getElementById('hiddenConent').innerHTML;
	initialFlashContent = document.getElementById('hiddenConent').innerHTML;
	//document.getElementById('hiddenConent').innerHTML = "";
	//alert(currentInnerHTML);
}
*/
// end changed area