
// *************************************************************
//  CLIENT_SIDE SNIFFER CODE
// *************************************************************
// convert all characters to lowercase to simplify testing 
var agt=navigator.userAgent.toLowerCase(); 

// *** BROWSER VERSION *** 
// Note: On IE5, these return 4, so use is_ie5up to detect IE5. 
var is_major = parseInt(navigator.appVersion); 
var is_minor = parseFloat(navigator.appVersion); 

// *** BROWSER TYPE *** 
var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) 
            && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) 
            && (agt.indexOf('webtv')==-1));
var is_nav4up = (is_nav && (is_major >= 4));
var is_ns5   = (is_nav && (is_major >=5));   
var is_ie   = (agt.indexOf("msie") != -1); 
var is_ie3  = (is_ie && (is_major < 4)); 
var is_ie4  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")==-1) && (agt.indexOf("msie 5.1")==-1));
var is_ie4up  = (is_ie  && (is_major >= 4));
var is_ie5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );  
var is_ie5up  = (is_ie  && !is_ie3 && !is_ie4);  

// *** PLATFORM ***
var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
var is_mac    = (agt.indexOf("mac")!=-1);
var is_sun   = (agt.indexOf("sunos")!=-1);
var is_irix  = (agt.indexOf("irix") !=-1);    // SGI
var is_hpux  = (agt.indexOf("hp-ux")!=-1);
var is_aix   = (agt.indexOf("aix") !=-1);      // IBM
var is_linux = (agt.indexOf("inux")!=-1);
var is_sco   = (agt.indexOf("sco")!=-1) || (agt.indexOf("unix_sv")!=-1);
var is_unixware = (agt.indexOf("unix_system_v")!=-1); 
var is_mpras    = (agt.indexOf("ncr")!=-1); 
var is_reliant  = (agt.indexOf("reliantunix")!=-1);
var is_dec   = ((agt.indexOf("dec")!=-1) || (agt.indexOf("osf1")!=-1) || 
       (agt.indexOf("dec_alpha")!=-1) || (agt.indexOf("alphaserver")!=-1) || 
       (agt.indexOf("ultrix")!=-1) || (agt.indexOf("alphastation")!=-1)); 
var is_sinix = (agt.indexOf("sinix")!=-1);
var is_freebsd = (agt.indexOf("freebsd")!=-1);
var is_bsd = (agt.indexOf("bsd")!=-1);
var is_unix  = ((agt.indexOf("x11")!=-1) || is_sun || is_irix || is_hpux || 
             is_sco ||is_unixware || is_mpras || is_reliant || 
             is_dec || is_sinix || is_aix || is_linux || is_bsd || is_freebsd);

// *********************************************************************
//  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=no,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=no,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=no,copyhistory=yes,width=320,height=420');
        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)
{		 
if (browser.indexOf("Microsoft") !=-1)
      {		 
		  popup = window.open('', 'texte', '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('', 'texte', '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('', 'texte', '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();
        }
}



// 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=yes,resizable=no,copyhistory=yes,width=400,height=440');
        popup.location.href = base + "aide/" + 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=yes,resizable=no,copyhistory=yes,width=420,height=420');
       popup.location.href = base + "aide/" + adresse;
        popup.focus();
        openPopup = 1;
        }
        
else
	  {		 

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



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



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

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

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

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

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



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



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

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

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

        popup = window.open('', 'multi', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=670,height=420');
       popup.location.href = base + "architectural/visite/" + adresse;
        popup.focus();
        openPopup = 1;
        }
        
else
	  {		 

        popup = window.open('', 'multi', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=yes,width=620,height=370');
        popup.location.href =   base + "architectural/visite/" + 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 = 'home/'+adresse+'.html';
        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 = 'home/'+adresse+'.html';
        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));
}



	function sendIt(fileName) 
	{      //If the selected file name isn't blank, send it to reader.      
	if (fileName != "") 
	{           parent.location.href=fileName     }   
	}





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

var euro='6.55957'


// openzoom et toutou
var Next='';
var browser = navigator.appName;
var openPopup = 0;

var adresse;
function references(adresse)
{		 
if (browser.indexOf("Microsoft") !=-1)
      {	
      if (is_mac) {	
            if (is_ie4) {	  
      popup = window.open('', 'zoomf', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=420,height=406');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }
        else {
      
      	 
		  popup = window.open('', 'zoomf', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=420,height=406');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }
        }
        else {
      
      	 
		  popup = window.open('', 'zoomf', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=420,height=406');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }
        }

else
      {		 

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

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



			function JOpenWn(Address,WnName,Options) { //v2.0

				window.open(Address,WnName,"left="+0+",top="+0+","+Options);

			}



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

var adresse;
function coton(adresse)
{		 
if (browser.indexOf("Microsoft") !=-1)
      {	
      if (is_mac) {	
            if (is_ie4) {	  
      popup = window.open('', 'website', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=520,height=260');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }
        else {
      
      	 
		  popup = window.open('', 'website', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=520,height=260');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }
        }
        else {
      
      	 
		  popup = window.open('', 'website', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=550,height=260');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }
        }

else
      {		 

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

}


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

var adresse;
function allo(adresse)
{		 
if (browser.indexOf("Microsoft") !=-1)
      {	
      if (is_mac) {	
            if (is_ie4) {	  
      popup = window.open('', 'website', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=420,height=220');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }
        else {
      
      	 
		  popup = window.open('', 'website', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=420,height=220');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }
        }
        else {
      
      	 
		  popup = window.open('', 'website', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=420,height=220');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }
        }

else
      {		 

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

}


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

var adresse;
function tarifs(adresse)
{		 
if (browser.indexOf("Microsoft") !=-1)
      {	
      if (is_mac) {	
            if (is_ie4) {	  
      popup = window.open('', 'website', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=720,height=482');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }
        else {
      
      	 
		  popup = window.open('', 'website', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=720,height=480');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }
        }
        else {
      
      	 
		  popup = window.open('', 'website', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=750,height=520');
        popup.location.href = adresse;
        popup.focus();
        openPopup = 1;
        }
        }

else
      {		 

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

}


function OpenWinba()
 {
  popup = window.open('', 'popfutaine', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=550,height=270');
        popup.location.href = 'popup/index.php';
        popup.focus();
        openPopup = 1;

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

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

else
      {		 

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

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