var readGFXURLmenu = "";
var readURLmenu = window.location.href;
if(readURLmenu.indexOf("http://flythomascook") != -1)
{
readGFXURLmenu = "http://www.flythomascook.com";
}
else
{
readGFXURLmenu = "";
}
function ShowLayerFromImage(objImg, objDiv){
x = findPosX(objImg);
y = findPosY(objImg) + 35;
if (bv.dom){
document.getElementById(objDiv).style.visibility = 'visible';
document.getElementById(objDiv).style.left = x;
document.getElementById(objDiv).style.top = y;
}
else{
if (bv.ie4){
document.all[objDiv].style.visibility = 'visible';
document.all[objDiv].style.left = x;
document.all[objDiv].style.top = y;
}
else{
if (bv.ns4){
document.layers[objDiv].visibility = 'visible';
document.layers[objDiv].left = x;
document.layers[objDiv].top = y;
}
}
}
}
function HideLayerFromImage(objDiv){
if (bv.dom){
document.getElementById(objDiv).style.visibility = 'hidden';
}
else{
if (bv.ie4){
document.all[objDiv].style.visibility = 'hidden';
}
else{
if (bv.ns4){
document.layers[objDiv].visibility = 'hidden';
}
}
}
}
function ShowLayer(obj){
obj.style.visibility = 'visible';
}
function HideLayer(obj){
obj.style.visibility = 'hidden';
}
function ImageSwap(obj, imageName){
obj.src = readGFXURLmenu + '../images/' + imageName;
}
function findPosX(obj)
{
var curleft = 0;
if (obj.offsetParent)
{
while (obj.offsetParent)
{
curleft += obj.offsetLeft
obj = obj.offsetParent;
}
}
else if (obj.x)
curleft += obj.x;
return curleft;
}
function findPosY(obj)
{
var curtop = 0;
if (obj.offsetParent)
{
while (obj.offsetParent)
{
curtop += obj.offsetTop
obj = obj.offsetParent;
}
}
else if (obj.y)
curtop += obj.y;
return curtop;
}
function browserVersion(){
this.ver=navigator.appVersion;
this.dom=document.getElementById?1:0;
this.ie5=(this.ver.indexOf('MSIE 5')>-1 && this.dom)?1:0;
this.ie6=(this.ver.indexOf('MSIE 6')>-1 && this.dom)?1:0;
this.ie4=(document.all && !this.dom)?1:0;
this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns5);
this.safari=(this.ver.indexOf('Safari') != - 1)?1:0;
return this;
}
bv = new browserVersion();
document.write(' <div id="div1" class="ShowHideLayer" style="position:absolute;" onmouseover="ShowLayer(this);ImageSwap(img100, \'home1.gif\');" onmouseout="HideLayer(this);ImageSwap(img100, \'home0.gif\');"> ');
document.write(' </div> ');
document.write(' <div id="div2" class="ShowHideLayer" style="position:absolute;" onmouseover="ShowLayer(this);ImageSwap(img200, \'dealsbtn1.gif\');" onmouseout="HideLayer(this);ImageSwap(img200, \'dealsbtn0.gif\');"> ');
document.write(' <table cellpadding="0" cellspacing="0" border="0" class="tLayer" width="165"> ');
document.write(' <tr> ');
document.write(' <td class="topleft"><img src="' + readGFXURLmenu + '../images/pad.gif" height="10" width="10"></td> ');
document.write(' <td class="topcenter"></td> ');
document.write(' <td class="topright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="middleleft"></td> ');
document.write(' <td class="middlecenter"><a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.deals_out&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/deals.shtml">Cheap seats from the UK</a></td> ');
document.write(' <td class="middleright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="middleleft"></td> ');
//document.write(' <td class="middlecenter"><a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.cheapseatstouk&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/deals_inbound.shtml">Cheap seats to the UK</a></td> ');
document.write(' <td class="middlecenter"><a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.deals_in&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/deals_page_inbound.shtml">Cheap seats to the UK</a></td> ');
document.write(' <td class="middleright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="middleleft"></td> ');
document.write(' <td class="middlecenter"><a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.deals_ski&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/ski_deals.shtml">Ski destination deals</a></td> ');
document.write(' <td class="middleright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="bottomleft"></td> ');
document.write(' <td class="bottomcenter"></td> ');
document.write(' <td class="bottomright"><img src="' + readGFXURLmenu + '../images/pad.gif" height="10" width="10"></td> ');
document.write(' </tr> ');
document.write(' </table> ');
document.write(' </div> ');


document.write(' <div id="div3" class="ShowHideLayer" style="position:absolute;" onmouseover="ShowLayer(this);ImageSwap(img300, \'where_we_fly1.gif\');" onmouseout="HideLayer(this);ImageSwap(img300, \'where_we_fly0.gif\');"> ');
document.write(' <table cellpadding="0" cellspacing="0" border="0" class="tLayer" width="123"> ');
document.write(' <tr> ');
document.write(' <td class="topleft"><img src="' + readGFXURLmenu + '../images/pad.gif" height="10" width="10"></td> ');
document.write(' <td class="topcenter"></td> ');
document.write(' <td class="topright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="middleleft"></td> ');
document.write(' <td class="middlecenter"><a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.routemap&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/route-map.shtml">Route map</a></td> ');
document.write(' <td class="middleright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="middleleft"></td> ');
document.write(' <td class="middlecenter"><a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.destinations&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/flights-list.shtml">Destinations</a></td> ');
document.write(' <td class="middleright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="middleleft"></td> ');
document.write(' <td class="middlecenter"><a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.ukairports&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/airports.shtml">UK airports</a></td> ');
document.write(' <td class="middleright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="middleleft"></td> ');
document.write(' <td class="middlecenter"><a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.timetables&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/timetables.shtml">Timetable select</a></td> ');
document.write(' <td class="middleright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="bottomleft"></td> ');
document.write(' <td class="bottomcenter"></td> ');
document.write(' <td class="bottomright"><img src="' + readGFXURLmenu + '../images/pad.gif" height="10" width="10"></td> ');
document.write(' </tr> ');
document.write(' </table> ');
document.write(' </div> ');
document.write(' <div id="div4" class="ShowHideLayer" style="position:absolute;" onmouseover="ShowLayer(this);ImageSwap(img400, \'your_bookings1.gif\');" onmouseout="HideLayer(this);ImageSwap(img400, \'your_bookings0.gif\');"> ');
document.write(' <table cellpadding="0" cellspacing="0" border="0" width="210" class="tLayer"> ');
document.write(' <tr> ');
document.write(' <td class="topleft"><img src="' + readGFXURLmenu + '../images/pad.gif" height="10" width="10"></td> ');
document.write(' <td class="topcenter"></td> ');
document.write(' <td class="topright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="middleleft"></td> ');
document.write(' <td class="middlecenter"><a href="#" onClick="getSIDurl(this); return true" title="NON-MEMBER bookings" id="C3_PNR_LOOKUP*">NON-MEMBER bookings</a></td> ');
document.write(' <td class="middleright"></td> ');
document.write(' </tr> ');
if((inMld == 'AG' || inMld == 'MP' || inMld == 'C3') && (SLsess != ""))
{
document.write(' <tr> ');
document.write(' <td class="middleleft"></td> ');
document.write(' <td class="middlecenter"><hr align="left" width="100%" style="border-style:dashed; color: #FFFFFF; height: 1px;" id="rule"/></td> ');
document.write(' <td class="middleright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="middleleft"></td> ');
// GERALD
//document.write(' <td class="middlecenter"><a href="#" title="MEMBER/AGENT bookings" onClick="getSIDurl(this); return true" id="C3_PNR_LIST*member">MEMBER/AGENT bookings</a></td> ');
document.write(' <td class="middlecenter"><a href="javascript:nav(\'C3\', \'PNR_LIST\')" title="MEMBER/AGENT bookings" id="C3_PNR_LIST*member">MEMBER/AGENT bookings</a></td> ');
document.write(' <td class="middleright"></td> ');
document.write(' </tr> ');
}
document.write(' <tr> ');
document.write(' <td class="bottomleft"></td> ');
document.write(' <td class="bottomcenter"></td> ');
document.write(' <td class="bottomright"><img src="' + readGFXURLmenu + '../images/pad.gif" height="10" width="10"></td> ');
document.write(' </tr> ');
document.write(' </table> ');
document.write(' </div> ');
document.write(' <div id="div6" class="ShowHideLayer" style="position:absolute;" onmouseover="ShowLayer(this);ImageSwap(img600, \'extras1.gif\');" onmouseout="HideLayer(this); ImageSwap(img600, \'extras0.gif\');"> ');
document.write(' <table cellpadding="0" cellspacing="0" width="123" border="0" class="tLayer"> ');
document.write(' <tr> ');
document.write(' <td class="topleft"><img src="' + readGFXURLmenu + '../images/pad.gif" height="10" width="10"></td> ');
document.write(' <td class="topcenter"></td> ');
document.write(' <td class="topright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="middleleft"></td> ');
document.write(' <td class="middlecenter"><a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.benefits&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/benefits.shtml">Benefits</a></td> ');
document.write(' <td class="middleright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="middleleft"></td> ');
document.write(' <td class="middlecenter"><a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.seatreservations&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/extras.shtml#seatreserv">Seat reservations</a></td> ');
document.write(' <td class="middleright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="middleleft"></td> ');
document.write(' <td class="middlecenter"><a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.inflightmeals&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/extras.shtml#freemeals">In-flight meals</a></td> ');
document.write(' <td class="middleright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="middleleft"></td> ');
document.write(' <td class="middlecenter"><a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.carhire&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/extras.shtml#car">Car hire</a></td> ');
document.write(' <td class="middleright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="middleleft"></td> ');
document.write(' <td class="middlecenter"><a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.travelguides&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/extras.shtml#travelguides">Travel guides</a></td> ');
document.write(' <td class="middleright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="middleleft"></td> ');
document.write(' <td class="middlecenter"><a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.hotels&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/extras.shtml#hotel">Hotels</a></td> ');
document.write(' <td class="middleright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="middleleft"></td> ');
document.write(' <td class="middlecenter"><a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.foreignexchange&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/extras.shtml#money">Foreign exchange</a></td> ');
document.write(' <td class="middleright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="middleleft"></td> ');
document.write(' <td class="middlecenter"><a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.airportparking&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/extras.shtml#parking">Airport parking</a></td> ');
document.write(' <td class="middleright"></td> ');
document.write(' </tr> ');
document.write(' <tr> ');
document.write(' <td class="bottomleft"></td> ');
document.write(' <td class="bottomcenter"></td> ');
document.write(' <td class="bottomright"><img src="' + readGFXURLmenu + '../images/pad.gif" height="10" width="10"></td> ');
document.write(' </tr> ');
document.write(' </table> ');
document.write(' </div> ');
document.write(' <table cellpadding="0" cellspacing="0" border="0" width="750" align="center"> ');
document.write(' <tr> ');
// GERALD
//document.write(' <td align="left"> <a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.home&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/Index.shtml"><img src="' + readGFXURLmenu + '../images/home0.gif" alt="Home" border="0" id="img100" onmouseover="ShowLayerFromImage(this, \'div1\');ImageSwap(this, \'home1.gif\');" onmouseout="HideLayerFromImage(\'div1\');ImageSwap(this, \'home0.gif\');"></a> ');
document.write(' <td align="left"> <a href="javascript:nav(\'SB\')"><img src="' + readGFXURLmenu + '../images/home0.gif" alt="Home" border="0" id="img100" onmouseover="ShowLayerFromImage(this, \'div1\');ImageSwap(this, \'home1.gif\');" onmouseout="HideLayerFromImage(\'div1\');ImageSwap(this, \'home0.gif\');"></a> ');
document.write(' </td> ');
document.write(' <td align="center"> ');
document.write(' <a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.deals&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/deals.shtml"><img border="0" id="img200" src="' + readGFXURLmenu + '../images/dealsbtn0.gif" onmouseover="ShowLayerFromImage(this, \'div2\');ImageSwap(this, \'dealsbtn1.gif\');" onmouseout="HideLayerFromImage(\'div2\');ImageSwap(this, \'dealsbtn0.gif\');" alt="Deals"></a> ');
document.write(' </td> ');
document.write(' <td align="center"> ');
document.write(' <a href="javascript:void(0)"><img border="0" id="img400" src="' + readGFXURLmenu + '../images/your_bookings0.gif" onmouseover="ShowLayerFromImage(this, \'div4\');ImageSwap(this, \'your_bookings1.gif\');" onmouseout="HideLayerFromImage(\'div4\');ImageSwap(this, \'your_bookings0.gif\');" alt="Reconfirm/change booking"></a> ');
document.write(' </td> ');
document.write(' <td align="center"> ');
document.write(' <a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.timetables&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/timetables.shtml"><img border="0" id="img300" src="' + readGFXURLmenu + '../images/where_we_fly0.gif" onmouseover="ShowLayerFromImage(this, \'div3\');ImageSwap(this, \'where_we_fly1.gif\');" onmouseout="HideLayerFromImage(\'div3\');ImageSwap(this, \'where_we_fly0.gif\');" alt="Where we fly"></a> ');
document.write(' </td> ');
document.write(' <td align="right"> ');
document.write(' <a href="http://uk.sitestat.com/tcook/flythomascook/s?flytc.nav.extras&amp;ns_type=clickout&amp;ns_url=http://www.flythomascook.com/skylights/html/extras.shtml"><img border="0" id="img600" src="' + readGFXURLmenu + '../images/extras0.gif" onmouseover="ShowLayerFromImage(this, \'div6\');ImageSwap(this, \'extras1.gif\');" onmouseout="HideLayerFromImage(\'div6\');ImageSwap(this, \'extras0.gif\');" alt="Extras"></a> ');
document.write(' </td> ');
document.write(' </tr> ');
document.write(' </table> ');
document.close();
