		$(document).ready(function() {
			// Preload dei rollover
			$("img").each(function() {
				// Prende l'url originale
				rollsrc = $(this).attr("src");
				rollON = rollsrc.replace(/.gif$/ig,"_over.gif");
				$("<img>").attr("src", rollON);
			});
			
			//over del mouse
			$("a").mouseover(function(){
				imgsrc = $(this).children("img").attr("src");
				matches = imgsrc.match(/_over/);
				// non compie il rollover se il mouse è già over
				if (!matches) {
					imgsrcON = imgsrc.replace(/.gif$/ig,"_over.gif"); // esclude l'estensione del file
					$(this).children("img").attr("src", imgsrcON);
				}
			});
			
			//out del mouse
			$("a").mouseout(function(){
				$(this).children("img").attr("src", imgsrc);
			});
		});
