<!--
/* <documentation about="Home.js" type="GENERAL">
	<summary>This file is specific javascript file for the Home pages
		Structure of this file:
		1. Implementation of namespace Home
		2. Definition global variables
		3. Home.init: start javascript app
		4. Specific functions
	</summary>
	<namespace>Home</namespace>
</documentation> */
var Home = {};

/* <documentation about="Global variables" type="Global variables">
	<summary></summary>
	<namespace>Home</namespace>
</documentation> */

/* <documentation about="Home.init" type="init function">
	<summary>This function containes all calls made to functions used within Home.
		It is initialized on page load (Lib.addEvent(window, "load", Home.init);).
	</summary>
	<namespace>Home</namespace>
</documentation> */
Home.init = function() {
	//used for debugging - set to true in debugging mode
	Lib.debug = true;
	try {
		Lib.setPageIsStyled();

		Lib.addMainNavigationFoldOut();

		//add clearing text input fields on focus
		Lib.addDefaultTextAttribute("searchKeyword");
		Lib.inputAutoClear();

		//Lib.addResizingLinks(); removed for Dansserver
	}
	catch (ex){ Lib.errHandler(ex); }
}

/* <documentation about="Lib.addStyleSheet('./styles/javascript.css')" type="FUNCTION CALL">
	<summary>Add javascript style sheet for javascript specific styles</summary>
</documentation> */
Lib.addStyleSheet("./styles/javascript.css");

/* <documentation about="setFontSize" type="FUNCTION CALL">
	<summary>Set font size at initailisation of page</summary>
</documentation> */
if(Lib.getCookie("fontsize")) { Lib.setFontSize(Lib.getCookie("fontsize"), false);};


/* <documentation about="Home.init" type="FUNCTION CALL">
	<summary>Calling Lib.addEvent: Add Home.init as eventhandler on window onload event</summary>
</documentation> */
Lib.addEvent(window, "load", Home.init);
Lib.eventCache.add(window, "load", Home.init, false);

//-->
