jQuery.noConflict();

/* JQuery ColorBox */
jQuery(document).ready(function(){
	jQuery(".ClassBox").colorbox({iframe:true, innerWidth:840, innerHeight:640});
	
	// Ajout Etienne - Remplacement des astérisques du menu cottage par des fleurs
	
	function repAsterisks(elem) {
		elem.each(function() {
			regExpr = /\*/g;
			strToRep = "<img src='http://www.domaine-du-colombier.com/images/stories/fleur.png' />";
			jQuery(this).html(jQuery(this).html().replace(regExpr, strToRep));
		});
	}
	
	var asterisks = jQuery('ul.menu-IdSousMenuTxt ul li a span, .menu-haut ul li a span');
	repAsterisks(asterisks);

});

jQuery(document).ready(function(){
	jQuery(".item90 a").colorbox({iframe:true, innerWidth:780, innerHeight:600});
});

jQuery(document).ready(function(){
	jQuery(".item111 a").colorbox({iframe:true, innerWidth:780, innerHeight:600});
});

jQuery(document).ready(function(){
	jQuery(".item156 a").colorbox({iframe:true, innerWidth:950, innerHeight:520});
});

jQuery(document).ready(function(){
	jQuery(".ClassBox2").colorbox({iframe:true, innerWidth:780, innerHeight:600});
});

// Menu horizontal Jquery 
jQuery(function(){
		jQuery('ul.menu-haut').superfish();
	});

jQuery.fn.hoverClass = function(c) {
return this.each(function(){
jQuery(this).hover( 

	function() { jQuery(this).addClass(c);  },
	function() { jQuery(this).removeClass(c); }

	);
});

};


