// JavaScript Document
// ****
	var firstnavName = "ctn_firstnav";
	var siblings     = new Array();
	var lastOpenId   = "";
	var currentNavId = "";

	// ****
	function isNull(_o)
	{
		// ****
		var rValue = true;

		// ****
		rValue = (_o === null);

		// ****
		return rValue;
	}

	// ****
	function isNotNull(_o)
	{
		// ****
		var rValue = true;

		// ****
		rValue = (!isNull(_o));

		// ****
		return rValue;
	}

	// ****
	function getEl(_id)
	{
		// ****
		var rValue = null;

		// ****
		var tmp;

		// ****
		tmp = window.document.getElementById(_id);

		// ****
		rValue = tmp;
		tmp    = null;

		// ****
		return rValue;
	}

	function sibling(_id, _o)
	{
		this.id      = _id;
		this.sibling = _o;
	}

	function setdEvent()
	{
		// ****
		var root;
		var c;
		var o;
		var i;
		var iMax;
		var siblingId;
		var sibling;

		// ****
		root = getEl(firstnavName);

		// ****
		if( isNotNull(root) )
		{
			// ****
			c    = root.getElementsByTagName("a");
			iMax   = c.length;

			// *****
			for(i = 0; i < iMax; i++)
			{
				// ****
				o = c[i];

				// ****
				if( isNotNull(o.getAttribute("id")) )
				{
					siblingId = o.getAttribute("id") + "_";
					sibling   = getEl(siblingId);

					// ****
					if( isNotNull(sibling) )
					{
						siblings[o.getAttribute("id")] = sibling;
						sibling.style.display          = "none";
						o.onclick                      = function(){openClose(this.id);}
					}
				}
			}
		}
	}

	// *****
	function openClose(_id)
	{
		// ****
		var lastId;

		// ****
		lastOpenId = (lastOpenId != "") ? lastOpenId : _id;

		// ****
		siblings[lastOpenId].style.display = "none";
		siblings[_id].style.display = "block";

		// ****
		lastOpenId = _id;

	}

	function init()	{
		setdEvent();
		if(currentNavId != ""){
			openClose(currentNavId);
		}
		// **** récupère les paires clé/valeur de la chaîne de connexion.		
		/*
		if(isDemo){
			HttpVars = getHttpVars();
			changeCssFile();
		}
		*/
	}


	window.onload = init;
