/*
name			: Font Size Preference
update			: 20040419
author			: Maurice van Creij
dependencies	: app_fontsize.js, app_fontsize.css, lib_cookies.js
info			: http://www.woollymittens.nl/content/details.asp?id=20040419134151

history
20050511		: no prior updates report
*/

	// constants/configuration

	// primary functions - functionality
	function setFontSize(strSize){
		// set font size
		if(strSize=="75%"){strSize="75%"}
		document.body.style.fontSize = strSize;
        var sizeLength = strSize.length;
        var skipsizeLength = sizeLength - 1;
        var classSize = strSize.substr(0, skipsizeLength);
        //alert(classSize); 
        $("#fontsize0 a").removeClass("current");
        $("#size"+classSize).addClass("current");
		
		// put size in cookie
		setCookie('fontSize', strSize, getDaysFromNow(30), '/');
	}
	
	function getFontSize(){
		// get size from cookie
		strSize = getCookie('fontSize');
		// set font size
		if(strSize!=null) setFontSize(strSize);
	}

	// secondary function - constructors


	// ternary function - event handlers 


	// events
	getFontSize()

