// filtools for filweb 2.x
// requires mootools v 
// version 1.0

 

// functions =======================================
function fontSize(act){
	bodyS=parseInt($$('body').getStyle('font-size').toString().replace("px",""))

	if(act=='increase'){
		if(bodyS >= 16 ) return false;
		var percent= 0.1;
	}else if(act=='decrease'){
		if(bodyS <= 12 ) return false;
		var percent= -0.09;
	}
	$$('body','h1','h2','h3','h4','h5','h6','select','input','textarea','td','th').each(function(el){
		s=parseInt(el.getStyle('font-size').replace("px",""));
		newS=Math.round( s + (s*percent));
		el.setStyle('font-size', newS+'px' )
	});

}

 
