function FontSizer(){

	this.cookieStep = getCookie("step");
	this.step		=  (isNaN(parseInt(this.cookieStep))) ? 0 : parseInt(this.cookieStep);
	this.maxStep 	=  2;
	this.add		=  2;
	this.theRules 	= (document.styleSheets[0].cssRules) ? document.styleSheets[0].cssRules : document.styleSheets[0].rules;

	this.setFontSize = function(){
		this.step = (this.step < this.maxStep) ? (this.step+1) : 0;					
		this.setAllElements(false)
		setCookie("step",this.step,180,"../index.html");	
	}
	
	this.setAllElements = function(isInit){
		for (i=0;i<this.theRules.length;i++) {
			if(this.theRules[i].style.fontSize) {
				fsize = parseInt(this.theRules[i].style.fontSize);
				if (isInit) {
					this.theRules[i].style.fontSize = fsize+(this.add*this.step) + "px"
				}
				else this.theRules[i].style.fontSize = (this.step == 0) ? fsize-(this.add*this.maxStep) + "px" : fsize+this.add + "px";
			}
		}
	}
	
	this.init = function(){
		this.setAllElements(true);
	}

}
