/*	Using the Behaviour library to trigger the WCH script for IE so the function
	calls don't have to be added to the HTML. Also using previousSibling to hide
	the border of the menu item to the left of a hovered menu item, since IE 
	can't use the margin property to do this. */

var myrules = {
};
Behaviour.register(myrules);

function toggle(obj1,obj2) {
	var el = document.getElementById(obj1);
	var ln = document.getElementById(obj2);
	if ( el.style.display != 'none' ) {
		el.style.display = 'none';
		ln.innerHTML = 'Show Details';
	}
	else {
		el.style.display = '';
		ln.innerHTML = 'Hide Details';
	}
}

function togglefaq(obj) {
	var qu = document.getElementById('question' + obj);
	var an = document.getElementById('answer' + obj);
	if (an.style.display != 'block') {
		qu.style.background = '#fff5e0';
		an.style.display = 'block';
	} else {
		qu.style.background = '';
		an.style.display = 'none';
	}
}
