function MIHS_setObjStyle() {

	//Sets the style value for numerous HTML objects at once.  Accepts a
	//variable number of arguments arranged in triplets as followed:

	// theObject - The object's HTML Id that we will be changing the style of.
	// theStyle  - The style that we will be changing (ex. "display" or "bgcolor").
	// theValue  - The value of the style that we will be changing.

	//Define variables
	var i,theObject,theStyle,theValue,theArgs=MIHS_setObjStyle.arguments;
	
	//Set the object style for each object
	for(i=0;i<(theArgs.length-2);i+=3) { theObject=document.getElementById(theArgs[i]);
		theStyle = theArgs[i+1]; theValue = theArgs[i+2];
		if (theObject!=null) eval("theObject.style."+theStyle+"='"+theValue+"'");
	}
}

function MIHS_showHideObj() {

	//Sets the display style value for an HTML object according to it's current 
	//display style value (if the object is hidden then the function will show it;
	//if the obect is visible then the function will hide it).  Accepts a
	//variable number of arguments arranged in singles as followed:

	// theObject - The object's HTML Id that we will be showing or hiding.
	
	//Define variables
	var i, theObjId, theObject, theArgs=MIHS_showHideObj.arguments;
	
	//Set the object display style for each object using MIHS_setObjStyle()
	for(i=0;i<(theArgs.length);i+=1) { theObjId = theArgs[i]; theObject=document.getElementById(theArgs[i]);
		if (theObject!=null) { if (theObject.style.display=='') { MIHS_setObjStyle(theObjId,'display','none');
		} else { MIHS_setObjStyle(theObjId,'display','')}}
	}				 
}

function MIHS_showHideMenu() {

	//Sets the display style value for numerous pop-up menus.  Accepts a
	//variable number of arguments arranged in triplets as followed:

	// theMenu  - The menu's HTML Id that we will be showing or hiding.
	// theValue - The display value of the menu that we will be changing (1 for show, 0 for hide).
	// theDelay - The time delay in milliseconds before the menu will be hidden.
	
	//Define variables
	var i, theObject, theMenu, theValue, theDelay, d=document, theArgs=MIHS_showHideMenu.arguments; if (!d.MIHS_menu) {d.MIHS_menu=''};
	
	//Set the menu display style using MIHS_setObjStyle()
	for(i=0;i<(theArgs.length-2);i+=3) { theObject =  d.getElementById(theArgs[i]);
		theMenu=theArgs[i]; theValue=(theArgs[i+1]==0) ? 'none' : ''; theDelay=theArgs[i+2];
		if (theObject!=null) { if (theValue=='') { MIHS_setObjStyle(theMenu,'display','');
			if (d.MIHS_menuTimeout) { if (d.MIHS_menu!=theMenu) { MIHS_setObjStyle(d.MIHS_menu,'display','none')};
			clearTimeout(d.MIHS_menuTimeout)}} else { d.MIHS_menu = theMenu;
			d.MIHS_menuTimeout = setTimeout('MIHS_setObjStyle("'+d.MIHS_menu+'","display","none")',theDelay)}
		}
	}				 
}
							  
