
		
		
		$(document).ready(function(){ 
		
		$('a.external').click(function(){
			   window.open(this.href);
			   return false;
			});
		
		jQuery('#list1').Accordion({ 
			header: '.sub-cat-link',
			active: false,
			animated: 'easeslide',
			autoheight: true
		});	
		jQuery('#list2').Accordion({ 
			header: '.sub-cat-link',
			active: false,
			animated: 'easeslide',
			autoheight: true
		});
		jQuery('#list3').Accordion({ 
			header: '.sub-cat-link',
			navigation: true,
			active: false,
			animated: 'easeslide',
			autoheight: true
		});
		jQuery('#list4').Accordion({ 
			header: '.sub-cat-link',
			active: false,
			animated: 'easeslide',
			autoheight: true
		});
		// PNG Fix
		$(document).pngFix(); 
		
		// Hide Sub Nav Cat
		$("#cat-cosmetic-procedures").hide(); 
		$("#cat-health-skin-care").hide(); 
		$("#cat-reconstructive-surgery").hide(); 
		$("#cat-rehabilitation").hide();
		
		
		// Rounded Corners
		$('.rounded-corners').corner("10px");
		
		// Drop Down Menu
		$("#topNav").superfish({
			animation : { opacity:"show"}
		});
					
		 
		// Content Practice Areas - Show/Hide All
		$("#content-p-area-container").show(); 
		$("#p-area-all").addClass('arrow-up');
		
		
		$('#p-area-all').click(function() {
			$('#content-p-area-container').fadeOut("slow");
		});
		
		$('#p-area-all').toggle(function() {
			$('#content-p-area-container').fadeOut("slow");
			$(this).removeClass('arrow-up').addClass('arrow-down');
		
		}, function(){
			$('#content-p-area-container').fadeIn("slow");
			$(this).removeClass('arrow-down').addClass('arrow-up');
			
		}); 
		// Content Practice Areas - View More
		$('#content-p-area-hidden').hide();
		
		
		
		$('#p-area-more').click(function() {
			$('#content-p-area-hidden').fadeIn("slow");
			$(this).html('View Fewer');
		});
		
		$('#p-area-more').toggle(function() {
			$('#content-p-area-hidden').fadeIn("slow");	
			$(this).html('View Fewer');
		
		}, function(){
			$('#content-p-area-hidden').fadeOut("slow");
			$(this).html('View More');
			
		});
		

		// Meet Dr.
		$("#content-meet-dr-container").show(); 
		$("#meet-dr").addClass('arrow-up');
		
		
		$('#meet-dr').click(function() {
			$('#content-meet-dr-container').fadeOut("slow");
		});
		
		$('#meet-dr').toggle(function() {
			$('#content-meet-dr-container').fadeOut("slow");
			$(this).removeClass('arrow-up').addClass('arrow-down');
		
		}, function(){
			$('#content-meet-dr-container').fadeIn("slow");
			$(this).removeClass('arrow-down').addClass('arrow-up');
			
		}); 
		// BNA
		$("#cta-bna-hide").hide(); 
		$("#cta-bna-other-procedures").addClass('arrow-down');
		
		
		$('#cta-bna-other-procedures').click(function() {
			$('#cta-bna-hide').fadeIn("slow");
		});
		
		$('#cta-bna-other-procedures').toggle(function() {
			$('#cta-bna-hide').fadeIn("slow");
			$(this).removeClass('arrow-down').addClass('arrow-up');
			$(this).html('Close Other Procedures');
		
		}, function(){
			$('#cta-bna-hide').fadeOut("slow");
			$(this).removeClass('arrow-up').addClass('arrow-down');
			$(this).html('Open Other Procedures');
		});
		
		// QC Contact 
		$(".qc-hidden").hide(); 		
		$("#text-area").focus(function() {		   
		   $(".qc-hidden").fadeIn("slow");
		});

	    
		
		//$("input, textarea").focus(function(){
//		  $(this).addClass("active");
//			  if( this.value == this.defaultValue ) {
//				this.value = "";
//			}
//		});
//		$("input, textarea").blur(function(){
//		  $(this).removeClass("active");
//		  	if( !this.value.length ) {
//				this.value = this.defaultValue;
//			}
//		});
		$("#leftColumn, #mast, #header, #topNav, #cta-list, #empty").click(function(){
			$(".qc-hidden").fadeOut();

		});
		//$("*:not(#qc)").blur(function(){
//			if ( !$(this).parents().is("#qc") ) {
//				
//				$(".qc-hidden").fadeOut();
//			}
//			else return false;
//		});
		
		
	}); 
	