function showProd(div, id) {
	if (isIE()) {
  	var height = document.body.offsetHeight + document.body.scrollTop;
  	var width = document.body.offsetWidth + document.body.scrollLeft;
  	$(div).style.left = document.body.scrollLeft + (document.body.offsetWidth - 440) / 2;
  	$(div).style.top = document.body.scrollTop + 50;
  	$('divMasq').style.filter = 'alpha(opacity=0)';
	} else {
  	var height = document.height;
  	var width = document.width;
  	$(div).style.left = window.pageXOffset + (window.innerWidth - 440) / 2;
  	$(div).style.top = window.pageYOffset + 50;
  	$('divMasq').style.opacity = '0';
	}
	$('divMasq').style.width = width;
	$('divMasq').style.height = height;
	$('divMasq').style.backgroundColor = 'black';
	$('divMasq').style.zIndex = '3000';
	$('divMasq').style.left = 0;
	$('divMasq').style.top = 0
	doRequest('wuAjax.php?phpFile=plugins/produit.php&phpPlugin=plugins/produit.php&location=3&prodID='+id, div);
	$(div).style.zIndex = '3001';
	new Effect.Appear('divMasq', {duration: 1, from: 0, to: 0.7});
	setTimeout(divAppear, 1000);
	function divAppear() {
		new Effect.Appear(div, {duration : 1, from: 0, to: 1});
	}
}
function hideProd(div) {
	new Effect.Parallel([
		new Effect.Puff(div, {sync: true}),
		new Effect.Puff('divMasq', {sync: true})
	], {duration: 1});
}
var img = new Array();
var num_img;
var nb_img;
function _nextImg() {
	num_img++;
	if (num_img >= nb_img) {
		num_img = nb_img;
		$('nextImg').style.display='none';
	}
	$('prevImg').style.display='inline';
	$('theImg').src = img[num_img].src;
}
function _prevImg() {
	num_img--;
	if (num_img <= 0) {
		num_img = 0;
		$('prevImg').style.display='none';
	}
	$('nextImg').style.display='inline';
	$('theImg').src = img[num_img].src;
}
function searchRevendeur(cp, region) {
	doRequest('wuAjax.php?phpFile=plugins/listeRevendeurs.php&phpPlugin=plugins/listeRevendeurs.php&location=3&cp='+cp.value+'&region='+region.value, 'listeRevendeurs');
}
