
<!--
var speclimit = 5;
var dealerlocator = false;
var lastaccessorydiv;
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() > speclimit) 
					limit.style.display = "block";
				else
					limit.style.display = "none";
					
				if(this.checked == true) {
					if(checkSpecBoxes() > speclimit) {
						this.checked = false;
					}
					else
						show_hide_column(this.value, true);
					
				}
				else {
					if(checkSpecBoxes() < 1) {
						this.checked = true;
					}
					else
						show_hide_column(this.value, false);
				}
			}
		}
		if(input_array[i].className == 'accessradio') {
			input_array[i].onclick = function() {show_accessory(this.value);}
		}
	}
	
	var spec_tables = document.getElementById('spec_tables');
	if(spec_tables)
		spectable();
		
	
	if(dealerlocator)
	{
		dealerlocatoronload();
	}
	
	var access_data = document.getElementById('access_data');
	if(access_data) {
		for (k=0; k<access_data.childNodes.length && !lastaccessorydiv; k++)
			if(access_data.childNodes[k].nodeName == 'DIV') 
				lastaccessorydiv = access_data.childNodes[k];
		lastaccessorydiv.style.display = 'block';
	}
		

}
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";
				selectTypes("hidden");
				//var switcher = document.getElementById("switcher");
				//if(switcher) switcher.style.visibility = "hidden";
				
			}
			node.onmouseout=function() {
				this.className=this.className.replace(" over", "");
				selectTypes("visible");
				//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";
				selectTypes("hidden");
				//var switcher = document.getElementById("switcher");
				//if(switcher) switcher.style.visibility = "hidden";
			}
			node.onmouseout=function() {
				this.className=this.className.replace(" over", "");
				selectTypes("visible");
				//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 <=speclimit)
		{
			tbl_array[i].className = "col" + num;
		}
		
		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 columnClass(num) {
	var tbl_array  = document.getElementsByTagName('table');

	for (i=0; i<tbl_array.length; i++) {
		if(num > 0)
			tbl_array[i].className = "col" + num;
	}
	
}

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;
}

function show_checked() {
	var input_array = document.getElementsByTagName("input");
	for (var y=0; y < input_array.length; y++) {	
		if(input_array[y].className == 'speccheck' && input_array[y].checked == true) {
			show_hide_column(y+1, true);
		}
	}
	
}

function selectTypes(value) {
	var select_array  = document.getElementsByTagName('select');
	for (i=0; i<select_array.length; i++) {
		if(select_array[i]) select_array[i].style.visibility = value;
	}
}

function show_accessory(value) {
	if(lastaccessorydiv) lastaccessorydiv.style.display = 'none';
	lastaccessorydiv = document.getElementById(value);
	if(lastaccessorydiv) lastaccessorydiv.style.display = 'block';
}

window.onload=startList;
-->
