if (typeof Cookies == 'undefined') {
	Cookies = {};
	
	Cookies.set = function (cookieName, cookieValue)
	{
		var exp = new Date();
		if (cookieValue == null || cookieValue == "") {
			cookieValue = escape(Cookies.get(cookieName));
			if (! cookieValue) {
				cookieValue = "0";
			}
			exp.setDate("1970-01-01");
			exp = "; expires=" + exp.toGMTString();
		} else {
			exp = "";
		}
		exp += "; path=" + escape(SERVER_PATH);
		document.cookie = cookieName + "=" + escape(cookieValue) + exp;
	}
	
	Cookies.get = function (cookieName)
	{
		if (cookieName == "") {
			return "";
		}
		var theCookie = " " + document.cookie;
		var ind = theCookie.indexOf(" "+cookieName+"=");
		if (ind < 0) {
			return "";
		}
		ind++;
		var ind1 = theCookie.indexOf(";", ind);
		if (ind1 < 0) {
			ind1 = theCookie.length;
		}
		return unescape(theCookie.substring(ind + cookieName.length + 1, ind1));
	}
}
