// Files and directory structures
//document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.cormann.net/css2/styles.css\">");

var aleaImgDir = "http://www.cormann.net/images/visu_alea/";

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



// openpageson
var Next='';
var browser = navigator.appName;
var openPopup = 0;

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

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

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

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



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

// openpageimage
var Next='';
var browser = navigator.appName;
var openPopup = 0;

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

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

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

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



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


// openpageac
var Next='';
var browser = navigator.appName;
var openPopup = 0;

var adresse;
function ac(adresse)
{		 
	  popup = window.open('', 'fiche', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=520,height=640');
      popup.location.href = adresse;
      popup.focus();
      openPopup = 1;


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



// openpagedetails
var Next='';
var browser = navigator.appName;
var openPopup = 0;

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

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


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



// openpageaide
var Next='';
var browser = navigator.appName;
var openPopup = 0;

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

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

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

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



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





// openhome
var Next='';
var browser = navigator.appName;
var openPopup = 0;

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

else
      {		 

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

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

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

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

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

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



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


//position window image
var hauteur=(500);
var largeur=(50);

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


//position window son
var hauteur=(500);
var largeur=(500);

function sonwin()
{
self.moveTo(10,(screen.availHeight/2)-(hauteur/2));
}


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

var imagenumber = 5 ;
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"
var image = images[rand1]
// -- End Hiding Here -->