var now = new Date();

/*
function setCookie() {
	document.cookie = 'accepted=5e7751cb578d2482f0ffec190e69cebc' + '; max-age=' + (60 * 60 * 24 * 365) + '; host=' + location.host + '; path=' + location.pathname.substring(0, location.pathname.lastIndexOf('\/') + 1);
}

function getCookie() {
	var accepted = false;

	if(document.cookie) {
		var allCookies = document.cookie.split(';');
		var tempCookie = '';
		var cookieName = '';
		var cookieValue = '';

		for(var i=0; i<allCookies.length; i++) {
			tempCookie = allCookies[i].split('=');
	
			// trim leading and trailing whitespace
			cookieName = tempCookie[0].replace(/^\s+|\s+$/g, '');
			cookieValue = unescape(tempCookie[1].replace(/^\s+|\s+$/g, ''));

			if(cookieName == 'accepted' && cookieValue == '5e7751cb578d2482f0ffec190e69cebc') {
				accepted = true;
				break;
			} else
				continue;
		}
	}

	if(accepted) {
		setCookie();
		return true;
	} else {
		if(location.pathname != '/' && location.pathname != '/default.html')
			location.replace('/');

		return false;
	}
}
*/

