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>&nbsp;<a href=\"#\" onclick=\"printerf()\" onMouseOver=\"showborder('printbut')\" onMouseOut=\"hideborder('printbut')\"><img src=\"/images/essentials/printer_button.gif\" width=\"26\" height=\"20\" border=\"1\" class=\"tools\" name=\"printbut\" alt=\"Printer Friendly Version\"></a>&nbsp;<a href=\"#\" onclick=\"resetpage()\" onMouseOver=\"showborder('resetbut')\" onMouseOut=\"hideborder('resetbut')\"><img src=\"/images/essentials/reset_button.gif\" width=\"57\" height=\"20\" border=\"1\" class=\"tools\" name=\"resetbut\" alt=\"Revert To Default\"></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 printerf() {
//makes the page printer friendly
if (NS6) { 
document.getElementById("lhn").innerHTML = "<br>";
document.getElementById("mycredits").innerHTML = "<br>";

//making the tables narrower
document.getElementById("top").width = "600px";
document.getElementById("header").width = "600px";
document.getElementById("main").width = "600px";
document.getElementById("bottom").width = "600px";
document.getElementById("main").align = "left";
document.getElementById("top").align = "left";
document.getElementById("bottom").align = "left";

//dealing with spacers etc

document.images["banner"].src="/images/nav/header_600.jpg";
document.images["banner"].width = "600";
document.images["stripes"].src="/images/clear.gif";
document.images["spacer1"].width = "5";
document.images["spacer2"].width = "1";
document.images["spacer3"].width = "2";
document.images["spacer4"].width = "586";
document.images["spacer5"].width = "4";
document.images["spacer6"].width = "1";

document.body.leftMargin = "5";
}
if (isIE) {
document.all.lhn.innerText = "";
document.all.mycredits.innerText = "";

//making the tables narrower
document.all.top.width = "600px";
document.all.header.width = "600px";
document.all.main.width = "600px";
document.all.bottom.width = "600px";
document.all.main.align = "left";
document.all.top.align = "left";
document.all.bottom.align = "left";

//dealing with spacers etc

document.images["banner"].src="/images/nav/header_600.jpg";
document.images["banner"].width = "600";
document.images["stripes"].src="/images/clear.gif";
document.images["spacer1"].width = "5";
document.images["spacer2"].width = "1";
document.images["spacer3"].width = "2";
document.images["spacer4"].width = "586";
document.images["spacer5"].width = "4";
document.images["spacer6"].width = "1";

document.body.leftMargin = "5";
}
}

function resetpage(){
var thisURL = window.location.pathname;
window.location.href = thisURL ;
window.location.replace( thisURL );
window.location.reload( false );
}


function showborder (whichIMG) { 

document.images[eval('"'+whichIMG+'"')].style.borderColor="#000000";

}

function hideborder (whichIMG) { 

document.images[eval('"'+whichIMG+'"')].style.borderColor="#ff9900";
}