jQuery.extend({
	ram: {
		to : 1500000,
		c		: String.fromCharCode(1),
		p		: ".",

		get : function(k) {
			var r=window.name.split(k = this.p + this.c + this.p + this.f(k) + this.p + this.c + this.p),
			currentDate = new Date(),
			ct = currentDate.getTime();

			var ret = this.f(r[1]||"",1);
			var toto = ret.split(this.c);
			if (toto.length<2) {
				return toto[0];
			}
			if (ct-toto[0] > this.to) {
				ret = "";
			} else {
				ret = toto[1];
			}
			return ret;
		},

		set : function(k,v) {
			var r=window.name.split(k = this.p + this.c + this.p + this.f(k) + this.p + this.c + this.p),
			currentDate = new Date(),
			ct = currentDate.getTime();

			window.name = [r[0], this.f(ct + this.c + v), r[2]||""].join(k);

			return window.name && (ct + this.c + v);
		},

		setTimeout : function(v) { this.to = v; },

		f : function(k,v) {
			var ret = v ? k.replace(/\x01\x01/g,this.c) : k.replace(/\x01/g,this.c+this.c);
			return ret;
		}
	}
});
