var domStyle="";
function CloseOpen(objectID){
	//find out if the link they clicked is already open
	var ObjectTabID = "dsTab" + objectID ;
	var ObjectTabClass =  getMyClass(ObjectTabID); 	//getMyClass is in /scripts/findDOM.js
	//if it's open then close it
	if(ObjectTabClass == "dsTabSelected"){
		concealDiv(objectID) 						//concealDiv is in /scripts/findDOM.js
		setClass(ObjectTabID,'dsTab');				// setClass is in /scripts/findDOM.js
	}else{
		//else open it, and close everything else
		for (i=0; i<allObjects.length;i++){
			var objectTabID =  'dsTab' + allObjects[i] ;
			if (objectID == allObjects[i]) {
				//open it
				revealDiv(objectID);
				//highlight its tab
				setClass(objectTabID,'dsTabSelected');
			}else{
				//close it
				concealDiv( allObjects[i]) ;
				//dim its tab
				setClass(objectTabID,'dsTab');
			}
		}
	}
}

//the following 2 functions are IE hacks
//since IE doesn't honor the :hover pseudo class when applied to a td
//this function will do rollover of the td
function doTDHover(objectID) {
	var ObjectTabClass =  getMyClass(objectID);
	if(ObjectTabClass != "dsTabSelected"){
		if (isAll || isID) {
			setClass(objectID,'dsTabHover');
		}
		return;
	}
}

function doTDOff(objectID) {
	var ObjectTabClass =  getMyClass(objectID);
	if(ObjectTabClass != "dsTabSelected"){	
		if (isAll || isID) {
			setClass(objectID,'dsTab');
		}
		return;
	}
}


function checkOpen(){
	var theValue = location.search;
	theValue = theValue.substring(theValue.indexOf("=")+1)
	if(theValue!=""){justOpen(theValue); }
}



function justOpen(objectID){
for (i=0; i<allObjects.length;i++){
	var objectTabID =  'dsTab' + allObjects[i] ;
	if (objectID == allObjects[i]) {
		//open it
		revealDiv(objectID);
		//highlight its tab
		setClass(objectTabID,'dsTabSelected');
	}else{
		//close it
		concealDiv( allObjects[i]) ;
		//dim its tab
		setClass(objectTabID,'dsTab');
		}
	}
}