<!--

function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}

function getActiveStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
  }
  return null;
}


function createCookie(name,value,days)
{
	days = (days) ? days : 7305;

	if (days)
	{
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name)
{
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++)
	{
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name)
{
	createCookie(name,"",-1);
}


function toggleStyleSheet() {
	if (readCookie("aubfontsize") == "increased") {
		setActiveStyleSheet("increased", 1);
	}
	else if (readCookie("aubfontsize") == "increased1") {
		setActiveStyleSheet("increased1", 1);
	}		
	else {
		setActiveStyleSheet("default", 1);
	}
}

function toggleStyleSheetnormal() {
	setActiveStyleSheet("default", 1);
	createCookie("aubfontsize","default");
	swapImgRestore();
	findObj('a1').src = 'img/a1h.gif';
	findObj('a2').src = 'img/a2n.gif';
	findObj('a3').src = 'img/a3n.gif';
}

function toggleStyleSheetlarge() {
	setActiveStyleSheet("increased", 1);
	createCookie("aubfontsize","increased");
	swapImgRestore();
	findObj('a1').src = 'img/a1n.gif';
	findObj('a2').src = 'img/a2h.gif';
	findObj('a3').src = 'img/a3n.gif';
}

function toggleStyleSheetxlarge() {
	setActiveStyleSheet("increased1", 1);
	createCookie("aubfontsize","increased1");
	swapImgRestore();
	findObj('a1').src = 'img/a1n.gif';
	findObj('a2').src = 'img/a2n.gif';
	findObj('a3').src = 'img/a3h.gif';
}

function showAAA() {
    var a1='n',a2='n',a3='n';
	if (readCookie("aubfontsize") == "increased") {
		a2='h';
	}
	else if (readCookie("aubfontsize") == "increased1") {
		a3='h';
	}
	else {
		a1='h';
	}

	document.write('<a href="javascript:toggleStyleSheetnormal()" onmouseover="swapImage(\'a1\',\'img/a1r.gif\');self.status=\'normal text\';return true" onmouseout="swapImgRestore();self.status=\'\';return true"><img src="img/a1' + a1 +'.gif" name="a1" border="0" alt="normal"></a><img src="img/s.gif" width="1" height="1"><a href="javascript:toggleStyleSheetlarge()" onmouseover="swapImage(\'a2\',\'img/a2r.gif\');self.status=\'large text\';return true" onmouseout="swapImgRestore();self.status=\'\';return true"><img src="img/a2' + a2 + '.gif" name="a2" border="0" alt="large"></a><img src="img/s.gif" width="1" height="1"><a href="javascript:toggleStyleSheetxlarge()" onmouseover="swapImage(\'a3\',\'img/a3r.gif\');self.status=\'extra large text\';return true" onmouseout="swapImgRestore();self.status=\'\';return true"><img src="img/a3' + a3 +'.gif" name="a3" border="0" alt="extra large"></a>');
}

toggleStyleSheet();



//-->
