/*
	Copyright David Trewern Design         :: www.dtdesign.com ::
	Unauthorised modification / use is a criminal offence, and
	will be prosecuted to the fullest extent permitted by law.
	All Rights Reserved
*/

function initSubnav() {
	if (document.getElementById) {
		subnav = document.getElementById("subnavigation");

		for (i = 0; i<subnav.childNodes.length; i++) {
			if (subnav.childNodes[i].tagName == "LI") {
				li = subnav.childNodes[i];
				
				switch (li.className) {
					case "top":
						li.onmouseover = function() {
							this.className = "top top_hover";
						}
						li.onmouseout = function() {
							this.className = "top";
						}
						li.onclick = function() {
							document.location = this.childNodes[0].childNodes[0].childNodes[0].href;
						}
						break;
				
					case "third":
						li.onmouseover = function() {
							this.className = "third third_hover";
						}
						li.onmouseout = function() {
							this.className = "third";
						}
						li.onclick = function() {
							document.location = this.childNodes[0].href;
						}
						break;
						
					case "fourth":
						li.onmouseover = function() {
							this.className = "fourth fourth_hover";
						}
						li.onmouseout = function() {
							this.className = "fourth";
						}
						li.onclick = function() {
							document.location = this.childNodes[0].href;
						}
						break;
						
					case "":
						li.onmouseover = function() {
							this.className = "hover";
						}
						li.onmouseout = function() {
							this.className = "";
						}
						li.onclick = function() {
							document.location = this.childNodes[0].href;
						}
				
				}

			}

		}
		
	}
}

