String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/gi,"") };

/* Perform some backwards compat tasks to allow smooth transition into UA namespace */ 
if (typeof ua == 'object') { 
	window.isEmpty = ua.utils.isEmpty;
	//window.listContains = ua.utils.listContains;
	if (typeof ua.mp == 'object') {
		window.M = ua.mp.M;
	}	
} else {
	window.isEmpty = function(o) {
		//var o = {};
		for(var p in o) {
			if (o[p] != o.constructor.prototype[p])
				return false;
			}
		return true;
	};
}
/* This is a temp bug fix. The ua.utils.listContains() version in ua.js has a fatal flaw */
window.listContains = function(str1, str2, matchType){
 var arr1 = str1.split(",");
 var arr2 = str2.split(",");
 var arr1Len = arr1.length;
 var arr2Len = arr2.length;
 var matchArr = [];
 
 for (var i=0; i < arr2Len; i++ ) {
  for (var j = 0; j < arr1Len; j++ ) {
   if (arr1[j].trim() == arr2[i].trim()) {
    matchArr.push(arr1[i]);
   }
  }
 }

 switch (matchType) {
  case "all":
   if (matchArr.length == arr2.length) {
    return true;
   }
  break;
 
  case "any":
   if (matchArr.length > 0) { 
    return true; 
   }
  break;
  
  case "none":
   if (matchArr.length == 0) { 
    return true; 
   }
  break;
  }
 return false;
};
/* End UA namespace backwards compatibility */  

/* window.M should -always- be defined, so let's ensure that */
if (typeof window.M == 'undefined') {
	window.M = {};
}
 
//protect variables if undefined
if (typeof leftqty == "undefined"){  leftqty = "1"};
if (typeof rightqty == "undefined"){  rightqty = "1"};
if (typeof selectedSection == "undefined"){  selectedSection = "PB"};

var addOn = "",
	One_day=1000*60*60*24,
	tooday = new Date();

if (typeof myCookies != "undefined") {
	if ('mileageLevel' in myCookies){
		addOn = "&ssv_memberlevel="+escape(myCookies['mileageLevel']);
	}
}

// var J;
// J = {LNG: '', ELS: '2P', CIT: '', STA: '', CTR: '', ZIP: '', EQM: 36000, EQS: 0.0, TOM: 0, MED: '', LFM: '', MPV: 'N', SPR: '', MPD: '', MPG: '', MPM: '', HOP: '', CAP: 'A', LFA: '', CFL: '', EML: '', FVA: ''};
if (typeof J != 'undefined') {
	if (J.ELS == '') {J.ELS = "GN";}
	if (J.LFA != '' && J.LFA.length == 8) {J.LFA = new Date(J.LFA.substr(0,4),J.LFA.substr(4,2)-1,J.LFA.substr(6,2));}
	if (J.MED != '' && J.MED.length == 8) {J.MED = new Date(J.MED.substr(0,4),J.MED.substr(4,2)-1,J.MED.substr(6,2));}
	
} else  {
	var J = {}; //protect J
}

if ('mpBal' in M) {
	if (M.mpBal.length > 0 ){
		M.mpBal = new Number(M.mpBal);
	}
}

//var JPage = (M==0 && J!=0);
//var JPage = (isEmpty(M) && !isEmpty(J));
var JPage = !isEmpty(J);

// Section table for all MP pages
//this gets built by the power tool in excel
var sectionLst = [
["MH",1,1,"//www.united.com/ual/asset/222x97_HubChange.jpg","","","http://hub.united.com/News/Web/Pages/get-ready-for-the-website-move.aspx?navSource=MP-Pool&linkTitle=PTN_MP-Merger_Merger_Com_Hub_Change_MH_120207","","",""],
["MH",1,1,"//www.united.com/ual/asset/62x62_Budget_logo.gif","Earn triple miles and save 30%","","http://www.budget.com/ua3x?navSource=MP-Pool&linkTitle=PTN_Cars_Budget_Earn_Triple_Save30_MH_101202","Book now","",""],
["MH",1,1,"//www.united.com/ual/asset/62x62_Checkmark.gif","Continue to receive timely and valuable communications.","","https://www.ua2go.com/profile/UpdateProfile.jsp?navSource=MP-Pool&linkTitle=PTN_MP-House_Marketing_VerifyEmail_MH_111108","Verify your address",""," !isEmpty(M) && M.mpLevel != 'Member'"],
["MH",1,1,"//www.united.com/ual/asset/62x62_Dollar_rent-a-car_logo.gif","Earn triple miles on rentals of two days or longer","","http://www.dollar.com/specials/partners/uam9.aspx?IATAnbr=10005440&navSource=MP-Pool&linkTitle=PTN_Cars_Dollar_Rent_A_Car_EarnTriple_MH_101216","Book now","",""],
["MH",1,1,"//www.united.com/ual/asset/62x62_Thrifty_logo.gif","Earn 1,000 miles","on rentals of three days or more worldwide","http://www.thrifty.com/Deals/Partners/ua31.aspx?IATA=10005440&navSource=MP-Pool&linkTitle=PTN_Cars_Thrifty_Car_Rental_Earn1K_World_MH_101216","Book now","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_emiles.gif","Enroll today","And be entered to win up to 100,000 award miles.","http://www.e-miles.com/uawebenroll?navSource=&linkTitle=PTN_Retail_eMiles_eMilesOffer_MH_120123","Learn more","",""],
["MH",1,2,"//www.united.com/ual/asset/62X62_FairmontWinter.gif","Everyone's an Original","Earn double award miles this winter","http://www.fairmont.com/winter?navSource=&linkTitle=PTN_Hotel_Fairmont_Hotels_and_Resorts_FairmontWinter_MH_111115","Book now","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_FTD_Redemption_2.gif","Use miles to purchase and send flowers worldwide with FTD.","","http://www.united.com/page/article/0,6722,52804,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_FTD_Redemption_MH_110527","Send flowers","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_FTDvday.gif","Shop FTD this Valentine's Day","30 miles per $1 now through Feb 14","http://www.ftd.com/ualresenda?navSource=&linkTitle=PTN_Retail_FTD_Earn_FTDValentines_MH_120123","Learn more","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_giftregistry.gif","Introducing MileagePlus Gift Registry","","http://www.ualmiles.com/GiveMilesRegistry.jsp?x2.x=47&x2.y=15&navSource=&linkTitle=PTN_Redemption_MP_Redemption_MPGiftRegistry_MH_120109","Learn more","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_Gilt.jpg","New members earn 1,500 miles","Access exclusive offers and experiences.","http://www.gilt.com/united3?navSource=&linkTitle=PTN_Deals_Gilt_Gilt_Offer_MH_111215","Join now","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_Hawaii.jpg","Marriott Hawaii","Exclusive for MileagePlus Members:Marriott Hawaii resort packages"," http://www.marriott.com/specials/mesOffer.mi?marrOfferId=721540&displayLink=true&navSource=MP-Pool&linkTitle=PTN_Hotel_Marriott_Hotels_and_Resorts_Marriott_Hawaii_MH_111003","Learn more","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_HotelCarAward_1.gif","Hotels and cars","Use miles for hotel stays and car rentals.","http://www.united.com/page/article/0,6867,53179,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_Hotel_and_Car_Award_MH_110527","Book now","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_IHG.gif","2X more rewards for your hotel stays","","http://www.priorityclub.com/hotels/us/en/global/offers/q112/united_airlines?promoCode=2832&offerId=p2832&navSource=&linkTitle=PTN_Hotel_InterContinental_Hotels_and_Resorts_IHG_MH_120206","Register Now","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_lock_Rockland.jpg","ROCKLAND Identity Theft Solutions","Protect your identity<BR>Earn up to 5,500 miles","https://mileageplus.rocklandid.com/index.cfm?tta&navSource=MP-Pool&linkTitle=PTN_Retail_Rockland_Identity_Theft_Solutions_Earn5500_MH_110204","Learn more","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_MarriottRewards.gif","Earn up to 50,000 bonus award miles","for stays through April 30, 2012.","http://www.marriott.com/rewards/promotion.mi?promotion=MM12&stop_mobi=yes&navSource=&linkTitle=PTN_Hotel_Marriott_Hotels_and_Resorts_MarriottRewards_MH_111219","Learn more","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_MerchRewards.gif","Shop with miles","Use miles for a great selection of merchandise.","http://store.ualmileageplus.com?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_Merchandise_Rewards_MH_110527","Go shopping","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_miles&money.gif","Miles & Money Award","Not enough miles? Add cash to create the perfect trip.","http://www.united.com/page/article/1,,53337,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_Miles-Money_Award_MH_110527","Learn more","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_MP_DiningRedemption.gif","Restaurant.com Dining","Use miles to dine at restaurants nationwide.","http://www.united.com/page/article/0,6722,52131,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_MP_Dining_Redemption_MH_110527","Learn more","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_MP_MagRedem.gif","Magazine Rewards","Use miles to subscribe to popular magazines.","https://magazinerewards.mileageplus.com/10000790/magPage.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_MP_Magazine_Redemption_MH_110527","See titles","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_MPShoppingVDay.gif","Earn miles for Valentine's Day gifts at MileagePlus Shopping","","https://www.mileageplusshopping.com/shopping/sh___Valentines%20Day%202012_.htm?chan=c&med=lk&cont=mpcarousel020112&source=vdaypromo&navSource=MP-Pool&linkTitle=PTN_Retail_MP_Shopping_MPShoppingVDay_MH_120201","Shop now","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_new-icon.gif","New partners new ways to earn miles","","http://www.united.com/page/article/1,,53631,00.html?navSource=MP-Pool&linkTitle=Ptn_MP-House_newParnter_MPH_102010","See new partners","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_OneWayAward_1.gif","One-Way Awards","Sometimes one way is all you need.","http://www.united.com/page/article/1,,53338,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_One-Way_Awards_MH_110527","Learn more","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_RCC_Redemption_1.gif","United Club","Only United Club allows you to relax in luxury while traveling","http://www.united.com/page/article/1,,52712,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_United_Club_redemption_MH_110527","Use miles","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_SaverAward.gif","Find available award seats to great destinations.","","http://www.united.com/page/article/0,6867,51324,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_Redeem-Saver_Award_MH_110527","See all","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_VinesseWine_vo.gif","6 btls of wine = 5,000 miles","When you join American Cellars Wine Club","www.vinesse.com/ualgead2011?navSource=MP-Pool&linkTitle=PTN_Retail_Vinesse_AmCelClub5K_nonCM_MH_111128","Learn more","","isEmpty(M) || (M.cardholderFlg != 'Y' && M.mpLevel == 'Member')"],
["MH",1,2,"//www.united.com/ual/asset/62x62_VinesseWine_vo.gif","6 btls of wine = 6,500 miles","When you join American Cellars Wine Club","www.vinesse.com/ualelad2011?navSource=MP-Pool&linkTitle=PTN_Retail_Vinesse_AmCelClub6500_CM_MH_111128","Learn more","","!isEmpty(M) && (M.cardholderFlg == 'Y' || M.mpLevel != 'Member')"],
["MH",1,2,"//www.united.com/ual/asset/62x62_Whistler.gif","Fairmont Resorts","Enjoy Whistler like never before. Resort upgrade & bonus miles.","http://www.fairmont.com/cwr/united?navSource=&linkTitle=PTN_Hotel_Fairmont_Hotels_and_Resorts_Whistler_MH_111103","Learn more","",""],
["MH",1,2,"//www.united.com/ual/asset/62x62_WyndhamGroup.jpg","Earn up to 3,000 bonus award miles","with Wyndham Hotel Group","https://www.wyndhamrewards.com/trec/consumer/special.action?partner=united&variant=&navSource=MP-Pool&linkTitle=PTN_Hotel_Wyndham_Hotels_and_Resorts_BonusAward_MH_111208","Learn more","",""],
["MH",1,2,"//www.united.com/ual/asset/ExtraLegroom_62x62.jpg","Customize your award trip","Now you can mix and match award options","http://www.united.com/page/article/1,,53694,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_DA_CustomizeTravel_MH_110211","Learn more","",""],
["MH",1,2,"//www.united.com/ual/asset/Hotel_Egypt_62x62.jpg","Earn miles for staying with hotel partners","Visit the hotel promotion page to see  the latest offers","http://www.united.com/page/article/0,6722,1254,00.html?navSource=MP-Pool&linkTitle=PTN_Hotels_Hotel-Generic_Promos2_MH_110406","Learn more","",""],
["MH",1,2,"//www.united.com/ual/asset/MPDining-photo_VO_62x62.gif","1 meal = 1,000 miles when","you join MileagePlus Dining.","http://mpdining.rewardsnetwork.com/bonus.htm?id=U171&detail=y&cm_mmc=UA-_-Web-_-External-_-MPcomNewMember&navSource=MP-Pool&linkTitle=PTN_Retail_MP_Dining_Join_1K_MH_110106","Join now","",""],
["MH",1,2,"//www.united.com/ual/asset/RentalCar_ScenicRoad_62x62.jpg","Rev up your miles!","Earn up to 1,500 miles on car rentals","http://www.united.com/page/article/0,6867,1255,00.html?navSource=MP-Pool&linkTitle=Ptn_Cars_Generic_MPH_pos2_110410","Book now","",""],
["MH",1,2,"//www.united.com/ual/asset/VO_netflix_62x62.gif","Earn 4,000 miles with Netflix!","When you join with your MileagePlus credit card."," https://secure.unitedmileageplus.com/MP0703NFZ.jsp?TRCK=MPWT0111&navSource=MP-Pool&linkTitle=PTN_Retail_Netflix_CM-4K_MH_110121","Learn more","","M.cardholderFlg == 'Y'"],
["MH",1,2,"//www.united.com/ual/asset/VO_netflix_62x62.gif","Earn up to 4,000 miles! Join Netflix today.","","https://secure.unitedmileageplus.com/MP0703NFZ.jsp?TRCK=MPWT0111&navSource=MP-Pool&linkTitle=PTN_Retail_Netflix_Default-NonCM-4K_MH_110121","Learn more","","isEmpty(M) || M.cardholderFlg == 'N'"],
["MH",1,3,"//www.united.com/ual/asset/ChaseExplorerCard_ECM_nolimit_249w.gif","","","http://www.chase.com/united?navSource=MP-Pool&linkTitle=PTN_Visa_ECM_Chase_ECM_ECM_Explorer_MH_111215","","","M.cardholderFlg == 'Y'"],
["MH",1,3,"//www.united.com/ual/asset/MPExplorer_249_In_40K_Bag.jpg","","","https://www.TheExplorerCard.com/MPYoureIn40kAFW.aspx?cell=NT9&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acquisitions_Default_Explorer_YoureIn_40K_bags_NT9_MH_120104","","","(M.cardholderFlg == 'N' && M.mpLevel == 'Member' && M.mpBal < 1 ) || isEmpty(M)"],
["MH",1,3,"//www.united.com/ual/asset/MPExplorer_249_In_40K_Boarding.jpg","","","https://www.TheExplorerCard.com/MPYoureIn40kAFW.aspx?cell=NT9&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acquisitions_Default_Explorer_YoureIn_40K_boarding_NT9_MH_120104","","","(M.cardholderFlg == 'N' && M.mpLevel == 'Member' && M.mpBal < 1 ) || isEmpty(M)"],
["MH",1,3,"//www.united.com/ual/asset/MPExplorer_249_In_40K_Passes.jpg","","","https://www.TheExplorerCard.com/MPYoureIn40kAFW.aspx?cell=NT9&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acquisitions_Default_Explorer_YoureIn_40K_passes_NT9_MH_120104","","","(M.cardholderFlg == 'N' && M.mpLevel == 'Member' && M.mpBal < 1 ) || isEmpty(M)"],
["MH",1,3,"//www.united.com/ual/asset/MPExplorer_249_In_60K_Bag.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NT3&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acquisitions_ActGen_Explorer_YoureIn_60K_bags_NT3_MH_120104","","","(M.cardholderFlg == 'N' && M.mpLevel == 'Member' && M.mpBal >= 1 )"],
["MH",1,3,"//www.united.com/ual/asset/MPExplorer_249_In_60K_Boarding.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NT3&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acquisitions_ActGen_Explorer_YoureIn_60K_boarding_NT3_MH_120104","","","(M.cardholderFlg == 'N' && M.mpLevel == 'Member' && M.mpBal >= 1 )"],
["MH",1,3,"//www.united.com/ual/asset/MPExplorer_249_In_60K_DoubleMiles.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NS7&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acquisitions_Elite_Explorer_YoureIn_60K_double_NS7_MH_120104","","","(!JPage && M.cardholderFlg == 'N' && M.mpLevel != 'Member')"],
["MH",1,3,"//www.united.com/ual/asset/MPExplorer_249_In_60K_Passes.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NS7&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acquisitions_Elite_Explorer_YoureIn_60K_passes_NS7_MH_120104","","","(!JPage && M.cardholderFlg == 'N' && M.mpLevel != 'Member')"],
["MH",1,3,"//www.united.com/ual/asset/MPExplorer_249_In_60K_Passes.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NT3&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acquisitions_ActGen_Explorer_YoureIn_60K_passes_NT3_MH_120104","","","(M.cardholderFlg == 'N' && M.mpLevel == 'Member' && M.mpBal >= 1 )"],
["MO",1,1,"//www.united.com/ual/asset/62x62_Budget_logo.gif","Earn triple miles and save 30%","","http://www.budget.com/ua3x?navSource=MP-Pool&linkTitle=PTN_Cars_Budget_Earn_Triple_Save30_MO_101202","Book now","",""],
["MO",1,1,"//www.united.com/ual/asset/62x62_Checkmark.gif","Continue to receive timely and valuable communications.","","https://www.ua2go.com/profile/UpdateProfile.jsp?navSource=MP-Pool&linkTitle=PTN_MP-House_Marketing_VerifyEmail_MO_111108","Verify your address",""," !isEmpty(M) && M.mpLevel != 'Member'"],
["MO",1,1,"//www.united.com/ual/asset/62x62_Dollar_rent-a-car_logo.gif","Earn triple miles on rentals of two days or longer","","http://www.dollar.com/specials/partners/uam9.aspx?IATAnbr=10005440&navSource=MP-Pool&linkTitle=PTN_Cars_Dollar_Rent_A_Car_EarnTriple_MO_101216","Book now","",""],
["MO",1,1,"//www.united.com/ual/asset/62x62_Thrifty_logo.gif","Earn 1,000 miles","on rentals of three days or more worldwide","http://www.thrifty.com/Deals/Partners/ua31.aspx?IATA=10005440&navSource=MP-Pool&linkTitle=PTN_Cars_Thrifty_Car_Rental_Earn1K_World_MO_101216","Book now","",""],
["MO",1,1,"//www.united.com/ual/asset/VO_netflix_62x62.gif","Earn 4,000 miles with Netflix!","When you join with your MileagePlus credit card."," https://secure.unitedmileageplus.com/MP0703NFZ.jsp?TRCK=MPWT0111&navSource=MP-Pool&linkTitle=PTN_Retail_Netflix_CM-4K_MO_110121","Learn more","","(!JPage && M.cardholderFlg == 'Y' ) || (JPage && M.cardholderFlg == 'Y')"],
["MO",1,2,"//www.united.com/ual/asset/222x97_HubChange.jpg","","","http://hub.united.com/Pages/default.aspx?navSource=MP-Pool&linkTitle=PTN_MP-Merger_Merger_Com_Hub_Change_MO_120207","","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_emiles.gif","Enroll today","And be entered to win up to 100,000 award miles.","http://www.e-miles.com/uawebenroll?navSource=&linkTitle=PTN_Retail_eMiles_eMilesOffer_MO_120123","Learn more","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_EnergyPlus-logo.gif","Earn up to 10,000 miles by paying your gas and electric bills","","http://www.energypluscompany.com/mileageplus/choice?at=WE&pc=071&ci=0245&cc=13&pac=UAL&navSource=MP-Pool&linkTitle=PTN_Retail_Energy_Plus_7500_MO_120213","Learn more","","listContains(J.STA, 'IL,NY,CT,MD,NJ,PA,TX', 'any') && M.cardholderFlg == 'N'"],
["MO",1,2,"//www.united.com/ual/asset/62x62_EnergyPlus-logo.gif","Earn up to 12,500 miles by paying your gas and electric bills","","http://www.energypluscompany.com/mileageplus/choice?at=WE&pc=058&gas_pc=781&ci=0245&cc=14&pac=UAL&navSource=MP-Pool&linkTitle=PTN_Retail__Energy_Plus_10000_MO_120206","Learn more","","listContains(J.STA, 'IL,NY,CT,MD,NJ,PA,TX', 'any') && M.cardholderFlg == 'Y'"],
["MO",1,2,"//www.united.com/ual/asset/62X62_FairmontWinter.gif","Everyone's an Original","Earn double award miles this winter","http://www.fairmont.com/winter?navSource=&linkTitle=PTN_Hotel_Fairmont_Hotels_and_Resorts_FairmontWinter_MO_111115","Book now","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_FTD_Redemption_2.gif","Use miles to purchase and send flowers worldwide with FTD.","","http://www.united.com/page/article/0,6722,52804,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_FTD_Redemption_MO_110527","Send flowers","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_FTDvday.gif","Shop FTD this Valentine's Day","30 miles per $1 now through Feb 14","http://www.ftd.com/ualresenda?navSource=&linkTitle=PTN_Retail_FTD_Earn_FTDValentines_MO_120123","Learn more","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_giftregistry.gif","Introducing MileagePlus Gift Registry","","http://www.ualmiles.com/GiveMilesRegistry.jsp?x2.x=47&x2.y=15&navSource=&linkTitle=PTN_Redemption_MP_Redemption_MPGiftRegistry_MO_120109","Learn more","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_Gilt.jpg","New members earn 1,500 miles","Access exclusive offers and experiences.","http://www.gilt.com/united3?navSource=&linkTitle=PTN_Deals_Gilt_Gilt_Offer_MO_111215","Join now","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_Hawaii.jpg","Marriott Hawaii","Exclusive for MileagePlus Members:Marriott Hawaii resort packages"," http://www.marriott.com/specials/mesOffer.mi?marrOfferId=721540&displayLink=true&navSource=MP-Pool&linkTitle=PTN_Hotel_Marriott_Hotels_and_Resorts_Marriott_Hawaii_MO_111003","Learn more","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_HotelCarAward_1.gif","Hotels and cars","Use miles for hotel stays and car rentals.","http://www.united.com/page/article/0,6867,53179,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_Hotel_and_Car_Award_MO_110527","Book now","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_IHG.gif","2X more rewards for your hotel stays","","http://www.priorityclub.com/hotels/us/en/global/offers/q112/united_airlines?promoCode=2832&offerId=p2832&navSource=&linkTitle=PTN_Hotel_InterContinental_Hotels_and_Resorts_IHG_MO_120206","Register Now","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_lock_Rockland.jpg","ROCKLAND Identity Theft Solutions","Protect your identity<BR>Earn up to 5,500 miles","https://mileageplus.rocklandid.com/index.cfm?tta&navSource=MP-Pool&linkTitle=PTN_Retail_Rockland_Identity_Theft_Solutions_Earn5500_MO_110204","Learn more","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_MarriottRewards.gif","Earn up to 50,000 bonus award miles","for stays through April 30, 2012.","http://www.marriott.com/rewards/promotion.mi?promotion=MM12&stop_mobi=yes&navSource=&linkTitle=PTN_Hotel_Marriott_Hotels_and_Resorts_MarriottRewards_MO_111219","Learn more","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_MerchRewards.gif","Shop with miles","Use miles for a great selection of merchandise.","http://store.ualmileageplus.com?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_Merchandise_Rewards_MO_110527","Go shopping","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_miles&money.gif","Miles & Money Award","Not enough miles? Add cash to create the perfect trip.","http://www.united.com/page/article/1,,53337,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_Miles-Money_Award_MO_110527","Learn more","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_MP_DiningRedemption.gif","Restaurant.com Dining","Use miles to dine at restaurants nationwide.","http://www.united.com/page/article/0,6722,52131,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_MP_Dining_Redemption_MO_110527","Learn more","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_MP_MagRedem.gif","Magazine Rewards","Use miles to subscribe to popular magazines.","https://magazinerewards.mileageplus.com/10000790/magPage.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_MP_Magazine_Redemption_MO_110527","See titles","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_MPShoppingVDay.gif","Earn miles for Valentine's Day gifts at MileagePlus Shopping","","https://www.mileageplusshopping.com/shopping/sh___Valentines%20Day%202012_.htm?chan=c&med=lk&cont=mpcarousel020112&source=vdaypromo&navSource=MP-Pool&linkTitle=PTN_Retail_MP_Shopping_MPShoppingVDay_MO_120201","Shop now","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_new-icon.gif","New partners new ways to earn miles","","http://www.united.com/page/article/1,,53631,00.html?navSource=MP-Pool&linkTitle=Ptn_MP-House_newParnter_MPO_102010","See new partners","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_OneWayAward_1.gif","One-Way Awards","Sometimes one way is all you need.","http://www.united.com/page/article/1,,53338,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_One-Way_Awards_MO_110527","Learn more","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_RCC_Redemption_1.gif","United Club","Only United Club allows you to relax in luxury while traveling","http://www.united.com/page/article/1,,52712,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_United_Club_redemption_MO_110527","Use miles","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_SaverAward.gif","Find available award seats to great destinations.","","http://www.united.com/page/article/0,6867,51324,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_Redeem-Saver_Award_MO_110527","See all","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_VinesseWine_vo.gif","6 btls of wine = 5,000 miles","When you join American Cellars Wine Club","www.vinesse.com/ualgead2011?navSource=MP-Pool&linkTitle=PTN_Retail_Vinesse_AmCelClub5K_nonCM_MO_111128","Learn more","","isEmpty(M) || (M.cardholderFlg != 'Y' && M.mpLevel == 'Member')"],
["MO",1,2,"//www.united.com/ual/asset/62x62_VinesseWine_vo.gif","6 btls of wine = 6,500 miles","When you join American Cellars Wine Club","www.vinesse.com/ualelad2011?navSource=MP-Pool&linkTitle=PTN_Retail_Vinesse_AmCelClub6500_CM_MO_101228","Learn more","","!isEmpty(M) && (M.cardholderFlg == 'Y' || M.mpLevel != 'Member')"],
["MO",1,2,"//www.united.com/ual/asset/62x62_Whistler.gif","Fairmont Resorts","Enjoy Whistler like never before. Resort upgrade & bonus miles.","http://www.fairmont.com/cwr/united?navSource=&linkTitle=PTN_Hotel_Fairmont_Hotels_and_Resorts_Whistler_MO_111103","Learn more","",""],
["MO",1,2,"//www.united.com/ual/asset/62x62_WyndhamGroup.jpg","Earn up to 3,000 bonus award miles","with Wyndham Hotel Group","https://www.wyndhamrewards.com/trec/consumer/special.action?partner=united&variant=&navSource=MP-Pool&linkTitle=PTN_Hotel_Wyndham_Hotels_and_Resorts_BonusAward_MO_111208","Learn more","",""],
["MO",1,2,"//www.united.com/ual/asset/ExtraLegroom_62x62.jpg","Customize your award trip","Now you can mix and match award options","http://www.united.com/page/article/1,,53694,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_DA_CustomizeTravel_MO_110211","Learn more","",""],
["MO",1,2,"//www.united.com/ual/asset/Hotel_Egypt_62x62.jpg","Earn miles for staying with hotel partners","Visit the hotel promotion page to see  the latest offers","http://www.united.com/page/article/0,6722,1254,00.html?navSource=MP-Pool&linkTitle=PTN_Hotels_Hotel-Generic_Promos2_MO_110406","Learn more","",""],
["MO",1,2,"//www.united.com/ual/asset/MPDining-photo_VO_62x62.gif","1 meal = 1,000 miles when","you join MileagePlus Dining.","http://mpdining.rewardsnetwork.com/bonus.htm?id=U171&detail=y&cm_mmc=UA-_-Web-_-External-_-MPcomNewMember&navSource=MP-Pool&linkTitle=PTN_Retail_MP_Dining_Join_1K_MO_110106","Join now","",""],
["MO",1,2,"//www.united.com/ual/asset/RentalCar_ScenicRoad_62x62.jpg","Rev up your miles!","Earn up to 1,500 miles on car rentals","http://www.united.com/page/article/0,6867,1255,00.html?navSource=MP-Pool&linkTitle=Ptn_Cars_Generic_MPO_pos2_110410","Book now","",""],
["MO",1,2,"//www.united.com/ual/asset/VO_netflix_62x62.gif","Earn up to 4,000 miles! Join Netflix today.","","https://secure.unitedmileageplus.com/MP0703NFZ.jsp?TRCK=MPWT0111&navSource=MP-Pool&linkTitle=PTN_Retail_Netflix_Default-NonCM-upto4K_MO_110121","Learn more","","(!JPage && (M.cardholderFlg == 'N')  || isEmpty(M)) || (JPage && M.cardholderFlg"],
["MO",1,3,"//www.united.com/ual/asset/ChaseExplorerCard_ECM_nolimit_249w.gif","","","http://www.chase.com/united?navSource=MP-Pool&linkTitle=PTN_Visa_ECM_Chase_ECM_ECM_Explorer_MO_111215","","","M.cardholderFlg == 'Y'"],
["MO",1,3,"//www.united.com/ual/asset/MPExplorer_249_In_40K_Bag.jpg","","","https://www.TheExplorerCard.com/MPYoureIn40kAFW.aspx?cell=NV0&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acquisitions_Default_Explorer_YoureIn_40K_bags_NV0_MO_120104","","","(M.cardholderFlg == 'N' &&  J.ELS == 'GN' && J.TOM < 1)"],
["MO",1,3,"//www.united.com/ual/asset/MPExplorer_249_In_40K_Boarding.jpg","","","https://www.TheExplorerCard.com/MPYoureIn40kAFW.aspx?cell=NV0&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acquisitions_Default_Explorer_YoureIn_40K_boarding_NV0_MO_120104","","","(M.cardholderFlg == 'N' &&  J.ELS == 'GN' && J.TOM < 1)"],
["MO",1,3,"//www.united.com/ual/asset/MPExplorer_249_In_40K_Passes.jpg","","","https://www.TheExplorerCard.com/MPYoureIn40kAFW.aspx?cell=NV0&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acquisitions_Default_Explorer_YoureIn_40K_passes_NV0_MO_120104","","","(M.cardholderFlg == 'N' &&  J.ELS == 'GN' && J.TOM < 1)"],
["MO",1,3,"//www.united.com/ual/asset/MPExplorer_249_In_60K_Bag.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NT4&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acquisitions_ActGen_Explorer_YoureIn_60K_bags_NT4_MO_120104","","","(JPage && M.cardholderFlg == 'N' && M.mpLevel == 'Member' && M.mpBal >= 1)"],
["MO",1,3,"//www.united.com/ual/asset/MPExplorer_249_In_60K_Boarding.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NT4&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acquisitions_ActGen_Explorer_YoureIn_60K_boarding_NT4_MO_120104","","","(JPage && M.cardholderFlg == 'N' && M.mpLevel == 'Member' && M.mpBal >= 1)"],
["MO",1,3,"//www.united.com/ual/asset/MPExplorer_249_In_60K_DoubleMiles.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NS8&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acq_Elite_Explorer_YoureIn_60K_double_NS8_MO_120104","","","(JPage && M.cardholderFlg == 'N' && M.mpLevel != 'Member')"],
["MO",1,3,"//www.united.com/ual/asset/MPExplorer_249_In_60K_Passes.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NS8&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acq_Elite_Explorer_YoureIn_60K_passes_NS8_MO_120104","","","(JPage && M.cardholderFlg == 'N' && M.mpLevel != 'Member')"],
["MO",1,3,"//www.united.com/ual/asset/MPExplorer_249_In_60K_Passes.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NT4&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acquisitions_ActGen_Explorer_YoureIn_60K_passes_NT4_MO_120104","","","(JPage && M.cardholderFlg == 'N' && M.mpLevel == 'Member' && M.mpBal >= 1)"],
["MO",1,4,"//www.united.com/ual/asset/450x78_HubChange.jpg","","","http://hub.united.com/News/Web/Pages/get-ready-for-the-website-move.aspx?navSource=MP-Pool&linkTitle=PTN_MP-Merger_Merger_Com_Hub_Change_MO_120207","","",""],
["MO",1,4,"//www.united.com/ual/asset/MP_450x78_important_slot4_.jpg","","","https://secure.unitedmileageplus.com/MergerSites/index.jsp?navSource=MP-Pool&linkTitle=PTN_MP-Merger_Merger_Com_JanuaryMerger_MO_120119","","",""],
["XX",1,1,"//www.united.com/ual/asset/ChaseExplorerCard_ECM_nolimit_222w.gif","","","http://www.chase.com/united?navSource=MP-Pool&linkTitle=PTN_Visa_ECM_Chase_ECM_ECM_Explorer_XXD_111215","","","(JPage && M.cardholderFlg == 'Y')"],
["XX",1,1,"//www.united.com/ual/asset/ChaseExplorerCard_ECM_nolimit_222w.gif","","","http://www.chase.com/united?navSource=MP-Pool&linkTitle=PTN_Visa_ECM_Chase_ECM_ECM_Explorer_XXS_111215","","","M.cardholderFlg == 'Y'"],
["XX",1,1,"//www.united.com/ual/asset/MPExplorer_222_In_40K_Bags.jpg","","","https://www.TheExplorerCard.com/MPYoureIn40kAFW.aspx?cell=NV1&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acq_Default_Explorer_YoureIn_40K_bags_NV1_XXD_120104","","","(JPage && M.cardholderFlg == 'N' && J.ELS == 'GN' && J.TOM < 1)"],
["XX",1,1,"//www.united.com/ual/asset/MPExplorer_222_In_40K_Bags.jpg","","","https://www.TheExplorerCard.com/MPYoureIn40kAFW.aspx?cell=NV2&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acq_Default_Explorer_YoureIn_40K_bags_NV2_XXS_120104","","","!JPage && (isEmpty(M) || (M.cardholderFlg == 'N'  && (M.mpLevel == 'Member' && M.mpBal < 1)))"],
["XX",1,1,"//www.united.com/ual/asset/MPExplorer_222_In_40K_Boarding.jpg","","","https://www.TheExplorerCard.com/MPYoureIn40kAFW.aspx?cell=NV1&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acq_Default_Explorer_YoureIn_40K_boarding_NV1_XXD_120104","","","(JPage && M.cardholderFlg == 'N' && J.ELS == 'GN' && J.TOM < 1)"],
["XX",1,1,"//www.united.com/ual/asset/MPExplorer_222_In_40K_Boarding.jpg","","","https://www.TheExplorerCard.com/MPYoureIn40kAFW.aspx?cell=NV2&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acq_Default_Explorer_YoureIn_40K_boarding_NV2_XXS_120104","","","!JPage && (isEmpty(M) || (M.cardholderFlg == 'N'  && (M.mpLevel == 'Member' && M.mpBal < 1)))"],
["XX",1,1,"//www.united.com/ual/asset/MPExplorer_222_In_40K_Passes.jpg","","","https://www.TheExplorerCard.com/MPYoureIn40kAFW.aspx?cell=NV1&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acq_Default_Explorer_YoureIn_40K_passes_NV1_XXD_120104","","","(JPage && M.cardholderFlg == 'N' && J.ELS == 'GN' && J.TOM < 1)"],
["XX",1,1,"//www.united.com/ual/asset/MPExplorer_222_In_40K_Passes.jpg","","","https://www.TheExplorerCard.com/MPYoureIn40kAFW.aspx?cell=NV2&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acq_Default_Explorer_YoureIn_40K_passes_NV2_XXS_120104","","","!JPage && (isEmpty(M) || (M.cardholderFlg == 'N'  && (M.mpLevel == 'Member' && M.mpBal < 1)))"],
["XX",1,1,"//www.united.com/ual/asset/MPExplorer_222_In_60K_Bag.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NT5&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acq_ActGen_Explorer_YoureIn_60K_bags_NT5_XXD_120104","","","(JPage && M.cardholderFlg == 'N' && M.mpLevel == 'Member' && M.mpBal >= 1)"],
["XX",1,1,"//www.united.com/ual/asset/MPExplorer_222_In_60K_Bag.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NT6&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acq_ActGen_Explorer_YoureIn_60K_bags_NT6_XXS_120104","","","(!JPage && M.cardholderFlg == 'N' && M.mpLevel == 'Member' && M.mpBal > 1)"],
["XX",1,1,"//www.united.com/ual/asset/MPExplorer_222_In_60K_Boarding.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NT5&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acq_ActGen_Explorer_YoureIn_60K_boarding_NT5_XXD_120104","","","(JPage && M.cardholderFlg == 'N' && M.mpLevel == 'Member' && M.mpBal >= 1)"],
["XX",1,1,"//www.united.com/ual/asset/MPExplorer_222_In_60K_Boarding.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NT5&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acq_ActGen_Explorer_YoureIn_60K_passes_NT5_XXD_120104","","","(JPage && M.cardholderFlg == 'N' && M.mpLevel == 'Member' && M.mpBal >= 1)"],
["XX",1,1,"//www.united.com/ual/asset/MPExplorer_222_In_60K_Boarding.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NT6&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acq_ActGen_Explorer_YoureIn_60K_boarding_NT6_XXS_120104","","","(!JPage && M.cardholderFlg == 'N' && M.mpLevel == 'Member' && M.mpBal > 1)"],
["XX",1,1,"//www.united.com/ual/asset/MPExplorer_222_In_60K_DoubleMiles.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NS9&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acq_Elite_Explorer_YoureIn_60K_double_NS9_XXD_120104","","","(JPage && M.cardholderFlg == 'N' && M.mpLevel != 'Member')"],
["XX",1,1,"//www.united.com/ual/asset/MPExplorer_222_In_60K_DoubleMiles.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NT0&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acq_Elite_Explorer_YoureIn_60K_double_NT0_XXS_120104","","","(!JPage && M.cardholderFlg == 'N' && M.mpLevel != 'Member')"],
["XX",1,1,"//www.united.com/ual/asset/MPExplorer_222_In_60K_Passes.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NS9&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acq_Elite_Explorer_YoureIn_60K_passes_NS9_XXD_120104","","","(JPage && M.cardholderFlg == 'N' && M.mpLevel != 'Member')"],
["XX",1,1,"//www.united.com/ual/asset/MPExplorer_222_In_60K_Passes.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NT0&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acq_Elite_Explorer_YoureIn_60K_passes_NT0_XXS_120104","","","(!JPage && M.cardholderFlg == 'N' && M.mpLevel != 'Member')"],
["XX",1,1,"//www.united.com/ual/asset/MPExplorer_222_In_60K_Passes.jpg","","","https://www.TheExplorerCard.com/MPYoureIn60kAFW.aspx?cell=NT6&navSource=MP-Pool&linkTitle=PTN_Visa_Acquisitions_Chase_Acq_ActGen_Explorer_YoureIn_60K_passes_NT6_XXS_120104","","","(!JPage && M.cardholderFlg == 'N' && M.mpLevel == 'Member' && M.mpBal > 1)"],
["XX",1,2,"//www.united.com/ual/asset/222x97_HubChange.jpg","","","http://hub.united.com/News/Web/Pages/get-ready-for-the-website-move.aspx?navSource=MP-Pool&linkTitle=PTN_MP-Merger_Merger_Com_Hub_Change_XX_120207","","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_Budget_logo.gif","Earn triple miles and save 30%","","http://www.budget.com/ua3x?navSource=MP-Pool&linkTitle=PTN_Cars_Budget_Earn_Triple_Save30_XX_101202","Book now","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_Checkmark.gif","Continue to receive timely and valuable communications.","","https://www.ua2go.com/profile/UpdateProfile.jsp?navSource=MP-Pool&linkTitle=PTN_MP-House_Marketing_VerifyEmail_XXS_111108","Verify your address",""," !isEmpty(M) && M.mpLevel != 'Member'"],
["XX",1,2,"//www.united.com/ual/asset/62x62_Dollar_rent-a-car_logo.gif","Earn triple miles on rentals of two days or longer","","http://www.dollar.com/specials/partners/uam9.aspx?IATAnbr=10005440&navSource=MP-Pool&linkTitle=PTN_Cars_Dollar_Rent_A_Car_EarnTriple_XX_101216","Book now","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_emiles.gif","Enroll today","And be entered to win up to 100,000 award miles.","http://www.e-miles.com/uawebenroll?navSource=&linkTitle=PTN_Retail_eMiles_eMilesOffer_XX_120123","Learn more","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_EnergyPlus-logo.gif","Earn up to 10,000 miles by paying your gas and electric bills","","http://www.energypluscompany.com/mileageplus/choice?at=WE&pc=071&ci=0245&cc=13&pac=UAL&navSource=MP-Pool&linkTitle=PTN_Retail_Energy_Plus_7500_XXD_120206","Learn more","","JPage && (listContains(J.STA, 'IL,NY,CT,MD,NJ,PA,TX', 'any') && M.cardholderFlg == 'N')"],
["XX",1,2,"//www.united.com/ual/asset/62x62_EnergyPlus-logo.gif","Earn up to 12,500 miles by paying your gas and electric bills","","http://www.energypluscompany.com/mileageplus/choice?at=WE&pc=058&gas_pc=781&ci=0245&cc=14&pac=UAL&navSource=MP-Pool&linkTitle=PTN_Retail__Energy_Plus_10000_XXD_120206","Learn more","","JPage && (listContains(J.STA, 'IL,NY,CT,MD,NJ,PA,TX', 'any') && M.cardholderFlg == 'Y')"],
["XX",1,2,"//www.united.com/ual/asset/62X62_FairmontWinter.gif","Everyone's an Original","Earn double award miles this winter","http://www.fairmont.com/winter?navSource=&linkTitle=PTN_Hotel_Fairmont_Hotels_and_Resorts_FairmontWinter_XX_111115","Book now","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_FTD_Redemption_2.gif","Use miles to purchase and send flowers worldwide with FTD.","","http://www.united.com/page/article/0,6722,52804,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_FTD_Redemption_XX_110527","Send flowers","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_FTDvday.gif","Shop FTD this Valentine's Day","30 miles per $1 now through Feb 14","http://www.ftd.com/ualresenda?navSource=&linkTitle=PTN_Retail_FTD_Earn_FTDValentines_XX_120123","Learn more","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_giftregistry.gif","Introducing MileagePlus Gift Registry","","http://www.ualmiles.com/GiveMilesRegistry.jsp?x2.x=47&x2.y=15&navSource=&linkTitle=PTN_Redemption_MP_Redemption_MPGiftRegistry_XX_120109","Learn more","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_Gilt.jpg","New members earn 1,500 miles","Access exclusive offers and experiences.","http://www.gilt.com/united3?navSource=&linkTitle=PTN_Deals_Gilt_Gilt_Offer_XX_111215","Join now","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_Hawaii.jpg","Marriott Hawaii","Exclusive for MileagePlus Members:Marriott Hawaii resort packages"," http://www.marriott.com/specials/mesOffer.mi?marrOfferId=721540&displayLink=true&navSource=MP-Pool&linkTitle=PTN_Hotel_Marriott_Hotels_and_Resorts_Marriott_Hawaii_XX_111003","Learn more","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_HotelCarAward_1.gif","Hotels and cars","Use miles for hotel stays and car rentals.","http://www.united.com/page/article/0,6867,53179,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_Hotel_and_Car_Award_XX_110527","Book now","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_IHG.gif","2X more rewards for your hotel stays","","http://www.priorityclub.com/hotels/us/en/global/offers/q112/united_airlines?promoCode=2832&offerId=p2832&navSource=&linkTitle=PTN_Hotel_InterContinental_Hotels_and_Resorts_IHG_XX_120206","Register Now","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_lock_Rockland.jpg","ROCKLAND Identity Theft Solutions","Protect your identity<BR>Earn up to 5,500 miles","https://mileageplus.rocklandid.com/index.cfm?tta&navSource=MP-Pool&linkTitle=PTN_Retail_Rockland_Identity_Theft_Solutions_Earn5500_XX_110204","Learn more","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_MarriottRewards.gif","Earn up to 50,000 bonus award miles","for stays through April 30, 2012.","http://www.marriott.com/rewards/promotion.mi?promotion=MM12&stop_mobi=yes&navSource=&linkTitle=PTN_Hotel_Marriott_Hotels_and_Resorts_MarriottRewards_XX_111219","Learn more","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_MerchRewards.gif","Shop with miles","Use miles for a great selection of merchandise.","http://store.ualmileageplus.com?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_Merchandise_Rewards_XX_110527","Go shopping","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_miles&money.gif","Miles & Money Award","Not enough miles? Add cash to create the perfect trip.","http://www.united.com/page/article/1,,53337,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_Miles-Money_Award_XX_110527","Learn more","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_MP_DiningRedemption.gif","Restaurant.com Dining","Use miles to dine at restaurants nationwide.","http://www.united.com/page/article/0,6722,52131,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_MP_Dining_Redemption_XX_110527","Learn more","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_MP_MagRedem.gif","Magazine Rewards","Use miles to subscribe to popular magazines.","https://magazinerewards.mileageplus.com/10000790/magPage.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_MP_Magazine_Redemption_XX_110527","See titles","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_MPShoppingVDay.gif","Earn miles for Valentine's Day gifts at MileagePlus Shopping","","https://www.mileageplusshopping.com/shopping/sh___Valentines%20Day%202012_.htm?chan=c&med=lk&cont=mpcarousel020112&source=vdaypromo&navSource=MP-Pool&linkTitle=PTN_Retail_MP_Shopping_MPShoppingVDay_XX_120202","Shop now","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_new-icon.gif","New partners new ways to earn miles","","http://www.united.com/page/article/1,,53631,00.html?navSource=MP-Pool&linkTitle=Ptn_MP-House_newParnter_XX_102010","See new partners","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_OneWayAward_1.gif","One-Way Awards","Sometimes one way is all you need.","http://www.united.com/page/article/1,,53338,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_One-Way_Awards_XX_110527","Learn more","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_RCC_Redemption_1.gif","United Club","Only United Club allows you to relax in luxury while traveling","http://www.united.com/page/article/1,,52712,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_United_Club_redemption_XX_110527","Use miles","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_SaverAward.gif","Find available award seats to great destinations.","","http://www.united.com/page/article/0,6867,51324,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_Redeem-Saver_Award_XX_110527","See all","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_Thrifty_logo.gif","Earn 1,000 miles","on rentals of three days or more worldwide","http://www.thrifty.com/Deals/Partners/ua31.aspx?IATA=10005440&navSource=MP-Pool&linkTitle=PTN_Cars_Thrifty_Car_Rental_Earn1K_World_XX_101216","Book now","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_VinesseWine_vo.gif","6 btls of wine = 5,000 miles","When you join American Cellars Wine Club","www.vinesse.com/ualgead2011?navSource=MP-Pool&linkTitle=PTN_Retail_Vinesse_AmCelClub5K_nonCM_XXS_111128","Learn more","","isEmpty(M) || (M.cardholderFlg != 'Y' && M.mpLevel == 'Member')"],
["XX",1,2,"//www.united.com/ual/asset/62x62_VinesseWine_vo.gif","6 btls of wine = 6,500 miles","When you join American Cellars Wine Club","www.vinesse.com/ualelad2011?navSource=MP-Pool&linkTitle=PTN_Retail_Vinesse_AmCelClub6500_CM_XXS_111128","Learn more","","!isEmpty(M) && (M.cardholderFlg == 'Y' || M.mpLevel != 'Member')"],
["XX",1,2,"//www.united.com/ual/asset/62x62_Whistler.gif","Fairmont Resorts","Enjoy Whistler like never before. Resort upgrade & bonus miles.","http://www.fairmont.com/cwr/united?navSource=&linkTitle=PTN_Hotel_Fairmont_Hotels_and_Resorts_Whistler_XX_111103","Learn more","",""],
["XX",1,2,"//www.united.com/ual/asset/62x62_WyndhamGroup.jpg","Earn up to 3,000 bonus award miles","with Wyndham Hotel Group","https://www.wyndhamrewards.com/trec/consumer/special.action?partner=united&variant=&navSource=MP-Pool&linkTitle=PTN_Hotel_Wyndham_Hotels_and_Resorts_BonusAward_XX_111208","Learn more","",""],
["XX",1,2,"//www.united.com/ual/asset/ExtraLegroom_62x62.jpg","Customize your award trip","Now you can mix and match award options","http://www.united.com/page/article/1,,53694,00.html?navSource=MP-Pool&linkTitle=PTN_Redemption_MP_Redemption_DA_CustomizeTravel_XX_110211","Learn more","",""],
["XX",1,2,"//www.united.com/ual/asset/Hotel_Egypt_62x62.jpg","Earn miles for staying with hotel partners","Visit the hotel promotion page to see  the latest offers","http://www.united.com/page/article/0,6722,1254,00.html?navSource=MP-Pool&linkTitle=PTN_Hotels_Hotel-Generic_Promos2_XX_110406","Learn more","",""],
["XX",1,2,"//www.united.com/ual/asset/MPDining-photo_VO_62x62.gif","1 meal = 1,000 miles when","you join MileagePlus Dining.","http://mpdining.rewardsnetwork.com/bonus.htm?id=U171&detail=y&cm_mmc=UA-_-Web-_-External-_-MPcomNewMember&navSource=MP-Pool&linkTitle=PTN_Retail_MP_Dining_Join_1K_XX_110106","Join now","",""],
["XX",1,2,"//www.united.com/ual/asset/RentalCar_ScenicRoad_62x62.jpg","Rev up your miles!","Earn up to 1,500 miles on car rentals","http://www.united.com/page/article/0,6867,1255,00.html?navSource=MP-Pool&linkTitle=Ptn_Cars_Generic_XX_pos2_110410","Book now","",""],
["XX",1,2,"//www.united.com/ual/asset/VO_netflix_62x62.gif","Earn 4,000 miles with Netflix!","When you join with your MileagePlus credit card."," https://secure.unitedmileageplus.com/MP0703NFZ.jsp?TRCK=MPWT0111&navSource=MP-Pool&linkTitle=PTN_Retail_Netflix_CM-4K_XX_110121","Learn more","","M.cardholderFlg == 'Y'"],
["XX",1,2,"//www.united.com/ual/asset/VO_netflix_62x62.gif","Earn up to 4,000 miles! Join Netflix today.","","https://secure.unitedmileageplus.com/MP0703NFZ.jsp?TRCK=MPWT0111&navSource=MP-Pool&linkTitle=PTN_Retail_Netflix_Default-NonCM-4K_XX_110121","Learn more","","M.cardholderFlg == 'N'  || isEmpty(M)"]
];

var divInnerhtml ="";
var SM = "<span class='sm'>SM</span>";
 
function fillVOAds(whichSlot,howManyAds) {
	var flagset="";
	for (adCnt=0; adCnt<howManyAds;adCnt++){ //howManyAds set above to indicate how many to display
		var totalweight=0;
		var fatArray=new Array() //new array to hold "weighted" ads
		fatArray.length=0;
		var currentfruit=0;
		var validAds=0;
		var separator=0;
		var iLoopLength = new Number (sectionLst.length);

		while (currentfruit<iLoopLength){ //step through each ad[] element looking for good slotting
			if (sectionLst[currentfruit][0].indexOf(selectedSection) != -1 && whichSlot == sectionLst[currentfruit][2]) {
			//if (selectedSection == sectionLst[currentfruit][0] && whichSlot == sectionLst[currentfruit][2]) { 
				if (sectionLst[currentfruit][9]) { //dynamic ad possible
				try{
					if (eval(sectionLst[currentfruit][9])) {
						//alert('qualifies for ad with '+sectionLst[currentfruit][9]);
						totalweight += sectionLst[currentfruit][1];
						validAds++;
						for (i=0; i<sectionLst[currentfruit][1]; i++) {
							fatArray[fatArray.length] = currentfruit;
						}
					} //dynamic ad and user does not qualify
				}
				catch(e){ //alert('invalid search parameters')
					// do nothing and continue
				}
				
				} else {
					totalweight += sectionLst[currentfruit][1];
					validAds++;
					for (i=0; i<sectionLst[currentfruit][1]; i++) {
						fatArray[fatArray.length] = currentfruit;
					}
				}
			}
			currentfruit++
	 }
	 //if no valid ads returned, quit loop
	 if(validAds == 0 || totalweight == 0) {continue;}
	 
	 if (flagset != "y") { flagset="y"; if(howManyAds > validAds) {howManyAds = validAds;}}
	 var randomnumber=Math.floor(Math.random()*totalweight)
	 chosenIndex = fatArray[randomnumber];
	 //if (adCnt==0 && whichSlot < 3 ) {separator=1} //add the dashed to the right with padding for horz ads
	 if (adCnt==0 && whichSlot ==1 ) {
		separator = 0;
	 } else if (adCnt==0 && whichSlot == 2){
		separator = 1;
	} else if (adCnt==1 && whichSlot == 2) {
		separator = 2;
	}
	 
	 populateVOSection(chosenIndex,separator,whichSlot);
		//remove the chosen from the array
		sectionLst.splice(fatArray[randomnumber],1)
	}//end of adCnt looper
	return divInnerhtml;
}



function populateVOSection(chosen,separator,whichSlot) {
	//handle for each element from array
	var VOsection   = new String(sectionLst[chosen][0]).trim(); //section
	var VOweighting = sectionLst[chosen][1]; //weighting
	var VOSlotting  = sectionLst[chosen][2]; //slotting, either 1 or 2
	var VOimgPath   = new String(sectionLst[chosen][3]).trim(); //img path
	var VOlinkText  = new String(sectionLst[chosen][4]).trim(); //link text or lead copy
	var VObody      = new String(sectionLst[chosen][5]).trim(); //body copy
	var VOurl       = new String(sectionLst[chosen][6]).trim(); //Link
	var VOAction    = new String(sectionLst[chosen][7]).trim(); //action link
	
/*	
	if (isDefined(sectionLst[chosen][8])) {//this exists only for chase ads
		var trackingScript	= sectionLst[chosen][8]; 
	   $.getScript(trackingScript, function(){
		});
	}	
*/
	//vo layout for mp20
	if (whichSlot==3) {//rcc-type image only ad
		divInnerhtml +=	'<div class="offerBlk_249x109"><a href="' + VOurl	+ '"><img src="' + VOimgPath	+ '"></a>';
	
	} else if (whichSlot==4) {//cross sell image only ad
		divInnerhtml +=	'<div class="offrBlk_244x78"><a href="' + VOurl	+ '"><img src="' + VOimgPath	+ '"></a>';
	
	} else if (VOlinkText=='' && VObody=='' && VOAction=='' ) {// image only
		divInnerhtml +=	'<div class="offrBlk_image_only';
		if (separator ==0) {
			divInnerhtml += ' vsep';
		} else if (separator == 1) {
			divInnerhtml += ' vsepCenter';
		} else if (separator == 2) {
			divInnerhtml += ' vsepRight';
		
		}
		divInnerhtml += '">'
			+ '<a href="' + VOurl
			+ '"><img src="' + VOimgPath
			+ '"></a>';
	
	} else {
		divInnerhtml +=	'<div class="offrBlk_244x97';
		if (separator ==0) {
			divInnerhtml += ' vsep';
		} else if (separator == 1) {
			divInnerhtml += ' vsepCenter';
		} else if (separator == 2) {
			divInnerhtml += ' vsepRight';
		}
		divInnerhtml += '">'	
		+ '<a href="' + VOurl
		+ '"><img src="' + VOimgPath
		+ '" alt="' + VOlinkText
		+ '"></a><div style="overflow:hidden;zoom:1;"><div id="lead"><a href="' + VOurl
		+ '">' + VOlinkText.replace(/\(SM\)/,SM)
		+ '</a></div><div id="offerBlk_text">'
		+ VObody.replace(/\(SM\)/,SM) 
		+ '</div>'
		if (VOAction) {
			divInnerhtml += '<div class="primaryBlueCarret" id="offerBlk_action"><a href="' + VOurl
				+ '">' + VOAction
				+ '</a></div>' 
		}
		divInnerhtml += '</div>'
	}
	divInnerhtml +=	'</div>'
}

