$(document).ready(function() {

	$('#exit170data').cycle({
    	fx:    'scrollRight',
    	speed: 'normal',
		timeout: 0,
	    next:   '#next'
	});

	$("#logos img").each(function() {
		rollsrc = $(this).attr("src");
		rollON = rollsrc.replace(/.png$/ig,"_over.png");
		$("<img>").attr("src", rollON);
	});

	$("#logos a").mouseover(function(){
		imgsrc = $(this).children("img").attr("src");
		matches = imgsrc.match(/_over/);
		if (!matches) {
			imgsrcON = imgsrc.replace(/.png$/ig,"_over.png"); // strip off extension
		$(this).children("img").attr("src", imgsrcON);
		}
	});

	$("#logos a").mouseout(function(){
		$(this).children("img").attr("src", imgsrc);
	});
});
