// JavaScript Document

var domain = "http://www.lifecarefunding.com";

var css = document.createElement("link");
css.setAttribute("href", "http://www.lifecarefunding.com/App_Themes/css/LeftNav.css");
css.setAttribute("rel", "stylesheet");
css.setAttribute("media", "screen");
document.getElementById("Head1").appendChild(css);

var activeSubNav = '';
//var activeArrow = '';

function showSubNav(rawid) {
	var id = "sub"+rawid;
	var arrow = rawid+"Arrow";
	if(activeSubNav != '') {
//		hideSubNav(activeSubNav, activeArrow);
		hideSubNav(activeSubNav);
	}
	
	if(id != activeSubNav) {
		document.getElementById(id).style.display = 'block';
		activeSubNav = id;
//		document.getElementById(arrow).src = domain + "/images/arrow_open.gif";
//		activeArrow = arrow;
	}
	else {
		activeSubNav = '';
	}
	
}

function hideSubNav(id) {
//function hideSubNav(id, arrow) {
	document.getElementById(id).style.display = 'none';
//	document.getElementById(arrow).src = domain + "/images/arrow_closed.gif";
}
