// JavaScript Document

<!--

/* ------------------- */
/* TOP NAVIGATION HACK */
/* ------------------- */
startList = function() {
	if (document.all && document.getElementById) {
		navRoot = document.getElementById("nav");
		
		
		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", "");
					}
					
					
					for (k=0; k<node.childNodes.length; k++) {
						subnode = node.childNodes[k];
						if ( (subnode.nodeName=="UL")  ) {
							
							for (m=0; m<subnode.childNodes.length; m++) {
								subnode2 = subnode.childNodes[m];
								if ( (subnode2.nodeName=="LI")  ) {
								
									subnode2.onmouseover=function() {
										this.className+=" over";
										//alert("OVER");
									}
									subnode2.onmouseout=function() {
										this.className=this.className.replace(" over", "");
										//alert("OFF");
									}
									
									for (j=0; j<subnode2.childNodes.length; j++) { 
										subsubnode = subnode2.childNodes[j];
										if ( (subsubnode.nodeName=="UL") ) {
											
											for (n=0; n<subnode.childNodes.length; n++) {
												subnode3 = subnode.childNodes[n];
												if ( (subnode3.nodeName=="LI")  ) {
									
													subnode3.onmouseover=function() {
														this.className+=" over";
													}
													subnode3.onmouseout=function() {
														this.className=this.className.replace(" over", "");
													}
														
												} // end if after "n"
											} // end FOR "n"
							
										} // end IF after "j"
									} // end FOR "j"
									
								} // end if after "m"
							} // end FOR "m"
							
						}
					} //end FOR "k" /**/
					
				}
		}
		
					
	}
}
// -----------------------------
startTime = function()
{
	var today=new Date();
	var h=today.getHours();
	var m=today.getMinutes();
	var s=today.getSeconds();
	// add a zero in front of numbers<10
	m=checkTime(m);
	s=checkTime(s);
	//document.getElementById('date').innerHTML=h+":"+m+":"+s+";
	document.getElementById('date').innerHTML=today.toLocaleString()+"<br>("+today.toGMTString()+")";
	t=setTimeout('startTime()',500);
}

function checkTime(i)
{
	if (i<10) 
	  {i="0" + i}
	  return i;
}

// ----------------------------------

startAll = function()
{
	startList();
	startTime();
}


// ----------------------------------

window.onload=startAll;
/* --------------------------------- */

//-->
