/* Dieses Skript wird zur Verfuegung gestellt von http://www.einfachfueralle.de - Einfach fuer Alle, eine Initiative der Aktion Mensch http://www.einfachfueralle.de/download */ var efa_default = 100; var efa_increment = 20; var efa_bigger = [''+_STRZOOMDESC+'', '+ ('+_STRZOOMBIG+')', _STRZOOMBIG, '', '', '', '+', 'this.firstChild.src=\'/images/opftpws/icon_zoom_max1.gif\';this.firstChild.className=\'active\'', 'this.firstChild.src=\'/images/opftpws/icon_zoom_max.gif\';this.firstChild.className=\'\'', '', '' ] var efa_reset = ['', 'o ('+_STRZOOMDEF+')', _STRZOOMDEF, '', '', '', '0', 'this.firstChild.src=\'/images/opftpws/icon_zoom_def1.gif\';this.firstChild.className=\'active\'', 'this.firstChild.src=\'/images/opftpws/icon_zoom_def.gif\';this.firstChild.className=\'\'', '', '' ] var efa_smaller = ['', '- ('+_STRZOOMSMALL+')', _STRZOOMSMALL, '', '', '', '-', 'this.firstChild.src=\'/images/opftpws/icon_zoom_min1.gif\';this.firstChild.className=\'active\'', 'this.firstChild.src=\'/images/opftpws/icon_zoom_min.gif\';this.firstChild.className=\'\'', '', '' ] function Efa_Fontsize06(increment,bigger,reset,smaller,def) { this.w3c = (document.getElementById); this.ms = (document.all); this.userAgent = navigator.userAgent.toLowerCase(); this.isMacIE = ((this.userAgent.indexOf('msie') != -1) && (this.userAgent.indexOf('mac') != -1) && (this.userAgent.indexOf('opera') == -1)); //this.isOldOp = ((this.userAgent.indexOf('opera') != -1)&&(parseFloat(this.userAgent.substr(this.userAgent.indexOf('opera')+5)) <= 7)); this.isOldOp = false; if ((this.w3c || this.ms) && !this.isOldOp && !this.isMacIE) { this.name = "efa_fontSize06"; this.cookieName = 'fontSize'; 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.biggerLink + this.resetLink + this.smallerLink; } Efa_Fontsize06.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 < this.defPx) this.base = this.defPx/h; this.body.fontSize = Math.round(this.pref*this.base) + '%'; } Efa_Fontsize06.prototype.getLinkHtml = function(direction,properties) { var html = properties[0] + '' + properties[10]; } Efa_Fontsize06.prototype.getPref = function() { var pref = this.getCookie(); if (pref) return parseInt(pref); else return this.def; } Efa_Fontsize06.prototype.setSize = function(direction) { this.pref = (direction)?this.pref+(direction*this.increment):this.def; if (this.pref < 100) this.pref = 100; this.setCookie(this.pref); this.body.fontSize = Math.round(this.pref*this.base) + '%'; } Efa_Fontsize06.prototype.getCookie = function() { var cookie = cookieManager.getCookie(); return (cookie)?cookie:false; } Efa_Fontsize06.prototype.setCookie = function(cookieValue) { return cookieManager.setCookie(cookieValue); } var efa_fontSize06 = new Efa_Fontsize06(efa_increment,efa_bigger,efa_reset,efa_smaller,efa_default); if (efa_fontSize06) efa_fontSize06.efaInit();