/* For client headers with "popup" style menus that require the drop downs to be hidden (IE 6 - notably in SS) */
/* Works in conjunction with pops.js */
/* add [onmouseover="hideSelect();" onmouseout="showSelect();"] to elements that need to be on top in IE */

function hideSelect() {
	if(!tpopup) {
		// when our popups are not present - create the select box array
		var tpopup = new Object();
		tpopup.s = new Array();
		if (navigator.appVersion.indexOf("MSIE")!=-1) {
			temp = navigator.appVersion.split("MSIE")
			if (parseFloat(temp[1]) == 6)
			tpopup.s = document.getElementsByTagName('select'); // all select boxes on page
		}
	}
	for(var i=0;i<tpopup.s.length;i++)
		tpopup.s[i].style.visibility='hidden';
}


function showSelect() {
	if(!tpopup) {
		// when our popups are not present - create the select box array
		var tpopup = new Object();
		tpopup.s = new Array();
		if (navigator.appVersion.indexOf("MSIE")!=-1) {
			temp = navigator.appVersion.split("MSIE")
			if (parseFloat(temp[1]) == 6)
			tpopup.s = document.getElementsByTagName('select'); // all select boxes on page
		}
		//end IE 6 hack
	}
	for(var i=0;i<tpopup.s.length;i++)
		tpopup.s[i].style.visibility='visible';
}

function timedShowSelect(ms) {
	var thisTimer = setTimeout('showSelect()',ms);
}