		$.fn.newsticker = function(options){
			this.each(function(){
				var thisTicker = $(this);
				var thisInterval = options.interval;
				var subitem = options.subitem;
				var stringlength = options.stringlength;
				$(thisTicker).children(subitem).hide();
				$(thisTicker).children(subitem+':first').show();
				//$(thisTicker).children(subitem+':first').fadeTo(20,1);
				setInterval(function(){
					var item = $(thisTicker).children('.active');
					if(item.length == 0){
						item = $(thisTicker).children(subitem+':first');
					}
					item.addClass('active');
					item.fadeOut(2000, function(){
						$(this).removeClass('active');
						var newItem = $(this).next(subitem);
						if(newItem.length == 0){
							newItem = $(this).parent().children(subitem+':first');
						}
						newItem.children('h3').children('a').text(cropText(newItem.children('h3').children('a').text()));
						newItem.fadeIn(1000, function(){
							$(this).addClass('active');
							$(this).parent().children(subitem).stop();
						});
					});
				}, thisInterval);
			});
			function cropText(text){
				if(text.length > options.stringlength){
					return text.substr(0,options.stringlength-3)+'...';
				}
			}
		}
		$(document).ready(function(){$('.news-ticker-container').newsticker({interval:6000, subitem:'.news-ticker-item', stringlength:70});});