function setCss(cssId) {
	document.getElementById('fontNormal').disabled = true;
	document.getElementById('fontBig').disabled = true;
	document.getElementById('fontLarge').disabled = true;
	if( cssId ) document.getElementById(cssId).disabled = false;
}
function normalText()
{
	setCss('fontNormal');
	setCookie('font','normal');
}
function bigText()
{
	setCss('fontBig');
	setCookie('font','big');
}
function largeText()
{
	setCss('fontLarge');
	setCookie('font','large');
}
function setCookie(c_name,value)
{
	document.cookie = c_name+ "=" +escape(value);
} 
function getCookie(c_name)
{
	if (document.cookie.length>0)
	{
		c_start=document.cookie.indexOf(c_name + "=");
		if (c_start!=-1)
		{ 
			c_start=c_start + c_name.length+1; 
			c_end=document.cookie.indexOf(";",c_start);
			if (c_end==-1) c_end=document.cookie.length;
				return unescape(document.cookie.substring(c_start,c_end));
		} 
	}
	return "";
}
//firefox
if (document.addEventListener) 
{
	document.addEventListener("DOMContentLoaded", init, false);
}
// IE
/*@cc_on @*/
/*@if (@_win32)  
document.write("<script defer src=ie_onload.js><\/script>");
/*@end @*/
window.onload = init;
function init()
{
	if (arguments.callee.done) return;
	arguments.callee.done = true;
	
	var size = getCookie('font');
	if(size=='normal') normalText();
	if(size=='big') bigText();
	if(size=='large') largeText();
}

