
	var skin = "SilverNarrow";
	var currentContent = "";
	var slideBarsPath;


	// Fix IE6 background caching problem
	try {
		document.execCommand("BackgroundImageCache", false, true);
	} catch(err) {}


	function initializeSlideBars(barName, slideBarsPath)
	{
		this.barName = barName;
		this.slideBarsPath = slideBarsPath;

		if (document.getElementById("slideBarsRight"))
		{
			showContent(document.getElementById(barName));
		}
		else
		{
			setTimeout("initializeSlideBars(barName, slideBarsPath);", 100);
		}
	}


	function highlightBar(bar)
	{
		bar.className = "barHover";
		bar.getElementsByTagName("img")[0].src = this.slideBarsPath + "skins/" + skin + "/barTopHover.gif";
		bar.getElementsByTagName("img")[3].src = this.slideBarsPath + "skins/" + skin + "/barBottomHover.gif";
	}


	function quenchBar(bar)
	{
		if (bar.getAttribute("active") != "true")
		{
			bar.className = "bar";
			bar.getElementsByTagName("img")[0].src = this.slideBarsPath + "skins/" + skin + "/barTop.gif";
			bar.getElementsByTagName("img")[3].src = this.slideBarsPath + "skins/" + skin + "/barBottom.gif";
		}
	}


	function showContent(bar)
	{
		if (bar.id != "bar" + currentContent)
		{
			if (currentContent != "")
			{
				// reset previous active bar
				document.getElementById("bar" + currentContent).setAttribute("active", "false");
				quenchBar(document.getElementById("bar" + currentContent));
				// hide previous content
				document.getElementById("content" + currentContent).style.display = "none";
				// hide previous needed starting cap or show ending cap of slideBars
				if (document.getElementById("margin" + currentContent))
				{
					document.getElementById("margin" + currentContent).style.display = "none";
					document.getElementById("cap" + currentContent).style.display = "none";
				}
				else
				{
					document.all ? document.getElementById("slideBarsRight").style.display = "block" : document.getElementById("slideBarsRight").style.display = "table-cell";
				}
			}

			// set bar as active
			bar.setAttribute("active", "true");
			highlightBar(bar);
			// show content
			document.all ? document.getElementById("content" + bar.id.substr(3)).style.display = "block" : document.getElementById("content" + bar.id.substr(3)).style.display = "table-cell";
			// show starting cap for remaining bars or hide ending cap of slideBars
			if (document.getElementById("margin" + bar.id.substr(3)))
			{
				document.all ? document.getElementById("margin" + bar.id.substr(3)).style.display = "block" : document.getElementById("margin" + bar.id.substr(3)).style.display = "table-cell";
				document.all ? document.getElementById("cap" + bar.id.substr(3)).style.display = "block" : document.getElementById("cap" + bar.id.substr(3)).style.display = "table-cell";
			}
			else
			{
				document.getElementById("slideBarsRight").style.display = "none";
			}

			// store current active bar subject
			currentContent = bar.id.substr(3);
		}
	}
