function news(){
	var speed = 1000;
	var interval = 5000;
	var ticker = $('.newsticker');
	var list = ticker.children('ul');
	var container = ticker.parent('div');

	moveUp = function() {
		var first = list.children('li:first');
		var firstCopy = first.clone(true);
		var first_h = first.height();

		list.children('li:first').fadeTo(speed*.75, .01, function(){
		});
		list.animate({top: '-=' + first_h}, speed, function() {
			first.remove();
			$(this).css('top', '0px');
			firstCopy.appendTo(list);
		});
	};
	if (container.height()-31 < ticker.height()) {
		tickerLoop = setInterval('moveUp()', interval);
	}

	list.bind("mouseenter",function(){
		clearInterval(tickerLoop);
	}).bind("mouseleave",function(){
		tickerLoop = setInterval('moveUp()', interval);
	});

	$('#q').focus(function(){
		// only select if the text has not changed
		if(this.value == this.defaultValue) {
			this.value = '';
		}
	});
	$('#q').blur(function(){
		// only change to default value if empty
		if(this.value == ''){
			this.value = this.defaultValue;
		}
	});
}
