/*
var agt = navigator.userAgent.toLowerCase(); 
var ie   = (agt.indexOf("msie") != -1);
*/

/*------------------------------------------------------------

	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.

--------------------------------------------------------------*/


var aTags = new Array('body');
var aSizes = new Array('12px','16px','20px');

function ts( tEl, size ) {
	if (!document.getElementById) return
	var cEl = null,i,j,cTags;

	if ( size < 0 ) size = 0;
	if ( size > 2 ) size = 2;
		
	if ( !( cEl = document.getElementById(tEl) ) ) cEl = document.getElementsByTagName(tEl)[0];

	cEl.style.fontSize = aSizes[size];
	for ( i = 0 ; i < aTags.length ; i++ ) {
		cTags = cEl.getElementsByTagName(aTags[i]);
		for ( j = 0 ; j < cTags.length ; j++ ){
			 cTags[ j].style.fontSize = aSizes[size];
		 }
	}	
}

