<!--
var url_param='_Sess=511adce0537839f69989e0f3441fa8e0';
var type_ouv_panier=false;
var url_aff='';


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function valide_form_recherche_rapide(theform)
{
	var mots = theform.elements['_Mots'];
	var typerech = theform.elements['_TypeCode'];

	if (mots.value=="")
	{
		alert('Vous devez indiquer un ou plusieurs mots');
		mots.focus();
		return false;
	}
	theform.submit();

	return true;
}

function load_body_action()
{
	MM_preloadImages('images/bt_rech-av-over.gif','images/head_monpanier-on.gif','images/head_consult-on.gif','images/head_suivi-on.gif','images/tabs1on.gif','images/tabs2on.gif','images/tabs3on.gif','images/tabs4on.gif','images/tabs5on.gif','images/tabs6on.gif','images/tabs7on.gif');
	MM_preloadImages('images/b_hg.gif','images/b_h.gif','images/b_hd.gif','images/b_g.gif','images/b_d.gif','images/b_bg.gif','images/b_b.gif','images/b_bd.gif');
}

function page_popup(type)
{
	var top=(screen.height-400)/2;
	var left=(screen.width-660)/2;
	var thelink = 'http://www.lgdj.fr/page.php?_Pop=1&_Type='+type+'&'+url_param;
	var thestyle='status=no,location=no,directorie=no,resizable=yes,scrollbars=yes,menubar=no,toolbar=no,top='+top+',left='+left+',width=660,height=400';
	var w_page_popup = window.open(thelink,'LGDJLIB',thestyle);
	w_page_popup.focus();
}

function panier(num_ouvrage)
{
	var thelink = '/panier.php?'+url_param;
	if (num_ouvrage!=null && num_ouvrage!='')
		thelink += '&_Ouvrage='+num_ouvrage;

	if (type_ouv_panier)
	{
		var width=Math.min(800,screen.width-100);
		var height=Math.min(600,screen.height-100);
		var left=(screen.width-width)/2;
		var top=(screen.height-height)/2;
		var w_panier = window.open(thelink,'panier_lgdjlib','resizable=yes,scrollbars=yes,top='+top+',left='+left+',width='+width+',height='+height);
		w_panier.focus();
	}
	else
	{
		window.location.replace(thelink);
	}
}

function souscription(id)
{
	var top=(screen.height-400)/2;
	var left=(screen.width-950)/2;
	var thelink = '/page.php?_Type='+id+'&_Pop=1&'+url_param+'#souscrire';
	var thestyle='status=no,location=no,directorie=no,resizable=yes,scrollbars=yes,menubar=no,toolbar=no,top='+top+',left='+left+',width=950),height=400';
	var w_page_popup = window.open(thelink,'LGDJLIB',thestyle);
	w_page_popup.focus();
}

function rech_collection(coll)
{
	window.location.replace("/rech_avancee.php?_EdColSscol="+coll+'&'+url_param);
}

function detect_cookie(code_page)
{
	var tmpcookie = new Date();
	var chkcookie = (tmpcookie.getTime()+'');

	document.cookie = "chkcookie="+chkcookie+";path=/";

	if (document.cookie.indexOf(chkcookie,0) < 0)
	{
		var top=(screen.height-400)/2;
		var left=(screen.width-500)/2;
		var w_page_popup = window.open("/page.php?_Pop=1&_Type="+code_page+"&"+url_param,'LGDJLIB','status=no,location=no,directorie=no,resizable=yes,scrollbars=yes,menubar=no,toolbar=no,top='+top+',left='+left+',width=500,height=400');
		w_page_popup.focus();
	}
}

function haut_page()
{
	try
	{
		window.parent.lgdj_action.location = url_aff+'/lgdj_haut_page.htm';
	}
	catch(e)
	{
	}
}

function accueil()
{
	try
	{
		window.parent.lgdj_action.location = url_aff+'/lgdj_accueil.htm';
	}
	catch(e)
	{
	}
}
//-->
