//<!-- Yahoo! Web Analytics Code v5.07 - All rights reserved -->
/*globals window, document, screen, location, top, escape, navigator, Image */
/*globals YWA, YWAT */
/*global sVBSwfVer */

if (typeof YWA === "undefined") {
	YWA = {};
	YWA.initialize = function () {
		YWA.ud = "undefined";
		YWA.EXCLPRM = "";
		YWA.ONLOAD = true;
		YWA.PID = YWA.ud;
		YWA.flashVer = "";
		YWA.isOnloadOverwrite = false;
		YWA.windowOnload = null;
		YWA.errorId = "";
		YWA.windowOnerror = null;
		if (typeof window.ITTs === "undefined") {
			window.ITTs = [];
		}
		YWA.addOLH();
	};

    YWA.ywaOLH = function (evt) {
        if (YWA.windowOnload) {
            YWA.windowOnload(evt);
        }
        YWA.addOCHs();
    };

	YWA.addOLH = function () {
		if (!YWA.ONLOAD || YWA.isOnloadOverwrite) {
			return;
		}
		var a = [];
		if (window.screen || a.toSource || (a.shift && this.mic)) {
			if (window.onload) {
				if (!YWA.windowOnload) {
					YWA.windowOnload = window.onload;
				}
			}
			window.onload = YWA.ywaOLH;
		}
		YWA.isOnloadOverwrite = true;
	};

	YWA.initialize();
}

YWA.ywaOCH = function (evt) {
	var idx, rv, ittl;
	rv = true;
	ittl = window.ITTs.length;
	for (idx = 0; idx < ittl; idx += 1) {
		window.ITTs[idx].oco(this);
	}
	if (this.ywaOnClick) {
		rv = this.ywaOnClick(evt);
	}
	return rv;
};

YWA.addOCHs = function () {
	var i, ln;
	ln = document.links.length;
	for (i = 0; i < ln; i += 1) {
		if (!document.links[i].ywaOnclickOverride) {
			document.links[i].ywaOnclickOverride = true;
			if (document.links[i].onclick) {
				document.links[i].ywaOnClick = document.links[i].onclick;
			}
			document.links[i].onclick = YWA.ywaOCH;
		}
	}
};

YWA.ywaOEH = function () {
    if (YWA.errorId !== "") {
        window.ITTs[YWA.errorId].track(false, true);
    }
};

YWA.getTrackerIdx = function (pid) {
    var idx, ittl;
    ittl = window.ITTs.length;
	for (idx = 0; idx < ittl; idx += 1) {
		if (window.ITTs[idx].PID === pid) {
			return idx;
		}
	}
	return -1;
};

YWA.getTracker = function (pid) {
    var rst, idx;
    YWA.enabled = true;
    if (typeof pid === YWA.ud) {
        pid = YWA.PID;
    }
    idx = YWA.getTrackerIdx(pid);
    if (idx >= 0) {
        rst = window.ITTs[idx];
    } else {
        rst = new YWAT(pid);
    }
    YWA.enabled = false;
    return rst;
};

YWA.getExcludePrm =  function () {
    return YWA.EXCLPRM;
};

YWA.setExcludePrm = function (e) {
    YWA.EXCLPRM = typeof e !== YWA.ud ? e : "";
};

YWA.getOnload = function () {
    return YWA.ONLOAD;
};

YWA.setOnload = function (o) {
    YWA.ONLOAD = typeof o !== YWA.ud ? o : true;
};

YWA.getPID = function () {
    if (typeof document.scripts !== YWA.ud) {
        var idx, src, jsFile, prePath, sl;
        jsFile = "ywa.js";
        prePath = "ywa-";
        sl = document.scripts.length;
        for (idx = sl - 1; idx >= 0 ; idx -= 1) {
            src = document.scripts[idx].src;
            if (typeof src !== YWA.ud && src.indexOf(jsFile) === src.length - jsFile.length) {
                src = src.substr(0, src.length - jsFile.length - 1);
                src = src.substr(src.lastIndexOf("/") + 1 + prePath.length);
                return "1000" + src;
            }
        }
    }
    return YWA.ud;
};
YWA.getPID();

YWA.getExcludeDomains = function () {
    return "";
};

YWA.getExcludeProtocol = function () {
	return "";
};

YWA.getDownloadExts = function () {
	return "\\.pdf$|\\.doc$|\\.dot$|\\.xls$|\\.xlt$|\\.xlw$|\\.ppt$|\\.pps$|\\.zip$|\\.rar$|\\.gz$|\\.gzip$|\\.wav$|\\.mp[3-4]?$|\\.mpeg$";
};

YWA.getErrorObj = function (msg) {
	var err;
	err = new Error(msg);
    if (!err.msg) {
        err.msg = msg;
    }
    return err;
};

YWA.gcpn = function (x) {
    var k, l, z, i, j; 
    z = location.search;
    i = z.indexOf("?" + x + "=");
    j = z.indexOf("&" + x + "=");
    if ((i === 0) || (j > -1)) {
        k = (i === 0)?0:j;
        l = z.indexOf("&", k + 1);
        return z.substring(k + 2 + x.length, (l > -1)?l:z.length);
    }
    return "";
};

YWA.getFileName = function (x) {
	var i;
    i = x.indexOf("?");
    if (i > 0) {
        x = x.substring(0, i);
    }
    return x.substring(x.lastIndexOf("/") + 1, x.length);
};

YWA.gh = function (x) {
	var i;
    i = x.host.indexOf(":");
    return (i >= 0)?x.host.substring(0, i):x.host;
};

YWA.ghs = function (x) {
	var i;
    i = x.indexOf("//");
    if (i >= 0) {
        x = x.substring(i + 2, x.length);
        i = x.indexOf("/");
        if (i >= 0) {
            return x.substring(0, i);
        }
        return x.substring(i + 2, x.length);
    }
    return "";
};

YWA.gpr = function (x) {
	var y, i;
    y = x.protocol;
    i = y.indexOf(":");
    return (i >= 0)?y:y + ":";
};

YWA.gp = function (x) {
	var y, i;
    y = x.pathname;
    i = y.indexOf("/");
    return (i === 0)?y:"/" + y;
};

YWA.mxDmnRGXP = function (v) {
    if (v.toUpperCase().indexOf("REGEXP:") === 0) {
        return new RegExp(v.substring(7), "i");
    } else {
        return new RegExp(YWA.mxRgXpStr(v), "i");
    }
};

YWA.mxRgXpStr = function (e) {
    while (e.indexOf(" ") >= 0) {
        e = e.replace(" ", "");
    }
    var i, j, b, bl, r, a, al; 
    r = "";
    a = e.split(",");
    al = a.length;
    for (i = 0; i < al; i += 1) {
        b = a[i].split(".");
        bl = b.length;
        for (j = 0; j < bl; j += 1) {
            if (b[j].indexOf("*") >= 0) {
                b[j] = ".+";
            }
        }
        if (bl > 0) {
            a[i] = b.join("\\.");
        }
    }
    if (al > 0) {
        r += a.join("$|^");
    }
    if (r.length > 0) {
        return "^" + r + "$";
    }
    return "";
};

function YWAT(pid) {
    if (!YWA.enabled) {
        throw YWA.getErrorObj("Invalid method to get a tracking object.");
    }
    var i, nan, heads;
    this.version = "5.07";
    this.EXCLDOMAINS = "";
    this.DWNLEXTS = "";
    this.EXCLPRM = YWA.getExcludePrm();
    this.EXCLPRTCL = "";
    this.ONLOAD = YWA.getOnload();
    this.DOMAINS = "";
    this.DEBUG = false;
    this.RUN = false;
    if (typeof pid === YWA.ud) {
        this.PID = YWA.getPID();
        this.RUN = this.PID === YWA.ud;
    } else {
        this.PID = pid;
    }
    this.BD = (window.location.protocol.indexOf("https:") === 0 ? "https://" : "http://")  + "s.analytics.yahoo.com";
    this.BU = this.BD + "/p.pl?a=" + this.PID + "&v=" + this.version;
    if (!this.TPSC) {
        this.BU += "&tp=0";
    } 
    this.FU = "";
    this.URL = this.getClnUrl(document.URL?document.URL:document.location);
    this.REFERRER = "";
    this.TOPLOCATION = "";
    this.cfn = [];
    this.cfv = [];
    this.IT = "";
    nan = navigator.appName;
    this.net = (nan === "Netscape");
    this.mic = (nan.substring(0, 9) === "Microsoft" && (typeof navigator.plugins === YWA.ud || navigator.plugins.length === 0));
    this.mac = (navigator.userAgent.indexOf("Mac") >= 0);
    this.gec = (navigator.userAgent.indexOf("Firefox") >= 0 || navigator.userAgent.indexOf("Netscape") >= 0);
    this.date = new Date();
    this.PIXELDELAY = false;
    this.DOCUMENTNAME = document.title;
    this.CAMPAIGN = "";
    this.CMPPARM = "";
    this.PROMO = "";
    this.PROMOPARM = "";
    this.TPSC = true;
    this.EXCL = "";
    this.FPCR = "";
    this.FPCN = "fpc" + this.PID;
    this.FPCV = "";
    this.FPCD = "";
    this.ENC = "";
    this.itvs = "";
    this.itsid = "";
    this.itvid = "";
    this.place = document.body;
    try {
        heads = document.getElementsByTagName("head");
        if (typeof heads !== YWA.ud && heads.length > 0) {
            this.place = heads[0];
        }
    } catch (e) {
    }
    this.FLV = this.flash();
    if (typeof window.ITTs === YWA.ud) {
        window.ITTs = [];
    }
    this.idx = window.ITTs.length;
    window.ITTs[this.idx] = this;
    this.ita = ["DOCUMENTNAME", "b", "DOCUMENTGROUP", "c", "MEMBERID", "m", "URL", "f", "ACTION", "x", "AMOUNT", "xa", "ORDERID", "oc", "TAX", "xt", "SHIPPING", "xs", "DISCOUNT", "xd", "SKU", "p", "PRODUCTS", "u", "UNITS", "q", "AMOUNTS", "r", "CMPQUERY", "cq", "ISK", "isk", "ISR", "isr"];
    this.prmord = ["a", "v", "b", "c", "m", "f", "e", "t", "n", "d", "cp", "cq", "scp", "ci", "enc", "x", "sid", "ca", "oc", "p", "q", "r", "xa", "xd", "xs", "xt", "el", "fn", "flv", "fpc", "isk", "isr", "g", "h", "ittidx", "ix", "j", "k", "l", "tp", "nr", "js", "cf01", "cf02", "cf03", "cf04", "cf05", "cf60", "cf07", "cf08", "cf09", "cf10", "cf11", "cf12", "cf13", "cf14", "cf15", "cf16", "cf17", "cf18", "cf19", "cf20", "cf21", "cf22", "cf23", "cf24", "cf25", "cf26", "cf27", "cf28", "cf29", "cf30", "cf31", "cf32", "cf33", "cf34", "cf35", "cf36", "cf37", "cf38", "cf39", "cf40", "cf41", "cf42", "cf43", "cf44", "cf45", "cf46", "cf47", "cf48", "cf49", "cf50", "cf51", "cf52", "cf53", "cf54", "cf55", "cf56", "cf57", "cf58", "cf59", "cf60", "cf61", "cf62", "cf63", "cf64", "cf65", "cf66", "cf67", "cf68", "cf69", "cf70", "cf71", "cf72", "cf73", "cf74", "cf75", "cf76", "cf77", "cf78", "cf79", "cf80", "cf81", "cf82", "cf83", "cf84", "cf85", "cf86", "cf87", "cf88", "cf89", "cf90", "cf91", "cf92", "cf93", "cf94", "cf95", "cf96", "cf97", "cf98", "cf99", "cf100"];
    for (i = 0; i < 10; i += 1) {
        this.ita[this.ita.length] = "P" + (1 + i);
        this.ita[this.ita.length] = "p" + (1 + i);
    }
    for (i = 0; i < 99; i += 1) {
        this.ita[this.ita.length] = "CF" + ((i < 9)?"0":"") + (1 + i);
        this.ita[this.ita.length] = "cf" + (1 + i);
    }
    if (typeof window.imgs === YWA.ud) {
        window.imgs = [];
    }
    if (typeof document.charset !== YWA.ud) {
        this.ENC = document.charset;
    } else {
        if (typeof document.characterSet !== YWA.ud) {
            this.ENC = document.characterSet;
        } else {
            this.ENC = "";
        }
    }
    this.FPCR = "&ittidx=" + this.idx + "&fpc=" + escape(this.getCookie(this.FPCN));
}

YWAT.prototype.getDocumentName = function () {
    return this.DOCUMENTNAME;
};

YWAT.prototype.setDocumentName = function (dn) {
    this.DOCUMENTNAME = dn;
};

YWAT.prototype.getDocumentGroup = function () {
    return this.DOCUMENTGROUP;
};

YWAT.prototype.setDocumentGroup = function (dg) {
    this.DOCUMENTGROUP = dg;
};

YWAT.prototype.getMemberId = function () {
    return this.MEMBERID;
};

YWAT.prototype.setMemberId = function (m) {
    this.MEMBERID = m;
};

YWAT.prototype.getAction = function () {
    return this.ACTION;
};

YWAT.prototype.setAction = function (a) {
    this.ACTION = a;
};

YWAT.prototype.getAmount = function () {
    return this.AMOUNT;
};

YWAT.prototype.setAmount = function (a) {
    this.AMOUNT = a;
};

YWAT.prototype.getOrderId = function () {
    return this.ORDERID;
};

YWAT.prototype.setOrderId = function (oi) {
    this.ORDERID = oi;
};

YWAT.prototype.getTax = function () {
    return this.TAX;
};

YWAT.prototype.setTax = function (t) {
    this.TAX = t;
};

YWAT.prototype.getShipping = function () {
    return this.SHIPPING;
};

YWAT.prototype.setShipping = function (s) {
    this.SHIPPING = s;
};

YWAT.prototype.getDiscount = function () {
    return this.DISCOUNT;
};

YWAT.prototype.setDiscount = function (d) {
    this.DISCOUNT = d;
};

YWAT.prototype.getSKU = function () {
    return this.SKU;
};

YWAT.prototype.setSKU = function (s) {
    this.SKU = s;
};

YWAT.prototype.getUnits = function () {
    return this.UNITS;
};

YWAT.prototype.setUnits = function (u) {
    this.UNITS = u;
};

YWAT.prototype.getAmounts = function () {
    return this.AMOUNTS;
};

YWAT.prototype.setAmounts = function (a) {
    this.AMOUNTS = a;
};

YWAT.prototype.getCmpQuery = function () {
    return this.CMPQUERY;
};

YWAT.prototype.setCmpQuery = function (c) {
    this.CMPQUERY = c;
};

YWAT.prototype.getISK = function () {
    return this.ISK;
};

YWAT.prototype.setISK = function (i) {
    this.ISK = i;
};

YWAT.prototype.getISR = function () {
    return this.ISR;
};

YWAT.prototype.setISR = function (i) {
    this.ISR = i;
};

YWAT.prototype.getEF = function (n) {
    n = parseInt(n, 10);
    return this["P" + n];
};

YWAT.prototype.setEF = function (n, v) {
    n = parseInt(n, 10);
    this["P" + n] = v;
};

YWAT.prototype.getCF = function (n) {
    n = parseInt(n, 10);
    return this["CF" + ((n < 10)?"0":"") + n];
};

YWAT.prototype.setCF = function (n, v) {
    n = parseInt(n, 10);
    this["CF" + ((n < 10)?"0":"") + n] = v;
};

YWAT.prototype.getDebug = function () {
    return this.DEBUG;
};

YWAT.prototype.setDebug = function (d) {
    this.DEBUG = typeof d !== YWA.ud ? d : false;
};

YWAT.prototype.getRun = function () {
    return this.RUN;
};

YWAT.prototype.setRun = function (r) {
    if (typeof r === YWA.ud || r) {
        this.RUN = this.PID !== YWA.ud;
    } else {
        this.RUN = false;
    }
};

YWAT.prototype.getUrl = function () {
    return this.URL;
};

YWAT.prototype.setUrl = function (u) {
    this.URL = this.getClnUrl(u);
};

YWAT.prototype.getEncoding = function () {
    return this.ENC;
};

YWAT.prototype.setEncoding = function (e) {
    if (typeof e !== YWA.ud) {
        this.ENC = e;
    } else {
        this.ENC = "";
    }
};

YWAT.prototype.getCookieDomain = function () {
    return this.FPCD;
};

YWAT.prototype.setCookieDomain = function (d) {
    if (typeof d !== YWA.ud && d !== "") {
        this.FPCD = d;
    } else {
        this.FPCD = "";
    }
};

YWAT.prototype.getTPSC = function () {
    return this.TPSC;
};

YWAT.prototype.setTPSC = function (n) {
    this.TPSC = typeof n !== YWA.ud ? n : true;
};

YWAT.prototype.getReferrer = function () {
    return this.REFERRER;
};

YWAT.prototype.setReferrer = function (r) {
    if (typeof r !== YWA.ud && r.length > 0) {
        this.REFERRER = r;
    }
};

YWAT.prototype.getPixelDelay = function () {
    return this.PIXELDELAY;
};

YWAT.prototype.setPixelDelay = function (d) {
    this.PIXELDELAY = typeof d !== YWA.ud ? d : false;
};

YWAT.prototype.getDomains = function () {
    return this.DOMAINS;
};

YWAT.prototype.setDomains = function (d) {
    this.DOMAINS = (typeof d !== YWA.ud && d !== "") ? d : YWA.ud;
};

YWAT.prototype.getFlashUrl = function () {
    return this.FU;
};

YWAT.prototype.setFlashUrl = function (u) {
    this.FU = typeof u !== YWA.ud ? u : "";
};

YWAT.prototype.getExcludeDomains = function () {
	var d;
    d = YWA.getExcludeDomains();
    d += (d.length > 0 && this.EXCLDOMAINS.length > 0 ? "," : "") + this.EXCLDOMAINS;
    return d;
};

YWAT.prototype.addExcludeDomain = function (d) {
    this.EXCLDOMAINS += (this.EXCLDOMAINS.length > 0 ? "," : "") + d;
};

YWAT.prototype.removeExcluseDomain = function (d) {
    var i, ds1, ds2, ds1l;
    ds1 = this.EXCLDOMAINS.split(",");
    ds2 = [];
    ds1l = ds1.length;
    for (i = 0; i < ds1l; i += 1) {
        if (ds1[i] !== d) {
            ds2[ds2.length] = ds1[i];
        }
    }
    this.EXCLDOMAINS = ds2.join(",");
};

YWAT.prototype.getDownloadExts = function () {
	var e;
    e = YWA.getDownloadExts();
    e += (e.length > 0 && this.DWNLEXTS.length > 0 ? "|" : "") + this.DWNLEXTS;
    return e;
};

YWAT.prototype.addDownloadExt = function (e) {
	var i, c, e1, e2, e1l;
	e1 = e.toLowerCase();
	e2 = "";
	e1l = e1.length;
	for (i = 0; i < e1l; i += 1) {
		c = e1.charAt(i);
		if ((c >= "a" && c <= "z") || (c >= "0" && c <= "9") || c === "-" || c === "_") {
			e2 += c;
		}
	}
    this.DWNLEXTS += (this.DWNLEXTS.length > 0 ? "|" : "") + "\\." + e2 + "$";
};

YWAT.prototype.removeDownloadExt = function (e) {
    var i, es1, es2, es1l;
    es1 = this.DWNLEXTS.split("|");
    es2 = [];
    es1l = es1.length;
    for (i = 0; i < es1l; i += 1) {
        if (es1[i] !== "\\." + e.toLowerCase() + "$") {
            es2[es2.length] = es1[i];
        }
    }
    this.DWNLEXTS = es2.join("|");
};

YWAT.prototype.getExcludeProtocol = function () {
	var p;
    p = YWA.getExcludeProtocol();
    p += (p.length > 0 && this.EXCLPRTCL.length > 0 ? "," : "") + this.EXCLPRTCL;
    return p;
};

YWAT.prototype.addExcludeProtocol = function (e) {
	this.EXCLPRTCL += (this.EXCLPRTCL.length > 0 ? "," : "") + e.toLowerCase();
};

YWAT.prototype.removeExcludeProtocol = function (e) {
    var i, es1, es2, es1l;
    es1 = this.EXCLPRTCL.split(",");
    es2 = [];
    es1l = es1.length;
    for (i = 0; i < es1l; i += 1) {
        if (es1[i] !== e.toLowerCase()) {
            es2[es2.length] = es1[i];
        }
    }
    this.EXCLPRTCL = es2.join(",");
};

YWAT.prototype.isProtocolExcluded = function () {
	var ep;
	ep = "," + this.getExcludeProtocol() + ",";
	return ep.indexOf("," + window.location.protocol + ",") >= 0;
};

YWAT.prototype.pp = function () {
    var i, ital;
    ital = this.ita.length;
    for (i = 0; i + 1 < ital; i += 2) {
        if ((typeof this[this.ita[i]] !== YWA.ud) && (this[this.ita[i]] !== "")) {
            this.IT += "&" + this.ita[i + 1] + "=" + escape(this[this.ita[i]]);
        }
    }
};

YWAT.prototype.reset = function () {
    var i, ital;
    ital = this.ita.length;
    for (i = 8; i + 1 < ital; i += 2) {
        if ((typeof this[this.ita[i]] !== YWA.ud) && (this[this.ita[i]] !== "")) {
            this[this.ita[i]] = "";
        }
    }
};

YWAT.prototype.flash = function () {
    if (YWA.flashVer === "") {
        var swVer2, vb, fd, np;
        fd = "";
        np = navigator.plugins;
        if (np !== null && np.length > 0) {
            if (np["Shockwave Flash 2.0"] || np["Shockwave Flash"]) {
                swVer2 = np["Shockwave Flash 2.0"]?" 2.0":"";
                fd = np["Shockwave Flash" + swVer2].description;
            }
        } else {
            vb = document.createElement("script");
            vb.language = "VBScript";
            vb.text = '\nFunction sVBSwfVer(i)\non error resume next\nDim swC,swV\nswV=0\nset swC=CreateObject("ShockwaveFlash.ShockwaveFlash."+CStr(i))\nif(IsObject(swC))then\nswV=swC.GetVariable("$version")\nend if\nsVBSwfVer=swV\nEnd Function\n';
            this.place.appendChild(vb);
            fd = sVBSwfVer(1);
        }
        YWA.flashVer = fd;
    }
    return YWA.flashVer;
};

YWAT.prototype.setCookie = function (name, value, off) {
    var expiry, cookie, d;
    d = new Date();
    d.setTime(d.getTime() + (off * 1000));
    expiry = (off > 0)?"; expires=" + d.toGMTString():"";
    if (off < 0) {
        expiry = "; expires=Thu, 01-Jan-1970 00:00:01 GMT";
    }
    cookie = name + "=" + value + expiry + "; path=/" + ((this.FPCD !== "")?("; domain=" + this.FPCD):(""));
    document.cookie = cookie;
};

YWAT.prototype.deleteCookie = function (name) {
    return this.setCookie(name, "1", -1);
};

YWAT.prototype.getCookie = function (name) {
    var start, end, dc, pos;
    dc = document.cookie;
    pos = dc.indexOf(name + "=");
    if (pos !== -1) {
        start = pos + name.length + 1;
        end = dc.indexOf(";", start);
        if (end === -1) {
            end = dc.length;
        }
        return dc.substring(start, end);
    }
    return "";
};

YWAT.prototype.FPCSupport = function () {
    if (this.getCookie(this.FPCN) !== "") {
        return true;
    }
    var dr, dn, d, dt;
    dn = "itfpctmp";
    d = new Date();
    dt = "fpc-" + d.getTime();
    this.setCookie(dn, dt, 180);
    dr = this.getCookie(dn);
    if (dr === dt) {
        this.deleteCookie(dn);
        return true;
    }
    return false;
};

YWAT.prototype.trunc = function (x, z) {
    var url, qry, prms, x2, idx1, idx2, isAmp, prmordl, prmsl;
    if (x.length <= z) {
        return x;
    }
    url = x.split("?");
    if (url.length > 1) {
        x2 = url[0] + "?";
        qry = url[1];
        prms = qry.split("&");
        prms.sort();
        isAmp = false;
        prmordl = this.prmord.length;
        prmsl = prms.length;
        for (idx1 = 0; idx1 < prmordl; idx1 += 1) {
            for (idx2 = 0; idx2 < prmsl; idx2 += 1) {
                if (prms[idx2].indexOf(this.prmord[idx1] + "=") === 0) {
		    		if (x2.length + "&".length + prms[idx2].length > z) {
						return x2 + "&trnc=1";
		    		}
                    x2 += (isAmp ? "&" : "") + prms[idx2];
                    isAmp = true;
                    break;
                }
            }
        }
        return x2;
    } else {
        return x;
    }
};

YWAT.prototype.chkl0 = function (x, y, z, Z, r) {
    var i, d, l1, l2, k, bbf, iq, ik, x2, xl, yl;
    yl = y.length;
    xl = x.length;
    for (i = 0; i < yl && xl > z; i += 1) {
        d = x.length - z;
        l1 = x.indexOf("&" + y[i] + "=");
        if (l1 > 0) {
            l1 += y[i].length + 2;
            l2 = x.indexOf("&", l1);
            if (l2 > 0) {
                bbf = l1;
                iq = x.toLowerCase().indexOf("%3f", l1);
                ik = x.toLowerCase().indexOf("%3d", l1);
                if (l2 - l1 > d + r.length + Z) {
                    l1 += l2 - l1 - d - r.length;
                    for (k = 1; k < 10; k += 1) {
                        if (x.charAt(l1 - k) === "%") {
                            l1 -= k;
                            break;
                        }
                    }
                } else {
                    if (l2 - l1 > Z) {
                        l1 += Z;
                        for (k = 1; k < 10; k += 1) {
                            if (x.charAt(l1 - k) === "%") {
                                l1 -= k;
                                break;
                            }
                        }
                    } else {
                        continue;
                    }
                }
                x2 = x.substring(0, l1);
                if (iq > 0 && iq < l2) {
                    if (ik < 0 || ik > l2) {
                        x2 += "%3D";
                    }
                    x2 += "%26";
                }
                x2 += r;
                x2 += x.substring(l2);
                x = x2;
            }
        }
    }
    if (x.length > z) {
        return this.chkl(x, y, z, Z / 2, r);
    }
    return x;
};

YWAT.prototype.chkl = function (x, y, z, Z, r) {
    x = this.chkl0(x, y, z, Z, r);
    if (x.length > z) {
        x = this.chkl0(x, y, z, Z / 2, r);
    }
    return x;
};

YWAT.prototype.trk = function (s) {
    var s2, i;
    i = window.imgs.length;
    s2 = this.trunc(this.BU + "&enc=" + escape(this.ENC) + this.IT + s + "&ix=" + i + this.FPCR, 2000);
    if (!this.isProtocolExcluded()) {
    	window.imgs[i] = new Image();
	    if (this.DEBUG) {
	        window.alert(s2);
	    } else {
        	if (this.net || this.PIXELDELAY) {
	            window.setTimeout("window.imgs[" + i + "].src='" + s2 + "';", 1);
        	} else {
	            window.imgs[i].src = s2;
        	}
    	}
    } else {
	    if (this.DEBUG) {
	        window.alert("'" + s2 + "' isn't tracked because of excluded protocol.");
	    }
    }
	this.reset();
	this.IT = "";
	return s2;
};

YWAT.prototype.gcpn = function (x) {
	return YWA.gcpn(x);
};

YWAT.prototype.getFileName = function (x) {
	return YWA.getFileName(x);
};

YWAT.prototype.gh = function (x) {
	return YWA.gh(x);
};

YWAT.prototype.ghs = function (x) {
	return YWA.ghs(x);
};

YWAT.prototype.gpr = function (x) {
	return YWA.gpr(x);
};

YWAT.prototype.gp = function (x) {
	return YWA.gp(x);
};

YWAT.prototype.mxDmnRGXP = function (v) {
	return YWA.mxDmnRGXP(v);
};

YWAT.prototype.mxRgXpStr = function (e) {
	return YWA.mxRgXpStr(e);
};

YWAT.prototype.customfield_reset = function () {
    this.cfn.length = 0;
    this.cfv.length = 0;
};

YWAT.prototype.customfield_set = function (n, v) {
    this.cfn[this.cfn.length] = n;
    this.cfv[this.cfv.length] = v;
};

YWAT.prototype.cf_ts = function () {
    var i, u, cfnl, cfvl;
    u = "&cf=1";
    cfnl = this.cfn.length;
    cfvl = this.cfv.length;
    for (i = 0; i < cfnl  && i < cfvl; i += 1) {
        u += "&cn" + i + "=" + escape(this.cfn[i]) + "&cv" + i + "=" + escape(this.cfv[i]);
    }
    return u;
};

YWAT.prototype.submit_customfield = function () {
    if (this.cfn.length > 0 && this.cfv.length > 0) {
        var u;
        u = this.cf_ts();
        this.customfield_reset();
        this.pp();
        this.trk(u);
    }
};

YWAT.prototype.submit_action = function () {
    this.pp();
    this.trk("&ca=1");
};

YWAT.prototype.submit_icmp = function () {
    this.pp();
    this.trk("&ci=1");
};

YWAT.prototype.exitlink = function (ln) {
    this.pp();
    this.trk("&el=" + escape(ln));
};

YWAT.prototype.el = function (x) {
	var pt;
    if (YWA.gh(location) === YWA.gh(x)) {
        return true;
    }
    if (!this.isProtocolExcluded) {
    	pt = (typeof this.DOMAINS !== YWA.ud && this.DOMAINS !== "") ? YWA.mxDmnRGXP(this.DOMAINS) : YWA.mxDmnRGXP(YWA.gh(location));
    } else {
    	pt = YWA.mxDmnRGXP("protocolexclusion");
    }
    if (pt.test(YWA.gh(x))) {
        return true;
    }
    if (x.href.indexOf("java") !== 0) {
        this.exitlink(x.href);
    }
    return true;
};

YWAT.prototype.download = function (fn) {
    this.pp();
    this.trk("&fn=" + escape(fn));
};

YWAT.prototype.oco = function (x) {
    var pt, fn, excl;
    excl = this.getExcludeDomains();
    if (excl !== "") {
        pt = YWA.mxDmnRGXP(excl);
        if (pt.test(YWA.gh(x))) {
            if (this.DEBUG) {
                window.alert("'" + YWA.gh(x) + "' isn't tracked as exitlink.");
            }
            return true;
        }
    }
    if (typeof x.pathname !== YWA.ud) {
        fn = YWA.getFileName(x.pathname);
        if (fn !== "") {
            pt = new RegExp(this.getDownloadExts(), "i");
            if (pt.test(fn) && (fn.indexOf(".") !== -1)) {
                if (((this.EXCL !== "") && (!YWA.mxDmnRGXP(this.EXCL).test(x.pathname))) || (this.EXCL.length === 0)) {
                    this.download(x.href);
                }
            } else {
                this.el(x);
            }
        } else {
            this.el(x);
        }
    }
};

YWAT.prototype.track = function (d, i) {
    var cs, pt, hasTopAccess, t, r;
    t = "";
    r = document.referrer;
    YWA.errorId = this.idx;
    if (typeof this.REFERRER !== YWA.ud && this.REFERRER.length > 0) {
        r = this.REFERRER;
    } else {
        if ((navigator.userAgent.indexOf("Mac") >= 0) && (navigator.userAgent.indexOf("MSIE 4") >= 0)) {
            r = document.referrer;
        } else {
            if (d) {
                YWA.windowOnerror = window.onerror;
                window.onerror = YWA.ywaOEH;
                hasTopAccess = true;
                try {
                	t = top.location.href;
                	t = "";
                }
                catch (e1) {
                	hasTopAccess = false;
                }
                if (hasTopAccess && document.location !== top.location) {
                    r = top.document.referrer;
                    t = top.location.href;
                }
            } else {
                this.IT += "&nr=t";
            }
        }
    }
    if (YWA.windowOnerror) {
        window.onerror = YWA.windowOnerror;
    } else {
        window.onerror = null;
    }
    this.pp();
    if (r.length > 0) {
        pt = typeof this.DOMAINS !== YWA.ud ? YWA.mxDmnRGXP(this.DOMAINS) : YWA.mxDmnRGXP(YWA.gh(location));
        this.IT += "&e=" + escape(pt.test(YWA.ghs(r))?this.getClnUrl(r):r);
    }
    if (t.length > 0) {
        this.IT += "&t=" + escape(t);
    }
    cs = this.FPCSupport();
    this.date = new Date();
    this.IT += "&flv=" + escape(this.FLV);
    this.IT += "&d=" + escape(this.date.toGMTString());
    this.IT += "&n=" + escape(parseInt(this.date.getTimezoneOffset() / 60, 10));
    this.IT += "&g=" + escape(this.net?navigator.language:navigator.userLanguage);
    this.IT += "&h=" + escape((navigator.javaEnabled()?"Y":"N"));
    try {
        this.IT += "&j=" + escape(screen.width + "x" + screen.height);
        this.IT += "&k=" + escape(this.mic?screen.colorDepth:screen.pixelDepth);
    } catch (e) {
    }
    this.IT += "&l=" + ((cs)?"true":"false");
    if (this.CAMPAIGN !== "") {
        this.IT += "&cp=" + escape(this.CAMPAIGN);
    }
    if (this.CMPPARM !== "") {
        this.IT += "&cp=" + escape(YWA.gcpn(this.CMPPARM));
    }
    if (this.PROMO !== "") {
        this.IT += "&scp=" + escape(this.PROMO);
    }
    if (this.PROMOPARM !== "") {
        this.IT += "&scp=" + escape(YWA.gcpn(this.PROMOPARM));
    }
    if (this.RUN) {
        return;
    }
    if (cs && i) {
        this.fpc();
    } else {
        this.trk("");
    }
    YWA.errorId = "";
};

YWAT.prototype.submitPT = function () {
    return this.track(true, false);
};

YWAT.prototype.submit = function () {
    return this.track(true, true);
};

YWAT.prototype.fpc = function () {
    this.getFPCvars();
};

YWAT.prototype.ywaW3C = function (mode) {
    var idScr, m_url;
    m_url = this.BD + "/fpc.pl?a=" + this.PID + "&v=" + this.version;
	if (!this.TPSC) {
		m_url += "&tp=0";
	}
	m_url += "&enc=" + escape(this.ENC) + this.IT + this.FPCR;
	m_url = this.trunc(m_url, 2000);
	if (!this.isProtocolExcluded()) {
		if (mode === 0) {
			if (!this.DEBUG) {
				idScr = document.createElement("SCRIPT");
				idScr.defer = true;
				idScr.type = "text/javascript";
				idScr.src = m_url;
				this.place.appendChild(idScr);
			} else {
				window.alert(m_url);
			}
		} else {
			this.trk("");
		}
	} else {
	    if (this.DEBUG) {
	    	window.alert("'" + m_url + "' isn't tracked because of excluded protocol.");
	    }
	}
	this.reset();
    this.IT = "";
};

YWAT.prototype.getFPCvars = function () {
	if (this.mic || this.gec) {
		this.ywaW3C(0);
	} else {
		this.ywaW3C(1);
	}
};

YWAT.prototype.setFPCookies = function () {
    if (this.FPCV !== "") {
        this.setCookie(this.FPCN, this.FPCV, 31536000);
    }
};

YWAT.prototype.page = function (docName, docGroup, memberid, action, amount) {
	var u;
    u = this.URL;
    this.URL = this.FU !== "" ? this.FU : "FLASH";
    this.DOCUMENTNAME = docName;
    this.DOCUMENTGROUP = docGroup;
    this.MEMBERID = memberid;
    this.ACTION = action;
    this.AMOUNT = amount;
    this.submit();
    this.URL = u;
};

YWAT.prototype.getClnUrl = function (u) {
    var u2, p, exc, r, k, pn, re, nonexc, pl;
    nonexc = "_S_PEPOS,_S_PEPRM";
    if (typeof this.EXCLPRM === YWA.ud) {
        return u;
    }
    u2 = u.split("?");
    if (u2.length === 1) {
        return u;
    }
    p = u2[1].split("&");
    exc = ((this.EXCLPRM.indexOf(";") >= 0)?this.EXCLPRM.split(";"):this.EXCLPRM.split(","));
    r = "";
    pl = p.length;
    for (k = 0; k < pl; k += 1) {
        pn = p[k].split("=")[0];
        re = new RegExp("\\b" + pn + "\\b", "gi");
        if (pn !== "" && (re.test(nonexc) || !re.test(exc))) {
            r += ((r.length > 0)?"&":"") + p[k];
        }
    }
    return u2[0] + ((r.length > 0)?"?" + r:"");
};
//<!-- End of Yahoo! Web Analytics Code -->