﻿function onOff(li, numero, bool) {
	li.className = bool?"liste_over":((numero % 2)?"impair":"pair");
	
	var desc = document.getElementById("film"+numero);
	
	if (bool) {
		if (currentElement != null) {
			currentElement.style.display= "none";
		}
		desc.style.display = "block";
		currentElement = desc;
	} else {
		
	}
}

var currentElement = document.getElementById("film0");
var indice = document.location.href.lastIndexOf("?film=");
if (indice >- 1) {
	indice += 6;
	var identifiant = document.location.href.substr(indice);
	if (document.getElementById(identifiant) != undefined) {
		var action = new String(document.getElementById(identifiant).onmouseover);
		action = action.replace(/this/gi,"document.getElementById('"+identifiant+"')");
		action = "init = "+action+"\ninit();";
		eval(action);
	}
}