/* Custom JS to do Radical things */

$(document).ready(function(){

	$('.slideshow').each(function() {	
	         var p = this.parentNode;
	         $(this).cycle({
				fx: 'fade',
	            speed:  'slow',
	            timeout: 0,
	            prev:   $('.prev', p),
	            next:   $('.nxt', p),
	});
	 });
	
	
	$("#total").hide(); // set total to zero opacity
	setTimeout(function() {$('#total').fadeIn("slow"); }, 1000);//poof - magic!
	$("#work_nav").hide(); 
	   
	$(".slide_controls").hide(); // set total to zero opacity
	
	$(".project_display").hover(function() {
			 var p = this.parentNode;
	        $(".slide_controls", p).fadeTo("slow", 1);
		},function() {
			 var p = this.parentNode;
			$(".slide_controls", p).fadeTo("slow", 0);
			}
		);

			
		  $(".profile").toggle(function() {
			$("#top").animate({ 
			    height: "300"
			  }, 1000 );			}, 
			function() {
				$("#top").animate({ 
			    height: "50"
			  }, 1000 );			
			});
		
		
			 /*
			$(".work").toggle(function() {
				$("#work_nav").animate({ 
				    height: "70"
				  }, 1000 );			}, 
				function() {
					$("#work_nav").animate({ 
				    height: "0"
				  }, 1000 );			
				});
			*/	
				
				
				 $(".contact").toggle(function() {
					$("#top").animate({ 
					    height: "300"
					  }, 1000 );			}, 
					function() {
						$("#top").animate({ 
					    height: "50"
					  }, 1000 );			
					});
					
					
		$('.menolikecookie').click(function() {
		    $('.cookie_jar').animate({
		        opacity: 0,
		        height: 0
		    }, 1000, function(){
		        $('.cookie_jar').hide();
		    })
		});
	
	$(".slide_controls a").click(function() {
			return false;
	});
	
	
	
});






