	function initSnow() {
	if(navigator.userAgent.indexOf("MSIE") > -1) {
	var w, h;
		if(window.innerWidth) {
			w = window.innerWidth;
			h = window.innerHeight;
		} else {
			w = document.body.clientWidth;
			h = document.body.clientHeight;
		}
		var snowhtml = '<object type="application/x-shockwave-flash" data="img/vlocky.swf" width="' + (w - 20) + '" height="' + (h - 10) + '"><param name="movie" value="img/vlocky.swf" /><param name="wmode" value="transparent" /></object>';
		var snowbox = document.getElementById("snow");
		snowbox.innerHTML = snowhtml;
	}
}

function initAnimation() {
	if (document.getElementById) {
		navRoot = document.getElementById("animation");
		navRoot.onmouseout = function() {
					showInfo(0, false);
  				}
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName == "LI") {
				nodeLink = node.firstChild;
				nodeLink.onmouseover = function() {
					this.parentNode.className = "over";
					showInfo(parseInt(this.parentNode.id.charAt(4)), true);
  				}
  				nodeLink.onmouseout = function() {
  					this.parentNode.className = "";
					showInfo(parseInt(this.parentNode.id.charAt(4)), false);
   			}
   		}
  		}
 	}
}

function showInfo(stepno, show) {
	var subnavtitle = document.getElementById("subnavtitle");
	var subnavtxt = document.getElementById("subnavtxt");
	/*if(show) {
		subnavtitle.className = subnavtxt.className = "show" + stepno;
	} else {
		subnavtitle.className = subnavtxt.className = "show0";
	}
*/
}

window.onload = function() {
	externalLinks();
	initAnimation();
	//initSnow();
}
