var timeOn=null;
var numMenus=50;
var currentMenuNo=0;
var menuActive=new Array(numMenus);
var tier=new Array(numMenus);
var borderMod=new Array(numMenus);
var menuType=new Array(numMenus);
var menus=new Array(numMenus);

function menuOver(){clearTimeout(timeOn);}

function menuOut(){timeOn=setTimeout("hideAllMenus()",500);}

function showMenu(m_No,eventObj){
	hideAllMenusTier(tier[m_No]-1);
	var borderModSize=borderMod[m_No];
	menuActive[m_No]=true;
	if (menuType[m_No]!='blank'){
		labelObj='labelCell'+m_No;
		x=getElementLeft(labelObj)-borderModSize;
		y=getElementTop(labelObj)+getElementHeight(labelObj);
		if (menus[m_No].align=='right')x=x+((getElementWidth(labelObj)-getElementWidth('menu'+m_No)))+(borderModSize*2);
		moveXY('menu'+m_No,x,y);
		if(changeObjectVisibility('menu'+ m_No,'visible'))return true;
    else return false;
	}
}

function showMenuSide(m_No,eventObj,myTier){
	hideAllMenusTier(tier[m_No]-1);
	var borderModSize=borderMod[m_No];
	menuActive[m_No]=true;
	if (menuType[m_No]!='blank'){
		labelObj='labelCell'+m_No;
		if(mac_ie)labelObj='labelRow'+m_No;
		x=getElementLeft(labelObj);
		y=getElementTop(labelObj)-borderModSize;
		if(menus[m_No].align=='right')x=(x+getElementWidth(labelObj))-10;
		else x=x-getElementWidth('menu'+m_No);
		moveXY('menu'+m_No,x,y);
		if(changeObjectVisibility('menu'+ m_No,'visible'))return true;
	  else return false;
	}
}

function hideAllMenus(){for(var i=1;i<(currentMenuNo+1); i++){if(menuActive[i]==true)hideMenu(i);}}

function hideAllMenusTier(myTier){for(var i=1;i<(currentMenuNo+1);i++){if(tier[i]>myTier&&menuActive[i]==true)hideMenu(i);}}

function hideMenu(m_No){
	menuActive[m_No]=false;
	if(changeObjectVisibility('menu'+m_No,'hidden'))return true;
  else return false;
}

function menuBar(){this.addLabel=function(menuNo){numLabels=1;tier[menuNo]=0;borderMod[menuNo]=0;}}

function menu(){
	currentMenuNo+=1;
	this.numItems=0;
	this.itemText=new Array();
	this.rowText=new Array();
	this.addItem=function(itemText,menuNo,itemURL){
		this.numItems+=1;
		var tempId=currentMenuNo+'_'+this.numItems;
		if(menuNo!=null){tier[menuNo]=tier[currentMenuNo]+1;borderMod[menuNo]=0;}
		temp=new String('');
		this.rowText[this.numItems]=new String('');
		temp+='<li id="labelCell'+menuNo+'" onclick="document.location.href=\''+itemURL+'\';" onmouseover="menuOver(); ';
		if(menuNo!=null){temp+='return !showMenuSide('+menuNo+',event,tier['+menuNo+']);"';}
		else{temp+='hideAllMenusTier(tier['+currentMenuNo+']);"';}
		temp+=' onmouseout="menuOut();">';
		temp+='<div id="menuLabel'+menuNo+'">';
		temp+='<a href="'+itemURL+'" id="menuLink'+menuNo+'">';
		if(menuNo!=null){temp+='<img src="/images/bg-navtop-li-level2.gif" align="right">';}
		temp+=itemText+'</a></div></li>';	
		this.itemText[this.numItems]=new String(temp);
	}
	this.writeMenu=function(){
		var menuStr=new String();
		if (this.numItems==0)menuType[currentMenuNo]='blank';
		else menuType[currentMenuNo]='default';
		menuStr+='<div id="menu'+currentMenuNo+'" name="menu'+currentMenuNo+'" class="submenu">';
		menuStr+='<ul>';
		for (var count=0;count<this.numItems;count++){
			menuStr+=this.rowText[count+1];
			menuStr+=this.itemText[count+1];
		}
		menuStr+='</ul><!--[if lte IE 6.5]><iframe></iframe><![endif]--></div>';
		document.write(menuStr);
	}
}
//The root main menus
myTest=new menuBar();
myTest.addLabel(1);
myTest.addLabel(2);
myTest.addLabel(3);
myTest.addLabel(4);
myTest.addLabel(5);
myTest.addLabel(6);

//BOOKINGS
menus[1]=new menu();
menus[1].addItem('Hotel Reservation',null,'/global/en/hotel-reservation.html');
//menus[1].addItem('Preferred Hotels',null,'/global/en/preferred-hotels.html');
menus[1].addItem('Qbiz',32,'/global/en/qbiz.html');
menus[1].addItem('Refund Request',null,'/global/en/refund-request.html');
menus[1].addItem('Route Map',null,'/global/en/routemap.html');
menus[1].addItem('Timetable',null,'http://booking.qatarairways.com/qribe-web/public/showSearch.do?hdnFrom=TIMETABLE');
menus[1].writeMenu();

//THE EXPERIENCE
menus[2]=new menu();
menus[2].addItem('At The Airport',8,'/global/en/check-in.html');
menus[2].addItem('Corporate Travel',null,'/global/en/corporate.html');
menus[2].addItem('Onboard',7,'/global/en/onboard.html');
menus[2].addItem('Travel Alerts',36,'/global/en/operational-update.html');
menus[2].addItem('Travel Planning',9,'/global/en/apis.html');
menus[2].addItem('Virtual Tours',27,'/global/en/360/virtual-tours.html?id=01');
menus[2].writeMenu();

//SPECIAL OFFERS
menus[3]=new menu();
menus[3].addItem('Africa',26,'/global/en/special-offers/algeria.html');
menus[3].addItem('Asia',14,'/global/en/special-offers/australia.html');
menus[3].addItem('Europe',15,'/global/en/special-offers/austria.html');
menus[3].addItem('Middle East',13,'/global/en/special-offers/bahrain.html');
menus[3].addItem('North America',16,'/global/en/special-offers/houston.html');
menus[3].addItem('e-Newsletter',null,'/global/en/newsletter.html');
menus[3].writeMenu();

//HOLIDAYS
menus[4]=new menu();
menus[4].addItem('Holiday Offers',29,'/global/en/holidays-overview.html');
menus[4].addItem('Destinations &amp; Rates',null,'/global/en/holidays-rates.html');
menus[4].addItem('Qatar Stopover',11,'/global/en/qatar-stopover.html');
menus[4].addItem('Request Brochure',null,'/global/en/request-brochure.html');
menus[4].addItem('Request Quote ',null,'/global/en/request-quote.html');
menus[4].addItem('Contact Us',null,'/global/en/contact.html');
menus[4].writeMenu();

//PRIVILEGE CLUB
menus[5]=new menu();
/*menus[5].addItem('Home',null,'http://www.qmiles.com');*/
menus[5].addItem('Home',null,'/privilegeclub/en/homepage.html');
menus[5].addItem('About Privilege Club',null,'/privilegeclub/en/about-us.html');
menus[5].addItem('Membership Levels',37,'/privilegeclub/en/membership-levels.html');
menus[5].addItem('Family Programme',null,'/privilegeclub/en/family-programme.html');
menus[5].addItem('Calculator',38,'/privilegeclub/en/calculator-earn.html');
menus[5].addItem('Offers & News',39,'/privilegeclub/en/offers.html');
menus[5].addItem('Partners',40,'/privilegeclub/en/earn-qmiles-with-partners.html');
menus[5].addItem("FAQ's",43,"/privilegeclub/en/faq-privilege-club.html");
menus[5].addItem('Privilege Club Forms',null,'/privilegeclub/en/forms.html');
menus[5].addItem('Terms & Conditions',null,'/privilegeclub/en/terms-and-conditions.html ');
menus[5].addItem('Your Account',null,'https://secure.qmiles.com/qmiles/FrontPage.jsp?linkya19');
menus[5].writeMenu();

//ABOUT US
menus[6]=new menu();
menus[6].addItem("CEO's Message",null,"/global/en/ceo-message.html");
menus[6].addItem('Codeshare Partners', null,'/global/en/code-share-partners.html');
menus[6].addItem('Corporate Social Responsibility',33,'/global/en/csr.html');
menus[6].addItem('Doha International Airport', null,'/global/en/doha-airport.html');
menus[6].addItem('Our Fleet',null,'/global/en/our-fleet.html');
menus[6].addItem('Qatar',null,'/global/en/qatar.html');
menus[6].addItem('Worldwide Offices', null,'/global/en/worldwide-offices.html');
menus[6].writeMenu();

//THE EXPERIENCE > Onboard
menus[7]=new menu();
menus[7].addItem('First Class',null,'/global/en/first-class.html');
menus[7].addItem('Business Class',null,'/global/en/business-class.html');
menus[7].addItem('Economy Class',null,'/global/en/economy-class.html');
menus[7].addItem('Cuisine',28,'/global/en/dining/cuisine.html');
menus[7].addItem('Duty Free',null,'/global/en/duty-free.html');
menus[7].addItem('Entertainment', 10,'/global/en/entertainment.html');
menus[7].addItem('Fly Healthy, Fly Fit',null,'/global/en/flyhealthyflyfit.html');
menus[7].addItem('Seat Map',null,'/global/en/seating-plan.html');
menus[7].writeMenu();

//THE EXPERIENCE >At The Airport
menus[8]=new menu();
menus[8].addItem('Check-in',null,'/global/en/check-in.html');
menus[8].addItem('Premium Terminal',46,'/global/en/premium-terminal.html');
menus[8].writeMenu();

//THE EXPERIENCE >Travel Planning
menus[9]=new menu();
menus[9].addItem('Advance Passenger Information',null,'/global/en/apis.html');
menus[9].addItem('Baggage',null,'/global/en/baggage.html');
menus[9].addItem('City Guide',null,'/global/en/city-guides.html');
menus[9].addItem('Children',null,'/global/en/children.html');
menus[9].addItem('Online Check-in',null,'/global/en/online-checkin.html');
menus[9].addItem('Transit-Hotel Accommodation',null,'/global/en/stop-over.html');
menus[9].addItem('Special Services',null,'/global/en/special-services.html');
menus[9].addItem('USA Special Needs',null,'/global/en/us-disability-details.html');
menus[9].addItem('Visa & Passport Requirements',null,'/global/en/passport-visa-health.html');
menus[9].writeMenu();

//THE EXPERIENCE > Onboard > Onboard Entertainment >
menus[10]=new menu();
menus[10].addItem('Program',null,'/global/en/entertainment-program.html');
menus[10].writeMenu();

//HOLIDAYS > DISCOVER QATAR >
menus[11]=new menu();
menus[11].addItem('Doha Hotels',34,'/global/en/hotels-overview.html');
menus[11].addItem('Excursions & Sightseeing Tours', null,'/global/en/discover_qatar_excursions_sightseeing.html');
menus[11].addItem('Terms & Conditions',null,'/global/en/discover_qatar_terms_conditions.html');
menus[11].writeMenu();

//ABOUT US > Our Fleet >
menus[12]=new menu();
menus[12].addItem('Boeing 777',null,'/global/en/boeing-777.html');
menus[12].writeMenu();

//Special Offers > Middle East> 
menus[13]=new menu();
menus[13].addItem('Bahrain',null,'/global/en/special-offers/bahrain.html');
menus[13].addItem('Iran',45,'/global/en/special-offers/mashad.html');
menus[13].addItem('Jordan',null,'/global/en/special-offers/jordan.html');
menus[13].addItem('Kuwait',null,'/global/en/special-offers/kuwait.html');
menus[13].addItem('Lebanon',null,'/global/en/special-offers/beirut.html');
menus[13].addItem('Oman',null,'/global/en/special-offers/oman.html');
menus[13].addItem('Qatar',null,'/global/en/special-offers/qatar.html');
menus[13].addItem('Saudi Arabia',18,'/global/en/special-offers/ksa.html');
menus[13].addItem('UAE',17,'/global/en/special-offers/uae.html');
menus[13].writeMenu();

//Special Offers > Asia > 
menus[14]=new menu();
menus[14].addItem('Australia',null,'/global/en/special-offers/australia.html');
menus[14].addItem('Bangladesh',null,'/global/en/special-offers/bangladesh.html');
menus[14].addItem('China',31,'/global/en/special-offers/beijing.html');
menus[14].addItem('Hong Kong',null,'/global/en/special-offers/hongkong.html');
menus[14].addItem('India',25,'/global/en/special-offers/india.html');
menus[14].addItem('Indonesia',30,'/global/en/special-offers/indonesia.html');
menus[14].addItem('Japan',null,'/global/en/special-offers/japan.html');
menus[14].addItem('Korea',null,'/global/en/special-offers/seoul.html');
menus[14].addItem('Malaysia',null,'/global/en/special-offers/malaysia.html');
menus[14].addItem('Maldives',null,'/global/en/special-offers/maldives.html');
menus[14].addItem('Nepal',null,'/global/en/special-offers/nepal.html');
menus[14].addItem('Philippines',19,'/global/en/special-offers/philippines.html');
menus[14].addItem('Singapore',null,'/global/en/special-offers/singapore.html');
menus[14].addItem('Thailand',null,'/global/en/special-offers/thailand.html');
menus[14].addItem('Vietnam',null,'/global/en/special-offers/vietnam.html');
menus[14].writeMenu();

//Special Offers > Europe > 
menus[15]=new menu();
menus[15].addItem('Austria',null,'/global/en/special-offers/austria.html');
menus[15].addItem('France',null,'/global/en/special-offers/france.html');
menus[15].addItem('Germany',23,'/global/en/special-offers/germany.html');
menus[15].addItem('Greece',null,'/global/en/special-offers/greece.html');
menus[15].addItem('Italy',22,'/global/en/special-offers/italy.html');
menus[15].addItem('Russia',null,'/global/en/special-offers/russia.html');
menus[15].addItem('Spain',null,'/global/en/special-offers/madrid.html');
menus[15].addItem('Sweden',35,'/global/en/special-offers/sweden.html');
menus[15].addItem('Switzerland',24,'/global/en/special-offers/switzerland.html');
menus[15].addItem('Turkey',null,'/global/en/special-offers/turkey.html');
menus[15].addItem('UK',20,'/global/en/special-offers/uk.html');
menus[15].writeMenu();

//Special Offers > Europe > 
menus[16]=new menu();
menus[16].addItem('USA',21,'/global/en/special-offers/houston.html');
menus[16].writeMenu();

//Special Offers > Middle East > UAE
menus[17]=new menu();
menus[17].addItem('Abu Dhabi',null,'/global/en/special-offers/uae.html');
menus[17].addItem('Dubai',null,'/global/en/special-offers/dubai.html');
menus[17].writeMenu();

//Special Offers > Middles East > KSA
menus[18]=new menu();
menus[18].addItem('Dammam',null,'/global/en/special-offers/ksa.html');
menus[18].addItem('Jeddah',null,'/global/en/special-offers/jeddah.html');
menus[18].addItem('Riyadh',null,'/global/en/special-offers/riyadh.html');
menus[18].writeMenu();

//Special Offers > Asia > Philippines
menus[19]=new menu();
menus[19].addItem('Cebu',null,'/global/en/special-offers/cebu.html');
menus[19].addItem('Manila',null,'/global/en/special-offers/philippines.html');
menus[19].writeMenu();

//Special Offers > Europe > UK
menus[20]=new menu();
menus[20].addItem('Doha Promotion',null,'/global/en/special-offers/uk-doha.html');
menus[20].addItem('London',null,'/global/en/special-offers/uk.html');
menus[20].addItem('Manchester',null,'/global/en/special-offers/manchester.html');
menus[20].writeMenu();

//Special Offers > North America > USA
menus[21]=new menu();
menus[21].addItem('Houston',null,'/global/en/special-offers/houston.html');
menus[21].addItem('New York',null,'/global/en/special-offers/newyork.html');
menus[21].addItem('Washington',null,'/global/en/special-offers/washington.html');
menus[21].writeMenu();

//Special Offers > Europe > Italy
menus[22]=new menu();
menus[22].addItem('Milan',null,'/global/en/special-offers/italy.html');
menus[22].addItem('Rome',null,'/global/en/special-offers/rome.html');
menus[22].writeMenu();

//Special Offers >  Europe > Germany
menus[23]=new menu();
menus[23].addItem('Berlin',null,'/global/en/special-offers/germany.html');
menus[23].addItem('Frankfurt',null,'/global/en/special-offers/frankfurt.html');
menus[23].addItem('Munich',null,'/global/en/special-offers/munich.html');
menus[23].writeMenu();

//Special Offers >  Europe > Switzerland
menus[24]=new menu();
menus[24].addItem('Geneva',null,'/global/en/special-offers/switzerland.html');
menus[24].addItem('Zurich',null,'/global/en/special-offers/zurich.html');
menus[24].writeMenu();

//Special Offers>Asia>India
menus[25]=new menu();
menus[25].addItem('Ahmedabad',null,'/global/en/special-offers/india.html');
menus[25].addItem('Amritsar',null,'/global/en/special-offers/amritsar.html');
menus[25].addItem('Chennai',null,'/global/en/special-offers/chennai.html');
menus[25].addItem('Delhi',null,'/global/en/special-offers/delhi.html');
menus[25].addItem('Goa',null,'/global/en/special-offers/goa.html');
menus[25].addItem('Hyderabad',null,'/global/en/special-offers/hyderabad.html');
menus[25].addItem('Kochi',null,'/global/en/special-offers/kochi.html');
menus[25].addItem('Kozhikode',null,'/global/en/special-offers/kozhikode.html');
menus[25].addItem('Mumbai',null,'/global/en/special-offers/mumbai.html');
menus[25].addItem('Thiruvananthapuram',null,'/global/en/special-offers/thiruvananthapuram.html');
menus[25].writeMenu();

//SPECIAL OFFERS > Africa
menus[26]=new menu();
menus[26].addItem('Algeria',null,'/global/en/special-offers/algeria.html');
menus[26].addItem('Kenya',null,'/global/en/special-offers/kenya.html');
menus[26].addItem('Morocco',null,'/global/en/special-offers/morocco.html');
menus[26].addItem('Nigeria',null,'/global/en/special-offers/nigeria.html');
menus[26].addItem('South Africa',44,'/global/en/special-offers/southafrica.html');
menus[26].addItem('Tanzania',null,'/global/en/special-offers/tanzania.html');
menus[26].addItem('Tunisia',null,'/global/en/special-offers/tunisia.html');
menus[26].writeMenu();

//THE EXPERIENCE > Virtual Tours
menus[27]=new menu();
menus[27].addItem('First Class Cabin',null,'/global/en/360/virtual-tours.html?id=01');
menus[27].addItem('Business Class Cabin',null,'/global/en/360/virtual-tours.html?id=02');
menus[27].addItem('Economy Class Cabin',null,'/global/en/360/virtual-tours.html?id=03');
menus[27].addItem('Al Maha Arrival',null,'/global/en/360/virtual-tours.html?id=05');
menus[27].addItem('BMW 7-Series Pick-up',null,'/global/en/360/virtual-tours.html?id=04');
menus[27].addItem('Doha Check-in',null,'/global/en/360/virtual-tours.html?id=06');
menus[27].addItem('Premium Terminal Atrium',null,'/global/en/360/virtual-tours.html?id=07');
menus[27].addItem('Premium Terminal First Class',null,'/global/en/360/virtual-tours.html?id=08');
menus[27].addItem('Premium Terminal Business Class',null,'/global/en/360/virtual-tours.html?id=09');
menus[27].addItem('Premium Terminal Spa',null,'/global/en/360/virtual-tours.html?id=00');
menus[27].writeMenu();

//Travel Information>Onboard>Cuisine
menus[28]=new menu();
menus[28].addItem('Fine wines & Champagnes',null,'/global/en/dining/wines.html');
menus[28].addItem('Special-diet meals',null,'/global/en/dining/special-meals.html');
menus[28].writeMenu();

//Holidays Offers>Eid-Al-Adha Offers
menus[29]=new menu();
menus[29].addItem('Eid Al-Adha Offers',null,'/global/en/holidays-eidaladha-offers.html');
menus[29].writeMenu();

//SPECIAL OFFERS>Indonesia
menus[30]=new menu();
menus[30].addItem('Bali',null,'/global/en/special-offers/bali.html');
menus[30].addItem('Jakarta',null,'/global/en/special-offers/indonesia.html');
menus[30].writeMenu();

//SPECIAL OFFERS>CHINA
menus[31]=new menu();
menus[31].addItem('Beijing',null,'/global/en/special-offers/beijing.html');
menus[31].addItem('Guangzhou',null,'/global/en/special-offers/guangzhou.html');
menus[31].addItem('Shanghai',null,'/global/en/special-offers/shanghai.html');
menus[31].writeMenu();

//BOOKINGS/QBIZ
menus[32]=new menu();
menus[32].addItem('Apply',null,'/global/en/qbiz-apply.html');
menus[32].addItem('Details',null,'/global/en/qbiz-details.html');
menus[32].addItem('FAQs',null,'/global/en/qbiz-faqs.html');
menus[32].addItem('Redemption',null,'/global/en/qbiz-redemption.html');
menus[32].addItem('Terms & Conditions',null,'/global/en/qbiz-termsandconditions.html');
menus[32].writeMenu();


//ABOUT US/Corporate Social Responsibility 
menus[33]=new menu();
menus[33].addItem('Alternative Fuels',null,'/global/en/csr-fuel.html');
menus[33].addItem('Corporate Social Responsibility News',null,'/global/en/csr-news.html');
menus[33].addItem('Modern Fleet',null,'/global/en/csr-fleet.html');
menus[33].addItem('Save the Environment',null,'/global/en/csr-environment.html');
menus[33].addItem('Social Responsibility',null,'/global/en/csr-social.html');
menus[33].writeMenu();

//HOLIDAYS>Qatar Stopover>Doha Hotels
menus[34]=new menu();
menus[34].addItem('Four Seasons Hotel Doha',null,'/global/en/hotels-fourseasons.html');
menus[34].addItem('Grand Regency Hotel',null,'/global/en/hotels-grandregency.html');
menus[34].addItem('La Cigale Hotel',null,'/global/en/hotels-lacigale.html');
menus[34].addItem('Doha Marriott Hotel',null,'/global/en/hotels-dohamarriott.html');
menus[34].addItem('M&#246;venpick Tower &amp; Suites',null,'/global/en/hotels-movenpick-tower.html');
menus[34].addItem('Sharq Village &amp; Spa',null,'/global/en/hotels-alsharq.html');
menus[34].addItem('Sheraton Doha Resort &amp; Convention Hotel',null,'/global/en/hotels-dohasheraton.html');
menus[34].addItem('The Ritz Carlton Doha',null,'/global/en/hotels-ritzcarlton.html');
menus[34].addItem('W Doha Hotel &amp; Residences',null,'/global/en/hotels-whotel.html');
menus[34].addItem('Al Liwan Suites',null,'/global/en/hotels-alliwan.html');
menus[34].addItem('Mercure Grand Hotel',null,'/global/en/hotels-mercuregrand.html');
menus[34].addItem('M&#246;venpick Hotel Doha',null,'/global/en/hotels-movenpick.html ');
menus[34].addItem('Ramada Plaza Doha', null,'/global/en/hotels-ramada.html');
menus[34].addItem('Doha Seef Hotel',null,'/global/en/hotels-dohaseef.html');
menus[34].addItem('Swiss-belhotel Doha',null,'/global/en/hotels-swissbel.html');
menus[34].writeMenu();

//Special Offers >Europe > Sweden
menus[35]=new menu();
menus[35].addItem('Stockholm',null,'/global/en/special-offers/sweden.html');
menus[35].writeMenu();

//THE EXPERIENCE >Travel Alerts
menus[36]=new menu();
menus[36].addItem('Influenza A (H1N1) Swine Flu',null,'/global/en/operational-update.html');
menus[36].writeMenu();


//PRIVILEGE CLUB>Membership Levels
menus[37]=new menu();
menus[37].addItem('Gold',null,'/privilegeclub/en/gold-benefits.html');
menus[37].addItem('Silver',null,'/privilegeclub/en/silver-benefits.html');
menus[37].addItem('Burgundy',null,'/privilegeclub/en/burgundy-benefits.html');
menus[37].writeMenu();

//PRIVILEGE CLUB>Calculators
menus[38]=new menu();
menus[38].addItem('Earn',null,'/privilegeclub/en/calculator-earn.html');
menus[38].addItem('Redeem',null,'/privilegeclub/en/calculator-redeem.html');
menus[38].addItem('Qmiles Plus Cash',null,'/privilegeclub/en/Qmiles-Plus-Cash.html');
menus[38].writeMenu();

//PRIVILEGE CLUB>Offers & News
menus[39]=new menu();
menus[39].addItem('Offers',null,'/privilegeclub/en/offers.html');
menus[39].addItem('News',null,'/privilegeclub/en/news.html');
menus[39].writeMenu();

//PRIVILEGE CLUB > Partners
menus[40]=new menu();
menus[40].addItem('Earn Qmiles with Partners',41,'/privilegeclub/en/earn-qmiles-with-partners.html');
menus[40].addItem('Redeem Qmiles on Partner Airlines',null,'/privilegeclub/en/redeem-qmiles-airline-partners.html');
menus[40].addItem('Redeem Qmiles on Non-Air Partners',null,'/privilegeclub/en/redeem-qmiles-non-air-partners.html');
menus[40].addItem('Claim Missing Qmiles with Partners',42,'/privilegeclub/en/claim-missing-partner-qmiles.html');
menus[40].writeMenu();

//PRIVILEGE CLUB > Partner Qmiles
menus[41]=new menu();
menus[41].addItem('Partner Airlines',null,'/privilegeclub/en/partner-airlines.html');
menus[41].addItem('Credit Cards',null,'/privilegeclub/en/partner-credit-cards.html');
menus[41].addItem('Financial Partners',null,'/privilegeclub/en/partner-financial.html');
menus[41].addItem('Hotel Partners',null,'/privilegeclub/en/partner-hotels.html ');
menus[41].addItem('Car Rental Partners',null,'/privilegeclub/en/partner-car-rental.html ');
menus[41].addItem('Travel & Service Partners',null,'/privilegeclub/en/partner-travel-and-services.html ');
menus[41].writeMenu();

//PRIVILEGE CLUB > Claim missing qmiles with partners
menus[42]=new menu();
menus[42].addItem('Contact Details for Financial Partners',null,'/privilegeclub/en/financial-partners-contact.html');
menus[42].addItem('Contact Details for Hotel Partners',null,'/privilegeclub/en/hotel-partners-contact.html');
menus[42].addItem('Contact Details for Car Rental Partners',null,'/privilegeclub/en/car-rental-partners-contact.html');
menus[42].addItem('Contact Details for Travel & Service Partners',null,'/privilegeclub/en/travel-services-partners-contact.html');
menus[42].writeMenu();

//PRIVILEGE CLUB > Faqs
menus[43]=new menu();
menus[43].addItem('Privilege Club',null,'/privilegeclub/en/faq-privilege-club.html');
menus[43].addItem('Earning Qmiles & Qpoints ',null,'/privilegeclub/en/faq-earning-qmiles-qpoints.html');
menus[43].addItem('Claim Missing Qmiles',null,'/privilegeclub/en/faq-claim-missing-qmiles.html');
menus[43].addItem('Redeeming Qmiles',null,'/privilegeclub/en/faq-redeeming-qmiles.html');
menus[43].addItem('Qmiles.com',null,'/privilegeclub/en/faq-qmiles.html');
menus[43].addItem('Mileage Expiry',null,'/privilegeclub/en/faq-mileage-expiry.html');
menus[43].writeMenu();

//SPECIAL OFFERS > Africa > South Africa
menus[44]=new menu();
menus[44].addItem('Cape Town',null,'/global/en/special-offers/southafrica.html');
menus[44].addItem('Johannesburg',null,'/global/en/special-offers/johannesburg.html');
menus[44].writeMenu();

//Special Offers >  Middle East > Iran
menus[45]=new menu();
menus[45].addItem('Mashad',null,'/global/en/special-offers/mashad.html');
menus[45].addItem('Tehran',null,'/global/en/special-offers/tehran.html');
menus[45].writeMenu();

//THE EXPERIENCE >At The Airport > Premium Terminal
menus[46]=new menu();
menus[46].addItem('Premium Terminal Spa',null,'/global/en/premium-terminal-spa.html ');
menus[46].writeMenu();

//Align the menus tab
menus[1].align='left';
menus[2].align='left';
menus[3].align='left';
menus[4].align='left';
menus[5].align='left';
menus[6].align='left';
menus[7].align='right';
menus[8].align='right';
menus[9].align='right';
menus[10].align='right';
menus[11].align='right';
menus[12].align='right';
menus[13].align='right';
menus[14].align='right';
menus[15].align='right';
menus[16].align='right';
menus[17].align='right';
menus[18].align='right';
menus[19].align='right';
menus[20].align='right';
menus[21].align='right';
menus[22].align='right';
menus[23].align='right';
menus[24].align='right';
menus[25].align='right';
menus[26].align='right';
menus[27].align='right';
menus[28].align='right';
menus[29].align='right';
menus[30].align='right';
menus[31].align='right';
menus[32].align='right';
menus[33].align='right';
menus[34].align='right';
menus[35].align='right';
menus[36].align='right';
menus[37].align='right';
menus[38].align='right';
menus[39].align='right';
menus[40].align='right';
menus[41].align='right';
menus[42].align='right';
menus[43].align='right';
menus[44].align='right';
menus[45].align='right';
menus[46].align='right';