/*!
 * liScroll 1.0
 * Examples and documentation at: 
 * http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/jq-liscroll/scrollanimate.html
 * 2007-2010 Gian Carlo Mingati
 * Version: 1.0.2 (30-MARCH-2009)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Requires:
 * jQuery v1.2.x or later
 * 
 */


jQuery.fn.liScroll = function(settings) {
		settings = jQuery.extend({
		travelocity: 0.07
		}, settings);		
		return this.each(function(){
			var mainObj = $(this);
                        function animate(){
				if(parseInt(mainObj.css('left'))<-600){
					mainObj.css('left', 200);
					mainObj.animate({left: '-='+ 10}, 300, "linear", function(){ animate(); });
				}else{
					mainObj.animate({left: '-='+ 10}, 300, "linear", function(){ animate(); });
				}

//				mainObj.css('left', parseInt(mainObj.css('left'))-10);
			}
			animate();
		});	
};
