function addCss(cssCode) {
	var styleElement = document.createElement("style");
	styleElement.type = "text/css";
	if (styleElement.styleSheet) {
		styleElement.styleSheet.cssText = cssCode;
	} else {
		styleElement.appendChild(document.createTextNode(cssCode));
	}
	document.getElementsByTagName("head")[0].appendChild(styleElement);
}
addCss('#book { height:385px !important; overflow:hidden; } #book div { background:none !important; height:300px; } #book div div { overflow:auto; height:180px !important; min-height:180px; } #arrowd, #fired, #waterd, #lightd { display:none; }');

var bookArray = new Array('leaf','arrow','fire','water','light');
var t = '';
function vBook(icon) {
	//alert('newvBook(' + icon + ')');
	t = setTimeout('newvBook("'+icon+'")',300);
}
function newvBook(icon) {
	//alert('test' + icon);
	for (x = 0; x < bookArray.length; x++) {
		document.getElementById(bookArray[x] + 'd').style.display = 'none';
		document.getElementById(bookArray[x]).firstChild.style.visibility = 'visible';
	}
	document.getElementById(icon + 'd').style.display = 'block';
	document.getElementById(icon).firstChild.style.visibility = 'hidden';
	document.getElementById(icon).style.background = 'url(images/' + icon + '_h.gif)';
	return false;
}
function cT() {
	clearTimeout(t);
}
