// JavaScript Document

var messagedateflexible ="We will show you an interactive calendar displaying low-fare options for the dates you've selected AND for the 3 days around those dates.<br><br>This is ideal if you are flexible about when you travel and just want to see the cheapest dates to fly.";
var mssgdirectflight = "Please note: a direct flight does not necessarily mean a non-stop flight. A direct flight is a flight with a direct route, which offers you the convenience of travelling on a single aircraft for your entire journey. It may stop at one or more locations for refuel or passenger changes, however no changes of plane are required to reach your destination. If you choose direct flights only, but we are unable to find any flights that match your needs, we will automatically search to check all other available fares.To provide you with the cheapest fare available, we will then search all routes - this may sometimes includes changing aircraft."
//document.write('<div id="MsgFloat" class="alltext" style="display:none;position:absolute;background-color:#F3EEDE;border:1px solid black;padding:2px"></div>');
document.write('<textarea id="MsgFloat" class="alltext" style="display:none;position:absolute;background-color:#F3EEDE;border:1px solid black;padding:4px"></textarea>');
//<textarea name="textarea"></textarea>
function ShowPopupMessage(msg,obj,pos,disp,w,h)
{
	x=getposOffset(obj, "left");
	y=getposOffset(obj, "top");
	
	obj = document.getElementById("MsgFloat");
	if(pos=="top")
	{
		obj.style.top = y-disp-h/2+"px";
		obj.style.left = x+"px";
	}
	else
	{	
		obj.style.top = y+disp+"px";
		obj.style.left = x+"px";
	}
	//obj.style.width=w+"px";
	//obj.innerHTML = msg;
	obj.value=msg;
	obj.style.display = "block";
}
function HidePopupMessage()
{
	obj = document.getElementById("MsgFloat");
	obj.style.display = "none";
}
function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}