$(document).ready(function(){
	
	//Form Clearing
	$('.clearfield').focus(function() {
  		if($(this).val() == $(this).attr("rel")) $(this).val("");
	});
	
	$('.clearfield').blur(function() {
       	if(!$(this).val()) $(this).val($(this).attr("rel"));
    });

	/* Original
	$('#home-feature-container').cycle({ 
	    fx:     'fade', 
	    speed:  1000, 
	    timeout: 5000,
	    cleartype: true,
	    cleartypeNoBg: true    
	}); */
	
		$('#home-feature-container').cycle({ 
	   fx:     'fade', 
	   timeout: 6000,
	   cleartype: false,
	   cleartypeNoBg: false    
	});
	
	$('.doctor .description').css('display','none');
	$('.region-item').css('display','none');
		
	$('.doctor h5').click(function() {
	  
	  //$('.doctor .description').css('display','none');
	  
	  $(this).parent().find('div').toggle();
	  $(this).toggleClass('active');
	  return false;
	
	});
	
	$('.locations-list h4.region-list-header').click(function() {
	  	
	  	$('.locations-list .active').siblings('ul').hide();
	  	
	  	if( $(this).hasClass('active') ) {
	  	
	  		$(this).parent().find('ul').hide();
	  		$(this).removeClass('active');
	 	
	  	
	  	} else {
	  		
	  		$('.locations-list .active').removeClass('active');
	  		
	  		$(this).parent().find('ul').show();
	  		$(this).addClass('active');
	 	
	  	}
	  	
	 	return false;
	
	});
	
	/*
	$('.subnav h3, .subnav:before').click(function() {
	  
	  	
	 	$("#main-subnav").toggle();
	 	return false;
	
	});
	
	*/ 
	
	/* -- This controls city drop down menu
	
	$('#location-form select').change(function(){
		
		$('#location-form').submit();
	
	}); */
	
	
	
	
});
