
	
	$( function() {
		//hide entry elements in sidenav
		//$('.thumbnails, .slide_open li, .fade_in ').css({ display:"none" });
		// effects
		$('.thumbnails, .slide_open li').slideDown(800);
		$('.fade_in').fadeIn(800);
		
		//contact form	  
		$('#contact_btn').click(function() {
			$('#contact_form').slideToggle(600);
			event.preventDefault();
			
			return false;
	  });
	
	
	$(".switchbtn").click(function(){
     	$(".fade_in").fadeOut(500, function(){$(".switch").fadeIn(500);});
	  	  
    });

		
	  /*$( function() {
			  $(".page_detail").css({opacity:0.9});
			  $(".box").hover(function(){
					 $(this).children('.page_detail') 							
						.slideDown("fast", function(){ 			// slides the box in 
							$(".page_detail *").fadeIn("fast");		//fades the content in
						return false;
						});
				 },function(){
						 $(this).children(".content")			//fades the box out
						 	.fadeOut("fast");
						$('.page_detail').css({"display" : "none"});	
				 });
		  }); */

	$( function() {
				 $("#email_index li a").css({ opacity:0.4	});
				 $("#email_index li a").hover(function(){
					 $(this).stop() 							
						.animate({opacity: 1 }, 450)
				 },function(){
					 $(this).stop() 							
						.animate({opacity: .4 }, 200)
				 });
				 
				 $("#sec_index li span.hover").css({ display : "block"	});
				 $("#sec_index li a").hover(function(){
					 $(this).find(" span.hover").stop() 							
						.animate({opacity: 0 }, 400)
				 },function(){
					 $(this).stop().find("span.hover") 							
						.css({opacity: 1 })
				 });
				 
				 
				 
				 
			  $(".page_detail").css({
					opacity:0.9,  
					"display" : "block",
					right : -520
					});
			  $(".box").hover(function(){
					 $(this).children('.page_detail') 							
						.animate({right: 60 }, 450)
						.animate({right: 40 }, 200)
						;
				 },function(){
					 $(this).children(".page_detail")			//fades the box out
						.animate({right: 60 }, 200)
						.animate({right: -520 }, 400)
				 });
		  }); 
		
		
  }); 
	
