startList = function() {
	if (document.getElementsByTagName) {
		navRoot = document.getElementsByTagName("a");
		//alert(navRoot);
		for (i=0; i<navRoot.length; i++) {
			node = navRoot[i];
			if (node.className=="showthumb") {
				node.floatnode = false;
				node.onmouseover=function() {
					showThumb(this, this.href);
				}
				node.onmouseout=function() {
					hideThumb(this);
				}
				node.onclick = function() {				
					document.location = "/cgi-bin/rk_ca_2007/recipe.pl?id=" + this.id.substring(5);
					return false;
				}
			}
		}
	}
	goList();
}

function showThumb(node, url) {
	if (!node.floatnode) {
		var newnode = node.parentNode.appendChild(document.createElement("img"));
		newnode.setAttribute("src", url);
		newnode.setAttribute ("class", "floathumb");
		newnode.className = "floathumb";
		newnode.style.display = 'inline';
		node.floatnode = newnode;
	} else {
		node.floatnode.style.display = 'inline';
	}	
}

function hideThumb(node) {
	node.floatnode.style.display = 'none';
}

window.onload=startList;
