var $j = jQuery.noConflict();
$j(function() {
var zid = null;
$j("#deco,#retour,.ajouter_panier").button();
$j("#deco").click(function(){document.location.href="?page=deco";});
$j("#retour").click(function(){document.location.href="index.php";});
$j(".ReadMsg").mouseover(function(){$j(this).css("background","#9FCBFF");});

	$j('a.lightbox').lightBox({fixedNavigation:true});
	$j("#proc_add").dialog({height: 240,	width:400,modal: true,autoOpen: false,buttons: {
		"Annuler": function() { $j(this).dialog("close");},
		"Ajouter au panier": function(){$j.ajax({type:"POST",url:"ajoute_panier.php",data: ({"nb_art" : $j("#qtei").val(),"format" : $j("#sformat").val(),"id_art" :zid}),
		success:function(reponse){$j("#cartcont").html(reponse);$j("#proc_add").dialog("close");}});

		}}//fin boutons
	});//fin dialogue
	$j(".mon_td").mouseover(function(){$j(this).css("background","#9FCBFF");});
	$j(".mon_td").mouseout(function(){$j(this).css("background","none");});
	/*name_file,id_util,id_art,nb_art*/
	$j(".ajouter_panier").click(function(){zid=$j(this).attr("id");$j("#proc_add").dialog("open");});
$j("#buy").hover(function(){alert('coucou');});
});
