ï»¿function alertes()
{
 return true; 
 }
//window.onerror=alertes;

var newWindow = null;

function closeWin()
{
	if (newWindow != null)
	{
		if(!newWindow.closed)
			newWindow.close();
	}
}
  
function redirect(adresse)
{
window.location="/redirect.asp?path="+adresse;
}
function changecss(adresse)
{
window.location=adresse
}
function popUpWin(url, type, strWidth, strHeight)
{
	
	closeWin();
	
	if (type == "fullScreen")
	{
		strWidth = screen.availWidth - 10;
		strHeight = screen.availHeight - 160;
	}
	
	var tools="";
	if (type == "standard" || type == "fullScreen") tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width="+strWidth+",height="+strHeight+",top=0,left=0";
	if (type == "console") tools = "resizable,toolbar=no,location=no,scrollbars=no,width="+strWidth+",height="+strHeight+",left=0,top=0";
	newWindow = window.open(url, 'newWin', tools);
	newWindow.focus();
}
function cleardefault(el)
 {
if (el.defaultValue==el.value) el.value = ""
}

function newsletter(langue)
 {
  if (document.forms.mailing.email.value==""||document.forms.mailing.email.value=="Votre e-mail"||document.forms.mailing.email.value=="Your e-mail")
 {
 if (langue=="fr")
 {	
 var missing="Veuillez indiquer votre adresse e-mail"
 }
  if (langue=="en")
 {	
 var missing="E-mail form is required"
 }
  if (langue=="es")
 {	
 var missing="E-mail form is required"
 }
 alert(missing);
 document.forms.mailing.email.focus();
 document.forms.mailing.email.select();
 return;
 }
 
  document.forms.mailing.submit();
 }	
 function rec(langue)
 {	  
   if (document.forms.rec.nom.value=="")
 {
 if (langue=="fr")
 {	
 var missing="Veuillez indiquer votre nom"
 }
  if (langue=="en")
 {	
 var missing="Lastname form is required"
 }
  if (langue=="es")
 {	
 var missing="Lastname form is required"
 }
 alert(missing);
 document.forms.rec.nom.focus();
 document.forms.rec.nom.select();
 return;
 }
    if (document.forms.rec.prenom.value=="")
 {
 if (langue=="fr")
 {	
 var missing="Veuillez indiquer votre prénom"
 }
  if (langue=="en")
 {	
 var missing="Firstname form is required"
 }
  if (langue=="es")
 {	
 var missing="Firstname form is required"
 }
 alert(missing);
 document.forms.rec.prenom.focus();
 document.forms.rec.prenom.select();
 return;
 } 

  if (document.forms.rec.email.value=="")
 {
 if (langue=="fr")
 {	
 var missing="Veuillez indiquer votre adresse e-mail"
 }
  if (langue=="en")
 {	
 var missing="E-mail form is required"
 }
  if (langue=="es")
 {	
 var missing="E-mail form is required"
 }
 alert(missing);
 document.forms.rec.email.focus();
 document.forms.rec.email.select();
 return;
 } 
       if (document.forms.rec.snom.value=="")
 {
 if (langue=="fr")
 {	
 var missing="Veuillez indiquer le nom du destinataire"
 }
  if (langue=="en")
 {	
 var missing="Recipient lastname form is required"
 }
  if (langue=="es")
 {	
 var missing="Recipient lastname form is required"
 }
 alert(missing);
 document.forms.rec.snom.focus();
 document.forms.rec.snom.select();
 return;
 }
     if (document.forms.rec.sprenom.value=="")
 {
 if (langue=="fr")
 {	
 var missing="Veuillez indiquer le prénom du destinataire"
 }
  if (langue=="en")
 {	
 var missing="Recipient Firstname form is required"
 }
  if (langue=="es")
 {	
 var missing="Recipient Firstname form is required"
 }
 alert(missing);
 document.forms.rec.sprenom.focus();
 document.forms.rec.sprenom.select();
 return;
 }
 	     if (document.forms.rec.semail.value=="")
 {
 if (langue=="fr")
 {	
 var missing="Veuillez indiquer l\'adresse e-mail du destinataire"
 }
  if (langue=="en")
 {	
 var missing="Recipient e-mail address form is required"
 }
  if (langue=="es")
 {	
 var missing="Recipient e-mail address form is required"
 }
 alert(missing);
 document.forms.rec.semail.focus();
 document.forms.rec.semail.select();
 return;
 }
  document.forms.rec.submit();
 }	

window.onload = function()
{
    if (window.winOnLoad) window.winOnLoad();
}
window.onunload = function()
{
    if (window.winOnUnload) window.winOnUnload();
}
/* x_core.js compiled from X 4.0 with XC 0.27b. Distributed by GNU LGPL. For copyrights, license, documentation and more visit Cross-Browser.com */
var xOp7Up,xOp6Dn,xIE4Up,xIE4,xIE5,xNN4,xUA=navigator.userAgent.toLowerCase();
if(window.opera)
{
var i=xUA.indexOf('opera');
if(i!=-1)
{
var v=parseInt(xUA.charAt(i+6));
xOp7Up=v>=7;
xOp6Dn=v<7;
}
}
else if(navigator.vendor!='KDE' && document.all && xUA.indexOf('msie')!=-1)
{
xIE4Up=parseFloat(navigator.appVersion)>=4;
xIE4=xUA.indexOf('msie 4')!=-1;
xIE5=xUA.indexOf('msie 5')!=-1;
}
else if(document.layers)
{
xNN4=true;
}
xMac=xUA.indexOf('mac')!=-1;
function xBackground(e,c,i)
{
if(!(e=xGetElementById(e))) return '';
var bg='';if(e.style)
 {
 if(xStr(c)) 
 {
 if(!xOp6Dn) e.style.backgroundColor=c;
 else 
 e.style.background=c;
 }
 if(xStr(i)) e.style.backgroundImage=(i!='')? 'url('+i+')' : null;if(!xOp6Dn) bg=e.style.backgroundColor;
 else
  bg=e.style.background;
  }
  return bg;
  }
  function xClientHeight()
  {
  var h=0;if(xOp6Dn) h=window.innerHeight;
  else if(document.compatMode == 'CSS1Compat' && !window.opera && document.documentElement && document.documentElement.clientHeight)h=document.documentElement.clientHeight;
  else if(document.body && document.body.clientHeight)h=document.body.clientHeight;
  else if(xDef(window.innerWidth,window.innerHeight,document.width))
   {
   h=window.innerHeight;
   if(document.width>window.innerWidth) h-=16;
   }
   return h;
   }
   function xClientWidth()
   {
   var w=0;if(xOp6Dn) w=window.innerWidth;
   else if(document.compatMode == 'CSS1Compat' && !window.opera && document.documentElement && document.documentElement.clientWidth)w=document.documentElement.clientWidth;
   else if(document.body && document.body.clientWidth)w=document.body.clientWidth;
   else if(xDef(window.innerWidth,window.innerHeight,document.height)) 
   {
   w=window.innerWidth;
   if(document.height>window.innerHeight) w-=16;
   }
   return w;
   }
   function xClip(e,t,r,b,l)
   {
   if(!(e=xGetElementById(e))) return;if(e.style)
    {
	if (xNum(l)) e.style.clip='rect('+t+'px '+r+'px '+b+'px '+l+'px)';
	else e.style.clip='rect(0 '+parseInt(e.style.width)+'px '+parseInt(e.style.height)+'px 0)';
	}
	}
	function xColor(e,s)
	{
	if(!(e=xGetElementById(e))) return '';var c='';if(e.style && xDef(e.style.color))
	 {
	 if(xStr(s)) e.style.color=s;c=e.style.color;
	 }
	 return c;
	 }
	 function xDef()
	 {
	 for(var i=0; i<arguments.length; ++i)
	 {
	 if(typeof(arguments[i])=='undefined') return false;
	 }
	 return true;
	 }
	 function xDisplay(e,s)
	 {
	 if(!(e=xGetElementById(e))) return null;
	 if(e.style && xDef(e.style.display)) 
	 {
	 if (xStr(s)) e.style.display = s;
	 return e.style.display;
	 }
	 return null;
	 }
	 function xGetComputedStyle(oEle, sProp, bInt)
	 {
	 var s, p = 'undefined';
	 var dv = document.defaultView;
	 if(dv && dv.getComputedStyle)
	 {
	 s = dv.getComputedStyle(oEle,'');
	 if (s) p = s.getPropertyValue(sProp);
	 }
	 else if(oEle.currentStyle)
	  {
	  var a = sProp.split('-');
	  sProp = a[0];
	  for (var i=1; i<a.length; ++i) 
	  {
	  c = a[i].charAt(0);
	  sProp += a[i].replace(c, c.toUpperCase());
	  } 
	    p = oEle.currentStyle[sProp];
		}
		else return null;
		return bInt ? (parseInt(p) || 0) : p;
		}
		function xGetElementById(e)
		{
		if(typeof(e)!='string') return e;
		if(document.getElementById) e=document.getElementById(e);
		else if(document.all) e=document.all[e];
		else e=null;return e;
		}
		function xHasPoint(e,x,y,t,r,b,l){if (!xNum(t))
		{
		t=r=b=l=0;
		}
		else if (!xNum(r)){r=b=l=t;
		}
		else if (!xNum(b)){l=r; b=t;
		}
		var eX = xPageX(e), eY = xPageY(e);return (x >= eX + l && x <= eX + xWidth(e) - r &&y >= eY + t && y <= eY + xHeight(e) - b );
		}
		function xHeight(e,h)
		{
		if(!(e=xGetElementById(e))) return 0;
		if (xNum(h))
		 {
		 if (h<0) h = 0;else h=Math.round(h);
		 }
		 else
		  h=-1;var css=xDef(e.style);
		  if (e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body') 
		  {
		  h = xClientHeight();
		  }
		  else if(css && xDef(e.offsetHeight) && xStr(e.style.height))
		   {
		   if(h>=0)
		    {
			var pt=0,pb=0,bt=0,bb=0;
			if (document.compatMode=='CSS1Compat')
			 {
			 var gcs = xGetComputedStyle;
			 pt=gcs(e,'padding-top',1);
			 if (pt !== null)
			  {
			  pb=gcs(e,'padding-bottom',1);
			  bt=gcs(e,'border-top-width',1);
			  bb=gcs(e,'border-bottom-width',1);
			  }
			  else if(xDef(e.offsetHeight,e.style.height))
			  {
			  e.style.height=h+'px';
			  pt=e.offsetHeight-h;
			  }
			  }
			  h-=(pt+pb+bt+bb);
			  if(isNaN(h)||h<0) return;
			  else e.style.height=h+'px';
			  }
			  h=e.offsetHeight;
			  }
			  else if(css && xDef(e.style.pixelHeight)) 
			  {
			  if(h>=0) e.style.pixelHeight=h;h=e.style.pixelHeight;
			  }
			  return h;
			  }
			  function xHide(e)
			  {
			  return xVisibility(e,0);
			  }
			  function xLeft(e, iX)
			  {
			  if(!(e=xGetElementById(e))) return 0;
			  var css=xDef(e.style);
			  if (css && xStr(e.style.left))
			   {
			   if(xNum(iX)) e.style.left=iX+'px';
			   else {iX=parseInt(e.style.left);
			   if(isNaN(iX)) iX=0;
			   }
			   }
			   else if(css && xDef(e.style.pixelLeft))
			    {
				if(xNum(iX)) e.style.pixelLeft=iX;
				else iX=e.style.pixelLeft;
				}
				return iX;
				}
				function xMoveTo(e,x,y){xLeft(e,x);xTop(e,y);
				}
				function xNum()
				{
				for(var i=0; i<arguments.length; ++i)
				{
				if(isNaN(arguments[i]) || typeof(arguments[i])!='number') return false;
				}
				return true;
				}
				function xOffsetLeft(e)
				{
				if (!(e=xGetElementById(e))) return 0;
				if (xDef(e.offsetLeft)) return e.offsetLeft;
				else return 0;
				}
				function xOffsetTop(e)
				{
				if (!(e=xGetElementById(e))) return 0;
				if (xDef(e.offsetTop)) return e.offsetTop;
				else return 0;
				}
				function xPageX(e)
				{
				if (!(e=xGetElementById(e))) return 0;
				var x = 0;while (e) 
				{
				if (xDef(e.offsetLeft)) x += e.offsetLeft;
				e = xDef(e.offsetParent) ? e.offsetParent : null;
				}
				return x;
				}
				function xPageY(e)
				{
				if (!(e=xGetElementById(e))) return 0;
				var y = 0;
				while (e)
				 {
				 if (xDef(e.offsetTop)) y += e.offsetTop;
				 e = xDef(e.offsetParent) ? e.offsetParent : null;
				 }
				 return y;
				 }
				 function xParent(e, bNode)
				 {
				 if (!(e=xGetElementById(e))) return null;
				 var p=null;
				 if (!bNode && xDef(e.offsetParent)) p=e.offsetParent;
				 else if (xDef(e.parentNode)) p=e.parentNode;
				 else if (xDef(e.parentElement)) p=e.parentElement;
				 return p;
				 }
				 function xResizeTo(e,w,h){xWidth(e,w);xHeight(e,h);
				 }
				 function xScrollLeft(e, bWin)
				 {
				 var offset=0;
				 if (!xDef(e) || bWin || e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body')
				  {
				  var w = window;
				  if (bWin && e) w = e;
				  if(w.document.documentElement && w.document.documentElement.scrollLeft) offset=w.document.documentElement.scrollLeft;
				  else if(w.document.body && xDef(w.document.body.scrollLeft)) offset=w.document.body.scrollLeft;
				  }
				  else {
				  e = xGetElementById(e);
				  if (e && xNum(e.scrollLeft)) offset = e.scrollLeft;
				  }
				  return offset;
				  }
				  function xScrollTop(e, bWin)
				  {
				  var offset=0;
				  if (!xDef(e) || bWin || e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body')
				   {
				   var w = window;
				   if (bWin && e) w = e;
				   if(w.document.documentElement && w.document.documentElement.scrollTop) offset=w.document.documentElement.scrollTop;
				   else if(w.document.body && xDef(w.document.body.scrollTop)) offset=w.document.body.scrollTop;
				   }
				   else 
				   {
				   e = xGetElementById(e);
				   if (e && xNum(e.scrollTop)) offset = e.scrollTop;
				   }
				   return offset;
				   }
				   function xShow(e) 
				   {
				   return xVisibility(e,1);
				   }
				   function xStr(s)
				   {
				   for(var i=0; i<arguments.length; ++i)
				   {
				   if(typeof(arguments[i])!='string') return false;
				   }
				   return true;
				   }
				   function xTop(e, iY)
				   {
				   if(!(e=xGetElementById(e))) return 0;
				   var css=xDef(e.style);if(css && xStr(e.style.top))
				    {
					if(xNum(iY)) e.style.top=iY+'px';
					else {
					iY=parseInt(e.style.top);
					if(isNaN(iY)) iY=0;
					}
					}
					else if(css && xDef(e.style.pixelTop))
					 {
					 if(xNum(iY)) e.style.pixelTop=iY;
					 else iY=e.style.pixelTop;
					 }
					 return iY;
					 }
					 function xVisibility(e, bShow)
					 {
					 if(!(e=xGetElementById(e))) return null;
					 if(e.style && xDef(e.style.visibility))
					  {
					  if (xDef(bShow)) e.style.visibility = bShow ? 'visible' : 'hidden';
					  return e.style.visibility;}return null;
					  }
					  function xWidth(e,w)
					  {
					  if(!(e=xGetElementById(e))) return 0;if (xNum(w)) 
					  {
					  if (w<0) w = 0;else w=Math.round(w);
					  }
					  else w=-1;
					  var css=xDef(e.style);
					  if (e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body') 
					  {
					  w = xClientWidth();
					  }
					  else if(css && xDef(e.offsetWidth) && xStr(e.style.width))
					   {
					   if(w>=0) {
					   var pl=0,pr=0,bl=0,br=0;
					   if (document.compatMode=='CSS1Compat') 
					   {
					   var gcs = xGetComputedStyle;
					   pl=gcs(e,'padding-left',1);
					   if (pl !== null) 
					   {
					   pr=gcs(e,'padding-right',1);
					   bl=gcs(e,'border-left-width',1);
					   br=gcs(e,'border-right-width',1);
					   }
					   else if(xDef(e.offsetWidth,e.style.width))
					   {
					   e.style.width=w+'px';pl=e.offsetWidth-w;
					   }
					   }
					   w-=(pl+pr+bl+br);
					   if(isNaN(w)||w<0) return;else e.style.width=w+'px';
					   }
					   w=e.offsetWidth;
					   }
					   else if(css && xDef(e.style.pixelWidth))
					    {
						if(w>=0) e.style.pixelWidth=w;w=e.style.pixelWidth;
						}
						return w;
						}
						function xZIndex(e,uZ)
						{
						if(!(e=xGetElementById(e))) return 0;
						if(e.style && xDef(e.style.zIndex)) 
						{
						if(xNum(uZ)) e.style.zIndex=uZ;uZ=parseInt(e.style.zIndex);
						}
						return uZ;
						}
/* x_dom.js compiled from X 4.0 with XC 0.27b. Distributed by GNU LGPL. For copyrights, license, documentation and more visit Cross-Browser.com */
function xAppendChild(oParent, oChild)
{
if (oParent.appendChild) return oParent.appendChild(oChild);
else 
return null;
}
function xCreateElement(sTag)
{
if (document.createElement) return document.createElement(sTag);
else 
return null;
}
function xFirstChild(e, t)
{
var c = e ? e.firstChild : null;
if (t) while (c && c.nodeName != t) 
{ 
c = c.nextSibling; 
}
else 
while (c && c.nodeType != 1)
 {
  c = c.nextSibling; 
  }
  return c;
  }
  function xGetComputedStyle(oEle, sProp, bInt)
  {
  var s, p = 'undefined';
  var dv = document.defaultView;
  if(dv && dv.getComputedStyle)
  {
  s = dv.getComputedStyle(oEle,'');
  if (s) p = s.getPropertyValue(sProp);
  }
  else 
  if(oEle.currentStyle) 
  {
  var a = sProp.split('-');
  sProp = a[0];
  for (var i=1; i<a.length; ++i) 
  {
  c = a[i].charAt(0);
  sProp += a[i].replace(c, c.toUpperCase());
  } 
    p = oEle.currentStyle[sProp];
	}
	else return null;
	return bInt ? (parseInt(p) || 0) : p;
	}
	function xGetElementsByAttribute(sTag, sAtt, sRE, fn)
	{
	var a, list, found = new Array(), re = new RegExp(sRE, 'i');list = xGetElementsByTagName(sTag);
	for (var i = 0; i < list.length; ++i) 
	{
	a = list[i].getAttribute(sAtt);
	if (!a) 
	{
	a = list[i][sAtt];
	}
	if (typeof(a)=='string' && a.search(re) != -1) 
	{
	found[found.length] = list[i];
	if (fn) fn(list[i]);
	}
	}
	return found;
	}
	function xGetElementsByClassName(c,p,t,f)
	{
	var found = new Array();
	var re = new RegExp('\\b'+c+'\\b', 'i');
	var list = xGetElementsByTagName(t, p);
	for (var i = 0; i < list.length; ++i) 
	{
	if (list[i].className && list[i].className.search(re) != -1) 
	{
	found[found.length] = list[i];
	if (f) f(list[i]);
	}
	}
	return found;
	}
	function xGetElementsByTagName(t,p)
	{
	var list = null;
	t = t || '*';
	p = p || document;
	if (xIE4 || xIE5)
	 {
	 if (t == '*') list = p.all;
	 else 
	 list = p.all.tags(t);
	 }
	 else 
	 if (p.getElementsByTagName) list = p.getElementsByTagName(t);
	 return list || new Array();
	 }
	 function xInnerHtml(e,h)
	 {
	 if(!(e=xGetElementById(e)) || !xStr(e.innerHTML)) return null;
	 var s = e.innerHTML;
	 if (xStr(h)) 
	 {
	 e.innerHTML = h;
	 }
	 return s;
	 }
	 function xNextSib(e,t)
	 {
	 var s = e ? e.nextSibling : null;
	 if (t) while (s && s.nodeName != t)
	  { 
	  s = s.nextSibling; 
	  }
	  else
	   while (s && s.nodeType != 1)
	   { 
	   s = s.nextSibling; 
	   }
	   return s;
	   }
	   function xPrevSib(e,t)
	   {
	   var s = e ? e.previousSibling : null;
	   if (t) while(s && s.nodeName != t) 
	   {
	   s=s.previousSibling;
	   }
	   else 
	   while(s && s.nodeType != 1)
	    {
		s=s.previousSibling;
		}
		return s;
		}
		function xWalkEleTree(n,f,d,l,b)
		{
		if (typeof l == 'undefined') l = 0;
		if (typeof b == 'undefined') b = 0;
		var v = f(n,l,b,d);
		if (!v) return 0;
		if (v == 1)
		 {
		 for (var c = n.firstChild; c; c = c.nextSibling)
		  {
		  if (c.nodeType == 1)
		   {
		   if (!l) ++b;
		   if (!xWalkEleTree(c,f,d,l+1,b)) return 0;
		   }
		   }
		   }
		   return 1;
		   }
		   function xWalkTree(n, f)
		   {
		   f(n);
		   for (var c = n.firstChild; c; c = c.nextSibling)
		    {
			if (c.nodeType == 1) xWalkTree(c, f);
			}
			}
// xCollapsible, Copyright 2005 Michael Foster (Cross-Browser.com)
// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL

function xCollapsible(outerEle, bShow) // object prototype
{
  // Constructor

  var container = xGetElementById(outerEle);
  if (!container) {return null;}
  var isUL = container.nodeName.toUpperCase() == 'UL';
  var i, trg, aTgt = xGetElementsByTagName(isUL ? 'UL':'DIV', container);
  for (i = 0; i < aTgt.length; ++i) {
    trg = xPrevSib(aTgt[i]);
    if (trg && (isUL || trg.nodeName.charAt(0).toUpperCase() == 'H')) {
      aTgt[i].xTrgPtr = trg;
      aTgt[i].style.display = bShow ? 'block' : 'none';
      trg.style.cursor = 'pointer';
      trg.xTgtPtr = aTgt[i];
      trg.onclick = trg_onClick;
      trg.onfocus = trg_onClick;
    }  
  }
  
  // Private

  function trg_onClick()
  {
    var tgt = this.xTgtPtr.style;
    if (tgt.display == 'none') {
      tgt.display = 'block';
    }  
    else {
      tgt.display = 'none';
    }
  }

  // Public

  this.displayAll = function(bShow)
  {
    for (var i = 0; i < aTgt.length; ++i) {
      if (aTgt[i].xTrgPtr) {
        xDisplay(aTgt[i], bShow ? "block":"none");
      }
    }
  };

  // The unload listener is for IE's circular reference memory leak bug.
  this.onUnload = function()
  {
    if (!xIE4Up || !container || !aTgt) {return;}
    for (i = 0; i < aTgt.length; ++i) {
      trg = aTgt[i].xTrgPtr;
      if (trg) {
        if (trg.xTgtPtr) {
          trg.xTgtPtr.TrgPtr = null;
          trg.xTgtPtr = null;
        }
        trg.onclick = null;
         trg.onfocus = null;
      }
    }
  };
}
// sousmenu15.js, part of X, a Cross-Browser.com Javascript Library
// Copyright (C) 2004,2005 Michael Foster - Distributed under the terms of the GNU LGPL - OSI Certified

function sousmenu15(idUL, btnClass, idAutoOpen) 
{

  var i, ul, btns, mnu = xGetElementById(idUL);
  btns = xGetElementsByClassName(btnClass, mnu, 'DIV');
  for (i = 0; i < btns.length; ++i) {
    ul = xNextSib(btns[i], 'UL');
    btns[i].xClpsTgt = ul;
    btns[i].onclick = btn_onClick;
     btns[i].onfocus = btn_onClick;
    set_display(btns[i], 0);
  }
  if (idAutoOpen) {
    var e = xGetElementById(idAutoOpen);
    while (e && e != mnu) {
      if (e.xClpsTgt) set_display(e, 1);
      while (e && e != mnu && e.nodeName != 'LI') e = e.parentNode;
      e = e.parentNode; 
      while (e && !e.xClpsTgt) e = xPrevSib(e);
    }
  }
  
  function btn_onClick()
  {
    var thisLi, fc, pUl;
    if (this.xClpsTgt.style.display == 'none') {
      set_display(this, 1);
      var li = this.parentNode;
      thisLi = li;
      pUl = li.parentNode; 
      li = xFirstChild(pUl); 
     
      while (li) {
        if (li != thisLi) {
          fc = xFirstChild(li);
          if (fc && fc.xClpsTgt) {
            set_display(fc, 0);
          }
        }
        li = xNextSib(li);
      }
    }  
    else {
      set_display(this, 0);
    }
  }

  function set_display(ele, bBlock)
  {
    if (bBlock) {
      ele.xClpsTgt.style.display = 'block';
      ele.innerHTML = '-';
    }
    else {
      ele.xClpsTgt.style.display = 'none';
      ele.innerHTML = '+';
    }
  }

  this.onUnload = function()
  {
    for (i = 0; i < btns.length; ++i) {
      btns[i].xClpsTgt = null;
      btns[i].onclick = null;
      btns[i].onfocus = null;
    }
  }
} 

var mnu = new Array();
window.onload = function()
{
  mnu[0] = new xCollapsible('listesousmenu');
  mnu[1] = new sousmenu15('xm5', 'sousmenu1Btn', 'xAutoOpen');
  mnu[2] = new xCollapsible('clpsDIV1', true);
  mnu[3] = new xCollapsible('clpsUL2id');
}
window.onunload = function()
{
  for (var i = 0; i < mnu.length; ++i) {
    //mnu[i].onUnload();
  }
}
function doWalkTest()
{
  xWalkEleTree(xGetElementById('listesousmenu'), fnVisit);
  xWalkEleTree(xGetElementById('xm5'), fnVisit);
}
function fnVisit(node, level, branch)
{
  if (node.className == 'sousmenu1Lbl' || node.nodeName == 'SPAN') {
    node.innerHTML = 'Label: Branch ' + branch + ', Level ' + level;
  }
  else if (node.nodeName == 'A') {
    node.innerHTML = 'Item: Branch ' + branch + ', Level ' + level;
  }
  return 1;
}
var s;
function doGenTest()
{
  s = '';
  xGetHtml(xGetElementById('rightColumn'));
  xGetElementById('dbg').value = s;
}
function xGetHtml(oNode, iLevel) {
  if (typeof iLevel == 'undefined') iLevel = 0;
  var thisName = oNode.nodeName.toLowerCase();
  var oneLiner = isOneLiner(thisName);
  for (var i=0; i<iLevel; ++i) s += '  ';
  s += '<' + thisName;
  if (oNode.id.length) s += " id='" + oNode.id + "'";
  if (oNode.className.length) s += " class='" + oNode.className + "'";
  s += '>';
  if (!oneLiner)  s += '\n';
  for (var c = oNode.firstChild; c; c = c.nextSibling) {
    if (c.nodeType == 1) {
      !xGetHtml(c, iLevel + 1);
    }
  }
  if (!oneLiner) for (var i=0; i<iLevel; ++i) s += '  ';
  s += '</' + thisName + '>\n';
}
function isOneLiner(eleNodeName)
{
  if (eleNodeName.charAt(0)=='h' && eleNodeName.length==2) {
    return true;
  }
  switch(eleNodeName) {
    case 'a':
    case 'span':
    case 'input':
    case 'b':
    case 'i':
    case 'script':
    case 'iframe':
      return true;
      break;
    default:
      return false;
  }
}


