$(document).ready(
function(){
	$('#container h1').css("opacity", "0");
	$('#primary_content').css("opacity", "0");
	$('#topnav').css("width", "0");
	$('#footer').css("opacity", "0");
	var sch = $('#secondary_content').height();
	$('#secondary_content').css("height", "0");
	$('#secondary_content').css("opacity", "0");
	$('#container h1').animate({ 'opacity': '0.01' }, 500, 
function() { $('#topnav').animate({ width: '100%'}, 700, 
function() { $('#topnav li.top_active').animate({ width: '412px'}, 500, 
function() { $('#primary_content').animate({ 'opacity': '1' }, 300, 
function() { $('#secondary_content').animate({ 'height': sch, 'opacity': '1' }, 300, 
function() { $('#footer').animate({ 'opacity': '1' }, 300, 				
function() { $('#container h1').stop().animate({ opacity: "1" });
})	  
})
})
})
})
})
	$('#topnav li').click(
function() {
	window.location=$(this).find("a").attr("href");
	return false;
});
	$('#topnav li').hover(
function() {
	$('#content, h1, #footer').stop().animate({opacity: ".2"});
	$('.morph').stop().animate({'color': '#990000'}, 400);
	$('.morph_alt').stop().animate({'color': '#990000'}, 400);
	$('.rex-current').stop().animate({'color': '#c99c2f'}, 400);
	$('.rex-normal a').stop().animate({'color': '#990000'}, 400);
	$('#topnav li.top_active').stop().animate({'width': '72px'}, 400);
	$(this).stop().animate({width: "412px"}, 300, 
function() {})
	$(this).find('h3').stop().animate({backgroundPosition: "-72px"}, 300, 
function() {})}, 
function() {
	$('.morph').stop().animate({'color': '#c99c2f'}, 400);
	$('.morph_alt').stop().animate({'color': '#c99c2f'}, 400);
	$('.rex-current').stop().animate({'color': '#cccccc'}, 400);
	$('.rex-normal a').stop().animate({'color': '#cccccc'}, 400);
	$('#content, h1, #footer').stop().animate({opacity: "1"});
	$(this).stop().animate({width: "72px"}, 300, 
function() {})
	$(this).find('h3').stop().animate({backgroundPosition: "0px"}, 300, 
function() {})
})
});

