var path="/2010/";

	var mozilla = document.getElementById && !document.all
	var ie = document.all
	var MaxFontSize = 16
	var MinFontSize = 11 
	var OHCFontSize
	
	OHCFontSize = readCookie('OHCFontSize')
	if (OHCFontSize == "") {
		OHCFontSize = 13
	}
	
	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=/2010/";
	}
	
	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 (OHCFontSize < MaxFontSize) 	{
				OHCFontSize = parseInt(OHCFontSize) + 1;
				createCookie('OHCFontSize',OHCFontSize)
			}
		}
		else 
		{
			if (OHCFontSize > MinFontSize) {
				OHCFontSize = parseInt(OHCFontSize) - 1;
				createCookie('OHCFontSize',OHCFontSize)
			}
		}
	LoadFont()
	}
	
	function LoadFont() {
		if (OHCFontSize >= MaxFontSize) {
			document.getElementById('plus-img').src = path + "images/font-plus-on.gif"
		}
		else {
			document.getElementById('plus-img').src = path + "images/font-plus.gif"
		}
		if (OHCFontSize <= MinFontSize) {
			document.getElementById('minus-img').src = path + "images/font-minus-on.gif"
		}
		else {
			document.getElementById('minus-img').src = path + "images/font-minus.gif"
		}
			
		thisElement = document.getElementById('text-content')
		
		document.getElementById('text-content').style.fontSize =  OHCFontSize + "px"
		var addPs = thisElement.getElementsByTagName("p");
		for(i = 0; i < addPs.length; i++) {		
			addPs[i].style.fontSize = OHCFontSize.toString() + "px";
		} 
		var arrDIVs = thisElement.getElementsByTagName("div");
		for(i = 0; i < arrDIVs.length; i++) {		
			arrDIVs[i].style.fontSize = OHCFontSize.toString() + "px";
		}
	}
	