	var tt = new Array(
		['home'],
		['coprofile'],
		['services'],
		['professionals'],
		['resources']
	);
	
	// preload images
	
	for (var i = 0; i < tt.length; i++) {
		myImage = new Image;
		myImage.src = "images/level1/l1_" + tt[i] + "_on.gif";
	}

	var NS4 = 0;
	var IE4 = 0;
	var NS6 = 0;

	if (document.layers){
		NS4 = 1;
	} else {
		if (document.all){
			IE4 = 1;
		} else {
			NS6 = 1;
		}
	}

	var timer = null;

	function ShowLayer(showEl) {
		clearTimeout(timer);
		HideAllLayers();
		changeImage(showEl);
		var whichEl = '';
		if (NS4){
			whichEl = '';
		} else if (NS6) { 
			whichEl = document.getElementById(showEl).style;
		} else if (IE4) {
			whichEl = document.all[showEl].style;
		}
		
		if (whichEl != '') {
			whichEl.visibility = "visible";
		}
	}

	function HideAllLayers() {
		changeBack();
		for (var i = 0; i < tt.length; i++) {
			var showEl = tt[i];
			var whichEl = '';
			if (NS4){
				whichEl = '';
			} else if (NS6){
				whichEl = document.getElementById(showEl).style;
			} else {
				whichEl = document.all[showEl].style;
			}
			
			if (whichEl != '') {
				whichEl.visibility = 'hidden';
			}
		}
	}

	function OverLayer() {
		clearTimeout(timer);
	}

	function OutLayer() {
		clearTimeout(timer);
		timer = setTimeout("HideAllLayers()",200);
	}
	function offMenuItem(thisitem){
			OutLayer();
			if (! NS4) thisitem.className='floatNav_off';
	}

	function onMenuItem(thisitem){
			OverLayer();
			if (! NS4) thisitem.className='floatNav_on';
	}
	
	function changeImage(imgName) {
		var whichIM = eval('document.' + imgName + '_img');
		var imageSrc = "images/level1/l1_" + imgName + "_on.gif";
		if (whichIM != null) {
			whichIM.src = imageSrc;
		}
	}
	
	function changeBack() {
		for (var i = 0; i < tt.length; i++) {
			var imageSrc = "images/level1/l1_" + tt[i] + "_off.gif";
			whichIM = eval('document.' + tt[i] + "_img");
			if (whichIM != null) {
				whichIM.src = imageSrc;
			}
		}
	}
	
	// Chooses random image
    var ic = 6;     // Number of alternative images
    var image_names = new Array(ic);  // Array to hold filenames
        
	image_names[0] = "images/level1/main_01.jpg";
	image_names[1] = "images/level1/main_02.jpg";
	image_names[2] = "images/level1/main_03.jpg";
	image_names[3] = "images/level1/main_04.jpg";
	image_names[4] = "images/level1/main_05.jpg";
	image_names[5] = "images/level1/main_01.jpg";

	function pickRandom(range) {
		if (Math.random) {
			return Math.round(Math.random() * (range-1));
		} else {
			var now = new Date();
			return (now.getTime() / 1000) % range;
		}
	}
	// Write out an IMG tag, using a randomly-chosen image name.
	var choice = pickRandom(ic);

        // set this var to match the name of the layer you want to check.
        var layertoCheck = "about";

        function fixNetscapeCSS()
	{
	// a netscape bug makes layers lose their css positioning when the browser is
	// resized. check if that's happened here, if it has, reload the document to
	// fix the the page layout.

	current_width = document.layers[layertoCheck].document.width;
	current_height = document.layers[layertoCheck].document.height;

	if (current_width != start_width || current_height != start_height)
		{
		location.reload();
		}
	}

        if (document.layers)
	{
	// if the browser is netscape, assign the "onresize" handler to execute the fix function.

	onresize = fixNetscapeCSS;
	}

