function toggle_faq(i){
	//log(document.getElementById('faq_expand_' + i).innerHTML);
	if((document.getElementById('faq_expand_' + i).innerHTML).toUpperCase() == 'EXPAND')
	{
		show('faq_answer_' + i);
		document.getElementById('faq_expand_' + i).innerHTML = 'Contract';
	}else{
		hide('faq_answer_' + i);
		document.getElementById('faq_expand_' + i).innerHTML = 'Expand';
	}
}


function log(message){
	if(typeof console == "object"){
		console.log(message);
	}
}

function show(show_ref)
{
	state01 = 'block';
	if (document.all) { 
		//IS IE 4 or 5 (or 6 beta) 
		eval( "document.all." + show_ref + ".style.display = state01");
	} 
	if (document.layers) { 
		//IS NETSCAPE 4 or below 
		document.layers[show_ref].display = state01; 
	} 
	if (document.getElementById &&!document.all) { 
		hza = document.getElementById(show_ref); 
		hza.style.display = state01; 
	}
}

function hide(hide_ref)
{
	state00 = 'none'; 
	if (document.all) { 
		//IS IE 4 or 5 (or 6 beta) 
		eval( "document.all." + hide_ref + ".style.display = state00"); 
	} 
	if (document.layers) { 
		//IS NETSCAPE 4 or below 
		document.layers[hide_ref].display = state00; 
	} 
	if (document.getElementById &&!document.all) { 
		hza = document.getElementById(hide_ref); 
		hza.style.display = state00;
	}
}
