var bold = null;
var italic = null;
function	pop(item, figure, title) {
	window.open(item, "Figure " + figure + " : " + title,
	'toolbar=0,location=0,statusbar=0,menubar=0,resizable=1');
}
function	copyright() {
	alert("Ce document est (c) Bastien Durel 2005\r\n"+
		"This document is (c) Bastien Durel 2005");
}
function	toBold(item) {
	it = document.getElementById("i" + item);
	if (it != null) {
		if (bold != null && bold.style != null) {
			bold.style.fontWeight = "normal";
		}
		it.style.fontWeight = "bold";
		bold = it;
	} else throw "Can't find " + item;
	return true;
}
function	toItalic(item) {
	it = document.getElementById("i" + item);
	if (it != null) {
		if (italic != null && italic.style != null) {
			italic.style.fontStyle = "normal";
		}
		it.style.fontStyle = "italic";
		italic = it;
	} else throw "Can't find " + item;
}
function	init(item) {
	loc = location.pathname;
	page = loc.substring(loc.length - 1, loc.length);
	try {
		toItalic("p"+page);
	} catch (e) {}
	if ((location.hash != null && location.hash != "") || item != '') {
		if (item != '') {
			loc = item;
		} else {
			loc = location.hash;
			loc = loc.substring(1, loc.length);
		}
		try {
			toBold(page+loc);
		} catch (e) {}
	}
}