/*==============================================================================================================================styleswitcher.js- switch between one of three stlye sheets to increade and decrease the font in the center content sectionstyle switching from the article on "A List Apart"http://www.alistapart.com/articles/alternate/note: no coolies are being used to record preference here as that is not a requirement for tis site==============================================================================================================================*/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 getPreferredStyleSheet() {  var i, a;  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {    if(a.getAttribute("rel").indexOf("style") != -1       && a.getAttribute("rel").indexOf("alt") == -1       && a.getAttribute("title")       ) return a.getAttribute("title");  }  return null;}function cycleStyles(){	var title = parseInt(getActiveStyleSheet());	title+=1;	if(title>3){title=1;}	setActiveStyleSheet(title + "");}window.onload = function(e) {  var title = getPreferredStyleSheet();  setActiveStyleSheet(title);}