function Cookiemanager(){this.name="cookieManager";this.defaultExpiration=this.getExpiration();this.defaultDomain=window.location.hostname;this.defaultPath="/";this.cookies=new Object();this.expiration=new Object();this.domain=new Object();this.path=new Object();window.onunload=new Function(this.name+".setDocumentCookies();");this.getDocumentCookies()}Cookiemanager.prototype.getExpiration=function(){var A=new Date();A.setTime(A.getTime()+(7*24*60*60*1000));return A.toGMTString()};Cookiemanager.prototype.getDocumentCookies=function(){var C,E;var D=document.cookie.split(";");var A=D.length;for(var B=0;B<A;B++){C=D[B];while(C.charAt(0)==" "){C=C.substring(1,C.length)}E=C.split("=");this.cookies[E[0]]=E[1]}};Cookiemanager.prototype.setDocumentCookies=function(){var A="";if(this.cookies.fontSize){A="fontSize="+this.cookies.fontSize+"; expires="+this.expiration.fontSize+"; path="+this.path.fontSize+"; domain="+this.domain.fontSize;if(A!=""){document.cookie=A}}return true};Cookiemanager.prototype.getCookie=function(){return(this.cookies.fontSize)?this.cookies.fontSize:false};Cookiemanager.prototype.setCookie=function(A){if(!isNaN(A)){this.cookies.fontSize=parseFloat(A);this.expiration.fontSize=this.getExpiration();this.domain.fontSize=this.defaultDomain;this.path.fontSize=this.defaultPath;return true}};var cookieManager=new Cookiemanager();function Efa_Fontsize06(B,E,C,A,D){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));if((this.w3c||this.ms)&&!this.isOldOp&&!this.isMacIE){this.name="efa_fontSize06";this.cookieName="fontSize";this.increment=B;this.def=D;this.defPx=Math.round(16*(D/100));this.base=1;this.pref=this.getPref();this.testHTML='<div id="efaTest" style="position:absolute;visibility:hidden;line-height:1em;">&nbsp;</div>';this.biggerLink=this.getLinkHtml(1,E);this.resetLink=this.getLinkHtml(0,C);this.smallerLink=this.getLinkHtml(-1,A)}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 A=(this.efaTest.clientHeight)?parseInt(this.efaTest.clientHeight):(this.efaTest.offsetHeight)?parseInt(this.efaTest.offsetHeight):999;if(A<this.defPx){this.base=this.defPx/A}this.body.fontSize=Math.round(this.pref*this.base*100)/100+"%"};Efa_Fontsize06.prototype.getLinkHtml=function(C,B){var A=B[0]+'<a href="#" onclick="efa_fontSize06.setSize('+C+'); return false;"';A+=(B[2])?'title="'+B[2]+'"':"";A+=(B[3])?'class="'+B[3]+'"':"";A+=(B[4])?'id="'+B[4]+'"':"";A+=(B[5])?'name="'+B[5]+'"':"";A+=(B[6])?'accesskey="'+B[6]+'"':"";A+=(B[7])?'onmouseover="'+B[7]+'"':"";A+=(B[8])?'onmouseout="'+B[8]+'"':"";A+=(B[9])?'onfocus="'+B[9]+'"':"";return A+=">"+B[1]+"</a>"+B[10]};Efa_Fontsize06.prototype.getPref=function(){var A=this.getCookie();if(A){return parseFloat(A)}else{return this.def}};Efa_Fontsize06.prototype.setSmallerImage=function(){if(Math.round(this.pref*this.base*100)<=6875){this.body.fontSize="68.75%";this.efaSmaller=(this.w3c)?document.getElementById("efaSmaller"):document.all.efaSmaller;var B=this.efaSmaller.childNodes[0];var A=document.createAttribute("style");A.nodeValue="display:none";B.setAttributeNode(A)}};Efa_Fontsize06.prototype.setSize=function(A){this.pref=(A)?this.pref+(A*this.increment):this.def;if(this.pref<this.def){this.pref=this.def}this.setCookie(this.pref);if(Math.round(this.pref*this.base*100)<=6875){this.body.fontSize="68.75%"}else{this.body.fontSize=Math.round(this.pref*this.base*100)/100+"%"}if(typeof (tp_resize)=="function"){tp_resize()}};Efa_Fontsize06.prototype.getCookie=function(){var A=cookieManager.getCookie();return(A)?A:false};Efa_Fontsize06.prototype.setCookie=function(A){return cookieManager.setCookie(A)};
