/**
 * Extra JavaScript functions used by this site only
 *
 * Please add any site- or page-specific JavaScript here.
 * Delete any pre-existing code your site does not need.
 *

 */

/**
 * Show Hide an element 
 *
 * if an element is not displayed as a block, assume that it is as 'none'
 * and set it to block. obviously this is a problem if it is 'inline' etc.
 *
 *	@param shID: string. the element we want to effect
 *	@param obj: object ref. the link we want to change classes
 *
 *	@returns: nothing
 */

function showHide(shID, obj) {

	var myDiv = document.getElementById(shID);

	if (myDiv) {
        if (myDiv.style.display != 'block' ) {
                myDiv.style.display = 'block';
                obj.className = 'hideLink';
        } else {
                myDiv.style.display = 'none';
                obj.className = 'showLink';
        }
                obj.style.outline = '0'; // FF outline fix
	}
}

