//Allows the code to call a link from anywhere and link it to the route of it's local site.
//Particularly useful for POTM files that need to have local links
function localLink(link){
	var folder;
	var country;
	var language;
	var URI=parent.document.URL;
	folder=URI.substr(URI.indexOf('/',7)+1,URI.length);
	folder=folder.substr(folder.indexOf(''),folder.indexOf('/')+4);
//	language=folder.substring(1,3); Need to be fixed
//	country=folder.substring(4,6); Need to be fixed
	window.location="/"+folder+link;
}

//Opens the 777-300 Flash Demo in a new window
function boeingWindow1()
{window.open("/global/en/seating-plan/777demo/300ER/index.html","blank","toolbar=no,width=980,height=690")}

//Opens the 777-200 Flash Demo in a new window
function boeingWindow2()
{window.open("/global/en/seating-plan/777demo/200LR/index.html","blank","toolbar=no,width=980,height=690")}


