// Rollover Menus
// Source: evolve

function cssMenuOver(item_id)
{
	the_item = document.getElementById(item_id); 
	the_item.style.background='#4f9700'
}

function cssMenuOut(item_id)
{
	the_item = document.getElementById(item_id); 
	the_item.style.background='#000000'
}

function moveCrumb(crb_id)
{
	img_dom = document.getElementById("img_" + crb_id);
	if (img_dom.src.indexOf('expand.gif') != -1)
	{
		img_dom.src = '/images/contract.gif';
		document.getElementById("sidepanel").style.height = "100%"; 
		div_dom = document.getElementById(crb_id);
		div_dom.style.display = "block"; 
		equalizeColumns();
	}
	else
	{
		img_dom.src = '/images/expand.gif';
		document.getElementById("sidepanel").style.height = "100%";  
        div_dom = document.getElementById(crb_id);
		div_dom.style.display = "none"; 
		equalizeColumns(); 
	}
}

function equalizeColumns()
{
	rS = document.getElementById("mainpanel");
	lS = document.getElementById("sidepanel");
	
	if (lS.offsetHeight)
	{
		rheight = rS.offsetHeight;
		lheight = lS.offsetHeight;
	}
	else if (lS.style.pixelHeight)
	{
		rheight = rS.style.pixelHeight;
		lheight = lS.style.pixelHeight;
	}
	
	if (lheight > rheight)
		rS.style.height = lheight + "px";
		
	if (rheight > lheight)
		lS.style.height = rheight + "px";
}

function doperspective()
{
	newpers = window.document.perspective.cperspective.value;

	if (newpers == "highschool")
	   location.href = "/highschool.html";
	else if (newpers == "veteran")
	   location.href = "/veteran.html";
	else if (newpers == "parent")
	   location.href = "/parents/index.html";
	else if (newpers == "goingback")
	   location.href = "/goingback.html";
	else if (newpers == "transfer")
	   location.href = "/transfer.html";
	else if (newpers == "international")
	   location.href = "/international.html";
	else if (newpers == "lawenforcement")
	   location.href = "/lawenforcement.html";
	else if (newpers == "alumni")
	   location.href = "/alumni/index.html";
        else if (newpers == "business")
	   location.href = "/business.html";
	else if (newpers == "current")
	   location.href = "/current.html";
	else if (newpers == "healthscience")
	   location.href = "/healthsciences.html";
}

function homeJump(loc)
{
	window.location=loc;
}

window.onload = function() 
{
	 equalizeColumns(); 
}
