// Cufon
Cufon.replace('#menunav li#mn-acc a, #menunav li#mn-brac a, #menunav li#mn-actu a, #menunav li#mn-senior a, .menu_vins > li strong, .pup, .bon-commande h2, .bouton', {
			  		fontFamily: 'Constantia',
        					textShadow: '0 2px rgba(0,0,0,0.5)',
                    hover: {
        					textShadow: '0 2px rgba(0,0,0,0.5)'
    						}
                    });
Cufon.replace('#menunav li#mn-com a', { fontFamily: 'Constantia', hover:true });

Cufon.replace('#bassiteCoeur dt', { fontFamily: 'Constantia'});

Cufon.replace('h1, h2, .titre1, .filariane, #page-fiche_vins h1 u, legend', { fontFamily: 'Constantia'});

Cufon.replace('#coeursite.bon-commande .colonne1 h2', {
			  		fontFamily: 'Constantia',
        					textShadow: '0 2px rgba(0,0,0,0.5)',
                    hover: {
        					textShadow: '0 2px rgba(0,0,0,0.5)'
    						}
                    });

// jquery
$(document).ready(function(){	
	$(".menu_vins li li:nth-child(even)").addClass("even");
	$(".menu_vins li li:nth-child(odd)").addClass("odd");
	
	$(".paragraphe .listeVin01 li:nth-child(odd)").addClass("odd");
	
	$(".listeVin04 li:nth-child(odd)").addClass("odd");
	
	if($('.listeVin02').length > 0)
		$('.listeVin02').makeacolumnlists({cols: 4, colWidth: 0, equalHeight: 'ul', startN: 1});
	
	if($('.listeVin03').length > 0){
		$('.listeVin03 > li > h3').click(function(){
			$(this).parent().toggleClass('off on');
		});
	}
	
	if($('#infosCommande').length > 0){
		var msie6 = $.browser == 'msie' && $.browser.version < 7;
		  
		  if (!msie6) {
		    var top = $('#infosCommande').offset().top - parseFloat($('#infosCommande').css('margin-top').replace(/auto/, 0));
		    $(window).scroll(function (event) {
		      // what the y position of the scroll is
		      var y = $(this).scrollTop();
		      
		      // whether that's below the form
		      if (y >= top) {
		        // if so, ad the fixed class
		    	 // $('#infosCommande').css({'position': 'fixed', 'top': '0'});
		        $('#infosCommande').addClass('fixed');
		      } else {
		        // otherwise remove it
		    	// $('#infosCommande').css({'position': 'fixed', 'top': '0'});
		    	  $('#infosCommande').removeClass('fixed');
		      }
		    });
		  }  
	}
});

$(document).ready(function() {
 	// jQuery Cycle	
	if($('#slideActus').length > 0){
		$('#slideActus').cycle({ 
			fx:'fade',
			speed:500
		});
	}
});
