addOnLoad('faq_setup()');
function faq_setup() {
	var it = YAHOO.util.Dom.getElementsByClassName( 'faq_item', 'div' );
	var temp;
	for ( var i = 0; i < it.length; i++) {
		for ( var a = 0; a < it[i].childNodes.length; a++ ) {
			if ( it[i].childNodes[a].nodeType == 1 && YAHOO.util.Dom.hasClass( it[i].childNodes[a], 'faq_item_content' ) ) {
				YAHOO.util.Dom.setStyle( it[i].childNodes[a], 'display', 'none' );
			}
		}
		it[i].onmouseover = function()
		{
			YAHOO.util.Dom.setStyle( this, 'background-color', '#eee' );
		}
		it[i].onmouseout = function()
		{
			YAHOO.util.Dom.setStyle( this, 'background-color', '' );
		}
		it[i].onclick = function()
		{
			var content;
			for ( var a = 0; a < this.childNodes.length; a++ ) {
				if ( this.childNodes[a].nodeType == 1 && YAHOO.util.Dom.hasClass( this.childNodes[a], 'faq_item_content' ) ) {
					content = this.childNodes[a];
				}
			}
			if ( YAHOO.util.Dom.getStyle( content, 'display' ) == 'none' ) {
				YAHOO.util.Dom.setStyle( content, 'display', 'block' );
			}
			else {
				YAHOO.util.Dom.setStyle( content, 'display', 'none' );
			}
		}
	}
}