﻿/*
Author:			Dennis Milandt
Description:	Application scripts
*/


/*************************/
/* Application           */
/*************************/
var App =
{

	/*************************/
	/* Cache                 */
	/*************************/
	Cache:
	{
		Data: {},
		get: function(k) { return this.Data[k]; },
		set: function(k, v) { this.Data[k] = v; }
	},

	/*************************/
	/* Page                  */
	/*************************/
	Page:
	{
		// Function to be executed when the DOM is loaded.
		start: function()
		{
			Ajax.setup();
			UI.setup();
		}
	}
}

$(document).ready(App.Page.start);






/*************************/
/* Flash functions       */
/*************************/
function selected(param)
{
	window.location.href = (param);
}	

