/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	FAQ.js
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

if (document.getElementById && typeof(document.parentNode) != "undefined") {
	document.write('<style type="text/css" media="screen, tv, projection">\n.QApair h5 { cursor:hand; cursor:pointer; }\n.QApair div { display: none; }\n</style>\n');
}

/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
function FAQ_Handler() {
	if (!(document.getElementById && typeof(document.parentNode) != "undefined")) return;

	var aTmp = document.getElementsByTagName("h5");
	var oDiv;
	for (var i=0;i<aTmp.length;i++) {
		oDiv = aTmp[i];
		while (oDiv && oDiv.tagName.toLowerCase() != "div") {
			if (!oDiv.parentNode) return;
			oDiv = oDiv.parentNode;
		}
		aTmp[i].oDiv = oDiv;
		aTmp[i].bShown = false;
		aTmp[i].onclick = function() {
			if (this.bShown) {
				this.oDiv.className = this.oDiv.className.replace(" QAshown", "");
				this.bShown = false;
			} else {
				this.oDiv.className += " QAshown";
				this.bShown = true;
			}
		};
	}
}

if (window.addEventListener)
	window.addEventListener("load", FAQ_Handler, false);
else if (window.attachEvent)
	window.attachEvent("onload", FAQ_Handler);

