function menuRolloverInit() {

	var allTabs = document.getElementsByTagName("TABLE");

	var classesRe = /\s+/; // Expression régulière pour spliter les noms de classes

	var rubTabStartIndex = 100; // Index de départ pour la superposition des threads

	var nextRubTabLeftPost = 0; // Positionnement à gauche de départ

	for (var i = 0; i < allTabs.length; i++) {

		var thisTabObj = allTabs[i];

		var thisTabClasses = thisTabObj.className.split(classesRe);

		for (j = 0; j < thisTabClasses.length; j++) {

			var thisTabClass = thisTabClasses[j];

			if (thisTabClass == "rubThread") {

				var allRows = document.getElementsByTagName("TR");

				for (var k = 0; k < allRows.length; k++) {

					var thisRowObj = allRows[k];

					var thisRowClasses = thisRowObj.className.split(classesRe);

					for (l = 0; l < thisRowClasses.length; l++) {

						var thisRowClass = thisRowClasses[l];

						if (thisRowClass == thisTabObj.id) {

							thisRowObj.style.display = "none";

							thisTabObj.onmouseover = showThread;

							thisTabObj.onmouseout = hideThread;


						}

					}

				}

				thisTabObj.style.left = nextRubTabLeftPost + "px";

				thisTabObj.style.zIndex = rubTabStartIndex;

				rubTabStartIndex--;

				nextRubTabLeftPost += thisTabObj.clientWidth;

				thisTabObj.style.visibility = "visible";

			}

		}

	}

}

function showThread() {

	var thisTabId = this.id;

	var classesRe = /\s+/;

	var allCells = document.getElementsByTagName("TD");

	for (var i = 0; i < allCells.length; i++) {

		var thisCellObj = allCells[i];

		var thisCellClasses = thisCellObj.className.split(classesRe);

		for (j = 0; j < thisCellClasses.length; j++) {

			var thisCellClass = thisCellClasses[j];

			if ((thisCellClass == thisTabId) && (thisCellObj.className.indexOf("rubThreadTopLeft") > -1)) {
				
				thisCellObj.className += " rubThreadTopLeftOver";
				
			}

			if ((thisCellClass == thisTabId) && (thisCellObj.className.indexOf("rubThreadTopCenter") > -1)) {
				
				thisCellObj.className += " rubThreadTopCenterOver";
				
			}

			if ((thisCellClass == thisTabId) && (thisCellObj.className.indexOf("rubThreadTopRight") > -1)) {
				
				thisCellObj.className += " rubThreadTopRightOver";
				
			}

		}

	}

	var allRows = document.getElementsByTagName("TR");

	for (var i = 0; i < allRows.length; i++) {

		var thisRowObj = allRows[i];

		var thisRowClasses = thisRowObj.className.split(classesRe);

		for (j = 0; j < thisRowClasses.length; j++) {

			var thisRowClass = thisRowClasses[j];

			if (thisRowClass == thisTabId) {

				thisRowObj.style.display = "";

			}

		}

	}

}

function hideThread() {

	var thisTabId = this.id;

	var classesRe = /\s+/;

	var allRows = document.getElementsByTagName("TR");

	for (var i = 0; i < allRows.length; i++) {

		var thisRowObj = allRows[i];

		var thisRowClasses = thisRowObj.className.split(classesRe);

		for (j = 0; j < thisRowClasses.length; j++) {

			var thisRowClass = thisRowClasses[j];

			if (thisRowClass == thisTabId) {

				thisRowObj.style.display = "none";

			}

		}

	}

	var allCells = document.getElementsByTagName("TD");

	for (var i = 0; i < allCells.length; i++) {

		var thisCellObj = allCells[i];

		var thisCellClasses = thisCellObj.className.split(classesRe);

		for (j = 0; j < thisCellClasses.length; j++) {

			var thisCellClass = thisCellClasses[j];

			if ((thisCellClass == thisTabId) && (thisCellObj.className.indexOf("rubThreadTopLeft") > -1)) {
				
				thisCellObj.className = thisCellClass + " rubThreadTopLeft";
				
			}

			if ((thisCellClass == thisTabId) && (thisCellObj.className.indexOf("rubThreadTopCenter") > -1)) {
				
				thisCellObj.className = thisCellClass + " rubThreadTopCenter";
				
			}

			if ((thisCellClass == thisTabId) && (thisCellObj.className.indexOf("rubThreadTopRight") > -1)) {
				
				thisCellObj.className = thisCellClass + " rubThreadTopRight";
				
			}

		}

	}

}
