var imagesPrechargees=new Array();
var mesImagesSources=['im/fondbandeau.jpg' , 'im/fondmenu.jpg' , 'im/fondbox.jpg' , 'im/mfd.jpg' , 'im/mfg.jpg' , 'im/fbasm.jpg' , 'im/fbasg.jpg' , 'im/fbasd.jpg' , 'im/fcentre.jpg' , 'im/fgauche.jpg' , 'im/fdroit.jpg' ];
for(var i=0;i<mesImagesSources.length;i++){ 
  imagesPrechargees[i]=new Array(); 
  imagesPrechargees[i].src=mesImagesSources[i]; 
}

function validform() {
if (document.cv.prenom.value.length < 2) 
{
window.alert("Veuillez entrer votre prénom !");
return false;
}
if (document.cv.nom.value.length < 2) 
{
window.alert("Veuillez entrer votre nom !");
return false;
}
if (document.cv.telephone.value.length < 8) 
{
window.alert("Veuillez entrer votre téléphone !");
return false;
}
if (document.cv.email.value.length < 8) 
{
window.alert("Veuillez entrer votre email !");
return false;
}
if (document.cv.titre.value.length < 8) 
{
window.alert("Veuillez entrer votre recherche !");
return false;
}
if (document.cv.recherche.value.length < 8) 
{
window.alert("Veuillez détailler votre recherche !");
return false;
}
if (document.cv.experience.value.length < 8) 
{
window.alert("Veuillez détailler votre expérience professionnelle !");
return false;
}
return true;
}

function validrss() {
if (document.feed.feedrss.value.length < 20) 
{
window.alert("Veuillez entrer l\'adresse du fichier rss !");
return false;
}
return true;
}

function ChangeUrl(formulaire)
{
if (formulaire.ListeUrl.selectedIndex != 0)
{
location.href = formulaire.ListeUrl.options[formulaire.ListeUrl.selectedIndex].value;
}
else 
{
alert('Veuillez choisir une catégorie.');
}
}
function lienbrise(page) {
window.open(page,'pop','left=10,top=10,width=450,height=250,toolbar=false,scrollbars=false');	
}

function twMultiRech(_chaine,_type) {
// Script gatuit des Trucsweb.com
if (_type[0].checked) {
// L'action par défaut
// return false; mais il l'est par défaut!
}
if (_type[1].checked) {
// Le moteur #1 - Google locale

var sUrl = 'http://www.l-internet-facile.com/resultat-google.php?cx=partner-pub-9799665580878608:1nxfpl-slxe&cof=FORID:10&ie=ISO-8859-1&q='+ _chaine + '&sa=Rechercher#962';
window.location = sUrl
return false;
}
}

var IB=new Object;
var posX=0;posY=0;
var xOffset=-10;yOffset=-100;
function AffBulle(texte) {
  contenu="<table border=0 cellpadding=0 cellspacing=1 bgcolor='"+IB.ColContour+"'><tr><td><table border=0 cellpadding=2 cellspacing=0 bgcolor='"+IB.ColFond+"'><tr><td><span style='font-family:verdana;color:"+IB.ColTexte+";font-size:10px;'><b>"+texte+"</b></span></td></tr></table></td></tr></table>";
  var finalPosX=posX-xOffset;
  if (finalPosX<0) finalPosX=0;
  if (document.layers) {
    document.layers["bulle"].document.write(contenu);
    document.layers["bulle"].document.close();
    document.layers["bulle"].top=posY+yOffset;
    document.layers["bulle"].left=finalPosX;
    document.layers["bulle"].visibility="show";}
  if (document.all) {
    bulle.innerHTML=contenu;
    document.all["bulle"].style.top=posY+yOffset;
    document.all["bulle"].style.left=finalPosX;//f.x-xOffset;
    document.all["bulle"].style.visibility="visible";
  }else if (document.getElementById) {
    document.getElementById("bulle").innerHTML=contenu;
    document.getElementById("bulle").style.top=posY+yOffset;
    document.getElementById("bulle").style.left=finalPosX;
    document.getElementById("bulle").style.visibility="visible";
  }
}
function getMousePos(e) {
  if (document.all) {
  posX=event.x+document.body.scrollLeft;
  posY=event.y+document.body.scrollTop;
  }
  else {
  posX=e.pageX;
  posY=e.pageY; 
  }}
function HideBulle() {
	if (document.layers) {document.layers["bulle"].visibility="hide";}
	if (document.all) {document.all["bulle"].style.visibility="hidden";}
	else if (document.getElementById){document.getElementById("bulle").style.visibility="hidden";}
}

function InitBulle(ColTexte,ColFond,ColContour,NbPixel) {
	IB.ColTexte=ColTexte;IB.ColFond=ColFond;IB.ColContour=ColContour;IB.NbPixel=NbPixel;
	if (document.layers) {
		window.captureEvents(Event.MOUSEMOVE);window.onMouseMove=getMousePos;
		document.write("<LAYER name='bulle' top=0 left=0 visibility='hide'></LAYER>");
	}
	if (document.all) {
		document.write("<DIV id='bulle' style='position:absolute;top:0;left:0;visibility:hidden'></DIV>");
		document.onmousemove=getMousePos;
	}else if (document.getElementById) {
	        document.onmousemove=getMousePos;
	        document.write("<DIV id='bulle' style='position:absolute;top:0;left:0;visibility:hidden'></DIV>");
	}

}

// Gestion de textes optionnels 

function toggle(i,j) { 

var d = document.getElementById(j); 

if (d.style.display == "none") { 

// Déplier 

d.style.display = "block"; 

i.src = "im/moins.gif"; 

} 

else { 

// Plier 

d.style.display = "none"; 

i.src = "im/plus.gif"; 

} 

} 

function validlogin() {
    if (document.trans_login.mel.value.length < 5) {
	    window.alert("Veuillez entrer votre E-mail.");
		return false;
	}
    if (document.trans_login.pass.value.length < 5) {
	    window.alert("Veuillez entrer votre passe.");
		return false;
	}

	return true;
}
var menu_defile;// l'element a deplacer 
var  psinit = 0;//position verticale de départ 
var pscrnt = psinit;
       function texteDefile() { 
   if (!menu_defile) 
menu_defile = document.getElementById('menu_defile'); 
   if (menu_defile) { 
      if(pscrnt < ( - menu_defile.offsetHeight) ){ 
          pscrnt = psinit;

                } else { 
         pscrnt+= -1; // pixel par deplacement 
      } 
      menu_defile.style.top = pscrnt+"px"; 
   } 
} 
var timer = setInterval("texteDefile()", 50);//délai de deplacement

function hidestatus(){
window.status=''
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus



