// currency.js

	var base_currency = 1;
	var current_currency = 0;

	// Currency object
	function currency(currency_name, iso, currency_abbrev, currency_multiplier, decimal_places) {
		this.name = currency_name;
		this.iso = iso;
		this.abbrev = currency_abbrev;
		this.multiplier = currency_multiplier;
		this.decimal_places = decimal_places;
	}

	var currencies = new make_array(159);

	currencies[1] = new currency("Andorran Franc (ADF)", "ADF", "ADF", 7.465900, 2);
	currencies[2] = new currency("Andorran Peseta	(ADP)", "ADP", "ADP", 121.472, 2);
	currencies[3] = new currency("Utd. Arab Emir. Dirham (AED)", "AED", "AED", 3.67295, 2);
	currencies[4] = new currency("Afghanistan Afghani (AFA)", "AFA", "Af", 4726.250000, 2);
	currencies[5] = new currency("Albanian Lek (ALL)", "ALL", "ALL", 101.17, 2);
	currencies[6] = new currency("NL Antillian Guilder (ANG)", "ANG", "ANG", 1.79, 2);
	currencies[7] = new currency("Angolan New Kwanza (AON)", "AON", "Kz", 57.119800, 2);
	currencies[8] = new currency("Argentine Peso (ARS)", "ARS", "ARS", 3.841, 2);
	currencies[9] = new currency("Austrian Schilling (ATS)", "ATS", "ATS", 10.046, 2);
	currencies[10] = new currency("Australian Dollar (AUD)", "AUD", "A$", 1.151875, 2);
	currencies[11] = new currency("Aruban Florin (AWG)", "AWG", "AWG", 1.79, 2);
	currencies[12] = new currency("Barbados Dollar	(BBD)", "BBD", "Bds$", 2., 2);
	currencies[13] = new currency("Bangladeshi Taka (BDT)", "BDT", "Tk", 69.26, 2);
	currencies[14] = new currency("Belgian Franc (BEF)", "BEF", "BF", 29.451, 2);
	currencies[15] = new currency("Bulgarian Lev (BGL)", "BGL", "Lv", 1.657400, 2);
	currencies[16] = new currency("Bahraini Dinar (BHD)", "BHD", "BD", 0.37698, 2);
	currencies[17] = new currency("Burundi Franc (BIF)", "BIF", "FBu", 1230., 2);
	currencies[18] = new currency("Bermudian Dollar (BMD)", "BMD", "Bd$", 1., 2);
	currencies[19] = new currency("Brunei Dollar (BND)", "BND", "BND", 1.42135, 2);
	currencies[20] = new currency("Bolivian Boliviano (BOB)", "BOB", "BOB", 7.02, 2);
	currencies[21] = new currency("Brazilian Real (BRL)", "BRL", "R$", 1.8755, 2);
	currencies[22] = new currency("Bahamanian Dollar (BSD)", "BSD", "BSD", 1., 2);
	currencies[23] = new currency("Bhutan Ngultrum	(BTN)", "BTN", "Nu", 46.72, 2);
	currencies[24] = new currency("Botswana Pula (BWP)", "BWP", "BWP", 6.930007, 2);
	currencies[25] = new currency("Belize Dollar (BZD)", "BZD", "BZ$", 1.95, 2);
	currencies[26] = new currency("Canadian Dollar (CAD)", "CAD", "Can$", 1.0717, 2);
	currencies[27] = new currency("Swiss Franc (CHF)", "CHF", "CHF", 1.07165, 2);
	currencies[28] = new currency("Chilean Peso (CLP)", "CLP", "Ch$", 541.532, 2);
	currencies[29] = new currency("Chinese Yuan Renminbi (CNY)", "CNY", "Y", 6.8265, 2);
	currencies[30] = new currency("Colombian Peso (COP)", "COP", "Col$", 2003.212, 2);
	currencies[31] = new currency("Costa Rican Colon (CRC)", "CRC", "CRC", 554.965, 2);
	currencies[32] = new currency("Czech Koruna (CSK)", "CSK", "Kc", 26.333000, 2);
	currencies[33] = new currency("Cuban Peso (CUP)", "CUP", "Cu$", 1., 2);
	currencies[34] = new currency("Cape Verde Escudo (CVE)", "CVE", "CVE", 73.982, 2);
	currencies[35] = new currency("Cyprus Pound (CYP)", "CYP", "&pound;", 0.42728, 2);
	currencies[36] = new currency("German Mark (DEM)", "DEM", "DM", 1.42787, 2);
	currencies[37] = new currency("Djibouti Franc (DJF)", "DJF", "DF", 177.72, 2);
	currencies[38] = new currency("Danish Krone (DKK)", "DKK", "DKK", 5.43479, 2);
	currencies[39] = new currency("Dominican Peso (DOP)", "DOP", "RD$", 36.2, 2);
	currencies[40] = new currency("Algerian Dinar (DZD)", "DZD", "DA", 73.114, 2);
	currencies[41] = new currency("Ecuador Sucre (ECS)", "ECS", "ECS", 25000., 2);
	currencies[42] = new currency("Estonian Kroon (EEK)", "EEK", "EEK", 11.422, 2);
	currencies[43] = new currency("Egyptian Pound (EGP)", "EGP", "&pound;", 5.486, 2);
	currencies[44] = new currency("Spanish Peseta (ESP)", "ESP", "Ptas", 121.472, 2);
	currencies[45] = new currency("Ethiopian Birr (ETB)", "ETB", "Br", 13.387, 2);
	currencies[46] = new currency("Euro (EUR)", "EUR", "Euro", 0.730066, 2);
	currencies[47] = new currency("Finnish Markka (FIM)", "FIM", "Fmk", 4.34074, 2);
	currencies[48] = new currency("Fiji Dollar (FJD)", "FJD", "F$", 1.971998, 2);
	currencies[49] = new currency("Falkland Islands Pound (FKP)", "FKP", "&pound;", 0.425900, 2);
	currencies[50] = new currency("French Franc (FRF)", "FRF", "F", 4.78888, 2);
	currencies[51] = new currency("British Pound (GBP)", "GBP", "&pound;", 0.640393, 2);
	currencies[52] = new currency("Ghanaian Cedi (GHC)", "GHC", "GHC", 14344.998, 2);
	currencies[53] = new currency("Gibraltar Pound (GIP)", "GIP", "&pound;", 0.640402, 2);
	currencies[54] = new currency("Gambian Dalasi (GMD)", "GMD", "GMD", 26.85, 2);
	currencies[55] = new currency("Guinea Franc (GNF)", "GNF", "GNF", 5020., 2);
	currencies[56] = new currency("Greek Drachma (GRD)", "GRD", "Dr", 248.813, 2);
	currencies[57] = new currency("Guatemalan Quetzal (GTQ)", "GTQ", "Q", 8.2415, 2);
	currencies[58] = new currency("Guyanan Dollar (GYD)", "GYD", "G$", 204.45, 2);
	currencies[59] = new currency("Hong Kong Dollar (HKD)", "HKD", "HK$", 7.76995, 2);
	currencies[60] = new currency("Honduran Lempira (HNL)", "HNL", "HNL", 18.895, 2);
	currencies[61] = new currency("Croatian Kuna (HRK)", "HRK", "HRK", 5.34795, 2);
	currencies[62] = new currency("Haitian Gourde (HTG)", "HTG", "G", 39.75, 2);
	currencies[63] = new currency("Hungarian Forint (HUF)", "HUF", "Ft", 199.96, 2);
	currencies[64] = new currency("Indonesian Rupiah (IDR)", "IDR", "Rp", 9385., 2);
	currencies[65] = new currency("Irish Punt (IEP)", "IEP", "IEP", 0.574967, 2);
	currencies[66] = new currency("Israeli New Shekel (ILS)", "ILS", "NIS", 3.7225, 2);
	currencies[67] = new currency("Indian Rupee (INR)", "INR", "Rs", 46.72, 2);
	currencies[68] = new currency("Iraqi Dinar (IQD)", "IQD", "ID", 1169., 2);
	currencies[69] = new currency("Iranian Rial (IRR)", "IRR", "Rls", 9893.75, 2);
	currencies[70] = new currency("Iceland Krona (ISK)", "ISK", "Ikr", 129.17, 2);
	currencies[71] = new currency("Italian Lira (ITL)", "ITL", "Lit", 1413.594, 0);
	currencies[72] = new currency("Jamaican Dollar (JMD)", "JMD", "J$", 89.125, 2);
	currencies[73] = new currency("Jordanian Dinar (JOD)", "JOD", "JD", 0.7085, 2);
	currencies[74] = new currency("Japanese Yen (JPY)", "JPY", "&yen;", 89.38, 0);
	currencies[75] = new currency("Kenyan Shilling (KES)", "KES", "K.Sh", 77.05, 2);
	currencies[76] = new currency("Cambodian Riel (KHR)", "KHR", "CR", 4184., 2);
	currencies[77] = new currency("Comoros Franc (KMF)", "KMF", "CF", 359.297, 2);
	currencies[78] = new currency("North Korean Won (KPW)", "KPW", "Wn", 2.200000, 2);
	currencies[79] = new currency("South-Korean Won (KRW)", "KRW", "W", 1164.6, 2);
	currencies[80] = new currency("Kuwaiti Dinar (KWD)", "KWD", "KD", 0.28829, 2);
	currencies[81] = new currency("Cayman Islands Dollar (KYD)", "KYD", "CI$", 0.820001, 2);
	currencies[82] = new currency("Kazakhstan Tenge (KZT)", "KZT", "KZT", 148.15, 2);
	currencies[83] = new currency("Lao Kip (LAK)", "LAK", "KN", 8495.5, 2);
	currencies[84] = new currency("Lebanese Pound (LBP)", "LBP", "&pound;", 1501.5, 2);
	currencies[85] = new currency("Sri Lanka Rupee (LKR)", "LKR", "SLRs", 114.77, 2);
	currencies[86] = new currency("Liberian Dollar (LRD)", "LRD", "LRD", 71.75, 2);
	currencies[87] = new currency("Lesotho Loti (LSL)", "LSL", "LSL", 7.7342, 2);
	currencies[88] = new currency("Lithuanian Litas (LTL)", "LTL", "LTL", 2.52085, 2);
	currencies[89] = new currency("Luxembourg Franc (LUF)", "LUF", "LuxF", 29.451, 2);
	currencies[90] = new currency("Latvian Lats (LVL)", "LVL", "Ls", 0.51733, 2);
	currencies[91] = new currency("Libyan Dinar (LYD)", "LYD", "LD", 1.2437, 2);
	currencies[92] = new currency("Moroccan Dirham (MAD)", "MAD", "MAD", 8.1952, 2);
	currencies[93] = new currency("Malagasy Franc (MGF)", "MGF", "FMG", 5750.000000, 2);
	currencies[94] = new currency("Myanmar Kyat (MMK)", "MMK", "MMK", 6.42, 2);
	currencies[95] = new currency("Mongolian Tugrik (MNT)", "MNT", "Tug", 1449.5, 2);
	currencies[96] = new currency("Macau Pataca (MOP)", "MOP", "MOP", 8.00285, 2);
	currencies[97] = new currency("Mauritanian Ouguiya (MRO)", "MRO", "UM", 261.5, 2);
	currencies[98] = new currency("Maltese Lira (MTL)", "MTL", "LM", 0.313403, 2);
	currencies[99] = new currency("Mauritius Rupee (MUR)", "MUR", "Rs", 30.45, 2);
	currencies[100] = new currency("Maldive Rufiyaa (MVR)", "MVR", "Rf", 12.8, 2);
	currencies[101] = new currency("Malawi Kwacha (MWK)", "MWK", "MK", 150.8, 2);
	currencies[102] = new currency("Mexican Peso (MXN)", "MXN", "Mex$", 13.215, 2);
	currencies[103] = new currency("Malaysian Ringgit (MYR)", "MYR", "RM", 3.4385, 2);
	currencies[104] = new currency("Mozambique Metical (MZM)", "MZM", "Mt", 31344.992, 2);
	currencies[105] = new currency("Namibia Dollar (NAD)", "NAD", "N$", 7.7342, 2);
	currencies[106] = new currency("Nigerian Naira (NGN)", "NGN", "NGN", 151.41, 2);
	currencies[107] = new currency("Nicaraguan Cordoba Oro (NIO)", "NIO", "C$", 20.952, 2);
	currencies[108] = new currency("Dutch Guilder (NLG)", "NLG", "fl.", 1.60884, 2);
	currencies[109] = new currency("Norwegian Kroner (NOK)", "NOK", "NKr", 5.95562, 2);
	currencies[110] = new currency("Nepalese Rupee (NPR)", "NPR", "NRs", 74.776, 2);
	currencies[111] = new currency("New Zealand Dollar (NZD)", "NZD", "NZ$", 1.45796, 2);
	currencies[112] = new currency("Omani Rial (OMR)", "OMR", "RO", 0.38499, 2);
	currencies[113] = new currency("Panamanian Balboa (PAB)", "PAB", "B", 1., 2);
	currencies[114] = new currency("Peruvian Nuevo Sol (PEN)", "PEN", "S/", 2.8705, 2);
	currencies[115] = new currency("Papua New Guinea Kina (PGK)", "PGK", "PGK", 2.657737, 2);
	currencies[116] = new currency("Philippine Peso (PHP)", "PHP", "PHP", 46.625, 2);
	currencies[117] = new currency("Pakistan Rupee (PKR)", "PKR", "PRs", 84.91, 2);
	currencies[118] = new currency("Polish Zloty (PLN)", "PLN", "PLN", 3.00409, 2);
	currencies[119] = new currency("Portuguese Escudo (PTE)", "PTE", "Esc", 146.364, 2);
	currencies[120] = new currency("Paraguay Guarani (PYG)", "PYG", "PYG", 4642.5, 2);
	currencies[121] = new currency("Qatari Rial (QAR)", "QAR", "QR", 3.64005, 2);
	currencies[122] = new currency("Romanian Leu (ROL)", "ROL", "ROL", 30216.994, 2);
	currencies[123] = new currency("Russian Rouble (RUB)", "RUB", "RUB", 30.486, 2);
	currencies[124] = new currency("Saudi Riyal (SAR)", "SAR", "SRls", 3.75012, 2);
	currencies[125] = new currency("Solomon Islands Dollar (SBD)", "SBD", "SI$", 7.46269, 2);
	currencies[126] = new currency("Seychelles Rupee (SCR)", "SCR", "SR", 11.421, 2);
	currencies[127] = new currency("Sudanese Dinar (SDD)", "SDD", "SDD", 257.410000, 2);
	currencies[128] = new currency("Sudanese Pound (SDP)", "SDP", "SDP", 2574.500000, 2);
	currencies[129] = new currency("Swedish Krona (SEK)", "SEK", "SEK", 7.41385, 2);
	currencies[130] = new currency("Singapore Dollar (SGD)", "SGD", "S$", 1.42115, 2);
	currencies[131] = new currency("St. Helena Pound (SHP)", "SHP", "SHP", 0.640402, 2);
	currencies[132] = new currency("Slovenian Tolar (SIT)", "SIT", "SIT", 174.952, 2);
	currencies[133] = new currency("Slovak Koruna (SKK)", "SKK", "SKK", 21.994, 2);
	currencies[134] = new currency("Sierra Leone Leone (SLL)", "SLL", "Le", 3895.26, 2);
	currencies[135] = new currency("Somali Shilling (SOS)", "SOS", "SOS", 1497.832, 2);
	currencies[136] = new currency("Suriname Guilder (SRG)", "SRG", "SRG", 2745., 2);
	currencies[137] = new currency("Sao Tome/Principe Dobra (STD)", "STD", "Db", 18029.18, 2);
	currencies[138] = new currency("El Salvador Colon (SVC)", "SVC", "SVC", 8.7475, 2);
	currencies[139] = new currency("Syrian Pound (SYP)", "SYP", "&pound;", 46.007, 2);
	currencies[140] = new currency("Swaziland Lilangeni (SZL)", "SZL", "SZL", 7.7342, 2);
	currencies[141] = new currency("Thai Baht (THB)", "THB", "Bht", 33.18, 2);
	currencies[142] = new currency("Tunisian Dinar (TND)", "TND", "TD", 1.3775, 2);
	currencies[143] = new currency("Tonga Pa'anga (TOP)", "TOP", "T$", 1.939112, 2);
	currencies[144] = new currency("Turkish Lira (TRL)", "TRL", "TL", 1521699.5, 2);
	currencies[145] = new currency("Trinidad/Tobago Dollar (TTD)", "TTD", "TT$", 6.3306, 2);
	currencies[146] = new currency("Taiwan Dollar (TWD)", "TWD", "NT$", 32.104, 2);
	currencies[147] = new currency("Tanzanian Shilling (TZS)", "TZS", "TSh", 1347.5, 2);
	currencies[148] = new currency("Ukraine Hryvnia (UAH)", "UAH", "UAH", 8.004, 2);
	currencies[149] = new currency("Uganda Shilling	(UGS)", "UGS", "Ush", 1730.000000, 2);
	currencies[150] = new currency("US Dollar (USD)", "USD", "US$", 1., 2);
	currencies[151] = new currency("Uruguayan Peso (UYP)", "UYP", "$U", 26.350000, 2);
	currencies[152] = new currency("Venezuelan Bolivar (VEB)", "VEB", "Bs.", 4294.65, 2);
	currencies[153] = new currency("Vietnamese Dong (VND)", "VND", "VND", 18437.75, 2);
	currencies[154] = new currency("Vanuatu Vatu (VUV)", "VUV", "VT", 102.24, 2);
	currencies[155] = new currency("Samoan Tala (WST)", "WST", "WS$", 2.578649, 2);
	currencies[156] = new currency("Yugoslav Dinar (YUN)", "YUN", "Din", 57.606500, 2);
	currencies[157] = new currency("South African Rand (ZAR)", "ZAR", "ZAR", 7.7342, 2);
	currencies[158] = new currency("Zambian Kwacha (ZMK)", "ZMK", "ZK", 4670., 2);
	currencies[159] = new currency("Zimbabwe Dollar (ZWD)", "ZWD", "Z$", 12626262016., 2);
