var path="/";

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