document.observe("dom:loaded", function(){
  checkCookie('fontSize');
});

/**
 * checkCookie
 * @param {String} cookieName 
 */
function checkCookie(cookieName) {
 	var fontSizeCookie = Cookie.get('minunmkl_fontSize');
 	var fontContainerCookie = Cookie.get('minunmkl_containerId');
 	var fontUnitCookie = Cookie.get('minunmkl_fontUnit');
 	if(fontSizeCookie != null && fontContainerCookie != null && fontUnitCookie != null){
    fsize(fontSizeCookie, fontUnitCookie, fontContainerCookie);    
 	}
}
function fname(style,id)
{
	var vfontname = document.getElementById(id);
	vfontname.style.fontFamily = style;
}
function fsize(size,unit,id)
{
	var vfontsize = document.getElementById(id);
	vfontsize.style.fontSize = size + unit;
	Cookie.set('minunmkl_fontSize', size, 1);
	Cookie.set('minunmkl_fontUnit', unit, 1);
	Cookie.set('minunmkl_containerId', id, 1);
}