(function($) {

	$.fn.spasticNavVert = function(options) {
	
		options = $.extend({
			overlap : 4,
			speed : 500,
			reset : 750,
			color : '#4c4c4c',
			easing : 'easeOutExpo'
		}, options);
	
		return this.each(function() {
		
		 	var nav = $(this),
		 		currentPageItem = $('#selected_vert', nav),
		 		blob,
		 		reset;
		 		
		 	$('<li id="blob_vert"></li>').css({
		 		width : currentPageItem.outerWidth() + options.overlap,
		 		left : currentPageItem.position().left - options.overlap / 2,
		 		top : currentPageItem.position().top,
		 		backgroundColor : options.color
		 	}).appendTo(this);
		 	
		 	blob = $('#blob_vert', nav);
					 	
			$('li:not(#blob_vert)', nav).hover(function() {
				// mouse over
				clearTimeout(reset);
				blob.animate(
					{
						top : $(this).position().top,
					},
					{
						duration : options.speed,
						easing : options.easing,
						queue : false
					}
				);
			}, function() {
				// mouse out	
				reset = setTimeout(function() {
					blob.animate({
						top : currentPageItem.position().top
					}, options.speed)
				}, options.reset);
				
			});
		 
		
		}); // end each
	
	};

})(jQuery);
