<!--
	var use_debug = false;

	function debug(){
		if( use_debug && window.console && window.console.log ) console.log(arguments);
	}

	$(document).ready(function (){
		$(".marquee").marquee({
			loop: -1
			
			, init: function ($marquee, options){
				debug("init", arguments);

				
				if( $marquee.is("#marquee2") ) options.yScroll = "bottom";
			}
			
			, beforeshow: function ($marquee, $li){
				debug("beforeshow", arguments);

				
				var $author = $li.find(".author");
				
				if( $author.length ){
					$("#marquee-author").html("<span style='display:none;'>" + $author.html() + "</span>").find("> span").fadeIn(300);
				}
			}
			
			, show: function (){
				debug("show", arguments);
			}
			
			, aftershow: function ($marquee, $li){
				debug("aftershow", arguments);

				var $author = $li.find(".author");
				
				if( $author.length ) $("#marquee-author").find("> span").fadeOut(250);
			}
		});
	});
	var iNewMessageCount = 0;
	function addMessage(selector){
		
		iNewMessageCount++;
		
		var $ul = $(selector).append("<li>New message #" + iNewMessageCount + "</li>");
		
		$ul.marquee("update");
	}
	function pause(selector){
		$(selector).marquee('pause');
	}
	function resume(selector){
		$(selector).marquee('resume');
	}
//-->