// JavaScript Document
function Cookie() {
	Cookie.prototype.set = function(label,data) {
			document.cookie = label+"="+escape(data);
	}
	
	Cookie.prototype.get = function(label) {
		var labelLength = label.length;
		var cLen = document.cookie.length;
		var i = 0;
		var cEnd;
		while (i < cLen) {
			var j = i + labelLength;
			if (document.cookie.substring(i,j) == label) {
				cEnd = document.cookie.indexOf(";",j)
				
				if (cEnd == -1) {
					cEnd = document.cookie.length;
				}
				return unescape(document.cookie.substring(j+1,cEnd))
			}
			i++;
		}
		return "";
	}
}

var cookie = new Cookie;
