
$(function($) {

	
	/* 
		Simple item rollover plugin.
		
		Uses rel tags to match top image to link item
	*/
		
	$.fn.itemrollovers = function(options) {
		
		var options = $.extend({}, $.fn.podviewer.defaults, options);
		
		return this.each(function() {
			var self = this;
			var $container = $(this);

			$container.find('.pod-text-list-item a').mouseover(function() {
				var iclass = $(this).attr('class');
				var $currimg = $container.find('.content-bordered img:visible');
				var $img = $container.find('.content-bordered img[class="'+iclass+'"]');
				if($img.length>0) {
					$currimg.hide();
					$img.show();
				}				
			});
			
		});
	}

	$('.itemrollovers').itemrollovers();
});


