$(document).ready(function(){
  
  $("#commentform label").addClass("hide");
 
	$('h3').each(function() {
         if ($(this).text() == "") {
                   $(this).hide();
         }
});
  
  
  swapValues = [];
 	$(".swap_value").each(function(i){
 		swapValues[i] = $(this).val();
 		$(this).focus(function(){
 		if ($(this).val() == swapValues[i]) {
 		$(this).val("");
 		}
 		}).blur(function(){
 		if ($.trim($(this).val()) == "") {
 		$(this).val(swapValues[i]);
 		}
 		if (($.trim($(this).val()) != "") && ($.trim($(this).val()) != swapValues[i])) {
 		$(this).css('color','#000');
 		}
 		
 		});
 	}); 
 	
 
 	$("#s").focus(function(){
 		$("#search").addClass("focus")
 		}).blur(function(){
 		$("#search").removeClass("focus")
 		})
 	
 	$("#submit").click(function() {
	var u = $('input#url');
	if(u.val() == 'Website Address') {
		u.val('');
	}
	return true;
});

//remove height and width attributes from images
$('img').each (function(){
    $(this).removeAttr('width')
    $(this).removeAttr('height');
});

 });

