/*
	Description:
		Handles the showing and hiding of different elements. 
	
	Function Specs:
		showHide(parent)
			Arguments:
				parent - a string reference to the item you want to hide
			Description:
				getElementById() grabs the "parent" argument and couples it 
				with the word "Title". This is done only to find out if the 
				current object is hidden or not. 
				
				If the className for element1 is "open" call the hide() 
				function and pass it the parent string received in the 
				arguments.
				
				If the className for element1 is not "open" call the show()
				function and pass it the parent string received in the
				arguments.
				
		show(parent)
			Arguments:
				parent - a string reference to the item you want to hide
			Description:
				getElementById() grabs the "parent" argument and couples it 
				with the word "Title" for element1 and "Data" for element2.
				For element1 set the className attribute to "open" and for
				element2 set the className attribute to an empty string, 
				which signifies "show" by clearing the "hide" className, if
				available.
				
		hide(parent)
			Arguments:
				parent - a string reference to the item you want to hide
			Description:
				getElementById() grabs the "parent" argument and couples it 
				with the word "Title" for element1 and "Data" for element2.
				For element1 set the className attribute to "closed" and for
				element2 set the className attribute to "hide".
*/

function ToggleLMGWhatsThis() {
    toggle('myLMGScoreWhatsThis');
}

function ShowLMGWhatsThis() {
    show('myLMGScoreWhatsThis');
}

function HideLMGWhatsThis() {
    hide('myLMGScoreWhatsThis');
}
    
function showReview(showThis, hideThis) {
    show(showThis);
    hide(hideThis);
}
    
function toggle(parent) {
    parentCtl = getElement(parent);
    if(parentCtl.style.display == "block") {
        hide(parent);
    } else {
        show(parent);
    }
}
function show(parent){
    parent = getElement(parent);
	parent.style.display 	= "block";
}

function hide(parent){
    parent = getElement(parent);
	parent.style.display 	= "none";
}

function getElement(parent){
	if (document.getElementById){
		// this is the way the standards work
		return document.getElementById(parent);
	}
	else if (document.all){
		// this is the way old msie versions work
		return document.all[parent];
	}
	else if (document.layers){
		// this is the way nn4 works
		return document.layers[parent];
	}
}