//var imgPath = "";

function preload(imgObj,imgSrc) {
	eval(imgObj+' = new Image()')
	eval(imgObj+'.src = "'+imgSrc+'"')
}
preload('travelguideUp', imgPath + 'but-travelguide.gif')
preload('travelguideOver', imgPath + 'but-travelguide-over.gif')
preload('studentresourcesUp', imgPath + 'but-studentresources.gif')
preload('studentresourcesOver', imgPath + 'but-studentresources-over.gif')
preload('internationalUp', imgPath + 'but-international.gif')
preload('internationalOver', imgPath + 'but-international-over.gif')
preload('aboutUp', imgPath + 'but-about.gif')
preload('aboutOver', imgPath + 'but-about-over.gif')
preload('ratesUp', imgPath + 'but-rates.gif')
preload('ratesOver', imgPath + 'but-rates-over.gif')
preload('carspricesUp', imgPath + 'but-carsprices.gif')
preload('carspricesOver', imgPath + 'but-carsprices-over.gif')
preload('locationsUp', imgPath + 'but-locations.gif')
preload('locationsOver', imgPath + 'but-locations-over.gif')
preload('policiesUp', imgPath + 'but-policies.gif')
preload('policiesOver', imgPath + 'but-policies-over.gif')
preload('specialsUp', imgPath + 'but-specials.gif')
preload('specialsOver', imgPath + 'but-specials-over.gif')
preload('corpUp', imgPath + 'but-corporate-up.gif')
preload('corpOver', imgPath + 'but-corporate-over.gif')

function imgSwap(x,y){
	document.images[x].src=eval(x+y).src
}