(function($) {

	// jQuery searchValue 1.0
	$.fn.searchValue=function(){var a=$(this);var b=a.val();a.focus(function(){if(a.val()==b)a.val('')});a.blur(function(){if(a.val()=='')a.val(b)});return this};

})(jQuery);

$(function() {
	
	// Set up banner
	var container = $('#frame_right'),
		elements = $('li', container),
		images = $('img', elements),
		activeClass = 'active'
	
	var banner = $(images).cycle({
		interval : 5000,
		keep : true,
		onCycle : function() {
			elements.removeClass(activeClass);
			elements.eq(this.getCurrentIndex()).addClass(activeClass);
		}
	});
	
	elements.hover(function() {
		banner.showIndex(elements.index($(this)));
		banner.pauseCycle();
	}, function() {
		banner.startCycle();
	});
	
	// Set up search events
	$('#search input[type=text]').searchValue();
	
});
