var tags = new Array( 'div','td','tr','p','b','table','strong','emphasis','a','h1','h2','h3','pre','sub','sup','i','th','cp','ul','ol','li','dt','dd', 'span');
var pixelArray =  new Array('10','12','16','20','24','30','40');
var emArray =  new Array('0','1','1.1','2.5','3'); //'0.7','0.9',

function fontSizer(inc,unit) {
	if (!document.getElementById) 
		return;
		
    if (inc <= 0)
    {
        inc = 0;
    }
    else if (inc > 6)
    {
        inc = 6;
    }
	
//	alert(inc);
	SetCookie('AlphaganP', inc);

	getBody = document.getElementsByTagName('body')[0];
	for (i = 0 ; i < tags.length ; i++ ) 
	{
		getallTags = getBody.getElementsByTagName(tags[i]);
		for (k = 0 ; k < getallTags.length ; k++)
		{
		    if (getallTags[k].className != "footerTxt" && 
		            getallTags[k].className != "whitelink" && 
		            getallTags[k].className != "BlueLinkTitle" && 
		            getallTags[k].className != "BlueLinkSubTitle" &&
		            getallTags[k].id != "banner" &&
		            getallTags[k].id != "bannerText" &&
		            getallTags[k].className != "noResize")
		    {
			    getallTags[k].style.fontSize = (unit=='px') ? pixelArray[inc]+unit : emArray[inc]+unit;
			}
			else if (getallTags[k].className == "BlueLinkTitle")
			{
			    getallTags[k].style.fontSize = (unit=='px') ? pixelArray[(inc <= 3) ? inc + 2 : 5]+unit : emArray[(inc <= 3) ? inc + 2 : 5]+unit;
			}
			else if (getallTags[k].className == "BlueLinkSubTitle")
			{
			    getallTags[k].style.fontSize = (unit=='px') ? pixelArray[(inc <= 3) ? inc + 1 : 5]+unit : emArray[(inc <= 3) ? inc + 1 : 5]+unit;
			}
		}
  
	}
		
	getSupTags = getBody.getElementsByTagName("sup");
	for (j = 0; j < getSupTags.length; j++)
	{
	    if (getSupTags[j].className != "footerTxt")
	    {
	        getSupTags[j].style.fontSize = (unit=='px') ? (pixelArray[inc] - '2') +unit : (emArray[inc] - '.5') +unit;
	    }
	}
}
