function BrowserCheck() {
var b = navigator.appName
this.mac = (navigator.appVersion.indexOf('Mac') != -1)
if (b=="Netscape") this.b = 'ns'
else if (b=="Microsoft Internet Explorer") this.b = 'ie'
else this.b = b
this.version = navigator.appVersion
this.v = parseInt(this.version)
this.ns = (this.b=="ns" && this.v>=5)
this.ns5 = (this.b=="ns" && this.v==5)
this.ns6 = (this.b=="ns" && this.v==5)
this.ie = (this.b=="ie" && this.v>=4)
this.ie4 = (this.version.indexOf('MSIE 4')>0)
this.ie5 = (this.version.indexOf('MSIE 5')>0)
this.ie5mac = (this.ie && this.mac);
this.ns5mac = (this.ns && this.mac);
this.min = (this.ns||this.ie)
}

//is = new BrowserCheck();

function switchStyleSheet(textDecrease,textIncrease) {
	if (getActiveStyleSheet() == 'large') {
		document.getElementById('font').innerHTML=textDecrease;
		setActiveStyleSheet('default');
		createCookie("style", "null", 365);
	} else {
		document.getElementById('font').innerHTML=textIncrease;
		setActiveStyleSheet('large');
		createCookie("style", "large", 365);
	}
}

function writeFontTool(textDecrease,textIncrease) {

	var startText;
	var active = getActiveStyleSheet();

	if (active == "large") {
		startText = textDecrease;
	} else {
		startText = textIncrease;
	}

	document.write('<a href="javascript:switchStyleSheet(\''+textIncrease+'\',\''+textDecrease+'\');" id="font">'+startText+'</a>');

}
