function CCCI_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=CCCI_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 CCCI_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=CCCI_showHideObj.arguments;
	
	//Set the object display style for each object using CCCI_setObjStyle()
	for(i=0;i<(theArgs.length);i+=1) { theObjId = theArgs[i]; theObject=document.getElementById(theArgs[i]);
		if (theObject!=null) { if (theObject.style.display=='') { CCCI_setObjStyle(theObjId,'display','none');
		} else { CCCI_setObjStyle(theObjId,'display','')}}
	}				 
}

function CCCI_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=CCCI_showHideMenu.arguments; if (!d.CCCI_menu) {d.CCCI_menu=''};
	
	//Set the menu display style using CCCI_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=='') { CCCI_setObjStyle(theMenu,'display','');
			if (d.CCCI_menuTimeout) { if (d.CCCI_menu!=theMenu) { CCCI_setObjStyle(d.CCCI_menu,'display','none')};
			clearTimeout(d.CCCI_menuTimeout)}} else { d.CCCI_menu = theMenu;
			d.CCCI_menuTimeout = setTimeout('CCCI_setObjStyle("'+d.CCCI_menu+'","display","none")',theDelay)}
		}
	}				 
}