// jQuery Rollover Plugin
// Developed by: Adam Martinez
jQuery.fn.rollover = function() {
  return this.each(function(){
	var rollout = $(this).attr('src');
	$(this).data('rollout',rollout);
	var rollover = $(this).attr('rollover');
	$(this).data('rollover',rollover);
	
	if( (rollover!='') && ( typeof(rollover) != 'undefined') ){
		var preload = $('<img />').attr('src', rollover);	
		$(this).hover(function(){
			$(this).attr('src',$(this).data('rollover'));
		},function(){
			$(this).attr('src',$(this).data('rollout'));
		});
	}
  });
};
