var FontSzConfig={"doClientSide":false,"fsBlockSelector":"div.fontsizer li","fontUpSelector":".up a","fontDownSelector":".dwn a","minSize":1,"maxSize":7};currentFontSize=1;function initFontSizer(){var _14=document.body.className.match(/\bzoom(\d+)\b/);currentFontSize=_14?parseInt(_14[1]):currentFontSize;if(FontSzConfig["doClientSide"]){applyFontSize()}var _12=document.getElementsBySelector(FontSzConfig.fsBlockSelector+FontSzConfig.fontUpSelector);var _11=document.getElementsBySelector(FontSzConfig.fsBlockSelector+FontSzConfig.fontDownSelector);if((_12[0]!=null)&&(_11[0]!=null)){_12[0].onclick=function(){resizeFont(currentFontSize+1);return false};_11[0].onclick=function(){resizeFont(currentFontSize-1);return false}}else{var _9=document.getElementsBySelector(FontSzConfig.fsBlockSelector+" a");for(var i=0;i<_9.length;i++){var _5=_9[i];var _10=_5.href.replace(/.+setFontSize=(\d+).*/,"$1");if(_10!=""){_5.fontSize=parseInt(_10);_5.onclick=function(){resizeFont(this.fontSize);return false}}}}return}function resizeFont(_4){_4=(_4<FontSzConfig["minSize"])?FontSzConfig["minSize"]:(_4>FontSzConfig["maxSize"])?FontSzConfig["maxSize"]:_4;setCookie("fontSize",_4,"/");currentFontSize=_4;applyFontSize();return};function applyFontSize(){if(FontSzConfig["doClientSide"]){var _2=getCookieValue("fontSize");if(_2){_2=parseInt(_2);if(_2!="NaN"){currentFontSize=(_2>10)?currentFontSize:(_2>FontSzConfig["maxSize"])?FontSzConfig["maxSize"]:_2}}}var _0=document.body.className;if((_0!=null)&&(_0!="")){_0=_0.replace(/\s*zoom\d+/g,"");_0=_0.replace(/(^\s+|\s+$)/g,"");if(_0!=""){_0+=" "}}document.body.className=_0+"zoom"+currentFontSize;return};function setCSS(_3){cssSwitch(_3);setCookie("CSSfile",_3,"/")};function cssSwitch(_3){if(document.getElementsByTagName&&_3&&(_3!="")){var _8=getCssLinks();var i=_8.length;while(i--){var _1=_8[i];_1.disabled=true;if(stripHref(_1.href)==stripHref(_3)){_1.disabled=false}}}return false};function getCssLinks(_7){if(!document.getElementsByTagName)return null;if(_7==null){_7="screen"}var _6=new Array();var _13=document.getElementsByTagName("link");var i=_13.length;while(i--){var _1=_13[i];if((_1.rel!=null)&&(_1.rel.indexOf("stylesheet")>-1)&&((_1.media==null)||(_1.media.indexOf(_7)>-1))){_6[_6.length]=_1}}return _6};
