// JavaScript Document


function resizeText(multiplier) { 
textSizeNow = document.getElementById("content"); 
//alert('ok')

if (textSizeNow.style.fontSize == "") {
	
	textSizeNow.style.fontSize = "1.3em";
	forCookieFont = textSizeNow.style.fontSize;
	document.cookie = "contentSizeNow=" + forCookieFont;
	}
	
	textSizeNow.style.fontSize = parseFloat(textSizeNow.style.fontSize) + (multiplier * 0.2) + "em"; 
	forCookieFont = textSizeNow.style.fontSize;
	document.cookie = "contentSizeNow=" + forCookieFont;
	} 
	
	//this is the page load code for the font size through teh stored cookies

	
function checktextSize(){
	
    var thisContentSize = get_cookie ( "contentSizeNow" );
	
	document.getElementById("content").style.fontSize = thisContentSize;
	  
}


function get_cookie ( cookie_name ){
  var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' );

  if ( results ){
    return ( unescape ( results[2] ) );
	//alert(cookie_name);
 } else{
    return null;
}
}
