function setActiveStyleSheet(strTitle) {    var arrayTags = document.getElementsByTagName("link");    var i, objTag;    for (var i=0; i < arrayTags.length; i++) {        objTag = arrayTags[i];        if (objTag.getAttribute("rel").indexOf("style") != -1 && objTag.getAttribute("title")) {            objTag.disabled = true;            if (objTag.getAttribute("title") == strTitle) {                objTag.disabled = false;            }        }    }        var strDomain;    if (endsWith(window.location.hostname.toLowerCase(), "thunderbird.edu")) {        strDomain = "thunderbird.edu";    } else {        strDomain = null;    }    writeCookie(COOKIE_NAME_ACTIVE_STYLESHEET, strTitle, 90, '/', strDomain, false);}function endsWith(strSource, strEnd) {
    if (strEnd.length > strSource.length) {
        return false;
    }
    return strSource.indexOf(strEnd) == (strSource.length - strEnd.length);
}function getActiveStyleSheet() {    var arrayTags = document.getElementsByTagName("link");    var objTag;    for (var i=0; i < arrayTags.length; i++) {        objTag = arrayTags[i];        if (objTag.getAttribute("rel").indexOf("style") != -1 && objTag.getAttribute("title") && !objTag.disabled) {            return objTag.getAttribute("title");        }    }    return null;}function setTextSize() {    var strTitle = readCookie(COOKIE_NAME_ACTIVE_STYLESHEET);    if (strTitle == null) {        strTitle = DEFAULT_STYLESHEET_TITLE;    }    setActiveStyleSheet(strTitle);}var COOKIE_NAME_ACTIVE_STYLESHEET = "style";var DEFAULT_STYLESHEET_TITLE = "medium";//Uncomment following line if stylesheets are linked after this javascript file in the html//addOnloadEvent(setTextSize);setTextSize();