(function(jq){
	jq.fn.wt_eye = function()
	{
		this.each(function(){

			var delay = 5000;
			var current = 0;
			var container, items;
			var ie = jq.browser.msie();

			function animateEye()
			{
				clearTimeout(t1);
				
				current = current >= items.length-1 ? 0 : current + 1;
				var pos = jq(items[current]).position();
				
				jq(container).animate({'top':-pos.top}, 400);

				t1 = window.setTimeout(animateEye, delay);
			}
			
			container = jq(this).find('ul');
			items = jq(this).find('ul li');
			
			current = 999;
			t1 = window.setTimeout(animateEye, 300);
		
		})
			
	}
})(jQuery);
