// JavaScript Document
$(document).ready(function() {
	//find images to preload:
	var arImgs = new Array();
	$('.imagesRoll li img').each(function() {
		arImgs.push($(this).attr('src').replace("-off","-on"));
	});
	//preload
	$.each(arImgs, function(key, value) { 
		var img = new Image();
		$(img).attr('src', value);
	});
	//over & out
	$('.imagesRoll li img').mouseover(function() {
		var newImgSrc = $(this).attr('src').replace("-off","-on");
		$(this).attr('src',newImgSrc);		
	});
	$('.imagesRoll li img').mouseout(function() {
		var newImgSrc = $(this).attr('src').replace("-on","-off");
		$(this).attr('src',newImgSrc);
	});
});

