//window.onload... not recognized
//hides details div (visible initially to account for no js) & shows "+ show"
// num = number of "Details" elements on page
function initializeDetails(num) {
	if(document.getElementById) {
		//initializes all details elements on the page
		for(i=0; i<num; i++) {
			document.getElementById("Details" + (i+1)).className = "hide";
			document.getElementById("spDetails" + (i+1)).className = "showInline";
		}
	}
}

//run when + details / - details clicked
//id = element id (e.g. "details1")
//showText = the text to indicate that the link should be clicked to expand (show) the item
//hideText = the text to indicate that the link should be clicked to collapse (hide) the item
function showDetails(id, showText, hideText) {
	if(document.getElementById) {
		//show details
		if(document.getElementById(id).className == "hide") {
			document.getElementById(id).className = "show";
			document.getElementById("a" + id).innerHTML = hideText;
		//hide details
		}else{
			document.getElementById(id).className = "hide";
			document.getElementById("a" + id).innerHTML = showText;
		}
	}
}