jQuery(document).ready(function(){
	var preloadImage = function(src) {
		var imageObject = new Image();
		imageObject.src = src;

		return src;
	}

	jQuery('#menu a[class!="active"]')
	.mouseenter(function(){
		$this = jQuery(this);
		$this.find('img').attr('src', preloadImage('images/menu/' + $this.attr('alt') + '2.png'));
	})
	.mouseleave(function(){
		$this = jQuery(this);
		$this.find('img').attr('src', preloadImage('images/menu/' + $this.attr('alt') + '.png'));
	});
});
