<!--
var part=1;
var Maxpart = 40;

function hideall() {
 hidediv('div_anim0');
 hidediv('div_anim1');
 hidediv('div_anim1a');
 hidediv('div_anim1b');
 hidediv('div_anim2');
 hidediv('div_anim2a');
 hidediv('div_anim3');
 hidediv('div_anim4');
 hidediv('div_anim4a');
 hidediv('div_anim4b');
 hidediv('div_anim5');
}


function defil_left() {
 //alert(part);
 hideall_partners();
 part -= 1;
 if (part == 0) part=Maxpart;
 var aff='partn' + part;
 showdiv(aff);
 scrolltimer=setTimeout('defil_left();',1800);
}


function defil_right() {
 //alert(part);
 hideall_partners();
 part += 1;
 if (part > Maxpart) part=1;
 var aff='partn' + part;
 showdiv(aff);
 scrolltimer=setTimeout('defil_right();',1800);
}

function startScroll() {
 scrolltimer=setTimeout('defil_right();',1800);
} 




function hidediv(layer_ref) { 
state = 'none'; 
if (document.all) { //IS IE 4 or 5 (or 6 beta) 
eval( "document.all." + layer_ref + ".style.display = state"); 
} 
if (document.layers) { //IS NETSCAPE 4 or below 
document.layers[layer_ref].display = state; 
} 
if (document.getElementById &&!document.all) { 
hza = document.getElementById(layer_ref); 
hza.style.display = state; 
} 
} 


function showdiv(layer_ref) { 
state = 'block'; 
if (document.all) { //IS IE 4 or 5 (or 6 beta) 
eval( "document.all." + layer_ref + ".style.display = state"); 
} 
if (document.layers) { //IS NETSCAPE 4 or below 
document.layers[layer_ref].display = state; 
} 
if (document.getElementById &&!document.all) { 
hza = document.getElementById(layer_ref); 
hza.style.display = state; 
} 
}


function checkEmail(email) {
 if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email))
 {
  window.location = "scripts/inscription.asp?email=" + email
 }
 else
 {
  alert("Merci de saisir une adresse E-mail valide");
  document.forms.inscription.email.focus();
 }
}



function AffCarre()
{
 var randomnumber=Math.floor(Math.random()*3);
 if (randomnumber==0) document.write('<a href="http://www.take-a-way.fr/" target="_blank"><img src="imgs/banniere_take_a_way.jpg" border="0"></a>');
 if (randomnumber==1) document.write('<img src="imgs/banniere_298x246-voeux2010-FR.gif" border="0">');
 if (randomnumber==2) document.write('<a href="http://www.edifis.it/" target="_blank"><img src="imgs/banniere_editis.gif" border="0"></a>');
}

function AffCarreHome()
{
  document.write('<a href="http://www.vendingparis.com/" target="_blank"><img src="imgs/banner_vending.jpg" border="0"></a>');

// var randomnumber=Math.floor(Math.random()*4);
// if (randomnumber==0) document.write('<a href="http://www.take-a-way.fr/" target="_blank"><img src="imgs/banniere_take_a_way.jpg" border="0"></a>');
// if (randomnumber==1) document.write('<img src="imgs/banniere_298x246-voeux2010-FR.gif" border="0">');
// if (randomnumber==2) document.write('<a href="http://www.snackfoods.fr/" target="_blank"><img src="imgs/banniere_snackfoods.gif" border="0"></a>');
// if (randomnumber==3) document.write('<a href="http://www.edifis.it/" target="_blank"><img src="imgs/banniere_editis.gif" border="0"></a>');
}
//-->

