// -------------------------------------------------------------------------
// JavaScript 1.1: Online Ordering System Currency Conversion
// Author: All rights reserved, Copyright 2004, Chris Colefax <ccolefax@yahoo.com>
// This script, or any part thereof, may not be modified or used without
// express permission from the author
// -------------------------------------------------------------------------

function Currency(ID, Rate, Description, Prefix, Decimals, Suffix) {
	this.id = ID;
	this.rate = Rate;
	this.description = Description;
	this.prefix = Prefix;
	this.decimals = Decimals;
	this.suffix = Suffix;
	}

var Currencies = new Array();
var CurCurrency = 0;

Currencies[0] = new Currency('AUD', 1.00, 'Australian Dollars', 'AU$ ', 2, '');
Currencies[1] = new Currency('USD', 0.94, 'American Dollars', 'US$ ', 2, '');
Currencies[2] = new Currency('GBP', 0.48, 'UK Pounds', '&pound; ', 2, '');
Currencies[3] = new Currency('EUR', 0.61, 'Euros', '&euro; ', 2, '');
Currencies[4] = new Currency('YEN', 97.4, 'Japanese Yen', '&yen; ', 0, '');
Currencies[5] = new Currency('CAD', 0.95, 'Canadian Dollars', 'CA$ ', 2, '');
Currencies[6] = new Currency('NZD', 1.22, 'New Zealand Dollars', 'NZ$ ', 2, '');

// Load Currently Selected Currency
var SS = document.cookie.indexOf('CurCurrency=');
if (SS >= 0) {
	SS += 12;
	var ES = document.cookie.indexOf(';', SS);
	if (ES < SS) { ES = document.cookie.length; }
	CurCurrency = parseInt(document.cookie.substring(SS, ES));
	}
