


function initPage (){

	// since js is enabled, show the full footer and hide the non-flash one
	document.getElementById("footer").style.display = "block";
	document.getElementById("nonFlashfooter").style.display = "none";

}

// Determine if outgoing URL needs a ? to start querystring, & to continue it, or nothing at all
function appendURL(url) {
	if (isiata == 1) {
		if (url.indexOf("?") == -1)
			newurl = url + "?" + newqs;
		else
			newurl = url + "&" + newqs;
			
		return(newurl);
	}
	else {
		return(url);
	}
}

function loadFlash (){

    var isiata;
       
	// This script appends the _IATAno value to a link 
	// if there is one and ignores it otherwise

	// Check for _IATAno in querystring
	if (getQueryParamValue("_IATAno") == "")
	{
		isiata = 0;
	}
	else
	{
		isiata = 1;
		var newqs = "_IATAno=" + getQueryParamValue("_IATAno");
	}
	
	var so = new SWFObject("HI_Loader.swf", "main", "970", "605", "8", "#FFFFFF");
	if (isiata == 1){
		so.addVariable("_IATAno", getQueryParamValue("_IATAno"));
	}
	else {
		so.addVariable("_IATAno", "");
	}
	so.write("flashcontent");
}



window.onload = initPage;




