/* roll over */

'jQuery' in window && (function($) {
    $(document).ready(function($) {
		var postfix = '_o';
		$('.roll img,img.roll').not('[src*="'+ postfix +'."]').each(function() {
			var img = $(this);
			var src = img.attr('src');
			var src_o = src.substr(0, src.lastIndexOf('.'))
					   + postfix
					   + src.substring(src.lastIndexOf('.'));
			$('<img>').attr('src', src_o);
			img.hover(
				function() {
					img.attr('src', src_o);
				},
				function() {
					img.attr('src', src);
				}
			);
		});
	});
})(jQuery);
