function fontNormal() {
	// document.getElementById('increaseFontSize').href = "";
	document.getElementById('increaseFontSize').setAttribute("href", "fileadmin/KKOTemplates/small.css", 0);
	document.cookie="fontSize=normal; path=/;";
}
function fontBig() {
	// document.getElementById('increaseFontSize').href = "fileadmin/KKOTemplates/big.css";
	document.getElementById('increaseFontSize').setAttribute("href", "fileadmin/KKOTemplates/big.css", 0);
	document.cookie="fontSize=big; path=/;";
}
function removeWhiteSpaces(stringToBeStripped) 
{
	return (stringToBeStripped.replace(/\s+/g,""));
}
function readCookieValue(cookiename) {
	if(document.cookie)
	{
		allCookiesString = document.cookie;
		allCookiesArray = allCookiesString.split(";");
		for(var i = 0; i < allCookiesArray.length; i++)
		{
			var foundname = allCookiesArray[i].split("=")[0];
			if(removeWhiteSpaces(foundname) == cookiename) {
				cookieValue = allCookiesArray[i].split("=");
				cookieValue = unescape(cookieValue[1]);
				return cookieValue;
			}
		}
		return false;
	}
	return false;
}
function setFontSize() {
	if(readCookieValue('fontSize') == "big")
	{
		fontBig();
	}
	else
	{
		fontNormal();
	}
}
if(navigator.appVersion.indexOf('Safari') == -1) {
	document.onload = setFontSize();
}