Bloguer_Ouvert=false;
/* ************************************************************* */ 
 function popupcentree(page,largeur,hauteur,options) 
 {
    var top=(screen.height-hauteur)/2;
    var left=(screen.width-largeur)/2;    
    window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options); 
}
/* ************************************************************* */ 
function OpenAchat(Ean13)
{
/*POCKET 	20*/ 
/*POCKET JEUNESSE 	21*/ 
/*10*18 	22*/ 
/*FLEUVE NOIR 	12*/ 
/*KUROKAWA 	13*/ 
/* LAFFONT 27 */

	refedit=27;
 var url = "http://www.interforum.fr/Affiliations/accueil.do?refLivre="+Ean13+"&refEditeur="+refedit;
  //alert(url);
  popupcentree(url,640,710,"");
 }
/* ************************************************************* */   
function Click_Blog(DivBtnBlog)
{
	$(document).ready(function () 
	{			
			if(!Bloguer_Ouvert)
			{
				$("#"+DivBtnBlog).attr("src","images/bt_bloguer_over.png");
				$("#"+DivBtnBlog).attr("oSrc","images/bt_bloguer_over.png");
				$("#CONTENT_BLOG").css({ visibility:'visible'});
			}else
			{
				$("#"+DivBtnBlog).attr("src","images/bt_bloguer_out.png");
				$("#"+DivBtnBlog).attr("oSrc","images/bt_bloguer_out.png");	
				$("#CONTENT_BLOG").css({ visibility:'hidden'});	
			}
			Bloguer_Ouvert=!Bloguer_Ouvert;
	});
}

/* ************************************************************* */   
function Change_Page_Ouvrage_Auteur(IdAut,Page)
{
	$(document).ready(function () 
	{			
			LeNomDiv="#ENCART_AUTRES_OUVRAGE_FICHE";

			$("#TRACELOADOUVRAGEMEMEAUTEUR").html('<img src="images/spinner.gif" width="16" height="16"/>');
			$.ajax({
			  url: "prepare_charge_ouvrage_auteur.php",
			  cache: false,
			  type: "POST",
	      data: ({IDA:IdAut,PC:Page}),
	      dataType: "text",
			  success: function(uneData){
			    $(LeNomDiv).html(uneData);
			    $("#TRACELOADOUVRAGEMEMEAUTEUR").html('<img src="images/giftransparent.gif" width="16" height="16"/>');
			  }
			});
	});
}
/* ************************************************************* */   
function Change_Page_Ouvrage_Meme_Auteur(Ean13,Page)
{
	$(document).ready(function () 
	{			
			LeNomDiv="#ENCART_AUTRES_OUVRAGE_FICHE";

			$("#TRACELOADOUVRAGEMEMEAUTEUR").html('<img src="images/spinner.gif" width="16" height="16"/>');
			$.ajax({
			  url: "prepare_charge_ouvrage_meme_auteur.php",
			  cache: false,
			  type: "POST",
	      data: ({EAN:Ean13,PC:Page}),
	      dataType: "text",
			  success: function(uneData){
			    $(LeNomDiv).html(uneData);
			    $("#TRACELOADOUVRAGEMEMEAUTEUR").html('<img src="images/giftransparent.gif" width="16" height="16"/>');
			  }
			});
	});
}
/* ************************************************************* */   
function Change_Page_Nouveaute_Type1(Ean13,Page)
{
	$(document).ready(function () 
	{			
			LeNomDiv="#ENCART_NOUVEAUTES_TYPE1";

			$("#TRACELOADENCARTNOUVEAUTES1").html('<img src="images/spinner.gif" width="16" height="16"/>');
			$.ajax({
			  url: "prepare_charge_nouveautes_type1.php",
			  cache: false,
			  type: "POST",
	      data: ({EAN:Ean13,PC:Page}),
	      dataType: "text",
			  success: function(uneData){
			    $(LeNomDiv).html(uneData);
			    $("#TRACELOADENCARTNOUVEAUTES1").html('<img src="images/giftransparent.gif" width="16" height="16"/>');
			  }
			});
	});
}

/* ************************************************************* */   
function Change_Page_Nouveaute_Type2(Ean13,Page)
{
	$(document).ready(function () 
	{			
			LeNomDiv="#ENCART_NOUVEAUTES_TYPE2";

			$("#TRACELOADENCARTNOUVEAUTES2").html('<img src="images/spinner.gif" width="16" height="16"/>');
			$.ajax({
			  url: "prepare_charge_nouveautes_type2.php",
			  cache: false,
			  type: "POST",
	      data: ({EAN:Ean13,PC:Page}),
	      dataType: "text",
			  success: function(uneData){
			    $(LeNomDiv).html(uneData);
			    $("#TRACELOADENCARTNOUVEAUTES2").html('<img src="images/giftransparent.gif" width="16" height="16"/>');
			  }
			});
	});
}

/* ************************************************************* */   
function Change_Page_A_Paraitre(Ean13,Page)
{
	$(document).ready(function () 
	{			
			LeNomDiv="#ENCART_A_PARAITRE";

			$("#TRACELOADENCARTAPARAITRE").html('<img src="images/spinner.gif" width="16" height="16"/>');
			$.ajax({
			  url: "prepare_charge_a_paraitre.php",
			  cache: false,
			  type: "POST",
	      data: ({EAN:Ean13,PC:Page}),
	      dataType: "text",
			  success: function(uneData){
			    $(LeNomDiv).html(uneData);
			    $("#TRACELOADENCARTAPARAITRE").html('<img src="images/giftransparent.gif" width="16" height="16"/>');
			  }
			});
	});
}
/* ************************************************************* */   
function Change_Page_Encart_Actualites(Page,NbreActus)
{
	$(document).ready(function () 
	{			
			LeNomDiv="#ENCART_ACTUALITES";

			$("#TRACELOADENCARTACTUALITES").html('<img src="images/spinner.gif" width="16" height="16"/>');
			$.ajax({
			  url: "prepare_charge_encart_actualites.php",
			  cache: false,
			  type: "POST",
	      data: ({PC:Page,MAX:NbreActus}),
	      dataType: "text",
			  success: function(uneData){
			    $(LeNomDiv).html(uneData);
			    $("#TRACELOADENCARTACTUALITES").html('<img src="images/giftransparent.gif" width="16" height="16"/>');
			  }
			});
	});
}
/* ************************************************************* */   
function Change_Page_Encart_Presse(Page,NbreArticles)
{
	$(document).ready(function () 
	{			
			LeNomDiv="#ENCART_PRESSE";
			LeNomDiv2="#ENCART_PRESSE_PAGINATION";

			$("#TRACELOADENCARTPRESSE").html('<img src="images/spinner.gif" width="16" height="16"/>');
			$.ajax({
			  url: "prepare_charge_encart_presse.php",
			  cache: false,
			  type: "POST",
	      	  data: ({PC:Page,MAX:NbreArticles}),
	      	  dataType: "text",
			  success: function(uneData){
			    $(LeNomDiv).html(uneData);
			    $("#TRACELOADENCARTPRESSE").html('<img src="images/giftransparent.gif" width="16" height="16"/>');
			  }
			});			

	});
}
/* ************************************************************* */   
function montre(id)
{
		var element_style=null
		if (document.getElementById)
		{element_style=document.getElementById(id).style;}
		else if (document.all)
		{element_style=document.all[id].style;} 
		if(element_style)  {element_style.display="block";}
}
function cache(id)
{
		var element_style=null
		if (document.getElementById)
		{element_style=document.getElementById(id).style;}
		else if (document.all)
		{element_style=document.all[id].style;} 
		if(element_style)  {element_style.display="none";}
}
/* ************************************************************* */   

