	var mozilla = document.getElementById && !document.all
	var ie = document.all
	
	var MVFontSize 
	MVFontSize = readCookie('MVFontSize')
	if (MVFontSize == "") 
		MVFontSize = 11
	
	function createCookie(name,value,days) {
		if (days) {
			var date = new Date();
			date.setTime(date.getTime()+(days*24*60*60*1000));
			var expires = "; expires="+date.toGMTString();
		}
		else var expires = "";
		document.cookie = name+"="+value+expires+"; path=/";
	}
	
	function eraseCookie(name) {
		createCookie(name,"",-1);
	}
	
	function readCookie(name) {
		var nameEQ = name + "=";
		var ca = document.cookie.split(';');
		for(var i=0;i < ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
		return '';
	}
	
   function ChangeFontSize(amt){
		if (amt == "increase") 
		{
			if (MVFontSize < 16) 
			{
				MVFontSize = parseInt(MVFontSize) + 1;
				createCookie('MVFontSize',MVFontSize)
			}
		}
		else 
		{
			if (MVFontSize > 9) 
			{
				MVFontSize = parseInt(MVFontSize) - 1;
				createCookie('MVFontSize',MVFontSize)
			}
		}
		LoadFont()
	}
	
	function LoadFont() {
		if (MVFontSize >= 16) 
			document.getElementById('btnIncrease').src = "images/wrapper/btn-font-plus-on.gif"
		else
			document.getElementById('btnIncrease').src = "images/wrapper/btn-font-plus.gif"
		if (MVFontSize <= 9) 
			document.getElementById('btnDecrease').src = "images/wrapper/btn-font-minus-on.gif"
		else
			document.getElementById('btnDecrease').src = "images/wrapper/btn-font-minus.gif"
		thisElement = document.getElementById('content')
		document.getElementById('content').style.fontSize = MVFontSize + "px"
		var arrTDs = thisElement.getElementsByTagName("td");
		for(i = 0; i < arrTDs.length; i++)
		{
		arrTDs[i].style.fontSize = MVFontSize + "px";
		} 
	}
