// JavaScript Document

$(document).ready(function() {
						   /*
	var arrBox = $('#content div.box');
	for(var i = 0 ; i < arrBox.length ; i++){
		$('#' + arrBox[i].attr('id')).children('a.buy').click(function(){
			//var path = this;
			
			alert("Envoi du formulaire : " + arrForm[i].attr('id'));
			
			//$(this).parent("form").submit();
		});
	}
	*/
	$('#content div.box form').each(function(){
		var index = $(this).attr('id');
		$(this).children('a.buy').click(function(){
			alert("Envoi du formulaire : " + index);
		});
	});
	
	$("div.boxProduct").mouseover(function(){
		$(this).removeClass('boxProduct');
		$(this).addClass('boxProductHover');
	}).mouseout(function(){
		$(this).removeClass('boxProductHover');
		$(this).addClass('boxProduct');
	});
	
	$("div.boxProductNew").mouseover(function(){
		$(this).removeClass('boxProductNew');
		$(this).addClass('boxProductNewHover');
	}).mouseout(function(){
		$(this).removeClass('boxProductNewHover');
		$(this).addClass('boxProductNew');
	});
	
	$("div.boxProductPromo").mouseover(function(){
		$(this).removeClass('boxProductPromo');
		$(this).addClass('boxProductPromoHover');
	}).mouseout(function(){
		$(this).removeClass('boxProductPromoHover');
		$(this).addClass('boxProductPromo');
	});
	
	$("div.boxProductPromoNew").mouseover(function(){
		$(this).removeClass('boxProductPromoNew');
		$(this).addClass('boxProductPromoNewHover');
	}).mouseout(function(){
		$(this).removeClass('boxProductPromoNewHover');
		$(this).addClass('boxProductPromoNew');
	});
});