			var delay=1500;
			var delayon=100;
			function setclass(n){
			for (var i=1; i<=n; i++){
			set_subclass(i);	
				}
			/*Apply highlights to Nav*/
			function set_subclass(i){
				document.getElementById("sub"+i).onmouseover=subon;
				document.getElementById("sub"+i).onmouseout=suboff;
				function subon(){document.getElementById("sub"+i).className="nav_subline1";
				document.getElementById("navlink"+i).className="nav_on";
				}
				function suboff(){document.getElementById("sub"+i).className="nav_subline";
				document.getElementById("navlink"+i).className="nav";
				}
			}
			/*last lines set to on, now set to off*/
			document.getElementById("sub"+n).className="nav_subline";
			document.getElementById("navlink"+n).className="nav";
			document.getElementById("nav9").className="navline";
			document.getElementById("navbar9").className="nav"; 
			/*mouseover functions*/
			for (var l=1; l<=9; l++){
				mouse(l);
				}
			function mouse(l){
			document.getElementById("nav"+l).onmouseover=hover;
			/*document.getElementById("nav"+l).onmouseout=unhover;*/
			if ((l!=5)&&(l!=8)&&(l!=9)) {
			document.getElementById("tiera"+l).onmouseover=hover;
			/*document.getElementById("tiera"+l).onmouseout=unhover;*/
			}
			document.getElementById("nav_layer").onmouseout=unhover;
			function hover(){
			line=l;
			var t=setTimeout(setclass1,delayon);
			clearTimeout(t-1);
			}/*end hover*/
			function unhover(){
			line=0;
			var t=setTimeout(setclass1,delay);
			clearTimeout(t-1);
			}/*end unhover*/
			}/*end mouse*/
			}/*end setclass*/
			function setclass1(){
				/*switch off this line*/
				for (var m=1; m<=9; m++){
				oth_off(m);
				}
				function oth_off(m){
					if (m!=line){
			if ((m!=5)&&(m!=8)&&(m!=9)) {
			document.getElementById("tiera"+m).className="nav_tieraoff";
					}
					else {
			document.getElementById("navbar"+m).className="nav";
					}
			document.getElementById("nav"+m).className="navline";
					}
				}
			/*switch on this line*/
			if (line!=0){
			document.getElementById("nav"+line).className="navline1";
				if ((line!=5)&&(line!=8)&&(line!=9)) {
			document.getElementById("tiera"+line).className="nav_tiera"+line+"on";
					}
					else {
			document.getElementById("navbar"+line).className="nav_on";
					}
			}
			}
			function boxlight(k){
			for (var n=1; n<=k; n++){
			box(n)
			}
			function box(n){
            document.getElementById("workarea"+n).onmouseover=ilarge;
            document.getElementById("workarea"+n).onmouseout=ismall;
            function ilarge(){document.getElementById("workarea"+n).className="workarea1";
            }
			function ismall(){document.getElementById("workarea"+n).className="workarea";
            }
			}
			}
			function medboxlight(n){
			document.getElementById(n).onmouseover=ilargem;
            document.getElementById(n).onmouseout=ismallm;
            function ilargem(){document.getElementById(n).className="mediumwidthborder1";
            }
			function ismallm(){document.getElementById(n).className="mediumwidthborder";
            }
			}
			function prodboxlight(k){
			for (var n=1; n<=k; n++){
			prodbox(n)
			}
			function prodbox(n){
			document.getElementById("product"+n).onmouseover=lighton;
            document.getElementById("product"+n).onmouseout=lightoff;
            function lighton(){document.getElementById("product"+n).className="prod_box_outon";
            }
			function lightoff(){document.getElementById("product"+n).className="prod_box_outer";
            }
			}
			}