$(document).ready(function() {
			
	// Navigation rollovers
	$("#partners a").mouseover(function(){
		imgsrc = $(this).children("img").attr("src");
		matches = imgsrc.match(/On/);
		
			// don't do the rollover if state is already ON
			if (!matches) {
			imgsrcON = imgsrc.replace(/.gif$/ig,"On.gif"); // strip off extension
			$(this).children("img").attr("src", imgsrcON);
			}
		
	});
	$("#partners a").mouseout(function(){
		$(this).children("img").attr("src", imgsrc);
	});		

});