// Locate and return an object from the browser data
function get_object( object_name ) {
	if (document.getElementById) {
		oWhich = eval( "document.getElementById( '" + object_name + "' )" )
	} else {
		oWhich = eval( "document.all." + object_name )
	}
	return oWhich
}


// From Dreamweaver
function show( objName ) {
    showhide(objName, true);
}

function hide( objName ) {
    showhide( objName, false);
}

function showhide( objName, state ) {
	window.focus();
	obj = get_object( objName );
	
	if (obj == null) 
	    return;
	
	if (state == true)
    	obj.style.display = "";
    else
        obj.style.display = "none";
}


function toggle( objName ) {
    window.focus()
    obj = get_object( objName )
    
    if (obj == null)
        return;
        
    if ( obj.style.display != "none" )
        obj.style.display = 'none'; 
    else 
        obj.style.display = '';
}

function expandFAQItem(FAQItem) {
    // collapse any open question
    if (_currentFAQItem != null) {
    	hide('question_' + _currentFAQItem + '_sel');
	    hide('answer_' + _currentFAQItem);
	    show('question_' + _currentFAQItem + '_unsel');
    }
    
	show('question_' + FAQItem + '_sel');
	show('answer_' + FAQItem);
	hide('question_' + FAQItem + '_unsel');
	_currentFAQItem = FAQItem;
}

_currentFAQItem = null;