function setBright ()
{
  brightValues = new Array();
	brightValues = ['#000','#111','#222','#333','#444','#555','#666','#777','#888','#999','#AAA','#BBB','#CCC','#DDD','#EEE','#FFF'];
  if ( !$.cookie('brightness') ) {

	  brightCurrent=7; 
	  $.cookie('brightness', brightCurrent , { path: '/' , expires: 30 } ) ;
//	  				 alert ( 'cookie not set' );
	} else {
		brightCurrent= $.cookie('brightness');
//				 alert ( 'brightCurrent='+brightCurrent );

  }
  changecss( 'body, div#navigation a , #footer a ' , 'color' , brightValues[brightCurrent] );
// alert ( 'currentBright='+brightValues[brightCurrent] );
}
function lessBright ()
{
  brightMin=3;
	brightCurrent= $.cookie('brightness');
 	brightCurrent--;
 	if ( brightCurrent < brightMin ) { brightCurrent=brightMin; } 
 	$.cookie('brightness', brightCurrent , { path: '/' , expires: 30 } );
//	alert ( 'less Bright='+brightValues[brightCurrent]);	
 	changecss( 'body, div#navigation a , #footer a ' , 'color' , brightValues[brightCurrent] );
}	
function moreBright ()
{
  brightMax=15;
	brightCurrent= $.cookie('brightness');
 	brightCurrent++;
 	if ( brightCurrent > brightMax ) { brightCurrent=brightMax; } 
 	$.cookie('brightness', brightCurrent , { path: '/' , expires: 30 } );
 //	alert ( 'lmore Bright='+brightCurrent);	
 	changecss( 'body, div#navigation a , #footer a ' , 'color' , brightValues[brightCurrent] );
}	
 	

