<!--

var lngCurrentSheet = 0;
var MAX_SHEETS = document.styleSheets.length;

function pIncDecSheet ( astrDirection ) {

	if ( astrDirection == '+' ) 
		pIncrement();
	else 
		pDecrement();

	if ( document.styleSheets ) {
		// Need to loop over -all- sheets, including initial.
		for ( var i=0;i<MAX_SHEETS;i++ ) {
			if ( i != lngCurrentSheet ) {
				document.styleSheets[i].disabled=true;
			}else{
				document.styleSheets[i].disabled=false;
			}
		}
	}
}

function pIncrement ( ) {
	// Only considering the numbered sheets, not the initial sheet
	lngCurrentSheet++;
	if ( lngCurrentSheet == MAX_SHEETS - 1 ) lngCurrentSheet = 0;
}

function pDecrement ( ) {
	// Only considering the numbered sheets, not the initial sheet
	lngCurrentSheet--;
	if ( lngCurrentSheet < 0 ) lngCurrentSheet = MAX_SHEETS - 2;
}


//-->

