function setActiveIcon() { 

	if (fontsize == 63) {
		document.getElementById( 'smallFont' ).setAttribute( "class","activeFontIcon" )
	  } 	
	 else {
		document.getElementById( 'smallFont' ).setAttribute( "class","inactiveFontIcon" )
	 }
	 if (fontsize == 67) {
		document.getElementById( 'medFont' ).setAttribute( "class","activeFontIcon" )
	  } 	
	 else {
		document.getElementById( 'medFont' ).setAttribute( "class","inactiveFontIcon" )
	 }
	 if (fontsize == 71) {
		document.getElementById( 'largeFont' ).setAttribute( "class","activeFontIcon" )
	  } 	
	 else {
		document.getElementById( 'largeFont' ).setAttribute( "class","inactiveFontIcon" )
	 }
	 if (fontsize == 75) {
		document.getElementById( 'xlFont' ).setAttribute( "class","activeFontIcon" )
	  } 	
	 else {
		document.getElementById( 'xlFont' ).setAttribute( "class","inactiveFontIcon" )
	 }
}


function setCookie( name, value ) {
  var c = name + "=" + escape( value ) + "; expires=Tue, 16-Dec-2014 12:00:01 GMT; path=/;";
  document.cookie = c;
  window.location.href = window.location.href; // Refresh window
}

function getCookie( name ) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if ( begin == -1 ) {
	begin = dc.indexOf( prefix );
	if ( begin != 0 ) return null;
  } else
	begin += 2;
  var end = document.cookie.indexOf( ";", begin );
  if ( end == -1 )
	end = dc.length;
  return unescape( dc.substring( begin + prefix.length, end ) );
}

if ( getCookie( 'fontsize' ) == null ) {
	var fontsize = 63;
} else {
	var fontsize = getCookie( 'fontsize' );
}

function changeFontSize ( fontsize ) {
	setCookie( 'fontsize', fontsize );
}

document.write('<style type="text/css">');
document.write('body { font:'+ fontsize +'%/1em Arial, Helvetica, sans-serif; }');
document.write('<\/style>');


