jQuery(document).ready(function(){  
  
  jQuery('#users_anchor').click(function(){  	
  	jQuery.scrollTo(jQuery('#who_we_are'), 3000 ); 
  });   

  jQuery('#contact_us form p label, #subscribe form label').inFieldLabels();  


  jQuery('#post_summaries_container').css('height', jQuery('#post_summaries_container').height() + 'px');
  jQuery('#post_summaries_header a').click(function(e){
	e.preventDefault();

	jQuery('#post_summaries_header a').removeClass('on');
	jQuery(this).addClass('on');

	var current = jQuery('#post_summaries_container div.on');
	jQuery('#post_summaries_container .summary').removeClass('on');
	current.siblings('.summary').addClass('on');

	return false;
  });
  
  jQuery('.full_post p:last').append('<img src="/wp-content/themes/esb/images/end_mark.png" />');

  jQuery('#subscribe h2').each(function(){
	if(jQuery(this).html() == ''){
		jQuery(this).remove();
	}
  });
});

DD_belatedPNG.fix('#content_middle h2, #footer, #content_middle h4');

DD_belatedPNG.fix('#send, #commentform #submit');

