function preload(arrayOfImages) {
  		$(arrayOfImages).each(function(){
       	$('<img/>')[0].src = this;
 	 	});
}

$(document).ready(function() {
	$("img.shopThumbPic").mouseenter(function() {
		$("img#shopMainPic").attr("src", $(this).attr("src").split("Thumb").join("Main"));
	});
	$("p.shopItemSwatch img").mouseenter(function() {
		$("img#shopMainPic").attr("src", $(this).attr("src").split("swatch").join("shopMain"));
	});
	$("#topFlag").click(function() {
		$("div#translateContainer").slideToggle('slow')
	});
	$('#selectCurrency').change(function() {
		var currency = $(this).val();
		if (currency != "") {
			switch(currency) {
				case "GBP":
					window.location = '/english/home';
					break;
				case "EUR":
					window.location = '/euro/home';
					break;
			}
/*		
			var symbol = currencySymbol[currency];
			var factor = currencyFactor[currency];
			$('.shopListItem .shopCurrency').html(symbol);
			$('.shopListItem').each(function(i) {
				var price = ($(".shopPriceHide", this).html() * factor).toFixed(2);
				$(".shopPriceDisplay", this).html(price);
			});
			$('#heroPriceSymbol').html(symbol);
			var price = ($("#heroPriceHide").html() * factor).toFixed(2);
			$("#heroPriceDisplay").html(price);
*/
		}
	});
	// $('#selectCurrency').change();
});

