/*=======================================*
 * Programm: author.js                   *
 * Author  : Gallot Michel               *  
 * Date    : 30/01/2004                  *
 * Revision:                             *
 * Version : 1.0                         *
 * Comment : in case of bugs, send me    *
 *           a mail AT                   *
 *  michel_gallot@restode.cfwb.be        *
 *  Ministère de la Communauté française *
 *  Rue du Commerce, 68A                 *
 *  1000 Bruxelles                       *
 *  Tel: +32 (0)2 500 48 37              *
 *       +32 (0)2 500.48 38              *
 *  http://www.restode.cfwb.be           *   
 *=======================================*/
// Compatibilité  Windows Macintosh  NE4 NE6 NE7 IE5 IE55 IE6 OP5 OP6 OP7 NE4 NE6 NE7 IE4 IE5 
//----------------------------------------------------
//function SymError(){return true;};
//window.onerror = SymError;
//----------------------------------------------------
	var LM=null;


function Back(){history.back();};
function retour() { if (window.opener==null) {Back();return;} else 	window.close(); };
function preloadImages(){if (document.images){var arg = preloadImages.arguments;if ( (document.preloadArray==null) || (String(document.preloadArray)=="undefined") ) {document.preloadArray = new Array();};var w_i = document.preloadArray.length;dirImage=arg[0];for (var w_j=1; w_j<arg.length; w_j++){document.preloadArray[w_i] = new Image();document.preloadArray[w_i].id=arg[w_j]+"_1";document.preloadArray[w_i++].src =LM.dir+arg[w_j]+"1.gif";document.preloadArray[w_i] = new Image();document.preloadArray[w_i].id=arg[w_j]+"_2";document.preloadArray[w_i++].src =LM.dir+arg[w_j]+"2.gif";document.preloadArray[w_i] = new Image();document.preloadArray[w_i].id=arg[w_j]+"_3";document.preloadArray[w_i++].src =LM.dir+arg[w_j]+"3.gif";};};};
function swapImage(pLayer,pImg){window.document[pLayer].src=LM.dir+pImg;};
function showLayer(pLayer,pMode){var aLayer=eval(theLayer[pLayer]),aVis=((pMode) ? bro._SHOW : bro._HIDE);if (bro.isIE) {aLayer.style.visibility=aVis;} else {aLayer.visibility=aVis;};};
//----------------------------------------------------
function hex2(pNum){var rep="00"+pNum.toString(16);rep=rep.substr(rep.length-2,2);return rep;};
function hexa(pStr){var w_i=0,aRep="";for (w_i=0;w_i<pStr.length ;w_i++ ) aRep+=hex2(pStr.charCodeAt(w_i))+" ";	return aRep;};
function Max(a,b){return (a<b)? b:a;};
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function browser()
{
	browser.prototype.info=function()
	{	return 	 "<br> name:"+this.name+
					 "<br> agent:"+this.agt+
					 "<br> platform:"+this.platform+
					 "<br> nameTech:"+this.nameTech+
					 "<br> java:"+((this.java)? "On":"Off")+
					 "<br> ver:"+this.ver+
					 "<br> verMajor:"+this.verMajor+
					 "<br> verMinor:"+this.verMinor+
					 "<br> opera:"+this.op+
					 "<br> IE:"+this.ie+
					 "<br> NS:"+this.ns+
					 "<br> exclude:"+this.exclude+
					 "<br> title:"+document.title+
					 "<br> URL:"+document.URL+
					 "<br>";
	 };
	browser.prototype.quote=function(pStr) {return "'"+pStr+"'";};
	browser.prototype.maximize=function(){if (screen.availWidth> 832){window.moveTo(0,0); window.resizeTo(screen.availWidth,screen.availHeight);};};
	browser.prototype.See=function(pObj){var w_i,w_k=0,Txt=""; for(w_i in pObj){  w_k++;if (w_k>10) { w_k=0; alert(Txt);Txt="";};Txt+=w_i;Txt+="=";Txt+=pObj[w_i];Txt+="\n";};alert(Txt);};
	browser.prototype.SeeAll=function(pObj){var txt="",w_i,w_o;for (w_i in pObj){txt+=w_i+"[";try	{w_o=pObj[w_i];txt+=w_o;}	catch (e) {txt+='->Error('+getInfo(e)+')'};	txt+="]\t";};return txt;};
	browser.prototype.GetNumSelect=function(pId){var aChamp=this.GetIdForm(pId);return aChamp.selectedIndex;};

	browser.prototype.GetTxtErr=function (){var aTxt="";switch (this.errNum){ case this.errQuote: aTxt='Erreur de guillemets';break;case this.errNumeric: aTxt='Erreur de nombres';break;case this.errDate: aTxt='Erreur de dates';break;};return aTxt;};
	browser.prototype.GetName=function(pId){if (this.dom) {return document.getElementsByName(pId);};if (this.ms)  {return document.all[pId];};if (this.ns)  {return document[pId];};return null;};

	browser.prototype.GetId=function(pId){if (this.dom) {return document.getElementById(pId);};if (this.ms)  {return document.all[pId];};if (this.ns)  {return document[pId];};return null;};
	browser.prototype.GetIdForm=function(pId){var aChamp=this.GetId(pId);if (aChamp==null)	{aChamp=this.form[pId];};return aChamp;};
	browser.prototype.GetField=function(pId){var aChamp=this.GetIdForm(pId);return aChamp.value;};
	browser.prototype.PutField=function(pId,pVal){var aChamp=this.GetIdForm(pId);aChamp.value=pVal;return true;};
	browser.prototype.PutSelect=function(pId,pNum){var aChamp=this.GetIdForm(pId);aChamp.selectIndex=pNum;aChamp.options[pNum].selected=true;return true;};
	browser.prototype.PutChecked=function(pId,pVal){var aChamp=this.GetIdForm(pId);aChamp.checked=pVal;};
	browser.prototype.PutAllChecked=function(pId,pVal)	{var aChamp=this.GetName(pId);for (var w_i=0;w_i<aChamp.length;w_i++) aChamp[w_i].checked=pVal;};

	browser.prototype.GetChecked=function(pId){var aChamp=this.GetIdForm(pId);return aChamp.checked;};

	browser.prototype.YesNoPutCheckField=function(pId,pVal){var aChamp=this.GetIdForm(pId);aChamp.checked=((pVal=="O")?true:false);};
	browser.prototype.YesNoIsChecked=function(pId){var aChamp=this.GetIdForm(pId);return ((aChamp.checked)?"O":"N");};


	browser.prototype.PutArrayInSelect=function(pId,pArr){var aChamp=this.GetIdForm(pId);aChamp.options.length=0;for (var w_i=0;w_i<pArr.length;w_i++) aChamp.options[w_i]=new Option(pArr[w_i].nom,pArr[w_i].ref);};


/*
function IsChecked(pChamp){return bro.form[pChamp].checked;};
function MultiCheckField(pChamp,pNum,pVal){bro.form[pChamp][pNum].checked=pVal;return true;};
function MultiFieldIsChecked(pChamp,pNum){return bro.form[pChamp][pNum].checked;};
function GetMultiField(pChamp,pNum) {return bro.form[pChamp][pNum].value;};
*/

	browser.prototype.FieldGetLen=function(pId){var aChamp=this.GetIdForm(pId);return aChamp.length;};
	browser.prototype.GetValSelect=function(pId){var aChamp=this.GetIdForm(pId),w_z=aChamp.selectedIndex;return aChamp[w_z].value;};
	browser.prototype.PutFocus=function(pId) {var aChamp=this.GetIdForm(pId);aChamp.focus();};
	browser.prototype.SansAccent=function (pStr){if (this.IsBlank(pStr)) {return "";};var wStr=pStr.toLowerCase(),wRep="",wChar=' ';for(var w_i=0;w_i<pStr.length;w_i++){wChar=pStr.charAt(w_i);switch (wChar){case 'à':	wChar='a';break;case 'â':	wChar='a';break;case 'ä':	wChar='a';break;case 'ç':	wChar='c';break;case 'é':	wChar='e';break;case 'è':	wChar='e';break;case 'ê':	wChar='e';break;case 'ë':	wChar='e';break;case 'î':	wChar='i';break;case 'ï':	wChar='i';break;case 'ô':	wChar='O';break;case 'ö':	wChar='O';break;case 'ù':	wChar='U';break;case 'û':	wChar='U';break;case 'ü':	wChar='U';break;};wRep+=wChar;};return wRep;};
	browser.prototype.IsBlank=function(pStr){var w_i;for(w_i=0;w_i<pStr.length;w_i++){if (pStr.charAt(w_i)!=' ') return false;};return true;};
	browser.prototype.HasQuote=function (pStr){if (this.IsBlank(pStr)) {return false;}; var wRep=(pStr.indexOf("'")!==-1);return wRep;};
	browser.prototype.FieldNullErr=function (){this.errChamp="";this.errNum=0;};
	browser.prototype.FieldHasQuote=function (pId){this.FieldNullErr();var aStr=this.GetField(pId);if (this.HasQuote(aStr)) {this.errChamp=pId;this.errNum=this.errQuote;return true;};return false;};
	browser.prototype.UpperSansAccent=function (pStr){var wRep=this.SansAccent(pStr);return wRep.toUpperCase();};
	browser.prototype.LowerSansAccent=function (pStr){var wRep=this.SansAccent(pStr);return wRep.toLowerCase();};
	browser.prototype.Ltrim=function(pStr)	{if (this.IsBlank(pStr)) {return "";};if (pStr.charAt(0)!=' ') {return pStr;};var w_i=1; while(pStr.substr(w_i,1)==" ") {w_i++;};return pStr.substring(w_i,pStr.length);};
	browser.prototype.Rtrim=function(pStr)	{if (this.IsBlank(pStr)) {return "";};var l=pStr.length;if (pStr.charAt(l-1)!=' ') {return pStr;};var w_i=l-1; while(pStr.charAt(w_i)==' ') {w_i--;};return pStr.substring(0, w_i+1);};
	browser.prototype.Alltrim=function(pStr){if (this.IsBlank(pStr)) {return "";};return this.Ltrim(this.Rtrim(pStr));};
	browser.prototype.FieldNoBlank=function (pId){this.PutField(pId,this.Alltrim(this.GetField(pId)));};
	browser.prototype.IsInteger=function(pStr){if (this.IsBlank(pStr)) {return true;};var c,aStr=this.Alltrim(pStr);for (var w_i=0;w_i<aStr.length;w_i++){c=aStr.charAt(w_i); if (c <'0' || c>'9') return false;};return true;};
	browser.prototype.FieldIsInteger=function(pId){this.FieldNullErr();var aStr=this.GetField(pId);if (this.IsBlank(aStr)) {return true;};if (!this.IsInteger(aStr)) {this.errChamp=pId;this.errNum=this.errNumeric;return false;};return true;};
	browser.prototype.ShowCR=function(pDebug)
	{
		if (!pDebug) { return;}
		var aTxt =""+
					 ((pDebug.indexOf('-')!=-1)? "<hr>" :"")+
					 "<div align='left'>"+
					 ((pDebug.indexOf('r')!=-1)? "<A style=\"left: 5; pixelLeft: 5; width: 70px; height: 23px; z-index: 1; border: 1px none #000000; visibility:visible;\" "+((this.ie) ? " onClick=\"Back();\" " : " HREF=\"JavaScript:Back();\"")+" onMouseOver=\"swapImage('___RET___','ret2.gif');\" onMouseOut =\"swapImage('___RET___','ret1.gif');\" onMouseDown=\"swapImage('___RET___','ret3.gif');\" onMouseUp  =\"swapImage('___RET___','ret1.gif');\" ><IMG name=\"___RET___\" SRC='"+LM.dir+"ret1.gif' border=0 width=70 height=23 align=absmiddle></A>" : "" )+
				    ((pDebug.indexOf('c')!=-1)? "<font size='1'>"+this.copyRightTxt+"</font>" : "" )+
					 "</div>"+
					((pDebug.indexOf('?')!=-1)? this.info() :"");
		document.open();document.write(aTxt);document.close();
	};
//-----------------------------------------------------------------------------------
	this.errChamp="";
	this.errNum=0;

	this.errQuote=1;
	this.errNumeric=2;
	this.errDate=3;

	this.build				="0";
   this.name				=navigator.appName;
	this.copyRightTxt		="";
	this.platform			=navigator.platform ;
	this.nameTech			=navigator.appCodeName;
	this.java				=(navigator.javaEnabled())? true:false;
	this.image		="";
	this.doc		=((this.ie) ? window.document.all :window.document.forms.ASK);
	this.layer	=((this.ie) ? window.document.all :window.document.layers);
	this.form	=((this.ie) ? window.document.all :window.document.forms.ASK);
	this._HIDE	=((this.ie) ? "hidden"  :"hide");
	this._SHOW	=((this.ie) ? "visible" :"show");
//	window.returnValue=this.Ret;
// a revoir ----------------
	this.width	=screen.availWidth;
	this.height	=screen.availHeight;
//-----------------------------------------------------------------------------------
		this.exclude=true;
		this.richText=false;

		this.dom=false;
		this.ns=false; //		this.ns =(typeof document.layers!="undefined") ;//(document.layers)? true:false;//uniquement en ns4 //this.ns =(document.layers && !this.op &&(this.ver>=4) )? true:false;
		this.ms =(typeof document.all!="undefined");

		this.win=false;	// is in windows operating system
		this.lin=true;
		this.mac=false;

		this.ie=false;//internet explorer
		this.ie4=false;
		this.ie5=false;
		this.ie6=false;
		this.op5=false;//opéra browser
		this.op6=false;
		this.op7=false;
		this.ns4=false;//netscape browser
		this.ns5=false;
		this.ns6=false;
		this.ns7=false;
		this.mz7=false;// mozilla browser
		this.ice=false;
		this.dcm=false;//document compatible mode
		this.kde=false;
		this.safari=false;
		this.gecko=false;
		this.konqueror=false;
		this.webtv=false;
		this.agt			=navigator.userAgent.toLowerCase();
		this.ver			=navigator.appVersion;
		this.verMajor	=parseInt(this.ver);
		this.verMinor	=parseFloat(this.ver)-this.verMajor;
		this.op=(window.opera)? true:false;
		this.dom=(typeof document.getElementById!="undefined"); //(document.getElementById)? true:false;



		if(this.agt.indexOf('win')!=-1){this.win=true;this.lin=false;}
		if(this.agt.indexOf('mac')!=-1){this.mac=true;this.lin=false;}
		if(this.agt.indexOf("gecko") != -1){this.gecko=true;};
		if(this.agt.indexOf("safari") != -1){this.safari=true;};
		if(this.agt.indexOf("konqueror") != -1){this.konqueror=true;};
		if(this.agt.indexOf("webtv") != -1){this.webtv=true;};

		if(typeof navigator.vendor!="undefined")
		{
			if (navigator.vendor=="KDE")
			{
				var splitKDE=this.agt.split("konqueror/");
				var aKDE=splitKDE[1].split("; ");
				var KDEn=parseFloat(aKDE[0]);if(KDEn>=2.2){this.ns=true;this.kde=true;this.ns6=true;this.exclude=false;};
			};
		};
		if(typeof navigator.__ice_version!="undefined"){this.exclude=false;this.ice=true;this.ie=true;this.ie4=true;}
		else if(this.webtv) {this.exclude=true;}
		else if(typeof window.opera!="undefined")
		{	this.exclude=false;
			if(this.agt.indexOf("opera/5")!=-1||this.agt.indexOf("opera 5")!=-1){this.op5=true;};
			if(this.agt.indexOf("opera/6")!=-1||this.agt.indexOf("opera 6")!=-1){this.op6=true;};
			if(this.agt.indexOf("opera/7")!=-1||this.agt.indexOf("opera 7")!=-1){this.op7=true;};
		}
		else if(typeof document.all!="undefined"&&!this.kde)
		{	this.exclude=false;this.ie=true;
			if(typeof document.getElementById!="undefined"){this.ie5=true;if(this.agt.indexOf("msie 6")!=-1){this.ie6=true;this.dcm=document.compatMode;if(this.dcm!="BackCompat"){;}}}
			else{this.ie4=true;}
		}
		else if(typeof document.getElementById!="undefined")
		{
			this.exclude=false;
			if(this.agt.indexOf("netscape/5")!=-1||this.agt.indexOf("netscape5")!=-1){this.ns=true;this.ns5=true;}
			else if (this.agt.indexOf("netscape/6")!=-1||this.agt.indexOf("netscape6")!=-1){this.ns=true;this.ns6=true;}
			else if(this.agt.indexOf("netscape/7")!=-1||this.agt.indexOf("netscape7")!=-1){this.ns=true;this.ns6=true;this.ns7=true;}
			else if(this.gecko){this.ns=true;this.ns6=true;this.mz7=true;}
			if(this.safari){this.mz7=false;}
		}
		else if((this.agt.indexOf('mozilla')!=-1)&&(parseInt(navigator.appVersion)>=4)) {this.exclude=false;this.ns=true;this.ns4=true;if(typeof navigator.mimeTypes['*']=="undefined"){this.exclude=true;this.ns4=false;}};


		if(this.agt.indexOf('escape')!=-1){this.exclude=true;this.ns=false;this.ns4=false;};
		if(this.safari || (typeof document.childNodes!="undefined" && typeof document.all=="undefined" && typeof navigator.taintEnabled=="undefined")) {this.ns=true;this.ns6=true;this.ns7=false;this.mz7=false;this.win=false;this.mac=true;};
		if(this.agt.indexOf('icab')!=-1){this.exclude=true;this.ie=false;this.ie5=false;};

		this.op=this.op5 ||this.op6 || this.op7;

		if ( (typeof document.getElementById!="undefined") && (typeof document.designMode!="undefined") && !this.safari && !this.konqueror) this.richText = true;
	
		this.extra="";
		if(this.ie4||(this.mac&&this.ie5)){this.extra="ie4";}
		else if(this.ie5){this.extra="ie5";}
		if(this.ns6||this.op7||this.kde){this.extra="moz";}
		if(this.op6){this.extra="op6";}
		if(this.op5){this.extra="op5";}
		if(this.ns4){this.extra="ns4";}
		return this;
	};
//=============================================================
function Toggle(){LM.gri.toggle();};
function ShowEvent(e) {var aEv=LM.event.storeEv(LM,e);aEv.showEv("Event");return true;};
function StoreEvent(e) {var aEv=LM.event.storeEv(LM,e);return true;};
function CloseMenu()   {var aTimer=LM.timer;aTimer.forceClose();var aPile=LM.pile,aMenu=aPile.getFirst();aMenu.Hide();return true;};
function getInfo(pObj) {var txt="";for (var i in pObj) txt+=i+"[ "+pObj[i]+"]\t";return txt;};
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function grille(pList,pArray)
{
	grille.prototype.putID=function()	{this.iframeID=this.list.GetId(this.iframe);};
	grille.prototype.Hide=function()
	{
	 if(this.showed) {this.iframeID.style.visibility="hidden";this.showed=false;};
	};
	
	grille.prototype.Show=function()
	{
		if (!this.showed) 
		{
			this.iframeID.style.visibility="visible";
			this.showed=true;
		} ;
	};

	grille.prototype.toggle=function()
	{
		this.vis=!this.vis;
		this.visu();
	};
	grille.prototype.visu=function(){if (this.vis) {this.Show();} else {this.Hide();};};
	grille.prototype.LoadGri=function(pItem)
	{
		if (!this.is || !this.vis) return false;
		if (pItem.urlFen=='') {this.iframeID.src=this.url;}
		else { this.iframeID.src=pItem.urlFen;};
		return true;
	};
	this.is =(pArray) ? true:false;
	this.list=pList;
	this.name=pList.name+'_iframe';
	this.iframe=this.name+"_frame";
	this.order=pList.order+1;
	this.vis   =( (!this.is)? false:((!pArray[0])? false :true) ); 
	this.showed=false;
	this.left  =( (!this.is)? 0:( (!pArray[1] || pArray[1]<0)? 0:pArray[1]) );
	this.top   =( (!this.is)? 0:( (!pArray[2] || pArray[2]<0)? 0:pArray[2]) );
	this.width =( (!this.is)? 0:( (!pArray[3] || pArray[3]<0)? screen.availWidth  :pArray[3]) );
	this.height=( (!this.is)? 0:( (!pArray[4] || pArray[4]<0)? screen.availHeight :pArray[4]) );
	this.color =( (!this.is)? null:( (!pArray[5])? 	this.list.nulColor:pArray[5]) );
	this.border=( (!this.is)? null:( (!pArray[6])? this.list.nulBord:pArray[6]) );
	this.font  =( (!this.is)? null:( (!pArray[7])? ["arial,sans-serif",12,"bold","normal","none"]:pArray[7]) );
	this.url   =( (!this.is)? null:( (!pArray[8])? '':pArray[8]) );
	this.body='<iframe id="'+this.iframe+'"'+
						' frameborder="0" '+
						' src="'+this.url+'"'+
						' style="'+
						' cursor:default;'+
						this.color.bg.body+
						this.color.fg.body+
						this.border.body+
						' position: absolute;'+
						' top: '+this.top+'px;'+
						' left: '+this.left+'px;'+
						' z-index: '+this.order+';'+
						' width: '+this.width+'px;'+
						' height: '+this.height+'px;'+
						' font-weight: '+this.font[2]+';'+
						' font-size: '+this.font[1]+'px;'+
						' font-family: '+this.font[0]+';'+
						' font-style: '+this.font[3]+';'+
						' vertical-align: top;'+
						' text-decoration: '+this.font[4]+';'+
						' visibility:hidden;'+
						'"'+
						'>'+
						'</iframe>';
	this.iframeID=null;
	return this;
};
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function color(pBg,pFg)
{
//var aA="aqua:#00FFFF,black:#000000,blue:#0000FF,cyan:#00FFFF,fuschia:#FF00FF,gray:#808080,green:#008000,lime:#00FF00,maroon:#800000,navy:#000080,olive:#808000,purple:#800080,red:#FF0000,silver:#C0C0C0,teal:#008080,white:#FFFFFF,yellow:#FFFF00,aliceblue:#F0F8FF,antiquewhite:#FAEAD7,aquamarine:#7FFFD4,azure:#F0FFFF,beige:#F5F5DC,bisque:#FFE4C4,blanchedalmond:#FFEACD,blueviolet:#8A2BE2,brown:#A52A2A,burlywood:#DEB887,cadetblue:#5F9EA0,chartreuse:#7FFF00,chocolate:#D2691E,coral:#FF7F50,cornflowerblue:#6495ED,cornsilk:#FFF8DC,crimson:#DC143C,darkblue:#00008B,darkcyan:#008B8B,darkgoldenrod:#B8860B,darkgray:#A9A9A9,darkgreen:#006400,darkgrey:#A9A9A9,darkkhaki:#BDB76B,darkmagenta:#8B008B,darkolivegreen:#556B2F,darkorange:#FF8C00,darkorchid:#9932CC,darkred:#8B0000,darksalmon:#E9967A,darkseagreen:#8FBC8B,darkslateblue:#4C3D8B,darkslategray:#2F4F4F,darkslategrey:#2F4F4F,darksturquoise:#00CED1,darkviolet:#9400D3,deeppink:#FF1493,deepskyblue:#00BFFF,dimgray:#FF6B6B,dimgrey:#FF6B6B,dodgerblue:#1E90FF,firebrick:#B22222,floralwhite:#FFFFF0,forestgreen:#228B22,gainsboro:#DCDCDC,ghostwhite:#F8F8FF,gold:#FFD700,goldenrod:#DAA520,grey:#808080,greenyellow:#ADFF2F,honeydew:#F0FFF0,hotpink:#FF6BB4,indianred:#CD5C5C,indigo:#4B0082,ivory:#FFFFF0,khaki:#F0E68C,lavender:#E6E6FA,lavenderblush:#FFF0F5,lawngreen:#7CFC00,lemonchiffon:#FFFACD,lightblue:#ADD8E6,lightcoral:#F08080,lightcyan:#E0FFFF,lightgoldenrodyellow:#FAFAD2,lightgray:#D3D3D3,lightgreen:#90EE90,lightgrey:#D3D3D3,lightpink:#FFB6C1,lightsalmon:#FFA07A,lightseagreen:#20B2AA,lightskyblue:#87CEFA,lightslategray:#778899,lightslategrey:#778899,lightsteelblue:#B0C4DE,lightyellow:#FFFFE0,limegreen:#32CD32,linen:#FAF0E6,magenta:#FF00FF,mediumaquamarine:#66CDAA,mediumblue:#0000CD,mediumorchid:#BA55D3,mediumpurple:#9370DB,mediumseagreen:#3CB371,mediumslateblue:#7B6AEE,mediumslateblue:#7B68EE,mediumspringgreen:#00FA9A,mediumturquoise:#48D1CC,mediumvioletred:#C71585,midnightblue:#191970,mintcream:#F5FFFA,mistyrose:#FFE4E1,moccasin:#FFE4B5,navajowhite:#FFDEAD,oldlace:#FDF5E6,olivedrab:#6D8E23,orange:#FFA500,orangered:#FF4500,orchid:#DA70D6,palegoldenrod:#EEE8AA,palegreen:#98FB98,paleturquoise:#AFEEEE,palevioletred:#DB7093,papayawhip:#FFEFD5,peachpuff:#FFDAB9,peru:#CD853F,pink:#FFC0CB,plum:#DDA0DD,powderblue:#B0E0E6,purple:#800080,rosybrown:#BC8F8F,royalblue:#416BFF,saddlebrown:#8B4513,salmon:#FA8072,sandybrown:#F4A460,seagreen:#2E8B57,seashell:#FFF5EE,sienna:#A0522D,skyblue:#87CEEA,slateblue:#6A5ACD,slategray:#708090,slategrey:#708090,snow:#FFFAFA,springgreen:#00FF7F,steelblue:#4682B4,tan:#D2B48C,thistle:#D8BFD8,tomato:#FF6347,turquoise:#40E0D0,violet:#EE82EE,wheat:#F5DEB3,whitesmoke:#F5F5F5,yellowgreen:#9ACD32"
	color.prototype.getInfo=function(){var aTxt="fgStr="+this.fgStr+"\nbgStr="+this.bgStr+"\n======bg========="+"\n bg.col="+this.bg.col+"\n bg.img="+this.bg.img+"\n bg.isImg="+this.bg.isImg+"\n bg.body="+this.bg.body;if (this.bg.isImg){aTxt+="\n bg.img.url="+this.bg.img.url+"\n bg.img.src="+getInfo(this.bg.img.src);};aTxt+="\n======fg========="+"\n fg.col="+this.fg.col+"\n fg.img="+this.fg.img+"\n fg.isImg="+this.fg.isImg+"\n fg.body="+this.fg.body+"\n-------------\n";return aTxt;};
	color.prototype.isImage=function(pCol){if (pCol.indexOf('.gif')> -1) return true;if (pCol.indexOf('.jpg')> -1) return true;return false;};
	color.prototype.toHex=function(pCol){if ((pCol.substr(0,1)=="#")||(pCol=="transparent")) return pCol;var aColor=pCol.toLowerCase(),aRep='';var aA="aqua:#00FFFF,black:#000000,blue:#0000FF,cyan:#00FFFF,fuschia:#FF00FF,gray:#808080,green:#008000,lime:#00FF00,maroon:#800000,navy:#000080,olive:#808000,purple:#800080,red:#FF0000,silver:#C0C0C0,teal:#008080,white:#FFFFFF,yellow:#FFFF00,aliceblue:#F0F8FF,antiquewhite:#FAEAD7,aquamarine:#7FFFD4,azure:#F0FFFF,beige:#F5F5DC,bisque:#FFE4C4,blanchedalmond:#FFEACD,blueviolet:#8A2BE2,brown:#A52A2A,burlywood:#DEB887,cadetblue:#5F9EA0,chartreuse:#7FFF00,chocolate:#D2691E,coral:#FF7F50,cornflowerblue:#6495ED,cornsilk:#FFF8DC,crimson:#DC143C,darkblue:#00008B,darkcyan:#008B8B,darkgoldenrod:#B8860B,darkgray:#A9A9A9,darkgreen:#006400,darkgrey:#A9A9A9,darkkhaki:#BDB76B,darkmagenta:#8B008B,darkolivegreen:#556B2F,darkorange:#FF8C00,darkorchid:#9932CC,darkred:#8B0000,darksalmon:#E9967A,darkseagreen:#8FBC8B,darkslateblue:#4C3D8B,darkslategray:#2F4F4F,darkslategrey:#2F4F4F,darksturquoise:#00CED1,darkviolet:#9400D3,deeppink:#FF1493,deepskyblue:#00BFFF,dimgray:#FF6B6B,dimgrey:#FF6B6B,dodgerblue:#1E90FF,firebrick:#B22222,floralwhite:#FFFFF0,forestgreen:#228B22,gainsboro:#DCDCDC,ghostwhite:#F8F8FF,gold:#FFD700,goldenrod:#DAA520,grey:#808080,greenyellow:#ADFF2F,honeydew:#F0FFF0,hotpink:#FF6BB4,indianred:#CD5C5C,indigo:#4B0082,ivory:#FFFFF0,khaki:#F0E68C,lavender:#E6E6FA,lavenderblush:#FFF0F5,lawngreen:#7CFC00,lemonchiffon:#FFFACD,lightblue:#ADD8E6,lightcoral:#F08080,lightcyan:#E0FFFF,lightgoldenrodyellow:#FAFAD2,lightgray:#D3D3D3,lightgreen:#90EE90,lightgrey:#D3D3D3,lightpink:#FFB6C1,lightsalmon:#FFA07A,lightseagreen:#20B2AA,lightskyblue:#87CEFA,lightslategray:#778899,lightslategrey:#778899,lightsteelblue:#B0C4DE,lightyellow:#FFFFE0,limegreen:#32CD32,linen:#FAF0E6,magenta:#FF00FF,mediumaquamarine:#66CDAA,mediumblue:#0000CD,mediumorchid:#BA55D3,mediumpurple:#9370DB,mediumseagreen:#3CB371,mediumslateblue:#7B6AEE,mediumslateblue:#7B68EE,mediumspringgreen:#00FA9A,mediumturquoise:#48D1CC,mediumvioletred:#C71585,midnightblue:#191970,mintcream:#F5FFFA,mistyrose:#FFE4E1,moccasin:#FFE4B5,navajowhite:#FFDEAD,oldlace:#FDF5E6,olivedrab:#6D8E23,orange:#FFA500,orangered:#FF4500,orchid:#DA70D6,palegoldenrod:#EEE8AA,palegreen:#98FB98,paleturquoise:#AFEEEE,palevioletred:#DB7093,papayawhip:#FFEFD5,peachpuff:#FFDAB9,peru:#CD853F,pink:#FFC0CB,plum:#DDA0DD,powderblue:#B0E0E6,purple:#800080,rosybrown:#BC8F8F,royalblue:#416BFF,saddlebrown:#8B4513,salmon:#FA8072,sandybrown:#F4A460,seagreen:#2E8B57,seashell:#FFF5EE,sienna:#A0522D,skyblue:#87CEEA,slateblue:#6A5ACD,slategray:#708090,slategrey:#708090,snow:#FFFAFA,springgreen:#00FF7F,steelblue:#4682B4,tan:#D2B48C,thistle:#D8BFD8,tomato:#FF6347,turquoise:#40E0D0,violet:#EE82EE,wheat:#F5DEB3,whitesmoke:#F5F5F5,yellowgreen:#9ACD32";var w_i=aA.indexOf(aColor);if (w_i>-1) aRep=aA.substr(w_i+aColor.length+1,7);return aRep;};
	color.prototype.loadImg=function(pFile){var obj=new Object();obj.url=pFile;obj.src=new Image();obj.src.src=pFile;return obj;};
	color.prototype.makeFg=function(pCol){var obj=new Object();obj.isImg=false;obj.col=this.toHex(pCol);obj.img=null;obj.body=' color:'+obj.col+';';return obj;};
	color.prototype.makeBg=function(pCol){var obj=new Object();obj.isImg=this.isImage(pCol);obj.col=(!obj.isImg)? this.toHex(pCol):null;obj.img=(obj.isImg) ? this.loadImg(pCol):null;obj.body=( (obj.isImg)? ' background-image:url('+pCol+'); layer-background-image:url('+pCol+');':' background-color:'+obj.col+'; layer-background-color:'+obj.col+';');return obj;};
	this.fgStr=(pFg)? pFg:'white';
	this.bgStr=(pBg)? pBg:'black';
	this.fg=this.makeFg(this.fgStr);
	this.bg=this.makeBg(this.bgStr);
	return this;
};
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function param()
{
	param.prototype.getByName=function(pName){var w_i=this.QS[pName];return (!w_i)? null:this.p[w_i-1].val;};
	param.prototype.getByPos=function(pNum){var w_i=this.p[pNum-1]; return (!w_i)? null:w_i.val;};
	param.prototype.getNameByPos=function(pNum){var w_i=this.p[pNum-1];return (!w_i)? null:w_i.name;};
	param.prototype.init=function(){var w_x=0,obj, w_r=window.location.search.substr(1,window.location.search.length),w_d = w_r.split('&');for (var w_i=0;w_i<w_d.length;w_i++){w_x=w_d[w_i].indexOf('=');obj=new Object();obj.name=w_d[w_i].substring(0,w_x);obj.val=unescape(w_d[w_i].substring(w_x+1,w_d[w_i].length));this.p[w_i]=obj;this.QS[obj.name] =w_i+1;};};
	this.QS = new Object();
	this.p=new Array();
	this.init();
	return this;
};
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function calque(pList,pCal,pTxt)
{
// pour affichier le Here You Are
	calque.prototype.putID=function()	{this.calID=this.list.GetId(this.name);this.myspanID=this.list.GetId("myspan");};
	calque.prototype.visu=function(pItem){this.calID.style.visibility=(this.vis) ? "visible":"hidden";if (this.vis && pItem) {this.calID.innerHTML=this.txt+pItem.way;this.calID.style.width=pItem.pxway+4;};};

	this.list=pList;
	this.is =(pCal) ? true:false;
	this.calID=null;
	this.myspanID=null;
	this.name=this.list.name+'_cal';
	this.order=pList.order+2;
	this.vis   =( this.is && pCal[0])? pCal[0]:false; 
	this.left  =( this.is && pCal[1] && pCal[1]>-1)? pCal[1]:0;
	this.top   =( this.is && pCal[2] && pCal[2]>-1)? pCal[2]:0;
	this.width =( this.is && pCal[3] && pCal[3]>-1)? pCal[3]:screen.availWidth;
	this.height=( this.is && pCal[4] && pCal[4]>-1)? pCal[4]:screen.availHeight;
	this.color =( this.is && pCal[5])? pCal[5]:this.list.nulColor;
	this.border=( this.is && pCal[6])? pCal[6]:this.list.nulBord;
	this.font  =( this.is && pCal[7])? pCal[7]:["arial,sans-serif",12,"bold","normal","none"];
	this.url   =( this.is && pCal[8])? pCal[8]:'';
	this.txt=(pTxt)? pTxt:'';
	var aSty=style='cursor:default;'+this.color.bg.body+this.color.fg.body+' visibility:hidden; position: absolute; top:'+this.top+'px; left:'+this.left+'px; z-index:'+this.order+'; font-weight:'+this.font[2]+'; font-size:'+this.font[1]+'px; font-family:'+this.font[0]+'; font-style:'+this.font[3]+'; vertical-align:top; text-decoration:'+this.font[4]+';'+this.border.body+';';
	this.body='<span ID="'+this.name+'" style="'+aSty+' width:'+this.width+'px; height:'+this.height+' ">'+this.txt+'</span>';
	this.myspanbody='<span ID="myspan"  style="'+aSty+';"></span>';
	return this;
};
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function border(pWidth,pStyle,pColor)
{
	border.prototype.anticolor=function(pColor){return ('#'+hex2(parseInt(pColor.substr(1,2),16)^255)+hex2(parseInt(pColor.substr(3,2),16)^255)+hex2(parseInt(pColor.substr(5,2),16)^255));};
	border.prototype.antistyle=function(pStyle){var rep='';switch (pStyle){case 'none':rep='none';break;case 'dotted':rep='dashed';break;case 'solid':rep='solid';break;case 'double':rep='none';break;case 'groove':rep='ridge';break;case 'ridge':rep='groove';break;case 'inset':rep='outset';break;case 'outset':rep='inset';break;};return rep;};

	this.width=(pWidth)? pWidth:0;
	this.style=(pStyle)? pStyle:"solid";
	this.color=(pColor)? pColor:"red";
	this.body=' border: '+this.width+'px '+this.style+' '+this.color+';';
	this.antistyle=this.antistyle(this.style);
	this.anticolor=this.anticolor(this.color);
	this.antibody=' border: '+this.width+'px '+this.antistyle+' '+this.anticolor+';';
	return this;
};
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function arrow(pFile)
{
	this.file=pFile;
	this.img=new Image();
	this.img.src=pFile;
	return this;
};
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function pile()
{
	pile.prototype.push=function(pMenu){this.p[this.nb]=pMenu;this.nb++;};
	pile.prototype.pop=function(){var m=this.nb-1;if (m>-1) { this.p[m]=null;this.nb--;};};
	pile.prototype.getPrev=function(){var m=this.nb-2;return ((m>-1)? this.p[m]:null );};
	pile.prototype.get=function(){var m=this.nb-1;return ((m>-1)? this.p[m]:null );};
	pile.prototype.getFirst=function(){var m=this.nb-1;return ((m>-1)? this.p[0]:null );};
	pile.prototype.getSecond=function(){var m=this.nb-1;return ((m>0)? this.p[1]:null );};

	this.p=new Array();
	this.nb=0;//nécessaire car il n'y a pas de redimensionnement des datas.
};
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function Timer(pTime,pList)
{
	Timer.prototype.forceClose=function(){clearTimeout(this.num);this.num=0;this.isOpen=false;};
	Timer.prototype.close=function() {if (!this.is) return false;if (this.isOpen) this.forceClose();return true;};
	Timer.prototype.open=function()	 {if (!this.is) return false;this.num=setInterval("CloseMenu()",this.Count);this.isOpen=true;return true;};
	this.list=pList;
	this.Count=pTime;
	this.is=(this.Count>0) ? true:false;
	this.isOpen=false;
	this.num=0;
	return this;
};
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function Ev()
{
//				 " meta="+LM.event.metaKey+" "+
//				 " Target="+LM.event.relatedTarget
	Ev.prototype.showEv=function(pTxt){window.status=pTxt+" ("+this.x+","+this.y+") ctrl="+this.ctrl+" shift="+this.shift+" alt="+this.alt+" but="+this.but;};
	Ev.prototype.storeEv=function(pLM,e){if (pLM.bro.ns){this.x=e.pageX;this.y=e.pageY;this.ctrl=e.ctrlKey;this.shift=e.shiftKey;this.alt=e.altKey;this.but=e.which;if (pLM.bro.ns4 && e.target!=document) routeEvent(e);} else {this.x=event.x+document.body.scrollLeft;this.y=event.y+document.body.scrollTop;this.ctrl=event.ctrlKey;this.shift=event.shiftKey;this.alt=event.altKey;this.but=event.button;};return this;};
	this.x=0;
	this.y=0;
	this.ctrl=false;
	this.shift=false;
	this.alt=false;
	this.but=0;
	return this;
};
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function item(pMenu,pUrl,pTxt,pWidth,pAlign,pTarget,pAltTxt,pKey,pBorder,pColor,pOverColor,pLinkColor,pUrlFen)
{
	item.prototype.SetStyle=function(){this.tabID.style.borderStyle=this.border.style;};
	item.prototype.InvertStyle=function(){this.tabID.style.borderStyle=this.border.antistyle;};
	item.prototype.StoreColor=function(pColor){this.tdID.style.color=pColor.fg.col;if (!pColor.bg.isImg){this.tdID.style.backgroundColor=pColor.bg.col;} else {this.tdID.style.backgroundImage=pColor.img.src;};};
	item.prototype.SetColor=function(){this.SetStyle();this.StoreColor(this.color);};
	item.prototype.SetOverColor=function(){this.InvertStyle();this.StoreColor(this.overcolor);};
	item.prototype.ShowItem=function(pMode)
	{
		var aVis=(pMode) ? "visible":"hidden";
				this.tabID.style.visibility=aVis;
				this.tdID.style.visibility=aVis;
	};

	item.prototype.ShowFen=function()	{if (this.fen!=null){if (!this.fen.isShow){this.fenID.style.visibility="visible";this.fen.isShow=true;};this.iFrameID.src=this.fen.url;};};

	item.prototype.HideFen=function()	
	{
//alert(("HIDEFEN"+this.fen));
		if (this.fen!=null)
		{
			if (this.fen.isShow)
			{
				this.fenID.style.visibility="hidden";
				this.fen.isShow=false;
			};
		};
	};

	item.prototype.findHeight=function(pTxt){var aTxt=(!pTxt||pTxt=="")? "&nbsp;":pTxt;while(aTxt.indexOf('<BR>')!=-1)  aTxt=aTxt.replace('<BR>','<br>');while(aTxt.indexOf('<Br>')!=-1)  aTxt=aTxt.replace('<Br>','<br>');while(aTxt.indexOf('<br >')!=-1) aTxt=aTxt.replace('<br >','<br>');while(aTxt.indexOf('<IMG')!=-1)  aTxt=aTxt.replace('<IMG','<img');return aTxt.split('<br>').length*this.menu.fontsize;};
	item.prototype.getInfo=function(){var aTxt="\nNum="+this.num+"\tName="+this.name+"\tPath="+this.path+"\tUrl="+this.url+"\nTxt="+this.txt+"\tAlign="+this.align+"\tTarget="+this.tar+"\tAlt="+this.alt+"\nLeft-Top-Width-Height=("+this.left+","+this.top+","+this.width+","+this.height+")"+"\tOrder="+this.order+"\nFontweight="+this.fontweight+"\tFontsize="+this.fontsize+"\tFontfamily="+this.fontfamily+"\tFontStyle="+this.fontstyle+"\tFontdeco="+this.fontdeco+"\nKey="+this.key+"\nBody="+this.body+"\nTABLE="+getInfo(this.tabID)+"\n-------------\n";return aTxt;};

	item.prototype.putID=function()
	{
		var aL=this.menu.list;
				this.tabID=aL.GetId(this.name+"_tab");
				this.tdID=aL.GetId(this.name+"_td");
				this.fenID=(this.fen!=null)? aL.GetId(this.name+"_fen"):null;
				this.iFrameID=((this.fen!=null)&&(this.fen.url!=""))? aL.GetId(this.name+"_iframe"):null;
	};
	item.prototype.noBR=function(pTxt){var aTxt=pTxt;while(aTxt.indexOf('<br>')!=-1)  aTxt=aTxt.replace('<br>',' ');while(aTxt.indexOf('<BR>')!=-1)  aTxt=aTxt.replace('<BR>',' ');return aTxt;};

	item.prototype.close=function()
	{
				this.SetColor();
				if (this.fnOut!=null) eval(this.fnOut);

				this.HideFen();
		var aChildMenu=this.child;
				if (aChildMenu!=null){aChildMenu.Hide();};
	};

	
	item.prototype.open=function()
	{
		this.SetOverColor();
		this.menu.list.gri.LoadGri(this);
		if (this.fnOver!=null) eval(this.fnOver);
		this.ShowFen();
		this.menu.list.hya.visu(this);
		var aChildMenu=this.child;
				if (aChildMenu!=null){aChildMenu.Show();};
	};

	
	item.prototype.Make=function()
	{
		var aMenu=this.menu;
				this.body='<table id="'+this.name+'_tab" cellpadding='+aMenu.xTxtpad+' cellspacing=0  style=" width='+(this.border.width+this.width+this.border.width)+'px;'+this.border.body+this.color.bg.body+this.color.fg.body+' font-weight:'+this.fontweight+'; font-size:'+this.fontsize+'px; font-family:'+this.fontfamily+'; font-style:'+this.fontstyle+'; vertical-align:top; text-decoration:'+this.fontdeco+'; z-index:'+(this.order+8)+'; visibility:hidden;">'+
				'<tr>'+
				' <td'+
				' onmouseover="var m=eval('+aMenu.name+');m.onOver('+this.num+');"'+
				' onmouseout ="var m=eval('+aMenu.name+');m.onOut('+this.num+');" '+
				' onClick="var m=eval('+aMenu.name+');m.onClick('+this.num+');"'+
				'id="'+this.name+'_td" align="'+this.align+'"; width='+this.width+'px; height='+this.height+'px; style=" '+this.cur+this.color.bg.body+this.color.fg.body+' font-family:'+this.fontfamily+'; font-weight:'+this.fontweight+'; font-size:'+this.fontsize+'px; font-style:'+this.fontstyle+'; vertical-align:top; text-decoration:'+this.fontdeco+'; z-index:'+(this.order+10)+';">'+
				this.txt+'<span align="right">'+((this.child==null) ? '' : '&nbsp;<IMG src="'+aMenu.arrow.file+'" >')+'</span>'+
				' </td>'+
				'</tr>'+
				'</table>';
	};


	this.menu=pMenu;
	this.num=this.menu.data.length;
	this.name=this.menu.name+'item_'+this.num;
	this.path="";
	this.way="";
	this.pxway=0;

	this.url=(pUrl!=""&&pUrl!="#"&&pUrl!="~")? pUrl:'';
	this.cur=(this.url!='')?' cursor:hand;':'cursor:default;'; // auto | crosshair | default | hand | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize | text | wait | help
	this.txt=(pTxt)? pTxt:'';
	this.nettxt=this.noBR(this.txt);
	this.fontweight=this.menu.fontweight;
	this.fontsize=this.menu.fontsize;
	this.fontfamily=this.menu.fontfamily;
	this.fontstyle=this.menu.fontstyle;
	this.fontdeco=this.menu.fontdeco;
//a modifier pour pouvoir introduire une font pour l'item
	this.align=(pAlign)? pAlign:"left";
	this.tar=(pTarget)?pTarget:"_self";
	this.alt=(pAltTxt)? pAltTxt:'';
	this.left=(this.menu.parent!=null)? this.menu.parent.bar.left+this.menu.parent.data[this.menu.parent.data.length-1].left:0;
	this.top =(this.menu.parent!=null)? this.menu.parent.bar.top+this.menu.parent.data[this.menu.parent.data.length-1].top:0;
	this.width=(pWidth)? ((pWidth!="")? pWidth:null):null;
	this.height=this.findHeight(this.txt);
	this.order=this.menu.order+3;
	this.key=(pKey)? pKey:'';
	this.color=(pColor)? pColor:this.menu.color;
	this.overcolor=(pOverColor)? pOverColor:this.menu.overcolor;
	this.linkcolor=(pLinkColor)? pLinkColor:this.menu.linkcolor;
	this.border=(pBorder)? pBorder:this.menu.list.nulBord;
	this.body="";
	this.child=null;
	this.tabID=null;
	this.tdID=null;
	this.urlFen=(pUrlFen)? pUrlFen:this.url;
	return this;
};
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function bar(pMenu,pLeft,pTop,pBar)
{
		bar.prototype.Show=function(pMode){this.barID.style.visibility=(pMode)?"visible":"hidden";};		
		bar.prototype.Make=function()
		{
			var lTxt0_d='',
					lTxt0_f='',
					lTxt1_f='',
					lTxt1_d='<td>',
					lTxt1_f='</td>',
					lTxtImg='',
					aMenu=this.menu,
					nb=aMenu.data.length,
					xPad=aMenu.xpad,
					yPad=aMenu.ypad,
					aBar=this,
					aWidth=0,
					aHeight=0,
					sHeight=0,
					aLeft=0,
					aTop=aBar.top+aBar.border.width;

					aMenu.VerifyWidth();

					switch (aMenu.typ)
					{
						case 'h':
							lTxt0_d='<tr>';
							lTxt0_f='</tr>';
							aBar.height=2*aBar.border.width+aMenu.MaxHeight()+2*xPad;
							aBar.width=aMenu.SumWidth()+2*nb*xPad;
							break;
						case 'v':
							lTxt0_d='';
							lTxt0_f='';
							lTxt1_d='<tr>'+lTxt1_d;
							lTxt1_f=lTxt1_f+'</tr>';
							aLeft=aBar.left+aBar.border.width;
							aWidth=aMenu.MaxWidth();
							aBar.width=aBar.border.width+xPad+aWidth+xPad+aBar.border.width;
							sHeight=aMenu.SumHeight();
							aHeight=0;
							for(var w_i=0;w_i<nb;w_i++)
							{
								aItem=aMenu.data[w_i];
								aItem.width=aWidth;
								aItem.left=aLeft;
								aItem.top=aTop;
								aTop+=aItem.height+yPad;
							};
							aBar.height=aBar.border.width+sHeight+(nb+1)*yPad+aBar.border.width-1;
							break;
						};
						var aItem,
								aTxt='<table id="'+aBar.name+'" cellpadding='+xPad+' cellspacing=0'+
										 ' style="'+
										 ' cursor:default; '+
										 aBar.border.body+
										 aBar.color.bg.body+
										 aBar.color.fg.body+
										 ' font-family: '+aMenu.fontfamily+';'+
										 ' font-weight: '+aMenu.fontweight+';'+
										 ' font-size: '+aMenu.fontsize+';'+
										 ' font-style: '+aMenu.fontstyle+';'+
										 ' text-decoration: '+aMenu.fontdeco+';'+
										 ' visibility:hidden;'+
										 ' z-index: '+(aMenu.order+1)+';'+
										 ' position: absolute;'+
										 ' left: '+aBar.left+'px;'+
										 ' top: '+aBar.top+'px;'+
										 ' width: '+aBar.width+'px;'+
										 ' height: '+aBar.height+'px;'+
										 '"'+
										 '>'+lTxt0_d;
										 for(var w_i=0;w_i<nb;w_i++)
										 {
											aItem=aMenu.data[w_i];
											aItem.Make();
											aTxt+=lTxt1_d+aItem.body+lTxt1_f;
										};
										aTxt+=lTxt0_f+'</table>';
										this.body=aTxt;
		};
		this.menu=pMenu;
		this.barID=null;
		this.name=this.menu.name+'_bar';
		this.left=pLeft+((this.menu.parent==null)? 0:this.menu.parent.bar.left);
		this.top=pTop+((this.menu.parent==null)? 0:this.menu.parent.bar.top);
		this.vis=pBar[0];
		this.color=pBar[1];
		this.height=0;
		this.width=0;
		this.border=(pBar[2])? pBar[2]:this.menu.list.nulBord;
		this.showed=false;
		this.body="";
 return this;
};
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function Menu(pList,pName,pDir)
{
	Menu.prototype.VerifyWidth=function()	{var nb=this.data.length,aWidth=this.MaxWidth(),aItem;for(var w_i=0;w_i<nb;w_i++)	{aItem=this.data[w_i];if (!aItem.width) aItem.width=aWidth;};};
	Menu.prototype.findItem=function(pName){var aItem=null;for (var w_i=0;w_i<this.data.length;w_i++){if (this.data[w_i].name==pName) {aItem=this.data[w_i];break;};};return aItem;};
	Menu.prototype.GetId=function(pId){return this.list.GetId(pId);};
	Menu.prototype.getInfo=function(){var aTxt="MENU:"+"\nName="+this.name+"\nPath="+this.path+"\nTimer="+this.timer+"\nNum="+this.num+"\nDir="+this.dir+"\nBro="+this.bro.info+"\nOrder="+this.order+"\nData="+this.data+"\nParent="+this.parent+"\n-------------\n";return aTxt;};
	Menu.prototype.PutVisibility=function(pMode){if (pMode!=this.isShow){this.bar.Show(pMode);for(var w_i=0;w_i<this.data.length;w_i++){this.data[w_i].ShowItem(pMode);};this.isShow=pMode;};};
	Menu.prototype.Hide=function()
	{
// on ne ferme pas le 1er menu
		var aPile=this.list.pile;
		var aMenu=aPile.get();
		var aName=aPile.getFirst().name;
				while (aMenu.name!=this.name)
				{
					if (aMenu.current>-1){aMenu.data[aMenu.current].SetColor();aMenu.current=-1;};
					aMenu.PutVisibility(false);
					this.list.pile.pop();
					aMenu=aPile.get();
				};

				if (aMenu.current>-1){aMenu.data[aMenu.current].SetColor();aMenu.current=-1;};
				if (aName!=aMenu.name)
				{
					aMenu.PutVisibility(false);
					this.list.pile.pop();
				};

	};





	Menu.prototype.Show=function(){this.PutVisibility(true);this.list.pile.push(this);this.current=-1;};
	Menu.prototype.Begin=function(pTyp,pLeft,pTop,pColor,pFont,pBar){this.sty='';this.typ=pTyp;this.fontfamily=(pFont && pFont[0] && pFont[0]!="")? pFont[0]:"arial,sans-serif";this.fontsize=(pFont && pFont[1] && pFont[1]>0)  ? pFont[1]:13;this.fontweight=(pFont && pFont[2] && pFont[2]!="")? pFont[2]:"bold";this.fontstyle=(pFont && pFont[3] && pFont[3]!="")? pFont[3]:"normal";this.fontdeco=(pFont && pFont[4] && pFont[4]!="")? pFont[4]:"none";this.color    =(pColor&& pColor[0]) ? pColor[0]:this.list.nulColor;this.overcolor=(pColor&& pColor[1]) ? pColor[1]:this.list.nulColor;this.linkcolor=(pColor&& pColor[2]) ? pColor[2]:this.list.nulColor;this.isShow=false;this.xpad =(pBar[3])?pBar[3]:0;this.xTxtpad =(pBar[4])?pBar[4]:this.xpad;this.bar=new bar(this,pLeft,pTop,pBar);this.hasChild=false;this.arrow=null;switch (pTyp){case "h":this.arrow=this.list.arrow[0];break;	case "v":	this.arrow=this.list.arrow[1];break;};};
	Menu.prototype.SumWidth=function() {var nb=this.data.length,sW=0;for(var w_i=0;w_i<nb;w_i++) sW+=this.data[w_i].width;return sW;};
	Menu.prototype.SumHeight=function(){var nb=this.data.length,sH=0;for(var w_i=0;w_i<nb;w_i++) sH+=this.data[w_i].height;return sH;};
	Menu.prototype.MaxHeight=function(){var nb=this.data.length,aHeight=0,aItem;for(var w_i=0;w_i<nb;w_i++){aItem=this.data[w_i];if (aItem.height>aHeight) aHeight=aItem.height;};return aHeight;};
	Menu.prototype.MaxWidth=function(){var nb=this.data.length,aWidth=0,aItem;for(var w_i=0;w_i<nb;w_i++)	{aItem=this.data[w_i];if (aItem.width>aWidth) aWidth=aItem.width;};return aWidth;};
	Menu.prototype.putParent=function() {var aItem,bItem,aId,m=0;if (this.parent!=null) {m=this.parent.data.length-1;aItem=this.parent.data[m];aItem.child=this;this.parent.hasChild=true;};};
	Menu.prototype.End=function() {this.putParent();this.list.pile.pop();var aBar=this.bar;aBar.Make();document.write(aBar.body);};
	Menu.prototype.add=function(pUrl,pTxt,pWidth,pAlign,pTarget,pAltTxt,pKey,pBorder,pColor,pOverColor,pLinkColor,pUrlFen){this.data[this.data.length]=new item(this,pUrl,pTxt,pWidth,pAlign,pTarget,pAltTxt,pKey,pBorder,pColor,pOverColor,pLinkColor,pUrlFen);};
	Menu.prototype.putID=function(){var aList=this.list;var aBar=this.bar;aBar.barID=aList.GetId(aBar.name);for(var w_i=0;w_i<this.data.length;w_i++){this.data[w_i].putID();};};
	Menu.prototype.onOut=function(pNumItem)
	{
/*
		var aItem=this.data[pNumItem];
				aItem.SetColor();
				if (aItem.fnOut!=null) eval(aItem.fnOut);
				aItem.HideFen();
*/
				this.timer.open();
				return true;
	};
//	Timer.prototype.close=function() {if (!this.is) return false;if (this.isOpen) this.forceClose();return true;};
//	Timer.prototype.open=function()	 {if (!this.is) return false;this.num=setInterval("CloseMenu()",this.Count);this.isOpen=true;return true;};


	Menu.prototype.onOver=function(pNumItem)
	{
				this.timer.close();
		var aPile=this.list.pile;
		var bMenu=aPile.get();
				if (bMenu.current==-1)
				{
					// ne compte pas car ouverture de l'item et de son menu. On prend le menu précédent
					bMenu=aPile.getPrev();
					if (bMenu==null)
					{
						this.data[pNumItem].open();
						this.current=pNumItem;
						return true;
					};
				};
				if ((bMenu.name==this.name)&&(this.current==pNumItem)) {return true;};//déja ouvert
				//-----------------------------------------------------
				if (this.current==-1)
				{
					// on entre dans un sous-menu
					this.data[pNumItem].open();
					this.current=pNumItem;
					return true;
				};
				//-----------------------------------------------------
				if (bMenu.name==this.name)
				{
					// dans le meme menu: changement d'item
					this.data[this.current].close();
					this.data[pNumItem].open();
					this.current=pNumItem;
					return true;
				};
				//-----------------------------------------------------
				if (bMenu.name!=this.name)
				{
					//pas le meme menu
					bMenu.data[bMenu.current].close();
					this.data[this.current].close();
					this.data[pNumItem].open();
					this.current=pNumItem;
					return true;
				};
				//window.status="onOver: old("+bMenu.name+","+bMenu.current+") this("+this.name+","+this.current+") pNumItem="+pNumItem;
	};

	Menu.prototype.onClick=function(pNumItem)	
	{
		var aList=this.list,aGri=aList.gri,aEv=aList.event,aItem=this.data[pNumItem],aUrl="";;
				if (aEv.ctrl) {aGri.toggle();return false;};// car alt ne fonctionne pas sous OPERA 7.23
				if (aEv.shift) {alert(aItem.getInfo() );return false;};
				aItem.SetColor();	
				switch (aItem.url) 
				{
					case "~":
					case "#":
					return false;
					default:
						if(aItem.url.indexOf("mailto:")!=-1) {document.location=aItem.url;} 
						else 
						{
							if (aItem.url!="")
							{
								if(aItem.url.indexOf("?")==-1)  {aUrl=aItem.url+"?i="+aItem.name;}
								else	aUrl=aItem.url;
								switch (aItem.tar)
								{
									case "_self":self.document.location=aUrl;break;
									case "_top":top.document.location=aUrl;break;
									case "_parent":parent.document.location=aUrl;break;
									case "_blank":this.list.winOpen[this.list.winOpen.length]=open(aUrl,"","top=0,left=0,status=yes,scrollbars=yes,scrolling=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes,width="+(this.bro.width-20)+",height="+(this.bro.height-150)+"");break; 
									default: document.location=aUrl;break;
								};
							};
						};
				};
	};


	
	this.list=pList;
	this.name=pName;
	this.timer=this.list.timer;
	this.num=this.list.menu.length;//nb;
	this.dir=pDir;
	this.bro=this.list.bro;
	this.order=this.list.order+1000*(this.num+1);
	this.body="";
	this.data=new Array();
	this.bar=null; //créé dans begin
	this.list.pile.push(this);
	this.parent=this.list.pile.getPrev();
	this.path="";
	if(!this.bro.exclude)
	{
		//		document.write('<script language="javascript1.2" type="text/javascript" src="'+this.dir+'menu_'+this.bro.extra+'.js"></script>');
	};
};
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//		var LM=new listMenu("LM",aGrid, aTimer,aHYA,"","/menu/js/");
function listMenu(pName,pGrid,pTimer,pHya,pTxt,pDir)
{
	listMenu.prototype.GetId=function(pId){if (this.bro.dom) return document.getElementById(pId);if (this.bro.ms)  return document.all[pName];if (this.bro.ns)  return document[pName];return null;};
	listMenu.prototype.getInfo=function(){return "\nName="+this.name+"\tPath="+this.path+"\tOrder="+this.order+"\tNbwin="+this.winOpen.length+"\tNbMenu="+this.menu.length+"\n-------------------------\n";};
	listMenu.prototype.findMenu=function(pName){var aMenu=null;for (var w_i=0;w_i<this.menu.length;w_i++) {if (this.menu[w_i].name==pName) {aMenu=this.menu[w_i];break;};};return aMenu;};
	listMenu.prototype.findItem=function(pName){var aMenu=null,aItem=null;for (var w_i=0;w_i<this.menu.length;w_i++){aMenu=this.menu[w_i];aItem=aMenu.findItem(pName);if (aItem!=null) break;};return aItem;};
	listMenu.prototype.putPath=function(pMenu,pPath)
	{
		var aMenu=pMenu;aMenu.path=aPath;var aPath=((pPath!="")?pPath+"|":"")+pMenu.name;var aItem,cPath;
		for (var w_i=0;w_i<aMenu.data.length;w_i++)
		{
			aItem=aMenu.data[w_i];cPath=aPath+"|"+aItem.name;aItem.path=cPath;
			if (aItem.child) this.putPath(aItem.child,cPath);
		};
	};
	listMenu.prototype.putWay=function(){var aHya=this.hya,lenImg=9,aItem=null,bItem=null,aMenu=null,bMenu=null,aPath="",aTxt="",aWay=null;for (var w_i=0;w_i<this.menu.length;w_i++){aMenu=this.menu[w_i];for (var w_j=0;w_j<aMenu.data.length;w_j++){aItem=aMenu.data[w_j];aPath=aItem.path;aWay=null;aWay=aPath.split("|");aTxt="";for (var w_k=0;w_k<aWay.length;w_k+=2){bMenu=this.findMenu(aWay[w_k]);bItem=bMenu.findItem(aWay[w_k+1]);aTxt+=((w_k>0)? '&nbsp;<img src="/menu/js/fr2.gif" width="'+lenImg+'" height="8" align="absmiddle">&nbsp;':'')+bItem.nettxt;};aItem.way=aTxt;aHya.myspanID.innerHTML=aHya.txt+aItem.way;aItem.pxway=aHya.myspanID.offsetWidth;};};};
	listMenu.prototype.putID=function(){for (var w_i=0;w_i<this.menu.length;w_i++){this.menu[w_i].putID();};};
	listMenu.prototype.addMenu=function(pName){var nb=this.menu.length,obj= new Menu(this,pName,this.dir);this.menu[nb]=obj;return obj;};
	listMenu.prototype.getCurrentMenu=function()	{return this.pile.get();};
	listMenu.prototype.getCurrentItem=function()	{var aMenu=this.pile.get();return aMenu.data[aMenu.current];};
	listMenu.prototype.construct=function()
	{
/*
		document.write("<A "+
						"style=\"position : absolute; left: 5; pixelLeft: 5; top: 50; pixelTop: 50; width: 70px; height: 23px; z-index: 1; border: 1px none #000000; visibility:visible;\""+
						((this.bro.ie) ? " onClick=\"history.back();\" " : " HREF=\"JavaScript:history.back();\"")+
						" onMouseOver=\"swapImage('__RET__','ret2.gif');\" onMouseOut=\"swapImage('__RET__','ret1.gif');\" onMouseDown=\"swapImage('__RET__','ret3.gif');\" onMouseUp=\"swapImage('__RET__','ret1.gif');\">"+
						"<IMG name=\"__RET__\" SRC='"+this.dir+"ret1.gif' border=0 width=70 height=23 align=absmiddle></A>");
*/
		var aGri=this.gri;document.write(aGri.body);aGri.putID();aGri.visu();
		var aHya=this.hya;document.write(aHya.body);document.write(aHya.myspanbody);aHya.putID();
				this.putID();
				this.putPath(this.menu[0],"");
				this.putWay();
		var pItem=this.findItem(this.param.getByName("i"));
				aHya.visu(pItem);
				this.menu[0].Show();
	};
//-------------------------------------------
	this.name=pName;
	this.order=1000;
	this.path=pName;
	this.dir=pDir;
	this.param=new param();
	this.winOpen= new Array();
	this.arrow=new Array();this.arrow[0]=new arrow(pDir+"fb2.gif");this.arrow[1]=new arrow(pDir+"fr2.gif");
	this.menu= new Array();
	this.pile= new pile();// car unique pour une série de menus
	this.timer= new Timer(pTimer,this);
	this.bro=new browser();
	if(this.bro.exclude) {location.href="sorry.htm"; return false;};
	if (this.bro.ns4) document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE | Event.MOUSEUP);
	this.event=new Ev();
	this.gri=new grille(this,pGrid); //	ex pGrid=[false,10,100,100,100,new color("fond.gif","blue"),new border(0,"solid","#D3DAED"),aFont];//,aUrl];
	this.hya=new calque(this,pHya,pTxt);
	this.nulBord=new border(0,"none","transparent");
	this.nulColor=new color("transparent","black");
	this.nulFont =["arial,sans-serif",12,"bold","normal","none"];
//-------------------------------------------
	document.onmousedown=StoreEvent;//ShowEvent;//StoreEvent;//pour capturer l'évément
//	document.onmousemove =StoreEvent;//ShowEvent;//StoreEvent;//pour capturer l'évément
//	document.onmousedown onclick
	return this;
};
//==========================================================================================================================
		var aTimer=250,aNoUrl="fond.htm",
			 aBar=[true,new color("#006699","white"),new border(1,"none","#D3DAED"),0,5],
			 aBord=new border(1,"solid","#C7C2F1"),
			 aFont=["Verdana, Arial, Helvetica, sans-serif",10,"normal","normal","none"],
			 aHYA=[false,0,55,800,20,new color("#C4CAF5","black"),new border(1,"solid","#D3DAED"),aFont,""],
			 aGrid=[false,10,100,800,600,new color("fond.gif","blue"),new border(0,"solid","#D3DAED"),aFont,aNoUrl],
			 aColor=[new color("#006699","white"),new color("#0099CC","white"),new color("yellow","red") ];

			 LM=new listMenu("LM",aGrid, aTimer,aHYA,"","/menu/but/");

		var aMenu=LM.addMenu("aMenu");
					aMenu.Begin("h",0,18,aColor,aFont,aBar);
					aMenu.add("/enseignement.htm","<b>Enseignement</b>",120,"center","","","",aBord); 
						var mEns=LM.addMenu("mEns");
								mEns.Begin("v",0,24,aColor,aFont,aBar);
//	Menu.prototype.add=function(pUrl,pTxt,pWidth,pAlign,pTarget,pAltTxt,pKey,pBorder,pColor,pOverColor,pLinkColor,pUrlFen)
								mEns.add("#","Les établissements",150,"","","","",aBord);
								var mEts=LM.addMenu("mEts");
										mEts.Begin("v",140,4,aColor,aFont,aBar);
										mEts.add("/pgens/prim/rechPrim.asp","Enseignement fondamental",					170,"","","","",aBord);
										mEts.add("/pgens/sec/rechSec.asp","Enseignement secondaire" ,					170,"","","","",aBord);
										mEts.add("/pgens/autres/CEFA.asp","C.E.F.A.",					170,"","","","",aBord);
										mEts.add("/pgens/special/special.htm","Enseignement spécialisé",				170,"","","","",aBord);
										mEts.add("/pgens/sup/superieur.htm","Enseignement supérieur",				170,"","","","",aBord);
										mEts.add("/pgens/soc/promsoc.htm","Promotion sociale",	170,"","","","",aBord);
										mEts.add("/pgens/autres/internats.htm","Internats",				170,"","","","",aBord);
										mEts.add("/pgens/autres/homes.asp","Homes d'accueil",	170,"","","","",aBord);
										mEts.add("http://www.restode.cfwb.be/cdpa/","Centres de dépaysement",170,"", "_blank","","",aBord);
										mEts.add("http://www.ead.cfwb.be","Enseignement à distance",				 170,"", "_blank","","",aBord);
										mEts.add("/pgens/annuaire.htm","Annuaire électronique",170,"","","","",aBord);
										mEts.add("/pgens/requete_ecoles.htm","Les sites des écoles",170,"","","","",aBord);
										mEts.End();
								mEns.add("#","Professeurs/Directions",150,"","","","",aBord);
								var mProfs=LM.addMenu("mProfs");
										mProfs.Begin("v",140,27,aColor,aFont,aBar);
										mProfs.add("/pgens/carriere/enseigner.htm","Enseigner/Carrière",160,"","","","",aBord);
										mProfs.add("/pgens/carriere/enseigner_textes.htm","Statuts",160,"","","","",aBord);
										mProfs.add("/pgens/org_cf/insp/inspection.htm","Inspection",160,"","","","",aBord);
										mProfs.add("/pgens/org_cf/insp/conseillers.htm","Conseillers pédagogiques",160,"","","","",aBord);
										mProfs.add("/pgens/sec/czi.htm","Coordination de Zone",160,"","","","",aBord);
										mProfs.add("/pgfc/fc.htm","Formation continue",160,"","","","",aBord);
										mProfs.add("#","Directions",160,"","","","",aBord);
											var mProfs1=LM.addMenu("mProfs1");
											mProfs1.Begin("v",155,87,aColor,aFont,aBar);
											mProfs1.add("/pgres/vademecumFo.htm","Vade-mecum Fondamental",155,"","","","",aBord);
											mProfs1.add("/pgres/vademecum.htm","Vade-mecum Secondaire",155,"","","","",aBord);
											mProfs1.add("/pgres/vademecumSP.htm","Vade-mecum Spécialisé",155,"","","","",aBord);
											mProfs1.add("http://www.adm.cfwb.be/index.php?m=doc_view&do_id=2646","Vade-mecum Personnel adm. & ouvrier",155,"","_blank","","",aBord);
											mProfs1.add("/pgens/dir_assistance.htm","Dispositifs d'assistance",155,"","","","",aBord);
											mProfs1.End();
										mProfs.add("/pgens/circulaires.asp","Circulaires",160,"","","","",aBord);
										mProfs.add("http://www.lecaf.be","Centre d'Auto-Formation",160,"","_blank","","",aBord);
										mProfs.add("http://www.ctpe.be","Centre technique et pédagogique",160,"","_blank","","",aBord);
										mProfs.add("http://www.centretechniquehorticole.com/","Centre technique horticole",160,"","_blank","","",aBord);
										mProfs.add("http://www.ctastree.be/","Centre des Technologies agronomiques",160,"","_blank","","",aBord);
										mProfs.End();
								mEns.add("/pgens/grands_textes.htm","Structures",150,"","","","",aBord);
								var mStruc=LM.addMenu("mStruc");
										mStruc.Begin("v",140,50,aColor,aFont,aBar);
										mStruc.add("/pgens/grands_textes.htm","Législation",160,"","","","",aBord);
										mStruc.add("/pgens/org_cf/index.htm","Administration",160,"","","","",aBord);
										mStruc.add("http://www.reseaucf.cfwb.be/","Personnels - DGPECF",160,"","_blank","","",aBord);
										mStruc.End();
								mEns.add("/pgens/CPMS/cpms.htm","Les Centres PMS",150,"","","","",aBord);
								var mCpms=LM.addMenu("mCpms");
										mCpms.Begin("v",140,75,aColor,aFont,aBar);
												mCpms.add("/pgens/CPMS/rech_cpms.html","Listes",150,"","","","",aBord);
												var mCpms1=LM.addMenu("mCpms1");
														mCpms1.Begin("v",120,-35,aColor,aFont,aBar);
														mCpms1.add("/pgens/cpms/ListCpms.asp?type=O","Ens. Ordinaire",180,"","","","",aBord);
														mCpms1.add("/pgens/cpms/ListCpms.asp?type=S","Ens. Spécialisé",180,"","","","",aBord);
														mCpms1.add("/pgens/cpms/ListCpms.asp?type=T","Tous",180,"","","","",aBord);
														mCpms1.add("/pgens/cpms/ListCpmsForm.asp?type=C","Cabinets de Consultation",180,"","","","",aBord);
														mCpms1.add("/pgens/cpms/ListCpmsForm.asp?type=R","Etablissements",180,"","","","",aBord);
														mCpms1.add("/pgens/cpms/ListCpmsForm.asp?type=E","CPMS de référence",180,"","","","",aBord);

													 mCpms1.End();


												mCpms.add("/pgens/CPMS/metiers.htm","Métiers",150,"","","","",aBord);
												mCpms.add("/pgens/CPMS/formation_orientation.htm","Formation",150,"","","","",aBord);
												mCpms.add("/pgens/CPMS/doc_orientation.htm","Documentation",150,"","","","",aBord);
												mCpms.add("/pgens/CPMS/w_orientation.htm","Emploi & Travail",150,"","","","",aBord);
										mCpms.End();


								mEns.add("/pgens/jurys/jurys.htm","Les jurys",150,"","","","",aBord);
								mEns.add("/pgens/conges_scolaires.htm","Calendrier scolaire",150,"","","","",aBord);
								mEns.add("/images/logos/logos.htm","Notre logo",150,"","","","",aBord);
								mEns.End();
					
					aMenu.add("/bibliotheque.htm","<b>Bibliothèque</b>",120,"center","","","",aBord); 
							var mBib=LM.addMenu("mBib");
									mBib.Begin("v",130,24,aColor,aFont,aBar);
										mBib.add("/pgres/programmes/index.htm","Programmes d'études",200,"","","","",aBord);
										mBib.add("#","Textes-cadres",200,"","","","",aBord);
										var mCad=LM.addMenu("mCad","js/",aGrid);
												mCad.Begin("v",160,18,aColor,aFont,aBar);
													mCad.add("http://www.gallilex.cfwb.be/fr/leg_res_01.php?ncda=21557&referant=l02&bck_ncda=21557&bck_referant=l00",'Décret "Missions"',210,"","_blank","","",aBord);
													mCad.add("/pgres/projetsCF/projets.htm","Projets pédagogique et éducatif",210,"","","","",aBord);
													mCad.add("http://www.enseignement.be/gen/syst/documentation/soclesmenu.asp","Socles de compétences",210,"","_blank","","",aBord);
													mCad.add("http://www.enseignement.be/gen/syst/documentation/comptermenu.asp","Compétences terminales",210,"","_blank","","",aBord);
													mCad.add("http://www.enseignement.be/prof/info/documentation/profils_menu.asp","Profils de qualification & de formation",210,"","_blank","","",aBord);										
													mCad.add("/pgres/programmes/index.htm","Programmes d'études",210,"","","","",aBord);
												mCad.End();
										mBib.add("#","Publications & Revues",200,"","","","",aBord);
										var mPub=LM.addMenu("mPub");
												mPub.Begin("v",160,40,aColor,aFont,aBar);
													mPub.add("/pgres/revues.htm","Publications",250,"","","","",aBord);
													mPub.add("/pgres/copil/nouvelles/index.htm","<i><b>Les Nouvelles</b></i> du Réseau d'Enseignement organisé par la Communauté française",250,"","_blank","","",aBord);
													mPub.add("/pgres/copil/nouvelles/dossiers.htm","<b>Les Dossiers</b> des <i>Nouvelles</i>",250,"","_blank","","",aBord);
													mPub.add("/pgres/infoped/index.htm","<i><b>Informations pédagogiques</i></b>",250,"","","","",aBord);
												mPub.End();
										mBib.add("/pgres/cdip/CdipHome.htm","Cellule de Documentation & d'Information pédagogiques",200,"","_blank","","",aBord);
										mBib.add("/pgres/docForm.asp","Base documentaire",200,"","","","",aBord);
										mBib.add("/pgint/sitesForm.asp","Répertoires de sites",200,"","","","",aBord);
										mBib.add("/pgint/sites_thematiques.htm","Sites thématiques",200,"","","","",aBord);
										var mThe=LM.addMenu("mThe");
												mThe.Begin("v",160,70,aColor,aFont,aBar);
													mThe.add("http://www.restode.cfwb.be/biodidac","Biodidac",160,"","_blank","","",aBord);
													mThe.add("http://www.restode.cfwb.be/bdj","Cellule BDJ",160,"", "_blank","","",aBord);
													mThe.add("http://www.restode.cfwb.be/desmuses","Desmuses",160,"", "_blank","","",aBord);
													mThe.add("http://www.restode.cfwb.be/didachim","Didachim",160,"", "_blank","","",aBord);
													mThe.add("http://www.restode.cfwb.be/econet","Econet",160,"", "_blank","","",aBord);
													mThe.add("http://www.restode.cfwb.be/francais","e-fr@nçais",160,"", "_blank","","",aBord);
													mThe.add("http://www.restode.cfwb.be/linguanet","Linguanet", 160,"", "_blank","","",aBord);
													mThe.add("http://www.restode.cfwb.be/sctech","Sciences et Technologie",160,"", "_blank","","",aBord);
												mThe.End()
							mBib.End();
					aMenu.add("/pgens/CPMS/cpms.htm","<b>Orientation</b>",120,"center","","","",aBord); 
					var mOri=LM.addMenu("mOri");
							mOri.Begin("v",250,24,aColor,aFont,aBar);
								mOri.add("/pgens/CPMS/cpms.htm","Centres PMS",150,"","","","",aBord);
								mOri.add("/pgens/CPMS/doc_orientation.htm","Études et professions",150,"","","","",aBord);
								mOri.add("/pgens/CPMS/metiers.htm","Métiers",150,"","","","",aBord);
								mOri.add("/pgens/CPMS/W_orientation.htm","Emploi & travail",150,"","","","",aBord);
							mOri.End()
					aMenu.add("/pgeve/even.asp","<b>Événements</b>",120,"center","","","",aBord); 
					aMenu.add("/contacts.htm","<b>Contacts</b>",120,"center","","","",aBord);
					//var mCom=LM.addMenu("mCom");
							//mCom.Begin("v",263,27,aColor,aFont,aBar);
								//mCom.add("/contacts.htm","Nous écrire",140,"","","","",aBord);
								//mCom.add("#","Listes de diffusion",140,"","","","",aBord);
								//mCom.add("/pgint/echanges.htm","Échanges/Partenariats",140,"","","","",aBord);
							//mCom.End() 
					aMenu.add("/aide.htm","<b>Aide</b>",120,"center","","","",aBord); 
					var mOut=LM.addMenu("mOut");
							mOut.Begin("v",610,24,aColor,aFont,aBar);
								mOut.add("/index.htm","Accueil",120,"","","","",aBord);
								mOut.add("/plan.htm","Plan du site",120,"","","","",aBord); 
								mOut.add("/idx.asp","Index",120,"","","","",aBord); 
								mOut.add("/nouveautes.asp","Nouveautés",120,"","","","",aBord);
								mOut.add("#","Rechercher",120,"","","","",aBord);
								var mRec=LM.addMenu("mRec");
												mRec.Begin("v",95,80,aColor,aFont,aBar);
													mRec.add("/chercher.htm","Sur ce site",130,"","","","",aBord);
													mRec.add("/pgint/rechercher.htm","Sur Internet",160,"","","","",aBord);
												mRec.End()
							mOut.End()
					aMenu.add("/restode.htm","<b>Restode ?</b>",120,"center","","","",aBord); 
					aMenu.End();
		LM.construct();
//=============================================================
function InitBro(pDebug) {bro=LM.bro;bro.ShowCR(pDebug);};
//=============================================================
