// Files and directory structures
//var base = "http://web502.batilab.com/";
//var cssDir = "http://web502.batilab.com/css/";
//var aleaImgDir = "http://www.astrolab.net/3d/images/visu_alea/";
var base = "http://www.troisiemebureau.com/";
var cssDir = "http://www.troisiemebureau.com/css/";
var aleaImgDir = "http://www.troisiemebureau.com/images/visu_alea/";

  ChooseStyleSheet();



function ChooseStyleSheet() {

  document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.troisiemebureau.com/css/style.css\">");
  return true;
}


// *********************************************************************
//  open windows FUNCTIONS
// *********************************************************************



// open page plan cdna
var Next='';
var browser = navigator.appName;
var openPopup = 0;

var adresse;
function plan_cdna(adresse)
{		 
if (browser.indexOf("Microsoft") !=-1)
      {		 
		  popup = window.open('', 'plan', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=580,height=550');
        popup.location.href =  adresse;
        popup.focus();
        openPopup = 1;
        }

if (browser.indexOf("Netscape") !=-1)
      {		 

        popup = window.open('', 'plan', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width=580,height=550');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }
        
else
	  {		 

        popup = window.open('', 'plan', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width=580,height=550');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }



}
function NullPopup()
{
        if(openPopup >=1)
        {
                popup.close();
        }
}



// open page texte
var Next='';
var browser = navigator.appName;
var openPopup = 0;

var adresse;
function texte(adresse)
{		 
if (browser.indexOf("Microsoft") !=-1)
      {		 
		  popup = window.open('', 'texte', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=580,height=500');

        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }

if (browser.indexOf("Netscape") !=-1)
      {		 

        popup = window.open('', 'texte', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=580,height=500');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }
        
else
	  {		 

        popup = window.open('', 'texte', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=580,height=500');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }



}
function NullPopup()
{
        if(openPopup >=1)
        {
                popup.close();
        }
}
// open page texte2
var Next='';
var browser = navigator.appName;
var openPopup = 0;

var adresse;
function texte2(adresse)
{		 
if (browser.indexOf("Microsoft") !=-1)
      {		 
		  popup = window.open('', 'texte', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=580,height=500');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }

if (browser.indexOf("Netscape") !=-1)
      {		 

        popup = window.open('', 'texte', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=580,height=500');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }
        
else
	  {		 

        popup = window.open('', 'texte', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=580,height=500');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }



}
function NullPopup()
{
        if(openPopup >=1)
        {
                popup.close();
        }
}

// open page aide
var Next='';
var browser = navigator.appName;
var openPopup = 0;

var adresse;
function aide(adresse)
{		 
if (browser.indexOf("Microsoft") !=-1)
      {		 
		  popup = window.open('', 'texte', 'toolbar=no,location=no,directories=yes,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=300');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }

if (browser.indexOf("Netscape") !=-1)
      {		 

        popup = window.open('', 'texte', 'toolbar=no,location=no,directories=yes,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=300');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }
        
else
	  {		 

        popup = window.open('', 'texte', 'toolbar=no,location=no,directories=yes,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=300');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }



}
function NullPopup()
{
        if(openPopup >=1)
        {
                popup.close();
        }
}



// open page photo
var Next='';
var browser = navigator.appName;
var openPopup = 0;

var adresse;
function photos(adresse)
{		 
if (browser.indexOf("Microsoft") !=-1)
      {		 
		  popup = window.open('', 'texte', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=750,height=580');

        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }

if (browser.indexOf("Netscape") !=-1)
      {		 

        popup = window.open('', 'texte', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=750,height=580');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }
        
else
	  {		 

        popup = window.open('', 'texte', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=750,height=580');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }



}
function NullPopup()
{
        if(openPopup >=1)
        {
                popup.close();
        }
}
// *********************************************************************
//  open windowsANIME
// *********************************************************************



// open page anime
var Next='';
var browser = navigator.appName;
var openPopup = 0;

var adresse;
function openanime(adresse)
{		 
if (browser.indexOf("Microsoft") !=-1)
      {		 
		  popup = window.open('', 'extrais', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=430,height=310');
        popup.location.href = base + adresse;
        popup.focus();
        openPopup = 1;
        }

if (browser.indexOf("Netscape") !=-1)
      {		 

        popup = window.open('', 'extrais', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=450,height=350');
        popup.location.href = base + adresse;
        popup.focus();
        openPopup = 1;
        }
        
else
	  {		 

        popup = window.open('', 'extrais', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=450,height=350');
        popup.location.href = base + adresse;
        popup.focus();
        openPopup = 1;
        }



}
function NullPopup()
{
        if(openPopup >=1)
        {
                popup.close();
        }
}


// *************************************************************
//  POSITION DE FENETRE
// *************************************************************

//position page plan
var hauteur=(580);
var largeur=(600);

function imagewin()
{
self.moveTo((screen.availWidth/2)-(largeur/2),(screen.availHeight/2)-(hauteur/2));
}


// *************************************************************
//  FERMETURE DE FENETRE
// *************************************************************
function ferme()
{
window.close()
}


// *************************************************************
//  IMAGE ALEATOIRE
// *************************************************************
// Copyright © 1999 Doug Popeney
// Created by Doug Popeney (easyjava@easyjavascipt.com)
// JavaScript Made Easy!! - http://www.easyjavascript.com

var imagenumber = 6 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
images = new Array
images[1] = aleaImgDir + "1.gif"
images[2] = aleaImgDir + "2.gif"
images[3] = aleaImgDir + "3.gif"
images[4] = aleaImgDir + "4.gif"
images[5] = aleaImgDir + "5.gif"
images[6] = aleaImgDir + "6.gif"
images[7] = aleaImgDir + "7.gif"

var image = images[rand1]
// -- End Hiding Here -->

// *************************************************************
// EURO
// *************************************************************

var euro='6.55957'