  // This function assigns a style to the menu items in order to 
  // fix the drop-down lists for IE6, which don't support "li:hover"
  sfHover = function() {
    if (document.getElementById("nav") != null){
    	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
    	for (var i=0; i < sfEls.length; i++) {
    		sfEls[i].onmouseover=function() {
    			this.className+=" sfhover";
    		}
    		sfEls[i].onmouseout=function() {
    			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    		}
    	}
    }
  }
  if (window.attachEvent) window.attachEvent("onload", sfHover);
  
  
  
  
function changeBrandValue() {
	var f = document.getElementById('searchform');
	
	// reset the other form drop downs so that they don't carry
	// values over to other searches
	var r = document.getElementById('range');
	if (r) r.options.length = 0;
	
	f.submit();
	return;
}

function changeRangeValue() {
	var f = document.getElementById('searchform');
	f.submit();
	return;
}


  

function changePolymerValue() {
	var f = document.getElementById('searchform');
	
	var r = document.getElementById('app');
	if (r) r.options.length = 0;
	
  r = document.getElementById('seg');
	if (r) r.options.length = 0;	
	
	f.submit();
	return;
}

function changeApplicationValue() {
	var f = document.getElementById('searchform');

	
  var r = document.getElementById('seg');
	if (r) r.options.length = 0;		
	
	f.submit();
	return;
}

function changeSegmentValue() {
	var f = document.getElementById('searchform');
	f.submit();
	return;
}
  




function changeAppApplicationValue() {
	var f = document.getElementById('searchform');
	
  var r = document.getElementById('seg');
	if (r) r.options.length = 0;		
	
  var r = document.getElementById('pol');
	if (r) r.options.length = 0;
	
	f.submit();
	return;
}

function changeAppSegmentValue() {
	var f = document.getElementById('searchform');
	
  var r = document.getElementById('pol');
	if (r) r.options.length = 0;
	
	f.submit();
	return;
}


function changeAppPolymerValue() {
	var f = document.getElementById('searchform');
	
  f.submit();
	return;
}

function changeSiteBrandValue(){
	var f = document.getElementById('searchform');
	
  var r = document.getElementById('pol');
	if (r) r.options.length = 0;
	
  f.submit();
	return;  
}

function changeSitePolymerValue(){
	var f = document.getElementById('searchform');
	
  f.submit();
	return;  
}



