$(function() {
	$('#latest > ul').tabs({ fx: { opacity: 'toggle' } });
});
$(document).ready(function() {
	$('#search').hide();
	$('a#search-toggle').click(function() {
		$('#search').toggle(400);
		return false;
	});
	
	$('#newsletter_signup').submit(function() {
		$.post($('#newsletter_signup').attr('action'), { email: $('#newsletter_signup #email').val()}, function(response) {
			$('#newsletter_signup').fadeOut(function() {
					$('#newsletter_success').fadeIn();					
			});
		});

		return false;
	})
});

function jumpto1(x){

	if (document.form1.jumpmenu1.value != "null") {
		document.location.href = x
	}
}

function jumpto2(x){

	if (document.form1.jumpmenu2.value != "null") {
		document.location.href = x
	}
}