$(document).ready(function(){

	$('#Newsbox').cycle({
		fx:     'scrollLeft',
		timeout: 9000,
		delay:  -2000
	});

	$("#nav-one li").hover(
		function(){ $("ul", this).fadeIn("fast"); }, 
		function() { } 
	);
	if (document.all) {
		$("#nav-one li").hoverClass ("sfHover");
	}

	$(".menuspacer").mouseover(function(){
		$(".iesubFix").hide();
	});

	$('#where').change( function() {
		location.href = $(this).val();
	});

	$('#googlebox').hide();

	$('#MySearch').click( function() {
		$('.hid4ie').toggle();
		$('#googlebox').css('zIndex', 1000);
		$('#Newsbox').toggle();
		$('#googlebox').toggle();
		$('#advsrch').hide();
	});

	$('#advsearch').click( function() {
		$('#advsrch').show('slow');
		return false;
	});
});

$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};
