// JavaScript Document
// ****
	var firstnavName = "ctn_firstnav";
	var siblings     = new Array();
	var lastOpenId   = "";

	// ****
	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 hideInfosBulle(){
	
		// ****
		var listInfosBulle;
		var i;
		
		// ****
		listInfosBulle= document.getElementsByTagName('div');	
		
		// ****
		for(i=0; i<listInfosBulle.length; i++){
			if(listInfosBulle[i].className == 'infos_bulle')
				listInfosBulle[i].style.display = "none";
		}
	
	}
	
	
	function hideInfosBulle_bis(){
	
		// ****
		var listInfosBulle;
		var i;
		
		// ****
		listInfosBulle= document.getElementsByTagName('div');	
		
		// ****
		for(i=0; i<listInfosBulle.length; i++){
			if(listInfosBulle[i].className == 'infos_bulle_bis'){
				listInfosBulle[i].style.display = "none";
				listInfosBulle[i].style.position = "absolute";
			}
		}
	
	}
	

	function init(){		
		setdEvent();		
		hideInfosBulle();
		hideInfosBulle_bis();
		// **** récupère les paires clé/valeur de la chaîne de connexion.		
		/*
		if(isDemo){
			HttpVars = getHttpVars();
			changeCssFile();
		}
		*/
	}


	window.onload = init;

