function leapto(form) {
var uid = new Date(); 
var myindex=form.dest.selectedIndex; 
str = new String(form.dest.options[myindex].value); 
strarray = str.split(/\,/); 

if (strarray[0] == "frame") 
parent.cadrePrincipal.location.href = strarray[1];
else if(strarray[0] == "target") 
parent.location.href = strarray[1];
else 
window.open(strarray[1], uid, "toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0"); 
myindex = 0; 
}

function leapto2(form) {
var uid = new Date(); 
var myindex=form.dest.selectedIndex; 
str = new String(form.dest.options[myindex].value); 
strarray = str.split(/\,/); 

if (strarray[0] == "frame") 
parent.cadrePrincipal.location.href = strarray[1];
else if(strarray[0] == "target") 
parent.location.href = strarray[1];
else 
window.open(strarray[1], uid, "toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0"); 
myindex = 0; 
}



var da = (document.all) ? 1 : 0;
var pr = (window.print) ? 1 : 0;
var mac = (navigator.userAgent.indexOf("Mac") != -1); 

function printPage(frame, arg) {
  if (frame == window) {
    printThis();
  } else {
    link = arg; // a global variable 
    printFrame(frame);
  }
  return false;
}

function printThis() {
  if (pr) { // NS4, IE5
    window.print();
  } else if (da && !mac) { // IE4 (Windows)
    vbPrintPage();
  } else { // other browsers
    alert("Sorry, your browser doesn't support this feature.");
  }
}

function printFrame(frame) {
  if (pr && da) { // IE5
    frame.focus();
    window.print();
    link.focus();
  } else if (pr) { // NS4
    frame.print();
  } else if (da && !mac) { // IE4 (Windows)
    frame.focus();
    setTimeout("vbPrintPage(); link.focus();", 100);
  } else { // other browsers
    alert("Sorry, your browser doesn't support this feature.");
  }
}

if (da && !pr && !mac) with (document) {
  writeln('<OBJECT ID="WB" WIDTH="0" HEIGHT="0" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>');
  writeln('<' + 'SCRIPT LANGUAGE="VBScript">');
  writeln('Sub window_onunload');
  writeln('  On Error Resume Next');
  writeln('  Set WB = nothing');
  writeln('End Sub');
  writeln('Sub vbPrintPage');
  writeln('  OLECMDID_PRINT = 6');
  writeln('  OLECMDEXECOPT_DONTPROMPTUSER = 2');
  writeln('  OLECMDEXECOPT_PROMPTUSER = 1');
  writeln('  On Error Resume Next');
  writeln('  WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER');
  writeln('End Sub');
  writeln('<' + '/SCRIPT>');
}












function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

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_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];}
}




var NSdyn = false;

if (parseInt(navigator.appVersion) >= 4) {
   if (navigator.appName == "Netscape") {
        NSdyn = true;
   } 
}

af1= new affichette("<a class='textGold' href='../goesTo/goesTo.html' target='_top'>SVA goes to international</a><br /><a class='textGold' href='../team/team.html' target='_top'>A dedicated team</a><br /><a class='textGold' href='../coworld/coworld.html' target='_top'>SVA Coworld</a>",200,45,"lavender","gold");
af2= new affichette("<a class='textGold' href='../whatsnew/veille.html' target='_top'>Veille Internationale</a><br /><a class='textGold' href='../catalogue/catalogueSVA.html' target='_top'>SVA Catalog Consultation</a><br /><a class='textGold' href='../catalogue/catalogueSVAadmin.php' target='_top'>SVA Catalog Management</a><br /><a class='textGold' href='../event/events.html' target='_top'>Events</a>",200,45,"lavender","gold");
af3= new affichette("<a class='textGold' href='../svaSources/reporting/cadreReportingVisiteur.php' target='_top'>Business Data Consultation</a><br /><a class='textGold' href='../svaSources/reporting/reportingAdmin.php' target='_top'>Business Data Management</a><br /><a class='textGold' href='../newspaper/newspaper.html' target='_top'>SVA International Newspaper</a><br /><a class='textGold' href='../successStory/successStories.html' target='_top'>Success Stories</a>",200,45,"lavender","gold");
af4= new affichette("<a class='textGold' href='../workAdvice/workAdvices.html' target='_top'>Work Advices</a><br /><a class='textGold' href='../legal/legal.html' target='_top'>Legal Assistance</a>",200,45,"lavender","gold");

af5= new affichette("<a class='textGold' href='../franceTelecom/ftOrg.html' target='_top'>France Telecom Organisation</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class='textGold' href='../franceTelecom/ftInfos.html' target='_top'>France Telecom information</a>",550,15,"darkmagenta","gold");
af6= new affichette("<a class='textGold' href='../ftRd/ftrdOrg.html' target='_top'>France Telecom R&D Organisation</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class='textGold' href='../ftRd/ftrdInfos.html' target='_top'>France Telecom R&D information</a>",550,15,"darkmagenta","gold");
af7= new affichette("<a class='textGold' href='../before/declare.html' target='_top'>Declare your Mission</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class='textGold' href='../before/find.html' target='_top'>Find your informations</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class='textGold' href='../before/practical.html' target='_top'>General Advices</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class='textGold' href='../before/travelbook.html' target='_top'>Your Travel book</a>",550,15,"darkmagenta","gold");
af8= new affichette("<a class='textGold' href='../back/yourComment.html' target='_top'>Your comments</a>",350,15,"darkmagenta","gold");
af9= new affichette("<a class='textGold' href='../filiale/affiliate.html' target='_top'>by affiliates</a>",350,15,"darkmagenta","gold");

function affichette(texte,largeur,hauteur,coulfond,coultexte) {
   this.texte=texte;
   this.largeur=largeur;
   this.hauteur=hauteur;
   this.coultexte=coultexte;
   this.coulfond=coulfond;
   this.creer=creer;
   this.montrer=montrer;
   this.placer=placer;
   this.cacher=cacher;
}

function placer(e) {
   if (NSdyn) {
      sourisX=e.pageX;
	  sourisY=e.pageY;
	  haut= sourisY - this.hauteur - 10;
	  if (haut < 0) {haut=0}
//	  if ((haut + this.hauteur)>window.innerHeight) {haut=window.innerHeight - this.hauteur}	  
          gauche = sourisX + 10;
	  if ((gauche + this.largeur)>window.innerWidth) {gauche = sourisX - this.largeur - 10}
	  document.affichette.top= haut;
	  document.affichette.left= gauche;
   } else {
      sourisX=event.offsetX;
	  sourisY=event.offsetY;
	  haut= sourisY - this.hauteur - 10;
	  if (haut < 0) {haut=0}
	  gauche = sourisX + 10;
	  if ((gauche + this.largeur)>document.body.clientWidth) {gauche = sourisX - this.largeur - 10}
      document.all.affichette.style.pixelLeft = gauche;
	  document.all.affichette.style.pixelTop = haut;
   }
}

function creer() {
  var contenu = "<table width='" + this.largeur +"' height='" + this.hauteur + "' border='0'";
  contenu += "cellpadding='7'>";
  contenu += "<tr><td bgcolor='" + this.coulfond + "' style='color: " + this.coultexte + "' align='center' ";
  contenu += "valign='middle'> " + this.texte + "</td></tr></table>";
  if (NSdyn) {
     document.affichette.document.open();
	 document.affichette.document.write(contenu);
	 document.affichette.document.close();
  } else {
     document.all.affichette.innerHTML=contenu;
  }
}

function montrer(e) {
  this.creer();
  this.placer(e);
  if (NSdyn) {
      document.affichette.visibility="show";
	  document.captureEvents(Event.MOUSEUP);
	  document.onmouseup=cacher;
  } else {
      document.all.affichette.style.visibility="visible";
	  document.onmouseup=cacher;
  }
}

function cacher() {
  if (NSdyn) {
      document.affichette.visibility="hide";
  } else {
      document.all.affichette.style.visibility="hidden";
  }
}

function surfto(form) {
  var myindex=form.affiliate.selectedIndex
	if (form.affiliate.options[myindex].value !="0"){
	  location=form.affiliate.options[myindex].value;
	}
}


 
  
    function EnAvant() {
    
      idx = document.MenuForm.Repartiteur.selectedIndex;
 
      location.href = document.MenuForm.Repartiteur.options [idx].value;
			window.initialize;
    }
  
	    function EnAvant2() {
      idx = document.MenuForm2.Repartiteur2.selectedIndex;
      
      location.href = document.MenuForm2.Repartiteur2.options [idx].value;
    }

		  function EnAvant3 () {
    
      idx = document.MenuForm3.Repartiteur3.selectedIndex;
 
      location.href = document.MenuForm3.Repartiteur3.options [idx].value;
			window.initialize;
    }	
	
      function EnAvant4 () {
    
      idx = document.MenuForm4.Repartiteur4.selectedIndex;
 
      location.href = document.MenuForm4.Repartiteur4.options [idx].value;
			window.initialize;
    }
		
		
function leapto(form) {
var uid = new Date(); 
var myindex=form.dest.selectedIndex; 
str = new String(form.dest.options[myindex].value); 
strarray = str.split(/\,/); 

if (strarray[0] == "frame") 
parent.cadrePrincipal.location.href = strarray[1];
else if(strarray[0] == "target") 
parent.location.href = strarray[1];
else 
window.open(strarray[1], uid, "toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0"); 
myindex = 0; 
}

function leapto2(form) {
var uid = new Date(); 
var myindex=form.dest.selectedIndex; 
str = new String(form.dest.options[myindex].value); 
strarray = str.split(/\,/); 

if (strarray[0] == "frame") 
parent.cadrePrincipal.location.href = strarray[1];
else if(strarray[0] == "target") 
parent.location.href = strarray[1];
else 
window.open(strarray[1], uid, "toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0"); 
myindex = 0; 
}




function setVariables() {
if (navigator.appName == "Netscape") {
v=".top=";
dS="document.";
sD="";
y="window.pageYOffset";
}
else {
v=".pixelTop=";
dS="";
sD=".style";
y="document.body.scrollTop";
}
}
function checkLocation() {
object="object1";
yy=eval(y);
eval(dS+object+sD+v+yy);
setTimeout("checkLocation()",10);
}




var navIE=true;


// fonction différencie navigateurs

function choixNav(){
 if (navigator.appName=="Netscape") {
 navIE=false;
 } else {
 navIE=true;
 }
}




