$(document).ready(function() {

	 // bio page funtionality
	 $('#bio_init').click(
	 function(){
		 if($('#bio').css('display') == 'none'){
		 clear();
		 $('#bio').slideDown(function(){
			 $('#bio .one').fadeIn();
			 $('#bio .two').fadeIn();
				 $('#bio .close').fadeIn();
				 }
			 );
		 }
		 else{
			  bio_close();
			 }
		 }
	 );
	 function bio_close(){
		 $('#bio').fadeOut(
			 function(){
				  $('#bio .one').hide();
				  $('#bio .two').hide();
				  $('#bio .close').hide();
				 }
			 );			
		 }
	 $('#bio .close').click(
		 function(){
			  bio_close();
			 });
		 
		 
		 
		 // contact page funtionality 
	 $('#contact_init').click(
	 function(){
		   if($('#contact').css('display') == 'none'){
		 clear();
		$('#contact').slideDown(function(){
			 $('#contact .one').fadeIn();
			 $('#contact .two').fadeIn();
				 $('#contact .three').fadeIn();
				 $('#contact .close').fadeIn();
				 }
			 );
		 }
		 else{
			 contact_close();		 
			 }
		 }
	 );
	 function contact_close(){
		 $('#contact').fadeOut(
			 function(){
				  $('#contact .one').hide();
				  $('#contact .two').hide();
				  $('#contact .three').hide();
				  $('#contact .close').hide();
				 }
			 );			
		 }
	 $('#contact .close').click(
		 function(){
			  contact_close();
			 });
			 
			 
	 // clear page funtionality 
	 function clear(){
		bio_close();
		contact_close();
		 }
 });

