/* erible: edited line 68/69 and 91/92 to get a body-value with 1 fractional digit - e.g. instead of 62.5 the default was 63 */ var efa_default=62.5; var efa_increment=10; var efa_bigger=['', 'Schrift vergrößern', 'Schrift verkleinern', '', 'FSbigger', '', '', '', '', '', '

']; var efa_reset=['', 'Schrift zurücksetzen', 'Schrift zurücksetzen', '', 'FSdef', '', '', '', '', '', '']; var efa_smaller=['

', 'Schrift verkleinern', 'Schrift verkleinern', '', 'FSsmaller', '', '', '', '', '', '']; function Efa_Fontsize(increment,bigger,reset,smaller,def){ this.w3c=(document.getElementById); this.ms=(document.all); this.userAgent=navigator.userAgent.toLowerCase(); this.isOldOp=((this.userAgent.indexOf('opera')!=-1)&&(parseFloat(this.userAgent.substr(this.userAgent.indexOf('opera')+5))<=7)); if((this.w3c||this.ms)&&!this.isOldOp&&!this.isMacIE){ this.name="efa_fontSize"; this.cookieName='bbFontSize'; this.increment=increment; this.def=def;this.defPx=Math.round(16*(def/100)); this.base=1;this.pref=this.getPref(); this.testHTML='

'; this.biggerLink=this.getLinkHtml(1,bigger); this.resetLink=this.getLinkHtml(0,reset); this.smallerLink=this.getLinkHtml(-1,smaller); } else { this.biggerLink=''; this.resetLink=''; this.smallerLink=''; this.efaInit=new Function('return true;'); } this.allLinks=this.smallerLink+this.resetLink+this.biggerLink; } Efa_Fontsize.prototype.efaInit=function(){ document.writeln(this.testHTML); this.body=(this.w3c)?document.getElementsByTagName('body')[0].style:document.all.tags('body')[0].style; this.efaTest=(this.w3c)?document.getElementById('efaTest'):document.all['efaTest']; var h=(this.efaTest.clientHeight)?parseInt(this.efaTest.clientHeight):(this.efaTest.offsetHeight)?parseInt(this.efaTest.offsetHeight):999; if(h'+properties[10]; } Efa_Fontsize.prototype.getPref=function(){ var pref=this.getCookie(this.cookieName); if(pref)return parseInt(pref); else return this.def; } Efa_Fontsize.prototype.setSize=function(direction){ this.pref=(direction)?this.pref+(direction*this.increment):this.def; this.setCookie(this.cookieName,this.pref); // this.body.fontSize=Math.round(this.pref*this.base)+'%'; this.body.fontSize = (Math.round(10*this.pref*this.base))/10 + '%'; } Efa_Fontsize.prototype.getCookie=function(cookieName){ var cookie=cookieManager.getCookie(cookieName); return(cookie && (cookie!="undefined"))?cookie:false; } Efa_Fontsize.prototype.setCookie=function(cookieName,cookieValue){ return cookieManager.setCookie(cookieName,cookieValue); } var efa_fontSize=new Efa_Fontsize(efa_increment,efa_bigger,efa_reset,efa_smaller,efa_default);