//Javascript currency rate and conversion file
//Used throughout site as an include

//----------LATEST CURRENCY--------------
var cUpdate = "6 Dec 2011"
var cStirling = 1.0
var cDollar = 1.56
var cEuro = 1.16

cCurrent = new Number
cCurrent = 1
cVersion1 = "15SP"
cVersion2 = "EDU1103"
cVersion3 = "YFTM2004"

//----------Currency Functions-----------

function currency(base) {
		return (cCurrent*base)
}
	
function twoDP(x) {
		a = Math.round(x*100)/100
		return a
}

function toDollars(x) {
		a = "$"+twoDP(x*cDollar)
		document.write('/ '+a+' ')
}

function toEuros(x) {
		a = "&euro;"+twoDP(x*cEuro)
		document.write('/ '+a+' ')
}

