	//
	fCookie = function(){ this.init(); }
	var p = fCookie.prototype;
	
	p.path = DIR_ROOT;
	
	p.init = function(){ }
	
	p.set = function(n, v){
		var d = new Date();
		d.setHours(d.getHours() + 1);
		//d.setSeconds(d.getSeconds() + 3);
		var t = d.toGMTString();
		document.cookie = n + '=' + escape(v) + '; expires=' + t + '; path=' + this.path + ';';
	}
	
	p.unset = function(n){
		document.cookie = n + '=; expires=Fri, 21 Dec 1976 04:31:24 GMT; path=' + this.path + ';';
	}
	
	p.get = function(n){
		var iIni = 0, iEnd = 0, ret = '';
		if (document.cookie.length > 0){
			var iIni = document.cookie.indexOf(n + '=');
			if (iIni != -1){ 
				iIni = iIni + n.length + 1; 
				iEnd = document.cookie.indexOf(";", iIni);
				if(iEnd == -1) iEnd = document.cookie.length;
				ret = unescape(document.cookie.substring(iIni, iEnd));
			}
		}
		return ret;
	}
	
	var Cookie = new fCookie();
	
	//
	function setCorredor(e, i, t) {
		if (!!e) { StopEvent(e); }
		Cookie.set('corredor', i);
		document.location.href = t;
	}
	
