var menu_flights=new Array()
menu_flights[0]='<a href="http://www.airfares.com.sg/flights/LatestPromotions.aspx">Latest Airlines Promotions</a>'
menu_flights[1]='<a href="http://www.airfares.com.sg/flights/EconomyClassFares.aspx">Economy Class</a>'
menu_flights[2]='<a href="http://www.airfares.com.sg/flights/PremiumEconomy/index.htm">Premium Economy Class</a>'
menu_flights[3]='<a href="http://www.airfares.com.sg/flights/business_class.htm">First &amp; Business Class</a>'
menu_flights[4]='<a href="http://www.airfares.com.sg/flights/RoundTheWorld/index.htm">Round The World</a>'
menu_flights[5]='<a href="http://www.airfares.com.sg/flights/Airpasses/index.htm">Air Passes</a>'
menu_flights[6]='<a href="http://www.airfares.com.sg/flights/StudentFare.aspx">Student Fares</a>'
menu_flights[7]='<a href="http://www.maidfares.com/Default.aspx">Maid / Worker Fares</a>'
menu_flights[8]='<a href="http://www.seniorcitizenfares.com/Default.aspx">Senior Citizen Fares</a>'
menu_flights[9]='<a href="http://www.seamanfares.com.sg/Default.aspx">Seaman Fares</a>'
menu_flights[10]='<a href="http://www.airfares.com.sg/flights/low_cost_airlines.htm">Low Cost Fares</a>'
menu_flights[11]='<a href="http://www.airfares.com.sg/airfares/3_at_city.htm">Fares by Cities</a>'
menu_flights[12]='<a href="http://www.airfares.com.sg/airfares/3_at_airlines.htm">Fares by Airlines</a>'
menu_flights[13]='<img src="http://www.airfares.com.sg/graphic_new/brand/DropDownMenu/Flights.gif" width="138px" height="30px">'

var menu_cruises=new Array()
menu_cruises[0]='<a href="promotion/latest_promotions.htm">Latest Promotions</a>'
menu_cruises[1]='<a href="promotion/school_holiday_promotions.htm">School Holiday Promotions</a>'
menu_cruises[2]='<a href="Star_Cruises/index.htm">Star Cruises</a>'
menu_cruises[3]='<a href="Royal_Caribbean/index.htm">Royal Caribbean</a>'
menu_cruises[4]='<a href="Celebrity_Cruises/index.htm">Celebrity Cruises</a>'
menu_cruises[5]='<a href="Princess_cruises/index.htm">Princess Cruises</a>'
menu_cruises[6]='<a href="Holland_America/index.htm">Holland American Line</a>'
menu_cruises[7]='<a href="Norwegian_Cruises/index.htm">Norwegian Cruise Line</a>'
menu_cruises[8]='<a href="Silversea/index.htm">Silversea Cruises</a>'
menu_cruises[9]='<a href="MSC/index.htm">MSC Cruises</a>'
menu_cruises[10]='<a href="cruise_lines.htm">More Cruise Lines</a>'
menu_cruises[11]='<img src="http://www.airfares.com.sg/graphic_new/brand/DropDownMenu/Cruises.gif" width="138px" height="30px">'

var menu_getaways=new Array()
menu_getaways[0]='<a href="http://www.getaways.com.sg/country/Indonesia">Indonesia Getaways</a>'
menu_getaways[1]='<a href="http://www.getaways.com.sg/country/Malaysia">Malaysia Getaways</a>'
menu_getaways[2]='<a href="http://www.getaways.com.sg/country/Thailand">Thailand Getaways</a>'
menu_getaways[3]='<img src="http://www.airfares.com.sg/graphic_new/brand/DropDownMenu/Getaways.gif" width="138px" height="30px">'

var menu_resorts=new Array()
menu_resorts[0]='<a href="http://www.resorts.com.sg/Anantara/HB1">Anantara</a>'
menu_resorts[1]='<a href="http://www.resorts.com.sg/Angsana/HC1">Angsana</a>'
menu_resorts[2]='<a href="http://www.resorts.com.sg/Banyan-Tree/HA2">Banyan Tree</a>'
menu_resorts[3]='<a href="http://www.resorts.com.sg/Chaweng-_-Melati/HB3">Chaweng / Melati</a>'
menu_resorts[4]='<a href="http://www.resorts.com.sg/Club-Med/HH3">Club Med</a>'
menu_resorts[5]='<a href="http://www.resorts.com.sg/Kayumanis/HB11">Kayumanis</a>'
menu_resorts[6]='<a href="http://www.resorts.com.sg/Nirwana/HB14">Nirwana</a>'
menu_resorts[7]='<a href="http://www.resorts.com.sg/Universal-Resorts/HA19">Universal Resorts</a>'
menu_resorts[8]='<img src="http://www.airfares.com.sg/graphic_new/brand/DropDownMenu/Resorts.gif" width="138px" height="30px">'

var menu_packages=new Array()
menu_packages[0]='<a href="http://www.airfares.com.sg/AirlinePackages/index.aspx">Airline Packages</a>'
menu_packages[1]='<a href="http://www.airfares.com.sg/Free_Easy_Packages/index.aspx">Free & Easy Packages</a>'
menu_packages[2]='<a href="http://www.airfares.com.sg/TourPackages/index.aspx">Tour Packages</a>'
menu_packages[3]='<a href="http://www.airfares.com.sg/LandPackages/index.aspx">Land Packages</a>'
menu_packages[4]='<img src="http://www.airfares.com.sg/graphic_new/brand/DropDownMenu/Packages.gif" width="138px" height="30px">'

var menu_land=new Array()
menu_land[0]='<a href="http://www.airfares.com.sg/landtours/InsightVacations/index.html">Insight Vacations</a>'
menu_land[1]='<a href="http://www.airfares.com.sg/landtours/contiki/index.htm">Contiki</a>'
menu_land[2]='<a href="http://www.airfares.com.sg/landtours/trafalgar/index.htm">Trafalgar</a>'
menu_land[3]='<a href="http://www.airfares.com.sg/landtours/tourmasters/index.htm">Tourmasters</a>'
menu_land[4]='<a href="http://www.airfares.com.sg/landtours/InspiringJourneys/tours/journey/index.html">Inspiring Journeys</a>'
menu_land[5]='<img src="http://www.airfares.com.sg/graphic_new/brand/DropDownMenu/LandTours.gif" width="138px" height="30px">'

var menu_car=new Array()
menu_car[0]='<a href="http://www.airfares.com.sg/CarRental/index.htm">Avis</a>'
menu_car[1]='<a href="http://www.airfares.com.sg/CarRental/index.htm">Book Direct Avis</a>'
menu_car[2]='<img src="http://www.airfares.com.sg/graphic_new/brand/DropDownMenu/Cars.gif" width="138px" height="30px">'

var menu_rails=new Array()
menu_rails[0]='<a href="http://www.airfares.com.sg/rail/eurail/index.htm">Eurail Pass</a>'
menu_rails[1]='<a href="http://www.airfares.com.sg/rail/eurail/index.htm#B">BritRail Pass</a>'
menu_rails[2]='<a href="http://www.airfares.com.sg/rail/japan/index.htm">Japan Rail Pass</a>'
menu_rails[3]='<a href="http://www.airfares.com.sg/rail/Korea/Korea.htm">Korail Pass</a>'
menu_rails[4]='<img src="http://www.airfares.com.sg/graphic_new/brand/DropDownMenu/Rails.gif" width="138px" height="30px">'

var menu_insurance=new Array()
menu_insurance[0]='<a href="http://www.airfares.com.sg/travel_insurance/TravelDefence/index.htm">Travel Guard</a>'
menu_insurance[1]='<a href="http://www.airfares.com.sg/travel_insurance/TravelDefence/booking.htm">Buy Travel Insurance</a>'
menu_insurance[2]='<img src="http://www.airfares.com.sg/graphic_new/brand/DropDownMenu/Insurance.gif" width="138px" height="30px">'

var menu_contact=new Array()
menu_contact[0]='<a href="http://www.misatravel.com/feedback/index.aspx?s=w">Feedback to us</a>'
menu_contact[1]='<a href="http://www.airfares.com.sg/storedir/apply-visa.htm">Visa Application</a>'
menu_contact[2]='<a href="http://www.airfares.com.sg/storedir/contactus1.htm#office_add">Our Address</a>'
menu_contact[3]='<a href="http://www.airfares.com.sg/storedir/contactus1.htm#Our Business Hours">Business Hours</a>'
menu_contact[4]='<a href="http://www.airfares.com.sg/storedir/contactus1.htm#Emergency Telephone Numbers (After Office Hours)">Emergency Contacts</a>'
menu_contact[5]='<a href="http://www.airfares.com.sg/storedir/AllForms.htm">Enquiry & Booking</a>'
menu_contact[6]='<a href="http://www.airfares.com.sg/storedir/faq.htm">FAQ</a>'
menu_contact[7]='<a href="http://www.airfares.com.sg/storedir/contactus1.htm#Account Enquiries">Account Enquiry</a>'
menu_contact[8]='<a href="http://www.airfares.com.sg/storedir/contactus1.htm#Travel Partners Enquiries">Travel Partners Enquiry</a>'
menu_contact[9]='<a href="http://www.airfares.com.sg/storedir/contactus1.htm#Job Vacancy at Misa Travel">Job Vacancy</a>'
menu_contact[10]='<a href="http://www.airfares.com.sg/storedir/contactus1.htm#Technical Support">Technical Support</a>'
menu_contact[11]='<a href="http://www.airfares.com.sg/storedir/contactus1.htm#Permission to Extract">Extract Permission</a>'
menu_contact[12]='<a href="http://www.airfares.com.sg/newsletter/registration.aspx">Subscribe our Mailing List</a>'
menu_contact[13]='<img src="http://www.airfares.com.sg/graphic_new/brand/DropDownMenu/Contact.gif" width="138px" height="30px">'



var menuwidth='150px' //default menu width
var menuwidth_cruises='165px'
var menuwidth_rc='190px' //default menu width
var menubgcolor='#ffffff'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="menudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

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;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("menudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu


