/*function ajax() {
	if(window.XMLHttpRequest) {
		requete = new XMLHttpRequest();
	}
	else if(window.ActiveXObject) {
		try {
			requete = new ActiveXObkect("Msxml2.XMLHTTP");
		} catch(e) {
			requete = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	else {
		alert("Votre navigateur ne supporte pas la fonction");
		requete = false;
	}
	return requete;
}


function detail(type, id) {
	var req = new ajax();
	req.onreadystatechange = function() {
		if(req.readyState == 4) {
			document.getElementById("more").innerHTML = req.responseText;
			document.getElementById("more").style.display = 'block';	
		}
	}
	req.open('post', 'produit-plus.php', true);
	req.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	req.send('p='+type+'&num='+id);
}

function quit() {
	document.getElementById("more").style.display = 'none';
}*/
function detail(type, id) {
	$(document).ready(function() {
	
		$.ajax({
			type:"POST",
			url:'produit-plus.php',
			data: "p="+type+"&num="+id,
			success: function(html) {
				$("#more").html(html);
				$("#more").dialog({
					bgiframe: true,
					autoOpen: false,
					modal: true,
					width: 700,
					height: 320,
					title: "En savoir plus"
				});	
				$("#more").dialog("open");
			}
		});
	
	/*$("#more").dialog({
			bgiframe: true,
			autoOpen: false,
			modal: true,
			width: 500,
			height: 320,
			title: "En savoir plus"
		});*/
	});
}

		
	/*$(".prod-cadre a").click(function(type, id) {
		
		$.ajax({
			type:"POST",
			url:'produit-plus.php',
			data: "p="+type+"&num="+id,
			success: function(html) {
				$("#more").dialog("open");
			}
		});
		
		$("#more").dialog({
			bgiframe: true,
			autoOpen: false,
			modal: true,
			width: 500,
			height: 320,
			title: "En savoir plus"
		});		
		
	});*/
