
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 = "block";	
	document.getElementById('FontIncrease').style.display = "none";
	document.getElementById('Wrapper').style.fontSize  =  "130%";
	}else{
	Delete_Cookie('font', '/', '');
	document.getElementById('FontIncrease').style.display = "block";
	document.getElementById('FontDecrease').style.display = "none";
	document.getElementById('Wrapper').style.fontSize  = "100%";
	}
}


function ManageAccessibility()
{
// remember, these are the possible parameters for Set_Cookie:
// name, value, expires, path, domain, secure
if (Get_Cookie('font')) 
	{ChangeFontSize("increase");}
	else
	{ChangeFontSize("decrease");}
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.

}
