$(document).ready(function() {	

	// add class to inputs

	 $(":checkbox").addClass('checkbox');
	 $(":radio").addClass('radio');
	 $(":submit").addClass('submit');
	
	// clear search field on click
	
	$(".search-submit").focus(function() {
		if( this.value == this.defaultValue ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	});
	
	$('#cadeau_box input[type="checkbox"], #cadeau_box br').remove();
	
	// animation for formSuccess & formError
	try{
		window.setTimeout(function(){
			$('.formSuccess, .formError, .panier_chronopost').animate({'opacity' : 0.75}, 1000);
		}, 1000);
	}catch(e){}
	
	// remove "Attente de paiement" lines in orders table in user profile
	//$("table#commandes td:contains('Attente paiement')").parent().remove();

});