/* JavaScript for the local franchise menu. */

/* The menu of franchise sites, displayed on the Local page,
 * is generated with JavaScript from the contents of the
 * two arrays that are initialized in this file. There
 * is an array each for the names of the countries, and 
 * their corresponding URL.
 *
 * The URL entry for the UK contains four backslash '\' 
 * characters. The actual URL only contains one, but because
 * this string gets passed through two document.write calls
 * I had to have four in order to get the one.
 *
 * These arrays also include the names of countries that
 * have been commented-out. These countries were in the original
 * list supplied by the designer, and since they don't actually
 * have a DCI site they've been removed. But because they
 * may eventually get a site, I decided to just comment them
 * instead of deleting them entirely.
 */

var franchiseMenu = new PopupMenu("franchiseMenu",4,"franchiseMenuStyle","franchiseItemStyle");

var country_names = new Array(
//"Albania",
"Argentina",
"Australia",
"Austria",
"Bahrain",
"Belgium",
//"Bosnia",
"Brazil",
"Bulgaria",
"Canada",
"Chile",
//"China",
"Colombia",
//"Costa Rica",
"Croatia",
//"Cyprus",
"Czech Republic",
"Denmark",
"Ecuador",
"Egypt",
"El Salvador",
"Finland",
"France",
"Germany",
"Greece",
"Guatemala",
"Honduras",
"Hong Kong",
//"Hungary",
"India",
//"Indonesia",
//"Ireland",
"Israel",
"Italy",
"Japan",
//"Jordan",
//"Kenya",
"Korea",
"Kuwait",
//"Lebanon",
"Luxembourg",
"Macedonia",
"Malaysia",
//"Mexico",
//"Morroco",
"Netherlands",
"New Zealand",
"Nicaragua",
"Norway",
"Oman",
//"Pakistan",
"Panama",
//"Paraguay",
"Peru",
"Philippines",
"Poland",
//"Portugal",
"Qatar",
//"Romania",
"Russia",
"Saudi Arabia",
"Serbia & Montenegro",
"Singapore",
"Slovakia",
"Slovenia",
"South Africa",
"Spain",
"Sweden",
"Switzerland",
"Taiwan",
"Thailand",
//"Tunisia",
//"Turkey",
"United Arab Emirates",
"United Kingdom",
"Uruguay",
"United States",
"Venezuela"
);

var country_urls = new Array(
//"Albania",
"http://www.latam.citibank.com/argentina/laargl/spanish/credcard/tarjetas.htm",
"http://www.dinersclub.com.au/",
"http://www.airplus.at/master_frame.php?site_id=78&lid=1",
"http://www.dinersme.com/bahrain/bah_diners_club.htm",
"http://www.dinersclub.be",
//"Bosnia",
"http://www.diners.com.br",
"http://www.diners.bg/",
//"http://www.dinersclubnorthamerica.com/CA/en/diners_club.jhtml?pageId=ca_03_01&referer=Unknown&fromPageId=null",
"http://dinersclubcanada.com/dce_content/corporateproducts",
"http://www.dinersclub.cl",
//"China",
"http://www.davivienda.com/",
//"Costa Rica",
"http://www.diners.com.hr",
//"Cyprus",
"http://www.dinersclub.cz/",
"http://swp2.vv.sebank.se/cgi-bin/pts3/dnd/dk/DinersClub.asp?catid=2",
"http://www.dinersclub.com.ec",
"http://www.dinersme.com/egypt/egypt_diners_club.htm",
"http://www.baconline.com/elsalvador/esp/credo/tarjetas/tpramediners.html",
"http://yritys.dinersclub.fi/yritys/",
"http://www.dinersclub.fr",
//"http://www.dinersclub.de/de/an/area_corporate.de?area=corporate",
"http://www.dinersclub.de",
"http://www.dinersclub.gr",
"http://www.gytcontinental.com.gt/gytca/",
"http://www.baconline.com/honduras/esp/credo/tarjetas/tarpersonales.html",
"http://www.dinersclub.com.hk",
//"http://www.citibank.com/hungary",
"http://www.online.citibank.co.in/portal/cb/dinersclub/default.htm",
//"Indonesia",
//"Ireland",
"https://www.cal-online.co.il/he-IL/Cal/Pages/home.aspx",
"http://www.dinersclub.it",
"http://www.diners.co.jp/",
//"Jordan",
//"Kenya",
"http://www.dinerscard.co.kr",
"http://www.kuwait.nbk.com/personal/nbkcards/dinersclubcard_en_gb.aspx",
//"Lebanon",
"http://www.dinersclub.be",
"http://www.diners.com.mk/",
"http://www.dinersclub.com.my/en/corporate/corporate.asp",
//"Mexico",
//"Morocco",
//"http://www.dinersclub.nl/nl/an/area_corporate.du?area=corporate",
"http://www.dinersclub.nl",
"http://www.dinersclub.co.nz",
"https://www.credomatic.com/nicaragua/esp/credo/tarjetas/tprdinclasica.html",
"http://swp2.vv.sebank.se/cgi-bin/pts3/dnn/no/DinersClub.asp?catid=1",
"http://www.dinerscluboman.com/",
//"Pakistan",
"http://www.bgeneral.com/bgespanol/comercial/index.asp",
//"Paraguay:" "http://www.latam.citibank.com/paraguay/lapyco/spanish/transact/index.htm",
"http://www.dinersclub.com.pe/",
"http://www.dinersclub.com.ph/ent/",
"http://www.dinersclub.pl/index.html?id=3",
//"Portugal",
"http://www.dinersme.com/diners_club.htm",
//"Romania",
"http://www.diners.ru/corp",
"http://www.dinersclubsaudi.com/",
"http://www.diners.co.yu/",
"http://www.dinersclub.com.sg/en/corporate/corporate.asp",
"http://www.dinersclub.sk/EN/default.html",
"http://www.dinersclub.si/",
"http://www.dinersclub.co.za",
"http://www.dinersclub.es/",
"http://swp2.vv.sebank.se/cgi-bin/pts3/dna/se/",
"http://www.dinersclub.ch",
"http://www.citibank.com.tw/APPS/portal/loadPage.do?tabNo=3&path=/prod/det/cc_diners.htm",
"http://www.citibank.co.th/global_docs/dinersclub/member/memtype.htm",
//"Tunisia",
//"Turkey",
"http://www.dinersclubuae.com/diners/cardinformation/productsbenefits/corporatecard/default.htm",
"http://www.dinersclub.co.uk",
"http://www.diners.com.uy/",
//"http://www.dinersclubnorthamerica.com/US/en/diners_club.jhtml?pageId=us_03_00&referer=Unknown&fromPageId=null",
"http://dinersclubus.com/dce_content/corporateproducts",
"http://www.bancomercantil.com/mercprod/site/personas/06_diners_club.html"
);


var i,n = country_names.length;
for(i = 0;i < n;i++)
{
	franchiseMenu.addMenuItem(country_names[i],country_urls[i]);
}

