(function($){
	var opts = {
		tweak: {
			left: 0,
			top: 0
		}
	};

	$.fn.bigsubs = function(opt_opts){
		if(typeof(opt_opts) == 'object'){
			$.extend(opts, opt_opts);
		}
		
		$(this).each(function(){
			$(this).mouseover(function(){
				var pos = $(this).offset();
				var sel = '#' + $(this).attr('ref');
								
				$(sel).css({
					"left" : pos.left + opts.tweak.left + 'px',
					"top" : pos.top + opts.tweak.top + 'px'
				});
				
				clearTimeout(window[$(this).attr('ref') + '_timer']);
				
				$('.bigsub').not(sel).fadeOut('fast');
				
				$(sel).fadeIn('fast');
			});
			
			$(this).mouseout(function(){
				var sel = '#' + $(this).attr('ref');
				window[$(this).attr('ref') + '_timer'] = setTimeout(function(){$(sel).fadeOut('fast');}, 500);
			});
		});
	}
})(jQuery)
