function getElementsByClass(searchClass,node,tag) {
	var classElements = new Array();
	if ( node == null )
		node = document;
	if ( tag == null )
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp("(^|\\\\s)"+searchClass+"(\\\\s|$)");
	for (i = 0, j = 0; i < elsLen; i++) {
		if ( pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}
var t;
function startTimer(){
	t = setTimeout("hideAll()", 50);
}
function stopTimer(){
	clearTimeout(t);
}

function showHunter(){
	stopTimer();
	hideAll();
	document.getElementById("Dropdowns2").style.left="10px";
	document.getElementById("Dropdowns2").style.display="inline";
	document.getElementById("Hunter_Drop").style.display="inline";
	document.getElementById("Hunter_Logo").style.backgroundPosition="0px -50px";
}

function showCatalina(){
	stopTimer();
	hideAll();
	document.getElementById("Dropdowns2").style.left="210px";
	document.getElementById("Dropdowns2").style.display="inline";
	document.getElementById("Catalina_Drop").style.display="inline";
	document.getElementById("Catalina_Logo").style.backgroundPosition="0px -50px";
}

function showDufour(){
	stopTimer();
	hideAll();
	document.getElementById("Dropdowns2").style.left="410px";
	document.getElementById("Dropdowns2").style.display="inline";
	document.getElementById("Dufour_Drop").style.display="inline";
	document.getElementById("Dufour_Logo").style.backgroundPosition="0px -50px";
}

function showBrokerage(){
	stopTimer();
	hideAll();
	document.getElementById("Dropdowns2").style.left="610px";
	document.getElementById("Dropdowns2").style.display="inline";
	document.getElementById("Brokerage_Drop").style.display="inline";
	document.getElementById("Brokerage_Logo").style.backgroundPosition="0px -50px";
}

function hideAll(){
	layers_array = getElementsByClass('logo', null, null);
	layers_array2 = getElementsByClass('dropdown', null, null);
	document.getElementById("Dropdowns2").style.display="none";		
	for(i = 0; i < 4; i++){
		layers_array[i].style.backgroundPosition="0px 0px";
		layers_array2[i].style.display="none";
	}
}