function hl(me){if(me.select)me.select();}
function priceMe(me,discount,regular){alert(0+discount);alert((0+discount)*me.value);}
function showSubblock(id, level) {
	var aDivs = new Array();
	if (typeof hidetimeout != "undefined") clearTimeout(hidetimeout);
	aDivs = document.getElementById('faqnavigation').getElementsByTagName('DIV');
	for (i=0; i < aDivs.length; i++) {
		var aIDparts = new Array();
		aIDparts = aDivs[i].id.split("_");
		if (aIDparts[0] == "subblock" && aIDparts[1] >= level && aIDparts[2] != id) {
			aDivs[i].style.display = 'none';
		}
	}
	document.getElementById('subblock_' + level + '_' + id).style.display = '';

	// add and remove class active
	var aLinks = new Array();
	aLinks = document.getElementById('faqnavigation').getElementsByTagName('A');
	for (i=0; i < aLinks.length; i++) {
		if (aLinks[i].getAttribute('idCat') == id) {
			// add class active
			aLinks[i].className += " active";
		}
		else if (aLinks[i].getAttribute('level') >= level && aLinks[i].className.indexOf("active") > -1) {
			// remove class active
			aLinks[i].className = aLinks[i].className.replace(" active", "");
		}
	}
}
function hideSubblock() {
	// hide blocks
	var aDivs = new Array();
	aDivs = document.getElementById('faqnavigation').getElementsByTagName('DIV');
	for (i=0; i < aDivs.length; i++) {
		var aIDparts = new Array();
		aIDparts = aDivs[i].id.split("_");
		if (aIDparts[0] == "subblock") {
			aDivs[i].style.display = 'none';
		}
	}

	// remove active classes
	var aLinks = new Array();
	aLinks = document.getElementById('faqnavigation').getElementsByTagName('A');
	for (i=0; i < aLinks.length; i++) {
		if (aLinks[i].className.indexOf("active") > -1) {
			aLinks[i].className = aLinks[i].className.replace(" active", "");
		}
	}
}
function resetSubblock() {
	hidetimeout = setTimeout(function() {hideSubblock();}, 500);
}
function sameLevel(level) {
	var aDivs = new Array();
	if (typeof hidetimeout != "undefined") clearTimeout(hidetimeout);
	aDivs = document.getElementById('faqnavigation').getElementsByTagName('DIV');
	for (i=0; i < aDivs.length; i++) {
		var aIDparts = new Array();
		aIDparts = aDivs[i].id.split("_");
		if (aIDparts[0] == "subblock" && aIDparts[1] >= level) {
			aDivs[i].style.display = 'none';
		}
	}

	// remove class active
	var aLinks = new Array();
	aLinks = document.getElementById('faqnavigation').getElementsByTagName('A');
	for (i=0; i < aLinks.length; i++) {
		if (aLinks[i].getAttribute('level') >= level && aLinks[i].className.indexOf("active") > -1) {
			// remove class active
			aLinks[i].className = aLinks[i].className.replace(" active", "");
		}
	}
}