<!--
startList = function() {
	if (document.all&&document.getElementById) {
		var ul_array = document.getElementsByTagName("ul");
		for (i=0; i<ul_array.length; i++) {
			if(ul_array[i].className == 'sndd') {
				setList1(ul_array[i]);
			}
		}
		var ul_array = document.getElementsByTagName("ul");
		for (i=0; i<ul_array.length; i++) {
			if(ul_array[i].className == 'hover' 
			|| ul_array[i].className == 'level2' 
			|| ul_array[i].className == 'level2static'
			|| ul_array[i].className == 'level3' ) {
				setList2(ul_array[i]);
			}
		}
		
		
	}
	var input_array = document.getElementsByTagName("input");
	for (i=0; i<input_array.length; i++) {
		if(input_array[i].className == 'speccheck') {
			input_array[i].onclick = function() {
				var limit = document.getElementById("limit");
				if(checkSpecBoxes() > 5) 
					limit.style.display = "block";
				else
					limit.style.display = "none";
					
				if(this.checked == true) {
					if(checkSpecBoxes() > 5) {
						this.checked = false;
					}
					else
						show_hide_column(this.value, true);
					
				}
				else {
					if(checkSpecBoxes() < 1) {
						this.checked = true;
					}
					else
						show_hide_column(this.value, false);
				}
			}
		}
	}
	
	var spec_tables = document.getElementById('spec_tables');
	if(spec_tables)
		spectable();
		

}
function setList1(list) {
	for (k=0; k<list.childNodes.length; k++) {
		node = list.childNodes[k];
		if (node.nodeName=="LI") {
			node.onmouseover=function() {
				this.className+=" over";
				
				var switcher = document.getElementById("switcher");
				if(switcher) switcher.style.visibility = "hidden";
				
			}
			node.onmouseout=function() {
				this.className=this.className.replace(" over", "");
				
				var switcher = document.getElementById("switcher");
				if(switcher) switcher.style.visibility = "visible";
				
			}
		}
	}
}
function setList2(list) {
	for (k=0; k<list.childNodes.length; k++) {
		node = list.childNodes[k];
		if (node.nodeName=="LI") {
			node.onmouseover=function() {
				
				this.className+=" over";
				var switcher = document.getElementById("switcher");
				if(switcher) switcher.style.visibility = "hidden";
			}
			node.onmouseout=function() {
				this.className=this.className.replace(" over", "");
				var switcher = document.getElementById("switcher");
				if(switcher) switcher.style.visibility = "visible";
			}
		}
	}
}

function show_hide_column(col_no, do_show) {
	var stl;
	if (do_show) stl = ''
	else         stl = 'none';

	var tbl_array  = document.getElementsByTagName('table');
	
	var num = checkSpecBoxes();
	
	for (i=0; i<tbl_array.length; i++) {
		
		if(num > 0 && num <=5)
		{
			tbl_array[i].className = "col" + num;
			//alert(tbl_array[i].className )
		}
		
		
		
		var rows = tbl_array[i].getElementsByTagName('tr');
		for (var row=0; row<rows.length;row++) {
			var cels = rows[row].getElementsByTagName('td')
			if(cels[col_no])
				cels[col_no].style.display=stl;
			cels = rows[row].getElementsByTagName('th')
			if(cels[col_no])
				cels[col_no].style.display=stl;
		}

	}
	
}

function checkSpecBoxes() {
	var count = 0; var input_array = document.getElementsByTagName("input");
	for (i=0; i<input_array.length; i++) {	if(input_array[i].className == 'speccheck' && input_array[i].checked == true) count+=1;	}
	return count;
}

window.onload=startList;

-->
