/*------------------------------------------------------------
	Document Text Sizer- Copyright 2003 - Taewook Kang.  All rights reserved.
	Coded by: Taewook Kang (txkang.REMOVETHIS@hotmail.com)
	Web Site: http://txkang.com
	Script featured on Dynamic Drive (http://www.dynamicdrive.com)
	
	Please retain this copyright notice in the script.
	License is granted to user to reuse this code on 
	their own website if, and only if, 
	this entire copyright notice is included.
--------------------------------------------------------------*/

//Specify spectrum of different font sizes:
var szs = new Array( '9px','10px','11px','12px','13px','14px','15px','16px','17px','18px','19px','20px','21px','22px','23px','24px','25px','26px' );
var startSz = 3;
var szsTitle = new Array( '9px','10px','11px','12px','13px','14px','15px','16px','17px','18px','19px','20px','21px','22px','23px','24px','25px','26px' );
var startSzTitle = 4;

function ts( inc, bloc, incGlobal) {

	var sz = startSz;
	sz += inc;
	
	if ( sz < 0 ) sz = 0;
	if ( sz > 8 ) sz = 7;
	if (incGlobal) {
		startSz = sz;
	}		
		
	document.getElementById(bloc).style.fontSize = szs[ sz ];

}