﻿

// ******************************************************************

var ie = /MSIE/.test(navigator.userAgent);
var moz = !ie && navigator.product == "Gecko";
var csch = "/";
var $=function(id){return document.getElementById(id);};

if (moz) {
    	HTMLElement.prototype.__defineGetter__("children", function() {
			var arr = new Array(), i = 0, l = this.childNodes.length;
			for ( i = 0; i < l; i++ ) {
				if ( this.childNodes[ i ].nodeType == 1 ) {
					arr.push( this.childNodes[ i ] );
				}
			}
			return arr;
		});
		HTMLElement.prototype.__defineGetter__("firstChild", function() {
			var node = this.childNodes[ 0 ];
			while (node.nodeType != 1) node = node.nextSibling;
			return node;
		});
		HTMLElement.prototype.__defineGetter__("lastChild", function() {
			var node = this.childNodes[ this.childNodes.length - 1 ];
			while (node.nodeType != 1) node = node.previousSibling;
			return node;
		});
}




// ***************************************************************************
//             fonctions   OVER 
// ***************************************************************************

function chgClassName(elmt,value)
{
	
	elmt.className = value;	
}


function chgClassNamebyId(id,value)
{
	
	document.getElementById(id).className = value;	
	document.getElementById(id).style.display.background = document.getElementById(id).style.display.background ;
}

