// Initialisation des variables 

var pageID = "";

// Fonction d'identification du fureteur DYNAPI, modifiee
// Copyright (C) 1999 Dan Steinman
// http://www.dansteinman.com/dynapi/

function BrowserCheck() {
	var b = navigator.appName;
	if (b=="Netscape") {
		this.b = "ns";
	} else if (b=="Microsoft Internet Explorer") {
		this.b = "ie"
	} else {
		this.b = b
	}
	this.version = navigator.appVersion;
	this.v = parseInt(this.version);
	this.ns = (this.b=="ns" && this.v>=4) ? true : false ;
	this.ns4 = (this.b=="ns" && this.v==4) ? true : false ;
	this.ns5 = (this.b=="ns" && this.v==5) ? true : false ;
	this.ie = (this.b=="ie" && this.v>=4) ? true : false ;
	this.ie4 = (this.version.indexOf('MSIE 4')>0) ? true : false ;
	this.ie5 = (this.version.indexOf('MSIE 5')>0) ? true : false ;
	this.ow4 = (this.version.indexOf('OmniWeb')>0) ? true : false ;
}

is = new BrowserCheck();

// Fin de DYNAPI

// Fonctions Neomedia

function clikker(arg,URL) {
	if (pageID != arg) {
		document.location = URL;
	}
}

function InitMenuMarge() {
	if (!is.ns4 && pageID) {
		if (!(pageID == "sm" || pageID == "")) {
			var pageIDTronc = trouverSection(pageID);
			if (pageID.length != pageIDTronc.length) {
				var y = MM_findObj(pageID);
				y.className = "currentsub";
			}
		}
	}
}

function trouverSection(arg) {
	var RetourARG = (arg.indexOf("-") == -1) ? arg : arg.substring(0,arg.indexOf("-"));
	return RetourARG;
}


