Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/capito/cms/includes/efa_fontsize.php:2) in /var/www/capito/cms/includes/efa_fontsize.php on line 4

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/capito/cms/includes/efa_fontsize.php:2) in /var/www/capito/cms/includes/efa_fontsize.php on line 4
var efa_default = 100; var efa_increment = 8; // maximal + minimal zoom entry values added by grishan Sept. 2005 var max_zoom = 200; var min_zoom = 67; var efa_bigger = ['
', 'A', ' - Text vergrößern . ', '', '', '', '', '', '', '', '' ] var efa_reset = ['', 'A', ' - Standardtextgröße', '', '', '', '', '', '', '', '' ] var efa_smaller = ['', 'A', ' - Text verkleinern', '', '', '', '', '', '', '', '<' + '/div>' ] function Efa_Fontsize(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.isOldOpfake = ((this.userAgent.indexOf('opera') != -1)&&(parseFloat(this.userAgent.substr(this.userAgent.indexOf('opera')+5)) <= 7)); //for proper Opera dedection if Operas User Agent Switching is aktive - added by grishan Jan. 2006 this.isOldOpreal = ((this.userAgent.indexOf('opera') != -1)&&(parseFloat(this.userAgent.substr(this.userAgent.indexOf('opera')+6)) <= 7)); if ((this.w3c || this.ms) && !this.isOldOpfake && !this.isMacIE && !this.isOldOpreal) { this.name = "efa_fontSize"; this.cookieName = 'efaSize'; 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_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 < this.defPx) this.base = this.defPx/h; this.body.fontSize = Math.round(this.pref*this.base) + '%'; } Efa_Fontsize.prototype.getLinkHtml = function(direction,properties) { var html = properties[0] + ' ' + 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; //maximum Zoom (in Percent) added by grishan Sept. 2005 if ( this.pref >= max_zoom ) { this.pref = max_zoom; this.setCookie(this.cookieName,this.pref); this.body.fontSize = Math.round(this.pref*this.base) + '%'; } //minimum Zoom (in Percent) added by grishan Sept. 2005 if ( this.pref <= min_zoom ) { this.pref = min_zoom; this.setCookie(this.cookieName,this.pref); this.body.fontSize = Math.round(this.pref*this.base) + '%'; } else { this.setCookie(this.cookieName,this.pref); this.body.fontSize = Math.round(this.pref*this.base) + '%'; } } Efa_Fontsize.prototype.getCookie = function(cookieName) { var cookie = cookieManager.getCookie(cookieName); return (cookie)?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);