// JavaScript Document
/*window.addEvent('domready',function(){
		//SAMPLE 4 (walk to item)
		var handles4_more = $$('#handles4_more span');
		var handles4_more2 = $$('#handles4_more2 span');
		var handles4_more3 = $$('#handles4_more3 span');
		var handles4_moreproducts = $$('#handles4_moreproducts span');
		var handles4_moreproducts2 = $$('#handles4_moreproducts2 span');
		var nS4 = new noobSlide({
			box: $('box4'),
			items: $$('#box4 div'),
			interval: 6000,
			size: 250,
			autoPlay: false,
			button_event: 'click',
			handles: $$('#handles4 span'),
			onWalk: function(currentItem,currentHandle){
				this.handles.removeClass('active');
				currentHandle.addClass('active');
			}
		});
		nS4.addHandleButtons(handles4_more);
		nS4.addHandleButtons(handles4_more2);
		nS4.addHandleButtons(handles4_more3);
		nS4.addHandleButtons(handles4_moreproducts);
		nS4.addHandleButtons(handles4_moreproducts2);
		nS4.addActionButtons('next',$$('#box4 .next'));
	});
*/
<!---*****************SLIDESHOW HOME****************--->
// cookie pour afficher ou non le popup panier cadeau
     
   function cre_cook(nom,contenu,jours) {
      var expireDate = new Date();
      expireDate.setTime(expireDate.getTime() + jours*6*3600*1000);
      document.cookie = nom + "=" + escape(contenu)
         + ";expires=" + expireDate.toGMTString();
      }
     
   function lit_cook(nom) {
      var deb,fin
      deb = document.cookie.indexOf(nom + "=")
      if (deb >= 0) {
         deb += nom.length + 1
         fin = document.cookie.indexOf(";",deb)
         if (fin < 0) fin = document.cookie.length
         return unescape(document.cookie.substring(deb,fin))
         }
      return ""
      }
     
   function litCook(nom) {
      c=lit_cook(nom)
      if(c=="") return false;
      else return true;
      }
	  
	
	 
	 function close_popup(){
		document.getElementById('transDiv').style.display = "none";
	 }
	 
	 function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


// changement d'image
function swap_img_box(src)
{
	document.getElementById('homepanier').src = src; 
}

// un peu de jquery

$(function(){
  

	function home_roll_over(cat)
	{
		  $('#home'+cat).mouseover(function(){
			
			$('.descript'+cat).addClass('descript'+cat+'Over');
			$('.main'+cat).addClass('catSelect');
			
		  }).mouseout(function(){
			  $('.descript'+cat).removeClass('descript'+cat+'Over');
			  $('.main'+cat).removeClass('catSelect');
		  });
		  
		 $('.descript'+cat).mouseover(function(){
			
			$('.descript'+cat).addClass('descript'+cat+'Over');
			$('.main'+cat).addClass('catSelect');
			$('.txtCat'+cat).addClass('color'+cat);
			
		  }).mouseout(function(){
			  $('.descript'+cat).removeClass('descript'+cat+'Over');
			  $('.main'+cat).removeClass('catSelect');
			  $('.txtCat'+cat).removeClass('color'+cat);
		  });
	}
	
	home_roll_over('Fruit');
	home_roll_over('Water');
	home_roll_over('Plant');
 });
