//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','36px');
var startSz = 0;

var zClientWidth = 0;
var zClientHeight = 0;
if (window.innerWidth) { //if browser supports window.innerWidth
  zClientWidth = window.innerWidth;
  zClientHeight = window.innerHeight;
} else {
  if (document.all) { //else if browser supports document.all (IE 4+)
    zClientWidth = document.documentElement.clientWidth;
    zClientHeight = document.documentElement.clientHeight;
  }
}

//if (zClientWidth < 1000) {
//  document.write('<link rel="stylesheet" type="text/css" href="800.css">');
//  startSz = 1;
//} else {
//  if ((zClientWidth >= 1200) && (zClientHeight >= 640)) {
//    document.write('<link rel="stylesheet" type="text/css" href="1280.css">');
//    startSz = 4;
//  } else {
//    document.write('<link rel="stylesheet" type="text/css" href="1024.css">');
//    startSz = 3;
//  }
//}

document.write('<link rel="stylesheet" type="text/css" href="1024.css">');

//Specify affected tags. Add or remove from list:
var tgs = new Array();

function ts( trgt,inc ) {
	if (!document.getElementById) return
	var d = document, cEl = null, sz = startSz,i,j,cTags;
	
	sz += inc;
	if (sz < 0) sz = 0;
	if (sz > 16) sz = 16;
	startSz = sz;
		
	if (!(cEl = d.getElementById(trgt))) cEl = d.getElementsByTagName(trgt)[0];

	cEl.style.fontSize = szs[sz];

	for (i = 0 ; i < tgs.length ; i++) {
		cTags = cEl.getElementsByTagName(tgs[i]);
		for (j = 0 ; j < cTags.length ; j++) {
			cTags[j].style.fontSize = szs[sz];
		}
	}
}