$(document).ready(function(){
	
		$("#slider").easySlider({
			auto: true, 
			continuous: true
		});
		
		/* // Show only once
		if (!DataStore.retrieve("dialogShown"))
		{
			$( "#dialog-message" ).dialog({
				modal: true,
				buttons: {
					Ok: function() {
						$( this ).dialog( "close" );
					}
				}
			});
			
			DataStore.save("dialogShown", "true");
		}*/
	});
	
	/* --- STATIC UTILITY --- 
	var DataStore = {
		keyPrefix: "FearsAndClark",
		repositoryTypes: {
			COOKIE_REPOSITORY: "cookie",
		},
		repositoryType: null,
	
		init: function()
		{		
			this.repositoryType = this.repositoryTypes.COOKIE_REPOSITORY;
		},
		
		save: function(key, value)
		{
			if (!this.repositoryType)
				this.init(); // Lazy init
		
			document.cookie = key + "=" + value + "; path=/";
		},
		
		retrieve: function(key)
		{
			var value;
			
			if (!this.repositoryType)
				this.init(); // Lazy init
			
			var allCookies = document.cookie.split("; ");
			var allCookiesLength = allCookies.length;
			
			for (var i = 0; i < allCookiesLength; i++)
			{
				var cookiePair = allCookies[i].split("=");
				
				if (cookiePair[0] === key)
				{
					value = cookiePair[1];
					break; // Match, break loop
				}
			}
				
			return value;
		}
	};*/
