(function($){

	goScroll = function(){
		$('.scrollTwitter').vTicker({
		   speed: 600,
		   pause: 6000,
		   animation: 'fade'
		});
	};

//alert(1);
})(jQuery);





(function($){
$.fn.vTicker = function(options) {

	var defaults = {
		speed: 700,
		pause: 0,
		animation: ''
	};

	var options = $.extend(defaults, options);

	moveUp = function(obj, height){
		obj2 = obj;
		obj = obj.children('ul');
    	first = obj.children('li:first').clone(true);
		padding = obj.children('li:first').css('padding-top');
		
		newheight= obj.children('li:first').height() + 2 * parseInt(padding[0]);
		
		//alert(newheight);
		
    	obj.animate({top: '-=' +newheight + 'px'}, options.speed, function() {
        	$(this).children('li:first').remove();
        	$(this).css('top', '0px');
        });
		
		if(options.animation == 'fade')
		{
			obj.children('li:first').fadeOut(options.speed);
		}

    	first.appendTo(obj);
	};
	
	return this.each(function() {
		obj = $(this);
		moveUp(obj,0);
    	//interval = setInterval('moveUp(obj,0)', options.pause);
	});
};
})(jQuery);
