

$(document).ready(function() {
	
	/* vidange des formulaires et style .active */                             	
	$('input:not(:radio, :checkbox), textarea, select').each(function () {
		$(this).focus(function (){		
			$(this).not('.active').addClass('active');
			if($(this).attr('title') == $(this).attr('value'))
			{
				$(this).attr('initValue', $(this).val());
				$(this).val('');
			}
		}).blur(function (){
			if($(this).attr('initValue')) {
				if($(this).attr('value') == $(this).attr('initValue') || $(this).attr('value')=='') {
					$(this).val($(this).attr('initValue'));
				}
			}
			$(this).removeClass('active');
		})
	});
});

