jQuery.noConflict();

jQuery(function() {

	// Carousel
	jQuery(".header-image .caroussel-entete ul").jcarousel({
		scroll:1,
		initCallback: function(){
			jQuery('.header-image .caroussel-entete li .subtitles p, .content-image .subtitles p').each(function() {
				jQuery(this).html('<span>'+jQuery(this).html().split('<br />').join('</span>&nbsp;<br />&nbsp;<span>')+'</span>');
			});
			return false;
		},
		auto:5.5,
		wrap:"both",
        buttonNextHTML: null,
        buttonPrevHTML: null
	});

	jQuery('.field, textarea').focus(function() {
        if(this.title==this.value) {
            this.value = '';
        }
    }).blur(function(){
        if(this.value=='') {
            this.value = this.title;
        }
    });
	
	jQuery(window).resize(function() {
		if(jQuery(this).width() < 1173)
			jQuery('body').addClass('smallscreen');
		else if(jQuery('body').hasClass('smallscreen'))
			jQuery('body').removeClass('smallscreen');
	}).resize();
	
});
