	var total_font_change = 0;
	var font_size_content = 'content';
	var font_unit;	
	var font_ori_size ;
	Event.observe(window,'load',start_font_set,false);
	
	function start_font_set(){
		font_ori_size=getCurrentStyle($(font_size_content),'fontSize');
		Event.observe($('small_font'),'click',small_click,false);
		Event.observe($('lager_font'),'click',lager_click,false);
		Event.observe($('normal_font'),'click',normal_click,false);
	}
	
	function small_click(){	
		if(total_font_change<=-3){
			return;
		}
		total_font_change--;
		cg(font_size_content,-1);
	}	
	function cg(id,x){
			if(typeof id =='string'){
				var c = getInt(getCurrentStyle($(id),'fontSize'));
				c+=x;
				$(id).style.fontSize=c+font_unit;
			}else {
				var tag = $(id).tagName;
				tag = tag.toLocaleLowerCase();
								
				if('font'==tag&&$(id).size){
					$(id).removeAttribute('size');
					/*
					var c = getInt(getCurrentStyle($(id),'fontSize'));						
					c+=x;			
					$(id).size=c;
					*/
								
				}
				
				if('td'==tag){
					var c = getInt(getCurrentStyle($(id),'fontSize'));
					c+=x;
					$(id).style.fontSize=c+font_unit;
				}
			}
		var cn = $(id).childNodes;
		
		if(cn&&cn.length>0){
			for(var i=0;i<cn.length;i++){
					if($(cn(i)).tagName) cg(cn(i),x);
			}
		}
			
	}
	
	function lager_click(){
		if(total_font_change>=3){
			return;
		}
		total_font_change++;
		cg(font_size_content,1);
	}
	function normal_click(){
		//$(font_size_content).style.fontSize = font_ori_size;		
		cg(font_size_content,total_font_change*-1);	
		total_font_change=0;
	}
	
	function getInt(numpx){		
			font_unit = numpx.substring(numpx.length-2);
			var n = numpx.substring(0,numpx.length-2);	
				
			n = parseFloat(n);
			if(isNaN(n)){
				return parseFloat(numpx)
			}
			return n;
	}
	function getCurrentStyle(obj, prop) {
	try{
		if (obj.currentStyle) {
			return obj.currentStyle[prop];
		}
		else if (window.getComputedStyle) {
			prop = prop.replace (/([A-Z])/g, "-$1");
			prop = prop.toLowerCase ();
			return window.getComputedStyle (obj, "").getPropertyValue(prop);
		}
		}catch(e){alert(obj+","+prop+","+e.message);}
		return null;
	}