/////////////////////// FUNCTIONS ///////////////////////
/***** Input Clearing *****/      // Usage: $('input.clear-default').clearDefault();
(function($){
	$.fn.clearDefault = function(){
		return this.each(function(){
			var default_value = $(this).val();
			$(this).focus(function(){
				if ($(this).val() == default_value) $(this).val("");
			});
			$(this).blur(function(){
				if ($(this).val() == "") $(this).val(default_value);
			});
		});
	};
})(jQuery);


/////////////////////// Initialize JS actions ///////////////////////
$(document).ready(function() {

//GLOBAL VARIABLES
//none

	//BEHAVIOR:Add extra markup for content images to have border and drop shadow
	$('.entry img').each(function() {
    if($(this).attr('align') == 'right'){ //Check to see if the image is aligned right...
			$(this).wrap('<div class="img-shadow-right"></div>');
		} else if($(this).hasClass('alignright')) { //...by either of both possible methods
			$(this).wrap('<div class="img-shadow-right"></div>');
		} else if($(this).hasClass('noformat')) { //If it has the 'noformat' class, don't do anything.
		} else {
			$(this).wrap('<div class="img-shadow"></div>');
		}
  });
	
});
