

/* browser detection routine */
/*This script copyright 1997 Project Cool, Inc.
  It may be copied and used in your own websites so long as this notice remains
  intact. Created by Glenn Davis of Project Cool. 
  
  This code reads various properties of the navigator object to determine the
  make and model of the user client. The point is to determine if the browser
  supports 3rd and 4th generation capabilities such as dynamic html and style
  sheet support. If the browser meets the test criteria, it sets the variable
  "browser" to true so that other functions can test against it as in:
     if(browser) {...}.
  Also, the code sets flags for IE4, Netscape4 and Mac for testing in regard to 
  browser specific capabilities as in:
     if(ns4) {...}

  This has been hardly modified by David Affagard - Le Point Com
  This contains optimization for Netscape 6 and Explorer 5, and initializes
  variables used in further scripts rolloverLayer.js and rolloverRegion.js
*/
  
browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )));
                        
ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (navigator.appVersion.indexOf("4.") != -1));
       
ie5 = ((navigator.appName == "Microsoft Internet Explorer") && (navigator.appVersion.indexOf("5.") != -1));

ie55 = ((navigator.appName == "Microsoft Internet Explorer") && (navigator.appVersion.indexOf("5.5") != -1));

ie6 = ((navigator.appName == "Microsoft Internet Explorer") && (navigator.appVersion.indexOf("6.") != -1));

           
ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4 ));

ns5 = ((navigator.appName == "Gecko") && (parseInt(navigator.appVersion) > 4 ));

ns6 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) > 4 ));

//

mac = (navigator.appVersion.indexOf("Macintosh") != -1);

win = (navigator.appVersion.indexOf("Windows") != -1);

navigOK = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )));
       
var xflag = navigOK;


if (ns6)
	{
		layerVis0			= "hidden";
		layerVis1			= "visible";
		//layerStyleRef		= "layer.style."
		startLayerRef		= 'document.getElementById("';
		endLayerRef			= '")';
		styleSwitch			= '.style';
		startImageSwitch	= '.document.images["';
		endImageSwitch		= '"].src';		
		topSwitch			= '.top';
		leftSwitch			= '.left';
		topOffset			= 0;
		x					= "e.pageX";
		y					= "e.pageY";
		var navig			= "ns";
	} else if (ns5)
	{
		layerVis0			= "hidden";
		layerVis1			= "visible";
		//layerStyleRef		= "layer.style."
		startLayerRef		= 'document.getElementById("';
		endLayerRef			= '")';
		styleSwitch			= '.style';
		startImageSwitch	= '.document.images["';
		endImageSwitch		= '"].src';		
		topSwitch			= '.top';
		leftSwitch			= '.left';
		topOffset			= 0;
		x					= "e.pageX";
		y					= "e.pageY";
		var navig			= "ns";
	} else if (ns4)
	{
		layerVis0 			= "hide";
		layerVis1 			= "show";
		//layerStyleRef		= "layer.";
		startLayerRef		= 'document.layers["';
		endLayerRef			= '"]';
		styleSwitch			= '';
		startImageSwitch	= '.document.images["';
		endImageSwitch		= '"].src';
		topSwitch			= '.top';
		leftSwitch			= '.left';
		topOffset			= 0;
		x					= "e.pageX";
		y					= "e.pageY";
		var navig			= "ns";
	}

if (ie6)
	{	
		layerVis0			= "hidden";
		layerVis1			= "visible";
		//layerStyleRef		= 'document.all.';
		startLayerRef		= 'document.getElementById("';
		endLayerRef			= '")';
		styleSwitch			= '.style';
		startImageSwitch	= '.document.images["';
		endImageSwitch		= '"].src';
		topSwitch			= '.top';
		leftSwitch			= '.left';
		topOffset			= 0;
		x					= "event.x";
		y					= "event.y";
		var navig			= "ie";
	
	} else if (ie5 && mac)
	{
		layerVis0 			= "hidden";
		layerVis1			= "visible";
		//layerStyleRef		= "layer.style.";
		startLayerRef		= 'document.getElementById("';		
		endLayerRef			= '")';
		styleSwitch			= '.style';
		startImageSwitch	= '.document.images["';
		endImageSwitch		= '"].src';
		topSwitch			= '.top';
		leftSwitch			= '.left';
		topOffset			= 0;
		x					= "event.x";
		y					= "event.y";
		var navig			= "ie";
	} else if (ie5 && win)
	{	
		layerVis0			= "hidden";
		layerVis1			= "visible";
		//layerStyleRef		= 'document.all.';
		startLayerRef		= 'document.getElementById("';
		endLayerRef			= '")';
		styleSwitch			= '.style';
		startImageSwitch	= '.document.images["';
		endImageSwitch		= '"].src';
		topSwitch			= '.top';
		leftSwitch			= '.left';
		topOffset			= 0;
		x					= "event.x";
		y					= "event.y";
		var navig			= "ie";
	} else if (ie4)
	{
		layerVis0 			= "hidden";
		layerVis1 			= "visible";
		//layerStyleRef		= "layer.style.";
		startLayerRef		= 'document.all.';
		endLayerRef			= '';
		styleSwitch			= ".style";
		//styleSwitch			= "";
		startImageSwitch	= '.document.images["';
		endImageSwitch		= '"].src';
		topSwitch			= '.top';
		leftSwitch			= '.left';
		topOffset			= -88;
		x					= "event.x";
		y					= "event.y";
		var navig			= "ie";
	}
