// JavaScript Document
function rollOver(nom, source) {
	if (document.images) {
		document.images[nom].src = eval(source + ".src");
	}
}

function rollOverMot(id, etat) {
	var nom = "mot" + id;
	var source = "mot" + id + "_" + etat;
	rollOver(nom, source);

	var nom = "fleche" + id;
	var source = "fleche_" + etat;
	rollOver(nom, source);
}

function getWindowHeight() {
	var windowHeight = 0;
	if (typeof(window.innerHeight) == 'number') {
		windowHeight=window.innerHeight;
	} else {
		if (document.documentElement && document.documentElement.clientHeight) {
			windowHeight = document.documentElement.clientHeight;
		} else {
			if (document.body && document.body.clientHeight) {
				windowHeight = document.body.clientHeight;
			}
		}
	}
	return windowHeight;
}

function getOffsetY(tab) {
	var hDiv = document.getElementById(tab).offsetHeight;
	var hDoc = getWindowHeight();
	var offsetY = 0;
	if (navigator.appName=="Microsoft Internet Explorer") {
		offsetY = document.documentElement.scrollTop + (hDoc - hDiv) / 2;
	} else {
		offsetY = window.pageYOffset + (hDoc - hDiv) / 2;
	}
	return offsetY;
}

