// JavaScript Document

ranOnce = 0;

function switcher(top)
{
	
	/*-----------------------IE6 Drop Down Fixer-------------------------------------------------------*/
	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent))
	{ //test for MSIE x.x;
 	var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
	}
	
  	if(ieversion<=6 && ranOnce == 0)
	{
	ranOnce++;

	//document.getElementById(top).style.height = "100px";
	divs = document.getElementById(top).getElementsByTagName('div');

	var array1=["one","two","three","four"];
	var p = 0;

	for(x = 0; x<divs.length; x++)
	{
		if(divs[x].className.match('drop'))
		{
			divs[x].id = array1[p];
			divs[x].style.overflow = "hidden";
			p++;
		}
	}
	
	document.getElementById("one").onmouseover = function(){IE6Only("one");};
	document.getElementById("two").onmouseover = function(){IE6Only("two");};
	document.getElementById("three").onmouseover = function(){IE6Only("three");};
	document.getElementById("four").onmouseover = function(){IE6Only("four");};

	document.getElementById("one").onmouseout = function(){IE6COnly("one");};
	document.getElementById("two").onmouseout = function(){IE6COnly("two");};
	document.getElementById("three").onmouseout = function(){IE6COnly("three");};
	document.getElementById("four").onmouseout = function(){IE6COnly("four");};

	document.getElementById(top).style.zIndex = 1;
	document.getElementById('mainContent').style.zIndex = 0;

	
	}
	
	/*----------------------------End IE6 Drop Down Fixer------------------------------------------*/
	
	/*----------------------------Droper for all other Browsers-------------------------------------*/
	else
	{
	document.getElementById(top).style.zIndex = 1;
	document.getElementById('mainContent').style.zIndex = 0;
	}
	
	return true;
}

function normal(top)
{
	document.getElementById(top).style.zIndex = 0;
	document.getElementById('mainContent').style.zIndex = 1;
}

function IE6Only(reveal)
{	

	divToShow = document.getElementById(reveal);
	divToShow.style.display="block";
	divToShow.style.overflow="visible";
	divToShow.style.visibility="visible";
	divToShow.style.zindex=200;
	
}

function IE6COnly(reveal)
{	

	divToShow = document.getElementById(reveal);
	divToShow.style.display="block";
	divToShow.style.overflow="hidden";
	divToShow.style.visibility="visible";
	divToShow.style.zindex=0;
	
}