var bold = null;
var italic = null;
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) {
	if (location.hash != null && location.hash != "") {
		if (item != '') {
			loc = '#' + item;
		}
		else {
			loc = location.hash;
		}
		loc = loc.substring(1, loc.length);
		try {
			if (loc.substring(0, 1) == "i") toBold(loc);
		} catch (e) {}
		try {
			toItalic("p"+loc.substring(1, 2));
		} catch (e) {}
	}
}
init('');