// This shows detail for the products pages
function showDetail(objAnchor,intQuestion) {
try
{
	// If the current detail is hidden, display it.
	if (document.getElementById('detail' + intQuestion).style.display == "none") {
		hideAll();
		// Displays the actual detail
		document.getElementById('detail' + intQuestion).style.display = "block";
		// Changes the background graphic to "on"
		objAnchor.style.background = "url(/img/bg-productdetail-h2-em.png) top left no-repeat";
		objAnchor.style.color = "#df2c20";
		objAnchor.style.borderBottom = "solid 1px #b3b7c8";
	}
	// If the current detail is showing, hide it.
	else if (document.getElementById('detail' + intQuestion).style.display == "block") {
		// Changes the background graphic to "off"
		objAnchor.style.background = "url(/img/bg-productdetail-h2-a.png) top left no-repeat";
		objAnchor.style.color = "black";
		objAnchor.style.borderBottom = "solid 2px #b3b7c8";
		hideAll();
	}
	}
	catch(err)
	{}
	
}

// Hiding all the details
function hideAll() {
	for (i=1; i <= intDetails; i++)
	{
	try
	{
		var objDetail = document.getElementById('detail' + i);
		objDetail.style.display = "none";
		// For browsers who believe in text nodes
		if(objDetail.previousSibling.nodeType==3) {
			objHeadings = objDetail.previousSibling.previousSibling;
		}
		// For those who doubt their existance
		else {
			objHeadings = objDetail.previousSibling;
		}
		objHeadLink = objHeadings.firstChild;
		// Change the background graphic
		objHeadLink.style.background = "url(/img/bg-productdetail-h2-a.png) top left no-repeat";
		objHeadLink.style.color = "black";
		objHeadLink.style.borderBottom = "solid 2px #b3b7c8";
		}
		catch(err)
		{
		}
	}
}