textsize = 2;

textsizes = new Array(5);
textsizes[0] = "10px";
textsizes[1] = "11px";
textsizes[2] = "12px";
textsizes[3] = "16px";
textsizes[4] = "20px";

function tools() {
//hide stuff from netscape 4
if (dynNS) {
document.write("");
}
else if(NS6 || isIE) { 
document.write("<a href=\"#\" onclick=\"changesize('one')\" onMouseOver=\"showborder('textup')\" onMouseOut=\"hideborder('textup')\"><img src=\"/images/essentials/textup_button1.gif\" width=\"26\" height=\"20\" border=\"1\" class=\"tools\" name=\"textup\" alt=\"Increase Text Size\"></a>&nbsp;<a href=\"#\" onclick=\"changesize('zero');\" onMouseOver=\"showborder('textdown')\" onMouseOut=\"hideborder('textdown')\"><img src=\"/images/essentials/textdown_button1.gif\" width=\"26\" height=\"20\" border=\"1\" class=\"tools\" name=\"textdown\" alt=\"Decrease Text Size\"></a>");
}
}
function changesize(action) {


if (action=="zero") { // reduce size
			
				if (textsize < 1) { textsize = 1; }

				if (NS6) {
	decsize = eval('"'+textsizes[(textsize-1)]+'"');
												for (x=0;x<no_of_styles;x++) {
												
												eval("elm"+x+" = document.getElementById("+'"'+stylenames[x]+'"'+")");
												eval("elm"+x+".style.fontSize = "+'"'+decsize+'"');
												}
											}

									else if(isIE) {
										
											for (x=0;x<no_of_styles;x++) {

												eval("document.all."+stylenames[x]+".style.fontSize = textsizes[(textsize-1)]");
												
																		  }
												}
								
									textsize = textsize-1;
					 }
					 
else if (action=="one") { // increase size
if (textsize > 3) { textsize = 3; }
									if (NS6) {
									incsize = eval('"'+textsizes[(textsize+1)]+'"');
									for (x=0;x<no_of_styles;x++) {
												
												eval("elm"+x+" = document.getElementById("+'"'+stylenames[x]+'"'+")");
												eval("elm"+x+".style.fontSize = "+'"'+incsize+'"');
												}
											}

									else if(isIE) {

										for (x=0;x<no_of_styles;x++) {

												eval("document.all."+stylenames[x]+".style.fontSize = textsizes[(textsize+1)]");
												
																	 }
												
												  }
		
											textsize = textsize+1;
										}
									}




function showborder (whichIMG) { 

document.images[eval('"'+whichIMG+'"')].style.borderColor="#000000";

}

function hideborder (whichIMG) { 

document.images[eval('"'+whichIMG+'"')].style.borderColor="#ff9900";
}
