$(document).ready(function() {

	$('#header UL LI').prepend('<img src="images/flower-trans.png" alt="" />');
	
	$("#header, #twitter, #valid, #resume, #foodBlogs, #animation, #photos, #recipes").draggable({ containment: '#body' });

	$("#gallery").PikaChoose();

	$('#draggy').hover(function(){
		$(this).hide("explode", 600).remove();
	});

	$("#draggy").oneTime(7500, function() {
		$(this).hide("explode", 600).remove();
	});
	
	$('#header UL LI:first-child').click(function(){
		$('#resume').show("explode", 900);
		$('#foodBlogs, #animation, #photos, #recipes').hide("slow");
	});
	
	$('#header UL LI:nth-child(2)').click(function(){
		$('#foodBlogs').show("explode", 900);
		$('#resume, #animation, #photos, #recipes').hide("slow");
	});
	
	$('#header UL LI:nth-child(3)').click(function(){
		$('#animation').show("explode", 1200);
		$('#resume, #foodBlogs, #photos, #recipes').hide("slow");
	});
	
	$('#header UL LI:nth-child(4)').click(function(){
		$('#photos').show("slow");
		$('#resume, #foodBlogs, #animation, #recipes').hide("slow");
	});
	
	$('#header UL LI:last-child').click(function(){
		$('#recipes').show("explode", 900);
		$('#resume, #foodBlogs, #animation, #photos').hide("slow");
	});			
					
	
	$("#header UL LI:first-child SPAN").oneTime(1490, function() {
		$(this).addClass("hover");
	});
	
	$("#header UL LI:nth-child(2) SPAN").oneTime(2490, function() {
		$(this).addClass("hover");
		$("#header UL LI:first-child SPAN").removeClass("hover");
	});
	
	$("#header UL LI:nth-child(3) SPAN").oneTime(3490, function() {
		$(this).addClass("hover");
		$("#header UL LI:nth-child(2) SPAN").removeClass("hover");
	});
	
	$("#header UL LI:nth-child(4) SPAN").oneTime(4490, function() {
		$(this).addClass("hover");
		$("#header UL LI:nth-child(3) SPAN").removeClass("hover");
	});
	
	$("#header UL LI:last-child SPAN").oneTime(5490, function() {
		$(this).addClass("hover");
		$("#header UL LI:nth-child(4) SPAN").removeClass("hover");
	});
	
	$("#header UL LI:last-child SPAN").oneTime(6490, function() {
		$(this).removeClass("hover");
	});

});