function AF_swapImgRestore() { 
  var i,x,a=document.AF_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function AF_preloadImages() { 
  var d=document; if(d.images){ if(!d.AF_p) d.AF_p=new Array();
    var i,j=d.AF_p.length,a=AF_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.AF_p[j]=new Image; d.AF_p[j++].src=a[i];}}
}

function AF_findObj(n, d) { 
  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=AF_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function AF_swapImage() { 
  var i,j=0,x,a=AF_swapImage.arguments; document.AF_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=AF_findObj(a[i]))!=null){document.AF_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function entrer()
{
	window.location.href="./contact.php?lang=fr";
}

function enter()
{
	window.location.href="./contact.php?lang=en";
}

function go(adresse)
{
	window.location.href=adresse;
}

function seek(lang)
{
	var params = "";
	
	if(document.rechercher.category.selectedIndex!=0)
		params+="&category="+document.rechercher.category.options[document.rechercher.category.selectedIndex].value;
		
	if(document.rechercher.genre.selectedIndex!=0)
		params+="&genre="+document.rechercher.genre.options[document.rechercher.genre.selectedIndex].value;
		
	if(document.rechercher.director.selectedIndex!=0)
		params+="&director="+document.rechercher.director.options[document.rechercher.director.selectedIndex].value;
	
	if(document.rechercher.keyword.value != "")
		params+="&keyword="+document.rechercher.keyword.value;
	
	window.location.href="./catalogue.php?lang="+lang+params;
}
