$(document).ready(function() {

  $('#findDoc').hide();
  $('#findCareer').hide();
   $('#findSearch').hide();
    $('.hide').hide();

   
 //docs on
  $('a#linkPhysician').click(function() {
	$('#findDoc').fadeIn('fast');
	$('a#linkPhysician').addClass('bold'); 
	$('a#linkCareer').removeClass('bold');
	$('a#linkSearch').removeClass('bold');
	$('#findCareer').fadeOut('fast');
	$('#findSearch').fadeOut('fast');
	return false;
  });

  $('a#hideDoc').click(function() {
	$('#findDoc').fadeOut('slow');
	$('a#linkPhysician').removeClass('bold'); 
	return false;
  });
  
  // careers on
    $('a#linkCareer').click(function() {
	$('#findCareer').fadeIn('fast');
	$('a#linkCareer').addClass('bold');
		$('#findDoc').fadeOut('fast');
		$('#findSearch').fadeOut('fast');
		$('a#linkPhysician').removeClass('bold'); 
		$('a#linkSearch').removeClass('bold');
	
	return false;
  });

  $('a#hideCareer').click(function() {
	$('#findCareer').fadeOut('slow');
	$('a#linkCareer').removeClass('bold'); 
	return false;
  });
  
  
  
  
  
  
   // search on
    $('a#linkSearch').click(function() {
	$('#findSearch').fadeIn('fast');
	$('a#linkSearch').addClass('bold');
		$('#findDoc').fadeOut('fast');
		$('#findCareer').fadeOut('fast');
		$('a#linkPhysician').removeClass('bold'); 
		$('a#linkCareer').removeClass('bold'); 
	
	return false;
  });

  $('a#hideSearch').click(function() {
	$('#findSearch').fadeOut('slow');
	$('a#linkSearch').removeClass('bold'); 
	return false;
  }); 
  
  
  
  
  
  $('#togglePost').click(function() {

    $('#postComments').toggle(400);

        var $this = $(this);
                if( $this.is('.open') ) {
                        
                        $this.removeClass('open');
                        $this.addClass('close');
                }
                else {
                       
                        $this.removeClass('close');
                        $this.addClass('open');
                }
                return false;

  });
  

  $('#toggleComments').click(function() {

    $('#com').toggle(400);

       var $this = $(this);
                if( $this.is('.open') ) {
                        
                        $this.removeClass('open');
                        $this.addClass('close');
                }
                else {
                       
                        $this.removeClass('close');
                        $this.addClass('open');
                }
                return false;

  });

  
  
  
  
    $('#toggleRehab').click(function() {

    $('#rehab').toggle(400);

       var $this = $(this);
                if( $this.is('.open') ) {
                        
                        $this.removeClass('open');
                        $this.addClass('close');
                }
                else {
                       
                        $this.removeClass('close');
                        $this.addClass('open');
                }
                return false;

  });
  
  
  $('#toggleStandards').click(function() {

    $('#standards').toggle(400);

       var $this = $(this);
                if( $this.is('.open') ) {
                        
                        $this.removeClass('open');
                        $this.addClass('close');
                }
                else {
                       
                        $this.removeClass('close');
                        $this.addClass('open');
                }
                return false;

  });
  
  
    
  $('#toggleApp').click(function() {

    $('#app').toggle(400);

       var $this = $(this);
                if( $this.is('.open') ) {
                        
                        $this.removeClass('open');
                        $this.addClass('close');
                }
                else {
                       
                        $this.removeClass('close');
                        $this.addClass('open');
                }
                return false;

  });
  
  
     $('a#ptJumpTop').click(function() {
	$('#ptJump').fadeIn('slow'); 
	return false;
  })
     
   $('a#msJumpTop').click(function() {
	$('#msJump').fadeIn('slow'); 
	return false;
  })

   $('a#otJumpTop').click(function() {
	$('#otJump').fadeIn('slow'); 
	return false;
  })

   $('a#hhJumpTop').click(function() {
	$('#hhJump').fadeIn('slow'); 
	return false;
  })


   $('a#snJumpTop').click(function() {
	$('#snJump').fadeIn('slow'); 
	return false;
  })


   $('a#stJumpTop').click(function() {
	$('#stJump').fadeIn('slow'); 
	return false;
  })


  
     $('.closeWindow').click(function() {
	$('.boxContainer').fadeOut('slow'); 
	return false;
  })
  
  
  
      $('.boxContainer').click(function() {
	$('.boxContainer').fadeOut('slow'); 
	return false;
  })
  

});
