// JavaScript Document
var environment = "STAGE"; //change this when placing in PRODUCTION ENVIRONMENT
var currentUALsite = "US-EN";
		var myCookies = new Array();
	if (document.cookie.length > 0) {
		 tempcookies = document.cookie.split(';');
		for (var cookie = 0; cookie < tempcookies.length; cookie++) {
			var oneCookie = tempcookies[cookie].split('=');
			var cookieName = oneCookie[0].replace(/^\s+|\s+$/, '');
			myCookies[cookieName] = oneCookie[1];
			}
		}
		
// PRODUCTION VALUES

	var ualswn = new Array();
	ualswn[0] = new Array();
		ualswn[0][0] = new Array("Planning &amp; booking","http://www.united.com/page/middlepage/0,6823,1009,00.html?navSource=Dropdown07&linkTitle=planningandbooking",141); // TAB NAME, URL, WIDTH
		ualswn[0][1] = new Array("Flights","http://travel.united.com/ube/core/us/shop.do?navSource=Dropdown07&linkTitle=shopforflights"); // item
		ualswn[0][2] = new Array("Hotels","http://travel.wwte1.com/pubspec/scripts/eap.asp?navSource=Dropdown07&linkTitle=hotels&Goto=hotlaunch&eapid=11378-30001&rfrr=-6607&qscr=htwv&from=m&rdct=1&rfrr=-6570&eapid=11378-30001"); // item
		ualswn[0][3] = new Array("Cars","http://www.united.com/page/article/0,6722,50030,00.html?navSource=Dropdown07&linkTitle=cars"); // item
		ualswn[0][4] = new Array("Vacations","http://www.unitedvacations.com?navSource=Dropdown07&linkTitle=vacation"); // item
		ualswn[0][5] = new Array("Travel options","http://store.united.com/enhancements?navSource=Dropdown07&linkTitle=travelenhancements"); // item
		ualswn[0][6] = new Array("Book with miles","https://travel.united.com/ube/award/us/awardShop.do?navSource=Dropdown07&linkTitle=awardtravel","separatorAbove"); // item
		ualswn[0][7] = new Array("Special deals","http://www.united.com/page/article/0,6722,50066,00.html?navSource=Dropdown07&linkTitle=specialdeals"); // item
		ualswn[0][8] = new Array("My trip templates","https://travel.united.com/ube/core/us/secure/retrieveTripTemplate.do?navSource=Dropdown07&linkTitle=mytriptemplates","separatorAbove"); // item
		ualswn[0][9] = new Array("Timetables","http://www.united.com/page/article/0,6722,1891,00.html?navSource=Dropdown07&linkTitle=timetables"); // item
		ualswn[0][10] = new Array("Route maps","http://www.united.com/page/article/0,6823,1019,00.html?navSource=Dropdown07&linkTitle=routemaps"); // item
		ualswn[0][11] = new Array("Destination information","http://www.united.com/page/article/0,6722,1053,00.html?navSource=Dropdown07&linkTitle=destinationinformation"); // item
		ualswn[0][12] = new Array("Travel insurance","http://www.united.com/page/article/0,6722,51592,00.html?navSource=Dropdown07&linkTitle=travelinsurance"); // item
		ualswn[0][13] = new Array("Group travel","http://www.united.com/page/article/0,6722,3552,00.html?navSource=Dropdown07&linkTitle=groups"); // item
	ualswn[1] = new Array();
		ualswn[1][0] = new Array("Itineraries &amp; check-in","http://www.united.com/page/middlepage/0,,52100,00.html?navSource=Dropdown07&linkTitle=itinerariesandcheckin",151); // TAB NAME, URL, WIDTH
		//if logged in, url modified below
		ualswn[1][1] = new Array("My itineraries","http://www.united.com/page/genericpage/0,,52172,00.html?navSource=Dropdown07&linkTitle=itineraries"); // item
		ualswn[1][2] = new Array("Change your travel plans","http://www.united.com/page/article/0,6722,51160,00.html?navSource=Dropdown07&linkTitle=change"); // item
		ualswn[1][3] = new Array("Upgrades","http://www.united.com/page/article/0,6722,3832,00.html?navSource=Dropdown07&linkTitle=upgrades"); // item
//if logged in url updated below (for ECO only)
		ualswn[1][4] = new Array("Check in online","http://www.united.com/page/article/0,6722,50446,00.html?navSource=Dropdown07&linkTitle=check in","separatorAbove"); // item  PSU-2156 NAZ
		ualswn[1][5] = new Array("Flight notification","http://www.united.com/page/article/0,6722,1974,00.html?navSource=Dropdown07&linkTitle=flightnotification"); // item
		ualswn[1][6] = new Array("Ticket refunds","https://www.ua2go.com/ci/Login.jsp?return_to=refund&navSource=Dropdown07&linkTitle=ticketrefunds","separatorAbove"); // item
		ualswn[1][7] = new Array("Seat upgrade refunds","http://www.united.com/page/genericpage/1,,52372,00.html?navSource=Dropdown07&linkTitle=seatupgraderefunds"); // item
	ualswn[2] = new Array();
		ualswn[2][0] = new Array("Mileage Plus","http://www.united.com/page/middlepage/0,6823,1136,00.html?navSource=Dropdown07&linkTitle=mileageplus",134); // TAB NAME, URL, WIDTH
		ualswn[2][1] = new Array("Join Mileage Plus","https://www.ua2go.com/ci/JoinMileagePlus.jsp?navSource=Dropdown07&linkTitle=join"); // item
		ualswn[2][2] = new Array("My mileage summary","https://travel.united.com/ube/core/us/secure/mpSummary.do?navSource=Dropdown07&linkTitle=mileagesummary","separatorAbove"); // item
		ualswn[2][3] = new Array("Earn miles","http://www.united.com/page/article/1,,52102,00.html?navSource=Dropdown07&linkTitle=earnmiles"); // item
		ualswn[2][4] = new Array("Redeem miles","http://www.united.com/page/article/0,6722,3831,00.html?navSource=Dropdown07&linkTitle=redeemmiles"); // item
		ualswn[2][5] = new Array("Buy or transfer miles","http://www.ualmiles.com/?navSource=Dropdown07&linkTitle=buyortransfermiles"); // item
		ualswn[2][6] = new Array("About Mileage Plus","http://www.united.com/page/middlepage/0,8680,1153,00.html?navSource=Dropdown07&linkTitle=aboutmileageplus","separatorAbove"); // item
		ualswn[2][7] = new Array("Mileage Plus support","http://www.united.com/page/middlepage/1,,52136,00.html?navSource=Dropdown07&linkTitle=mileageplussupport"); // item
	ualswn[3] = new Array();
		ualswn[3][0] = new Array("Services &amp; information","http://www.united.com/page/middlepage/0,6823,1030,00.html?navSource=Dropdown07&linkTitle=servicesandinformation",151); // TAB NAME, URL, WIDTH
		ualswn[3][1] = new Array("Flight status","http://www.ua2go.com/flifo/FlightInput.do?navSource=Dropdown07&linkTitle=flightstatus"); // item
		ualswn[3][2] = new Array("Mobile services","http://www.united.com/page/article/0,6722,66,00.html?navSource=Dropdown07&linkTitle=wireless"); // item
		ualswn[3][3] = new Array("Baggage","http://www.united.com/page/middlepage/0,6823,1031,00.html?navSource=Dropdown07&linkTitle=baggage","separatorAbove"); // item
		ualswn[3][4] = new Array("Travel requirements","http://www.united.com/page/middlepage/1,,52070,00.html?navSource=Dropdown07&linkTitle=travelrequirements"); // item
		ualswn[3][5] = new Array("Children, pets, &amp; assistance","http://www.united.com/page/middlepage/0,6823,1038,00.html?navSource=Dropdown07&linkTitle=assistance"); // item
		ualswn[3][6] = new Array("Airport information","http://www.united.com/page/middlepage/0,6823,1111,00.html?navSource=Dropdown07&linkTitle=airportinformation"); // item
		ualswn[3][7] = new Array("Airport clubs &amp; lounges","http://www.united.com/page/article/0,,52672,00.html?navSource=Dropdown07&linkTitle=airportlounges"); // item
		ualswn[3][8] = new Array("In-flight services","http://www.united.com/page/middlepage/0,6823,1056,00.html?navSource=Dropdown07&linkTitle=in-flightservices"); // item
		ualswn[3][9] = new Array("Economy Plus annual","https://store.united.com/traveloptions/control/product?product_id=UM_EPA&category_id=UM_LEGRM&navSource=Dropdown07&linkTitle=epa"); // item
		ualswn[3][10] = new Array("Our Customer Commitment","http://www.united.com/page/article/1,,1505,00.html?navSource=Dropdown07&linkTitle=ourcustomer","separatorAbove"); // item
		ualswn[3][11] = new Array("Refunds","http://faq.ua2go.com/?cid=1&t=opt2&c=12&cpc=WnaqDcP5KrMu623S1OA64DwwrR4UyhK6fv2ylkXXS&navSource=Dropdown07&linkTitle=refunds","separatorAbove"); // item
//		ualswn[3][] = new Array("Products &amp; services","http://www.united.com/page/article/0,,52214,00.html?navSource=Dropdown07&linkTitle=prodsandsvcs","separatorAbove"); // item

//common to staging and production
if (myCookies) {
if (myCookies["rememberProfile"] != undefined) // reassign
	{
		ualswn[1][1][1] = 'https://www.ua2go.com/ci/Login.jsp?return_to=itins&navSource=Dropdown07&linkTitle=itineraries';
		ualswn[1][4][1] = "https://travel.united.com/etc/webcheckin/listPnr.do?navSource=Dropdown07&linkTitle=checkin"; // item
	}
}