<!--

	elementCount = 99;

	/*
	accepts object id
	returns style object
	*/
	function getObject( objectId )
	{
		if( document.getElementById && document.getElementById(objectId)) {

			return document.getElementById(objectId).style;

		} else if (document.all && document.all(objectId)) {

			return document.all(objectId).style;

		} else if (document.layers && document.layers[objectId]) {

			return document.layers[objectId];

		} else {

			return false;
		}
	}

	function show_hide( objectId ) {

		collapse_all();

		objSummary = getObject( 's' + objectId );
		objDetail = getObject( 'd' + objectId );

		if( objSummary && objDetail ) {
			if( objDetail.display == 'none' ) {
				objDetail.display = 'block';
				objSummary.backgroundColor = '#ffe';
			} else {
				objDetail.display = 'none';
				objSummary.backgroundColor = '#fff';
			}
		}
	}

	function expand_all() {
		for( i=0; i < elementCount; i++ ) {

			objSummary = getObject( 's' + i );
			objDetail = getObject( 'd' + i );

			if( objSummary && objDetail ) {
				objDetail.display = 'block';
				objSummary.backgroundColor = '#ffe';
			}
		}

		getObject( 'expand_all' ).display = 'none';
		getObject( 'collapse_all' ).display = 'block';
	}

	function collapse_all() {
	
		for( i=0; i < elementCount; i++ ) {

			objSummary = getObject( 's' + i );
			objDetail = getObject( 'd' + i );

			if( objSummary && objDetail ) {
				objDetail.display = 'none';
				objSummary.backgroundColor = '#fff';
			}
		}

		getObject( 'expand_all' ).display = 'block';
		getObject( 'collapse_all' ).display = 'none';
	}

//-->
