 
 $("#box_panier .detail a").click(function(){
	if ($("#box_panier_affiche_detail").css('display')=="none"){
		$("#box_panier_affiche_detail").show();
		$("#box_panier_affiche_detail").html('<p class="center"><img src="/common_skins/img/loader.gif" alt="loader" title="Chargement en cours..." /></p>');
		send_ajax('post','/library/ajax/affiche_detail_panier.php');
		
	}
	else {
		$("#box_panier_affiche_detail").hide();
		$("#box_panier_affiche_detail").html('');
	}
	return false;
}); 

$("#box_panier_affiche_detail .close_box a").live("click",function(){
	$("#box_panier_affiche_detail").html('');
	$("#box_panier_affiche_detail").hide();
});






$("a.genere_popup").click(function(){
	$.fancybox([{
		href : $(this).attr('href')+"?popup",
		title : $(this).attr('title'),
		type : "iframe"
		}			
	], opts_fancybox);
	return false;
});

$().ready(function(){
    $("a.add_favoris").click(function(event){
        event.preventDefault(); // prevent the anchor tag from sending the user off to the link
        var url = this.href;
        var title = this.title;
        if (window.sidebar) { // Mozilla Firefox Bookmark
            window.sidebar.addPanel(title, url, "");
        } else if( window.external ) { // IE Favorite
            window.external.AddFavorite( url, title);
        } else { // for Safari, Konq etc - browsers who do not support bookmarking scripts (that i could find anyway)
            alert('Malheureusement, votre navigateur ne gère pas cette action, veuillez l\'ajouter manuellement (ctrl + D).');
        }
    });
});
