function layer_infos_produit(produit, id_produit, section){
	var layer = $('layer_infos_produit_'+id_produit+'_'+section);
	//alert('layer_infos_produit_'+id_produit+'_'+section+'|'+layer.style.display);
	if (layer.style.display == 'none' || layer.style.display == ''){
		new Fx.Style(layer, 'opacity').set(0);
		layer.style.display = 'block';
		layer.style.position = 'absolute';
		var pos = findPos(produit);
		layer.style.left = (pos[0]+50)+'px';
		layer.style.top = (pos[1]-120)+'px';
		new Fx.Style(layer, 'opacity').set(1);
	}
}

function layer_infos_techno(produit, techno){
	var layer = $('layer_infos_techno_'+techno);
	//alert('layer_infos_produit_'+id_produit+'_'+section+'|'+layer.style.display);
	if (layer.style.display == 'none' || layer.style.display == ''){
		new Fx.Style(layer, 'opacity').set(0);
		layer.style.display = 'block';
		layer.style.position = 'absolute';
		var pos = findPos(produit);
		layer.style.left = (pos[0]+50)+'px';
		layer.style.top = (pos[1]-120)+'px';
		new Fx.Style(layer, 'opacity').set(1);
	}
}

function remove_layer_infos_produit(produit, id_produit, section){
	var layer = $('layer_infos_produit_'+id_produit+'_'+section);
	if (layer.style.display == 'block'){
		layer.style.display = 'none';
		new Fx.Style(layer, 'opacity').set(0);
	}
}

function remove_layer_infos_techno(produit, techno){
	var layer = $('layer_infos_techno_'+techno);
	if (layer.style.display == 'block'){
		layer.style.display = 'none';
		new Fx.Style(layer, 'opacity').set(0);
	}
}

function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		do {
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
			} while (obj = obj.offsetParent);
	}
	return [curleft,curtop];
}