if(document.location.href.indexOf("www.")==-1)
{
document.location.href="http://www."+document.location.href.substring(document.location.href.indexOf("transatlantic"),document.location.href.length);
}
var t=c=i=0;
var tempLength=document.location.href;
function setHTTP(type,cont,id,ifCall)
{		if(document.location.href.indexOf("#")==-1)
		{	
			if(type==0||type==null||type==undefined){}
			else
			{
				if(cont!="undefined"&&cont!=undefined)
				{	
					if (navigator.appName.indexOf("Microsoft") != -1) {document.getElementById("content").src="cont.html?"+type+"-"+cont+"-"+id;}
					document.location.href+="#/"+type+"/"+cont+"/"+id+"/";
					pageTracker._trackPageview(type+"_"+cont+"_"+id);
				}
				else
				{
					document.location.href+="#/"+type+"/";
					pageTracker._trackPageview(type);
					//tempLength=document.location.href;
					if (navigator.appName.indexOf("Microsoft") != -1) {document.getElementById("content").src="cont.html?"+type;}
				}
			}
		}
		
		else
		{	
			temoStr=document.location.href.substring(0,document.location.href.indexOf("#"));
			if(type==0||type==null||type==undefined)
			{
				document.location.href=temoStr+"#/";
			}
			else
			{
				if(cont!="undefined"&&cont!=undefined)
				{
					if (navigator.appName.indexOf("Microsoft") != -1) {document.getElementById("content").src="cont.html?"+type+"-"+cont+"-"+id;}
					document.location.href=temoStr+"#/"+type+"/"+cont+"/"+id+"/";
				}
				else
				{
					if (navigator.appName.indexOf("Microsoft") != -1) {document.getElementById("content").src="cont.html?"+type;}
					document.location.href=temoStr+"#/"+type+"/";
				}
			}
		}
	if(ifCall!=1){ tempLength=document.location.href;}
	return "HI!"
}

function callExternalInterface() {
	tempLength=document.location.href;
    thisMovie("flash").goHome();
}

function thisMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName]
    }
    else {
        return document[movieName]
    }
}
		

checkInt=setInterval(checkHistory,1000)

function checkHistory()
{
if(tempLength!=document.location.href){callExternalInterface();}
}

function loadPathElements()
{
	document.body.appendChild(document.createElement("div")).innerHTML="<iframe id='content' src='' width='0' height='0' style='position:absolute; display:none'></iframe>";
	if (navigator.appName.indexOf("Microsoft") != -1)
	{
	if(document.location.href.indexOf("#")!=-1)
	{
			var cont1=urlPath.substring(urlPath.indexOf("#")+2,urlPath.length-1);
			var setPredefinedOptions=cont1.split("/");
			document.getElementById("content").src="cont.html?"+setPredefinedOptions[0]+"-"+setPredefinedOptions[1]+"-"+setPredefinedOptions[2];
	}
	else
	{document.getElementById("content").src="cont.html?"}
	}
}