
var doAlerts=false;
function changeSheets(whichSheet){
  whichSheet=whichSheet-1;
  if (whichSheet==1)
  {
	  Set_Cookie( 'gfx', 'low', '', '/', '', '' );
  }else
  {Delete_Cookie('gfx', '/', '');}
  if(document.styleSheets){
    var c = document.styleSheets.length;
    if (doAlerts) alert('Change to Style '+(whichSheet+1));
    for(var i=0;i<c;i++){
      if(i!=whichSheet){
        document.styleSheets[i].disabled=true;
      }else{
        document.styleSheets[i].disabled=false;
      }
    }
  }
}

function ChangeFontSize(strAction)
{
	if (strAction == "increase"){
	Set_Cookie( 'font', 'increase', '', '/', '', '' );
	/*
	document.getElementById('FontDecrease').style.display = "inline";	
	document.getElementById('FontDecreaseSide').style.display = "inline";	
	document.getElementById('FontIncrease').style.display = "none";
	document.getElementById('FontIncreaseSide').style.display = "none";
	*/
	document.getElementById('Wrap').style.fontSize  =  "130%";
	}else{
	Delete_Cookie('font', '/', '');
	document.getElementById('Wrap').style.fontSize  = "100%";
	/*
	document.getElementById('FontIncrease').style.display = "inline";
	document.getElementById('FontIncreaseSide').style.display = "inline";
	document.getElementById('FontDecrease').style.display = "none";
	document.getElementById('FontDecreaseSide').style.display = "none";
	*/
	}
}


function ManageAccessibility()
{
// remember, these are the possible parameters for Set_Cookie:
// name, value, expires, path, domain, secure
if ( Get_Cookie( 'font' ) ) 
	{
	ChangeFontSize("increase");
	/*
	document.getElementById('FontIncrease').style.display = "none";
	document.getElementById('FontDecrease').style.display = "inline";
	document.getElementById('FontIncreaseSide').style.display = "none";
	document.getElementById('FontDecreaseSide').style.display = "inline";
	*/
	}
	else
	{
	/*
	document.getElementById('FontDecrease').style.display = "none";
	document.getElementById('FontIncrease').style.display = "inline";
	document.getElementById('FontDecreaseSide').style.display = "none";
	document.getElementById('FontIncreaseSide').style.display = "inline";
	*/
	}
if ( Get_Cookie( 'gfx' ) ) 
	{
	changeSheets(2);
	}
// and these are the parameters for Delete_Cookie:
// name, path, domain
// make sure you use the same parameters in Set and Delete Cookie.

}
