/*
        navmenu.js - workaround for IE's nonsupport of :hover on arbitrary elements
		$Id: navmenu.js,v 1.1.1.1 2006/05/15 19:30:09 ashaffer Exp $
        $Revision: 1.1.1.1 $
*/

startList = function() {
    var navids = new Array(2);
    navids[0] = 'nav1';
    navids[1] = 'blognav';
    for(n = 0; n < navids.length; n++) {
	var navid = navids[n];
	if (document.all&&document.getElementById) {
	    navRoot = document.getElementById(navid);
	    if(navRoot) {
		navRoot.className = "vmenu";
		for (i=0; i<navRoot.childNodes.length; i++) {
		    node = navRoot.childNodes[i];
		    if (node.nodeName=="LI") {
			node.onmouseover=function() {
			    this.className+=" over";
			}
			node.onmouseout=function() {
			    this.className=this.className.replace(" over", "");
			}
		    }
		}
	    }
	}
	if(document.getElementById) {
	    navRoot = document.getElementById(navid);
	    if(navRoot) {
		navRoot.className = "vmenu";
		for(i=0; i< navRoot.childNodes.length; i++) {
		    node = navRoot.childNodes[i];
		    if(node.nodeName=="LI") {
			node.className=node.className.replace(" over", "");
		    }	
		}
	    }
	}
    }
}

var nmchainonload = window.onload;
window.onload = function() {startList(); if(nmchainonload) nmchainonload();}
