<!--
///// Browser detection
os = ""; // Detect OS
if (navigator.appVersion.indexOf("Mac") != -1) {
	os = "mac";
} else if (navigator.appVersion.indexOf("Win") != -1){
	os = "win";
} else {
	os = "autre";
}

browsername = navigator.appName; // Detect Browser name
browserversion = "0"; // Detect Browser version
if (navigator.appVersion.indexOf("2.")!=-1) {browserversion="2"};
if (navigator.appVersion.indexOf("3.")!=-1) {browserversion="3"};
if (navigator.appVersion.indexOf("4.")!=-1) {browserversion="4"};
if (navigator.appVersion.indexOf("5.")!=-1) {browserversion="5"};
if (navigator.appVersion.indexOf("6.")!=-1) {browserversion="6"};

// // Detect Browser name, versiona and OS
if (browsername == "Netscape" && os == "mac"){ // NN Mac
	document.write('<LINK REL="stylesheet" HREF="http://www.conceptavanti.com/avanti_nnmac.css" TYPE="text/css">');	
}
else if (browsername == "Microsoft Internet Explorer" && os == "mac"){
	if (browserversion == "4") { //IE 4.x Mac
	document.write('<LINK REL="stylesheet" HREF="style_merepoule.css" TYPE="text/css">');
	} else { // IE 5.x (and earlier except 4.x) Mac 
	document.write('<LINK REL="stylesheet" HREF="style_merepoule.css" TYPE="text/css">');
	}
}
else { // all other 
	document.write('<LINK REL="stylesheet" HREF="style_merepoule.css" TYPE="text/css">');
}
///// End Browser detection

//  Source: Webmonkey Code Library (http://www.hotwired.com/webmonkey/javascript/code_library/) 
function WM_netscapeCssFix() {
  if (document.WM.WM_netscapeCssFix.initWindowWidth != window.innerWidth || document.WM.WM_netscapeCssFix.initWindowHeight != window.innerHeight) {
    document.location = document.location;
  }
}

function WM_netscapeCssFixCheckIn() {
  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
    if (typeof document.WM == 'undefined'){
      document.WM = new Object;
    }
    if (typeof document.WM.WM_scaleFont == 'undefined') {
      document.WM.WM_netscapeCssFix = new Object;
      document.WM.WM_netscapeCssFix.initWindowWidth = window.innerWidth;
      document.WM.WM_netscapeCssFix.initWindowHeight = window.innerHeight;
    }
    window.onresize = WM_netscapeCssFix;
  }
}

WM_netscapeCssFixCheckIn()

// Affiche les Inputs textes en fonction des navigateurs et des OS
function PutInput(width, name, value) {
// Width en Param == IE sur Win
if (width <= 10) {
var widthNNwin = width - 3;
var widthNNwinNew = width;
var widthNNMac = width + 4;
var widthNNMacNew = width + 1;
var widthIEMac = width + 4;
}

if (width > 10 && width <= 25) {
var widthNNwin = width - 10;
var widthNNwinNew = width;
var widthNNMac = width + 4;
var widthNNMacNew = width;
var widthIEMac = width + 4;
}

if (width > 25) {
var widthNNwin = width - 17;
var widthNNwinNew = width - 6;
var widthNNMac = width + 4;
var widthNNMacNew = width - 6;
var widthIEMac = width + 4;
}

if (navigator.appName.substring(0,8) == "Netscape" && navigator.appVersion.indexOf("Win") > 0 && (parseInt(navigator.appVersion) > 4)) document.write('<INPUT name="'+name+'" type="text" size="'+widthNNwinNew+'" value="'+value+'">');
else if (navigator.appName.substring(0,8) == "Netscape" && navigator.appVersion.indexOf("Win") > 0 ) document.write('<INPUT name="'+name+'" type="text" size="'+widthNNwin+'" value="'+value+'">');
else if (navigator.appName.substring(0,8) == "Netscape" && navigator.appVersion.indexOf("Mac") > 0 && (parseInt(navigator.appVersion) > 4)) document.write('<INPUT name="'+name+'" type="text" size="'+widthNNMacNew+'" value="'+value+'">');
else if (navigator.appName.substring(0,8) == "Netscape" && navigator.appVersion.indexOf("Mac") > 0 ) document.write('<INPUT name="'+name+'" type="text" size="'+widthNNMac+'" value="'+value+'">');
else if (navigator.appName.substring(0,9) == "Microsoft" && navigator.appVersion.indexOf("Win") > 0 ) document.write('<INPUT name="'+name+'" type="text" size="'+width+'" value="'+value+'">');
else if (navigator.appName.substring(0,9) == "Microsoft" && navigator.appVersion.indexOf("Mac") > 0 ) document.write('<INPUT name="'+name+'" type="text" size="'+widthIEMac+'" value="'+value+'">');
else document.write('<INPUT name="'+name+'" type="text" size="'+width+'" value="'+value+'">');
}

//////////    Script de Rollover sur images, nécéssiste la définiton de l'image de "flip" pres de l'image a "fliper"

// Array des rollovers
var Roll=new Array();

// pre-caches les images hover
function RollOver(on_url)
{	this.on        = new Image();
	this.on.src    = on_url;
}

// flip les images
function flip () {
	if(arguments.length==1) arguments[1]=arguments[0];
	for(i=0 ; i<arguments.length ; i+=2){
		temp = document.images[arguments[i]].src;
		document.images[arguments[i]].src  = Roll[arguments[i+1]].on.src;
		Roll[arguments[i+1]].on.src = temp;
	}
}

//-->

