
$(document).ready(function(){
	
	/****************************************************
	 * Swap values when user click or exit a form input
	 ****************************************************/
	swapValue = [];
	$(".swap-value").each(function(i){
	   swapValue[i] = $(this).val();
	   $(this).focus(function(){
	      if ($(this).val() == swapValue[i]) {
	         $(this).val("");
	      }
	      $(this).addClass("focus");
	   }).blur(function(){
	      if ($.trim($(this).val()) == "") {
	         $(this).val(swapValue[i]);
		 $(this).removeClass("focus");
	      }
	   });
	});
	
});