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", '');
		}
	    }
	}
    }
}

//window.onload = doall();

function doall() {

	startList();
	setTimeout("change()", 3000);
//	screenht();

}

function screenht() {

	var hght = screen.height;
	var cont = document.getElementById("content");
	var newhght = hght / 2;
	cont.style.height = newhght + "px";

}

/*
    var c1 = 0;
    var d = 0;

    function cycle() {
	in_and_out();
	c1 == 0 ? c1 = 1 : c1 = 0;
	setTimeout("cycle()", 4500);
    }

    function in_and_out() {

//	document.getElementById("slideshow1").innerHTML = text[c1];
	document.getElementById("slideshow1").style.backgroundImage = "url(./images/homepage/HomePage" + c1 + ".jpg)";
	fade_in();
	setTimeout("fade_out()", 3000);

    }

    function fade_in() {

	document.getElementById("slideshow1").style.opacity = "0." + d;
	document.getElementById("slideshow1").style.filter = "alpha(opacity=" + d + "0)";
	d += 3;
	if (d <= 9) {
            setTimeout("fade_in()", 100);
	} else {
	    d = 9;
	}

    }
    
    function fade_out() {

	document.getElementById("slideshow1").style.opacity = "0." + d;
	document.getElementById("slideshow1").style.filter = "alpha(opacity=" + d + "0)";
	d -= 3;
	if (d >= 0) {
            setTimeout("fade_out()", 100);
	}

    }

*/


    var text = new Array("Innovative Design and Manufacturing", "Don't Guess<br />Star Quality Test", "Reliable Sample Collection Ready for Laboratory Analyses");

    var c1 = 0;
    var c2 = 1;
    var c3 = 0;
    var d = 9;

    function change() {

	dissolve_one();
	c1 > 4 ? c1 = 0 : '';
	c2 > 4 ? c2 = 0 : '';
	c3 > 2 ? c3 = 0 : '';
	var slide1 = document.getElementById("slideshow1");
	slide1.style.opacity = "1.0";
	slide1.style.background = "url(./images/homepage/slide" + c1 + ".jpg) no-repeat";
	slide1.innerHTML = text[c3];
	var slide2 = document.getElementById("slideshow2");
	slide2.style.background = "url(./images/homepage/slide" + c2 + ".jpg) no-repeat";
	slide2.innerHTML = text[c3];
	c1++;
	c2++;
	c3++;

	setTimeout("change()", 3000);

    }

    function dissolve_one() {

	var one = document.getElementById("slideshow1");
	one.style.opacity = "0." + d;
	one.style.filter = "alpha(opacity=" + d + "0)";
	d -= 3;
	if (d >= 0) {
            setTimeout("dissolve_one()", 100);
	} else {
	    d = 9;
	}

    }

