function unload_cookie(){var a=getActiveStyleSheet();createCookie("style_cookie",a,365)}function load_cookie(){var a=readCookie("style_cookie");var b=a?a:getPreferredStyleSheet();setActiveStyleSheet(b)}function readCookie(a){var b=a+"=";var c=document.cookie.split(";");for(var d=0;d<c.length;d++){var e=c[d];while(e.charAt(0)==" "){e=e.substring(1,e.length)}if(e.indexOf(b)==0){return e.substring(b.length,e.length)}}return null}function createCookie(a,b,c){if(c){var d=new Date;d.setTime(d.getTime()+c*24*60*60*1e3);var e="; expires="+d.toGMTString()}else{e=""}document.cookie=a+"="+b+e+style_cookie_settings}function getPreferredStyleSheet(){return"A-"}function getActiveStyleSheet(){var a,b;for(a=0;b=document.getElementsByTagName("link")[a];a++){if(b.getAttribute("rel").indexOf("style")!=-1&&b.getAttribute("title")&&!b.disabled){return b.getAttribute("title")}}return null}function setActiveStyleSheet(a){var b,c,d;for(b=0;c=document.getElementsByTagName("link")[b];b++){if(c.getAttribute("rel").indexOf("style")!=-1&&c.getAttribute("title")){c.disabled=true;if(c.getAttribute("title")==a){c.disabled=false}}}}function fontsizedown(){active=getActiveStyleSheet();switch(active){case"A++":setActiveStyleSheet("A+");break;case"A+":setActiveStyleSheet("A");break;case"A":setActiveStyleSheet("A-");break;case"A-":setActiveStyleSheet("A--");break;case"A--":break;default:setActiveStyleSheet("A--");break}}function fontsizeup(){var a=getActiveStyleSheet();switch(a){case"A--":setActiveStyleSheet("A-");break;case"A-":setActiveStyleSheet("A");break;case"A":setActiveStyleSheet("A+");break;case"A+":setActiveStyleSheet("A++");break;case"A++":setActiveStyleSheet("A");break;default:setActiveStyleSheet("A");break}}onload_functions.push("load_cookie()");onunload_functions.push("unload_cookie()")
