//--AT Ergonomics A 3.1.010 -- Copyright 2010 AT INTERNET, All Rights Reserved.
//-- (to be used with AT Tag 3.3.001 or later)
var scriptOnClickZone = 2, xtczv = '31010', xtdtmp = 0, xtdt2 = new Date(), xtel = new xtE(xtdt2.getTime()), xtn = navigator, un = undefined, nu = null, cZ = 'xtcz', oC = 'onclick', cT = 'xtcltype', cL = 'xtclib', tR = true, fA = false, isI = (/MSIE/.test(xtn.userAgent)) ? tR : fA, isOP = (/Opera/.test(xtn.userAgent)) ? tR : fA, isS = (/Safari/.test(xtn.userAgent)) ? tR : fA, isM = (xtn.appVersion.indexOf('Mac', 0) >= 0) ? tR : fA;
function xtIdxOf(tab, v, n) { n = (n == null) ? 0 : n; var m = tab.length; for (var i = n; i < m; i++) if (tab[i] == v) return i; return -1; }
function xtT(xl) { if (xl.innerHTML) { var xtx = xl.innerHTML, r = new RegExp('<script[^>]*>', 'gi'); if (r.test(xtx.toString())) return fA; xtx = (xtx.toString()).replace(/<\/?[^>]+>/gi, ''); var regex = new RegExp('(&nbsp;)', 'g'); xtx = (xtx.toString()).replace(regex, ''); xtx = xtEn(xtx); var regex2 = new RegExp('(%C2%A0)', 'g'); xtx = (xtx.toString()).replace(regex2, ''); try { xtx = xtDe(xtx) } catch (e) { } xtx = (xtx.toString()).replace(/[\s]/gm, ''); if ((xtx.length == 0) || (xtx == un) || (xtx == nu)) return fA; return xtx } return fA }
function xtE(st) { this.xttab = new Array(); this.xst = st; this.xc = 0; this.yc = 0; this.sx = 0; this.sy = 0; this.px = 0; this.py = 0; this.xr = 0; this.yr = 0; this.bf = ''; this.af = ''; this.curr = ''; this.cliccz = ''; this.dest = ''; this.s = 0; this.pcz = ''; this.s2cz = ''; this.t = 0; this.idmod = 0; this.p = ''; this.s2 = ''; this.idpage = -1 }
function xtH() { var d2 = new Date(); return (d2.getTime() - xtel.xst) }
function xtC(e) { if (!e) { if (xw.event) { e = xw.event } else { return { x: -1, y: -1} } } var xc = -1, yc = -1; if (typeof (e.pageX) == 'number') { xc = e.pageX; yc = e.pageY } else if (typeof (e.clientX) == 'number') { xc = e.clientX; yc = e.clientY; var bad = (xw.xtn.userAgent.indexOf('Opera') + 1) || (xw.ScriptEngine && ScriptEngine().indexOf('InScript') + 1) || (xtn.vendor == 'KDE'); if (!bad) { if (xd.body && (xd.body.scrollLeft || xd.body.scrollTop)) { xc += xd.body.scrollLeft; yc += xd.body.scrollTop; } else if (xd.documentElement && (xd.documentElement.scrollLeft || xd.documentElement.scrollTop)) { xc += xd.documentElement.scrollLeft; yc += xd.documentElement.scrollTop; } } } else { return { x: -1, y: -1} } return { x: xc, y: yc} }
function xtAs(xl) { var rect = xtAb(xl), width = rect.right - rect.left, height = rect.bottom - rect.top; return { w: width, h: height} }
function xtAb(xl) { if (xl['rectDefined']) return { left: xl.rLeft, top: xl.rTop, right: xl.rRight, bottom: xl.rBottom }; if (!xl.shape) xl.shape = 'rect'; var coords = xl.coords.split(','), result; if (xl.shape.toLowerCase() == 'rectangle' || xl.shape.toLowerCase() == 'rect') { result = { left: parseInt(coords[0]), top: parseInt(coords[1]), right: parseInt(coords[2]), bottom: parseInt(coords[3])} } if (xl.shape.toLowerCase() == 'circle' || xl.shape.toLowerCase() == 'circ') { result = { left: parseInt(coords[0]) - parseInt(coords[2]), top: parseInt(coords[1]) - parseInt(coords[2]), right: parseInt(coords[0]) + parseInt(coords[2]), bottom: parseInt(coords[1]) + parseInt(coords[2])} } if (xl.shape.toLowerCase() == 'polygon' || xl.shape.toLowerCase() == 'poly') { var l_ex, t_ex, r_ex, b_ex; for (var i = 0; i < coords.length; i += 2) { var co = parseInt(coords[i]); if (l_ex == un || co < l_ex) l_ex = co; if (r_ex == un || co > r_ex) r_ex = co; } for (var i = 1; i < coords.length; i += 2) { var co = parseInt(coords[i]); if (t_ex == un || co < t_ex) t_ex = co; if (b_ex == un || co > b_ex) b_ex = co; } result = { left: l_ex, top: t_ex, right: r_ex, bottom: b_ex} } xl.rectDefined = tR; xl.rLeft = result.left; xl.rRight = result.right; xl.rTop = result.top; xl.rBottom = result.bottom; return result }
function xtAp(area, target) { var map = xtpN(area); if (!map.dstElement) { if (!target) { target = xd; } var elts = target.getElementsByTagName('*'); if (elts['toArray']) elts = elts.toArray(); for (var i = 0; i < elts.length; i++) { var xl = elts[i]; if (xl.useMap) { if (xl.useMap.replace('#', '') == map.name) break; } xl = nu; } map.dstElement = xl; } if (map.dstElement) { var basePx = xtP(map.dstElement, 'Left'), basePy = xtP(map.dstElement, 'Top'), rect = xtAb(area); return { x: (basePx + rect.left), y: (basePy + rect.top)} } else { return { x: -1, y: -1} } }
function xtP(oEl, inTYPE) { if (typeof (oEl.offsetParent) != un) { var sType = 'oEl.offset' + inTYPE; for (var iVal = 0; oEl; oEl = oEl.offsetParent) { iVal += eval(sType); } return iVal; } else { if (inTYPE == 'Left') return oEl.x; if (inTYPE == 'Top') return oEl.y; } return -1 }
function xtR(e) { xtel.t = Math.round(xtH() / 1000); if (xtdtmp != 0 && (xtel.t - xtdtmp < 1)) return; xtdtmp = xtel.t; if (!e) e = xw.event; if (xtBdEv(e)) return; var xtobj = null, xl = xtEv(e); if (xtTr(xl)) { if (xtnN(xl) == 'OPTION') { var xlp = xtpN(xl); while (xlp) { xl = xlp; if (xtnN(xl) == 'SELECT') break; xlp = xtpN(xlp); } } xtel.s = xw.xt8; xtel.pcz = xw.xtp; xtel.s2cz = xtEx2(xw.xt9); xtel.idmod = typeof (xw['xtidmod']) != 'undefined' ? xw['xtidmod'] : 0; xtobj = xtNa(xl); xtel.curr = xtobj.id; xtel.cliccz = xtobj.typ; xtel.dest = xtobj.url; xtel.p = xtobj.pag; xtel.s2 = xtobj.sec; xtel.p = ((xtel.p != '') && (xtel.cliccz != 'F')) ? '&pmed=' + xtEn(xtel.p) : ''; xtel.s2 = ((xtel.s2 != '') && (xtel.cliccz != 'F')) ? '&s2med=' + xtEn(xtel.s2) : ''; if (xtel.cliccz == 'F') { xtel.cliccz = xtCt(xl).typ; } xtel.sx = xtSx(xl); xtel.sy = xtSy(xl); xtel.px = xtPx(xl); xtel.py = xtPy(xl); xtel.idpage = (xw.xtidpg != nu) ? xw.xtidpg : -1; if ((xtel.px == -1) && (xtel.py == -1)) return; var tmpelt = xtEv(e); xtel.xc = ((xtnN(tmpelt) == 'OPTION') && !isOP) ? xtC(e).x + xtel.px : xtC(e).x; xtel.yc = xtC(e).y; if ((xtel.xc == -1) && (xtel.yc == -1)) return; if (xd.compatMode == 'BackCompat' && isI) { xtel.xc -= 2; xtel.yc -= 2 } xtel.xr = (xtel.xc - xtel.px) / xtel.sx; xtel.yr = (xtel.yc - xtel.py) / xtel.sy; if ((0 < xtel.sx) && (xtel.sx <= 40)) xtel.xr = 0.5; if ((40 < xtel.sx) && (xtel.sx <= 250)) xtel.xr = (Math.round(xtel.xr * 10)) / 10; if (250 < xtel.sx) xtel.xr = (Math.round(xtel.xr * 100)) / 100; if ((0 < xtel.sy) && (xtel.sy <= 40)) xtel.yr = 0.5; if ((40 < xtel.sy) && (xtel.sy <= 250)) xtel.yr = (Math.round(xtel.yr * 10)) / 10; if (250 < xtel.sy) xtel.yr = (Math.round(xtel.yr * 100)) / 100; if (xtel.xr < 0) xtel.xr = 0; if (xtel.yr < 0) xtel.yr = 0; if (xtel.xr > 1) xtel.xr = 1; if (xtel.yr > 1) xtel.yr = 1; if ((xtel.curr).indexOf('xtclib', 0) < 0) { var idx = xtIdxOf(xtel.xttab, xl), xlp = xtpN(xl); while ((idx == -1) && xlp) { idx = xtIdxOf(xtel.xttab, xlp); xlp = xtpN(xlp); } xtel.bf = xtNa(xtel.xttab[idx - 1]).id; xtel.af = xtNa(xtel.xttab[idx + 1]).id; xtel.bf = ((xtel.bf).indexOf('xtclib', 0) >= 0) ? xtExTc(xtel.bf) : xtel.bf; xtel.af = ((xtel.af).indexOf('xtclib', 0) >= 0) ? xtExTc(xtel.af) : xtel.af; } else { xtel.curr = xtExTc(xtel.curr); xtel.bf = ''; xtel.af = ''; xtel.dest = ''; } var name = ''; if ((xtnN(xl) == 'EMBED') && isOP && (xtpN(xl) != nu) && (xtpN(xl) != un)) name = xtpN(xl).name; else name = xl.name; if ((name != nu) && (name != un) && ((name).indexOf(cT) >= 0)) xtel.cliccz = name.replace(cT, ''); var type = xtCt(xl).typ, hitn = fA; if ((xtel.cliccz == 'N') && (type != 'N')) hitn = tR; var regex = new RegExp('(&)|[?]', 'g'); xtel.curr = (xtel.curr.toString()).replace(regex, '_'); xtel.bf = (xtel.bf.toString()).replace(regex, '_'); xtel.af = (xtel.af.toString()).replace(regex, '_'); xtel.dest = (xtel.dest.toString()).replace(regex, '_'); var res = '&xtczv=' + xtczv + '&idmod=' + xtel.idmod + '&current=' + xtEn(xtel.curr) + '&before=' + xtEn(xtel.bf) + '&after=' + xtEn(xtel.af) + '&cliccz=' + xtel.cliccz + '&dest=' + xtEn(xtel.dest) + '&posx=' + xtel.xr + '&posy=' + xtel.yr + '&time=' + xtel.t + xtel.p + xtel.s2; if (((scriptOnClickZone == 2) && (xtel.cliccz != 'N')) || (hitn == tR)) { xt_imgc = new Image(); xt_imgc.src = xtsd + '.xiti.com/hit.xiti?s=' + xtel.s + '&pcz=' + xtEn(xtel.pcz) + '&s2cz=' + xtEn(xtel.s2cz) + res + '&idpcz=' + xtel.idpage + ((typeof (xt40) != 'undefined') ? '&idclient=' + xt40 : ''); } else if (xtel.cliccz == 'N') { xtW('&idpcz=' + xtel.idpage + res); } } }
function xtW(xt_valcz) { var xtcznb = new Date(); xtcznb.setTime(xtcznb.getTime() + 45000); xd.cookie = 'xtvalCZ=' + xt_valcz + ';expires=' + xtcznb.toGMTString() + ' ;path=/' + xw.xt1; }
function xtSx(xl) { var szx = (xtnN(xl) == 'AREA') ? xtAs(xl).w : xl.offsetWidth; if ((szx == nu) || (szx == un) || (szx == '')) { if (xl.style.width != nu) szx = xl.style.width; else szx = 0; } if (isS && isM && (xtnN(xl) == 'TR') && (xl.firstChild != nu) && (xl.lastChild != nu)) szx = xl.lastChild.offsetLeft + xl.lastChild.offsetWidth - xl.firstChild.offsetLeft; if ((szx == nu) || (szx == un) || (szx == '')) { szx = 0; } return parseInt(szx, 10) }
function xtSy(xl) { var szy = (xtnN(xl) == 'AREA') ? xtAs(xl).h : xl.offsetHeight; if ((szy == nu) || (szy == un) || (szy == '')) { if (xl.style.height != nu) szy = xl.style.height; else szy = 0; } if (isS && isM && (xtnN(xl) == 'TR') && (xl.firstChild != nu) && (xl.lastChild != nu)) szy = xl.lastChild.offsetTop + xl.lastChild.offsetHeight - xl.firstChild.offsetTop; if ((szy == nu) || (szy == un) || (szy == '')) { szy = 0; } return parseInt(szy, 10) }
function xtPx(xl) { var psx = (xtnN(xl) == 'AREA') ? xtAp(xl).x : xtP(xl, 'Left'); return parseInt(psx, 10) }
function xtPy(xl) { var psy = (xtnN(xl) == 'AREA') ? xtAp(xl).y : xtP(xl, 'Top'); if (isS && isM && (xtnN(xl) == 'TR') && (xl.firstChild != nu)) psy += xl.firstChild.offsetTop; return parseInt(psy, 10) }
function xtCt(xl) { var xclict = '', xext = '', xurld = '', xurls = (xd.location.href).toString(), xdoms = (xw.xt1 != nu && xw.xt1 != '') ? xtSub(xw.xt1, 8, xw.xt1.length) : xtSub(xurls, 7, xurls.indexOf('/', 7)), xdomd = ''; if (xl) { if ((xtnN(xl) == 'INPUT') && (xl.type == 'submit')) { try { xurld = xtG(xl.form, 'action').toString(); } catch (e) { } xext = xtSub(xurld, xurld.lastIndexOf('.'), xurld.length); if (xurld.indexOf('http://', 0) >= 0) xdomd = xtSub(xurld, 7, xurld.indexOf('/', 7)); else xdomd = ''; } if ((xtnN(xl) != 'IMG') && xl.href) { xurld = (xl.href).toString(); xext = xtSub(xurld, xurld.lastIndexOf('.'), xurld.length); if (xurld.indexOf('http://', 0) >= 0) xdomd = xtSub(xurld, 7, xurld.indexOf('/', 7)); else xdomd = ''; } else { var xlp = xtpN(xl); while (xlp && xtnN(xlp) != 'BODY') { if (xlp.href) { xurld = (xlp.href).toString(); xext = xtSub(xurld, xurld.lastIndexOf('.'), xurld.length); if (xurld.indexOf('http://', 0) >= 0) xdomd = xtSub(xurld, 7, xurld.indexOf('/', 7)); else xdomd = ''; break; } xlp = xtpN(xlp); } } } if (xtEx(xext)) xclict = 'T'; else if ((xdomd != '') && (xdomd.indexOf(xdoms, 0) < 0)) xclict = 'S'; else { xclict = 'N'; } if (xurld.length > 255) xurld = xtSub(xurld, 0, 255); var ch = xurld; if (ch.charAt(ch.length - 1) == '/') ch = xtSub(ch, 0, ch.length - 1); var pos = ch.lastIndexOf('/?', ch.length); if (pos >= 0) ch = ch.replace('/?', '?'); xurld = ch; try { if ((xtDe(xurld) != nu) && (xtDe(xurld) != un)) xurld = xtDe(xurld); } catch (e) { } return { typ: xclict, url: xurld} }
function xtEx(xext) { var valext = ['.aac', '.ace', '.ape', '.art', '.avi', '.bak', '.bat', '.bin', '.bmp', '.bsp', '.cab', '.ccd', '.cda', '.chm', '.clp', '.css', '.csv', '.cue', 'dic', 'dll', '.doc', '.dot', '.exe', '.fla', '.flac', '.gif', '.gz', '.hlp', '.ico', '.img', '.iso', '.jpeg', '.jpg', '.js', '.lnk', '.m2a', '.m2v', '.m3u', '.mdb', '.mdf', '.mds', '.mid', '.midi', '.mkv', '.mod', '.mov', '.mp2', '.mp3', '.mp4', '.mpc', '.mpg', '.mpeg', '.msi', '.nfo', '.nrg', '.obd', '.ocx', '.ogg', '.old', '.ogm', '.pdf', '.png', '.pps', '.ppt', '.psd', '.psp', '.rar', '.raw', '.reg', '.rm', '.ram', '.rtf', '.swf', '.tar', '.tga', '.tgz', '.theme', '.tif', '.tiff', '.tmp', '.torrent', '.ttf', '.txt', '.url', '.vbs', '.vob', '.wab', '.wav', '.wdb', '.wks', '.wml', '.wma', '.wmv', '.wpf', '.xls', '.xml', '.zip', '.7z']; for (var i = 0; i < valext.length; i++) { if (xext == valext[i]) return tR; } return fA }
function xtL(xl) { var xlel = ['INPUT', 'SELECT', 'IFRAME', 'OBJECT', 'AREA', 'BUTTON'], xeln = xtnN(xl); if ((xeln == 'EMBED') && (xtnN(xtpN(xl))) != 'OBJECT') { return tR; } if ((xeln == 'DIV') && (xtG(xl, cL))) { return tR; } if ((xeln == 'SPAN') && (xtG(xl, oC))) { return tR; } if ((xeln == 'SELECT') && ((xtG(xl, 'onchange') == nu) || (xtG(xl, 'onchange') == un) || (xtG(xl, 'onchange') == ''))) { return fA; } if ((xeln == 'INPUT') && (xl.type != 'submit') && (xl.type != 'image') && (xl.type != 'button')) { return fA; } if ((xeln == 'BUTTON') && (xl.type != 'submit')) { return fA; } if (xeln == 'IMG') { var xlp = xtpN(xl); var xtTr = fA; while (xlp) { if (xtnN(xlp) == 'A') { xtTr = tR; if ((((xtG(xlp, oC) != nu) && (xtG(xlp, oC) != un) && (xtG(xlp, oC) != '')) || ((xtG(xlp, 'href') != nu) && (xtG(xlp, 'href') != un) && (xtG(xlp, 'href') != '')))) { return tR; } } xlp = xtpN(xlp); } if ((xtG(xl, oC) != nu) && (xtG(xl, oC) != un) && (xtG(xl, oC) != '') && !xtTr) return tR; } if ((xeln == 'A') && (((xtG(xl, oC) != nu) && (xtG(xl, oC) != un) && (xtG(xl, oC) != '')) || ((xtG(xl, 'href') != nu) && (xtG(xl, 'href') != un) && (xtG(xl, 'href') != '')))) { var xlp = xtpN(xl); while (xlp) { if (((xtnN(xlp) == 'DIV') && (xtG(xlp, cL))) || ((xtnN(xlp) == 'SPAN') && (xtG(xlp, oC)))) return fA; xlp = xtpN(xlp); } var xtImg = fA, xtTxt = fA; if (xl.childNodes) { var xtChild = xl.childNodes, j = 0; while (j < xtChild.length && !(xtImg && xtTxt)) { if (xtnN(xtChild[j]) == 'IMG') { xtImg = tR; } else { xtTxt = tR; } j++; } } if (xtImg && xtTxt) return tR; else if (xtImg) return fA; else return tR; } for (var i = 0; i < xlel.length; i++) { if (xeln == xlel[i]) return tR; } return fA }
function xtTr(xl) { var xut = ['BODY', 'HTML']; for (var i = 0; i < xut.length; i++) { if (xl.tagName == xut[i]) return fA; } return tR }
function xtEv(evt) { var e_out, ie_var = 'srcElement', moz_var = 'target'; evt[moz_var] ? e_out = evt[moz_var] : e_out = evt[ie_var]; return (e_out) }
function xtBdEv(evt) { var e_out = (xw.event) ? (xw.event.button == 2) : (evt.which == 3); return (e_out) }
function xtV(xat) { var r = /xt_med\(\s*.?C/i, r2 = /xt_click\(\s*this\s*\,\s*.?C/i; return (r.test(xat.toString()) || r2.test(xat.toString())); }
function xtExT(xat) { var page = '', pageclz = '', type = '', section = -1, idx = (xat.indexOf('xt_med') >= 0) ? 0 : 1, IdxSt = (idx == 0) ? xat.indexOf('xt_med') : xat.indexOf('xt_click'), start = xat.indexOf('(', IdxSt), stop = xat.indexOf(')', IdxSt), content = xtSub(xat, start + 1, stop), tmp = start; while (content.indexOf('(') > 0) { tmp = stop + 1; stop = xat.indexOf(')', stop + 1); content = xtSub(xat, tmp + 1, stop); } content = xtSub(xat, start + 1, stop); xatab = content.split(/\,/); try { section = (xatab[idx + 1]) ? String(eval(xatab[idx + 1])) : ''; } catch (e) { section = (xatab[idx + 1] || ''); } try { page = (xatab[idx + 2]) ? String(eval(xatab[idx + 2])) : ''; } catch (e) { page = (xatab[idx + 2] || ''); } try { type = (xatab[idx + 3]) ? String(eval(xatab[idx + 3])) : ''; } catch (e) { type = (xatab[idx + 3] || ''); } pageclz = page.replace(/(::)/g, '/'); return { typ: type, pag: page, pagcl: pageclz, sec: section} }
function xtEx2(xat) { var r = new RegExp('&s2=', 'gi'); if (r.test(xat.toString())) { xat = xat.replace(r, ''); } return xat }
function xtExTc(xid) { var r = new RegExp(cL, 'gi'); xid = xid.replace(r, ''); return xid }
function xtLCz(xl) { var xlel = ['DIV', 'TABLE', 'TR', 'TD', 'UL', 'LI'], xeln = xtnN(xl); for (var i = 0; i < xlel.length; i++) { if ((xeln == xlel[i]) && (xl.nodeType == 1) && (xtG(xl, cZ) != nu) && (xtG(xl, cZ) != un)) { return tR; } } return fA; }
function xtNa(xl) { if (xl && !xtL(xl)) { var xlp = xtpN(xl); while (xlp) { if (xtL(xlp)) { xl = xlp; break; } xlp = xtpN(xlp); } } var xtobj = null, xid = '', xtmedat = '', xtmedp = '', xtmeds = '', type = '', xurld = '', xtTr = fA; if (xl) { if ((xtnN(xl) == 'A') && (xl.childNodes)) { var xtChild = xl.childNodes, j = 0; while ((j < xtChild.length) && !xtTr) { if ((xtChild[j].nodeType == 1) && !xtL(xtChild[j]) && (xtG(xtChild[j], cL))) { xid = cL + xtG(xtChild[j], cL); xtTr = tR; } j++; } } if (!xtTr) { if (xtG(xl, oC) && xtV(xtG(xl, oC))) xid = xtG(xl, oC); else if (xl.href && xtV(xl.href)) { xid = xl.href; try { if ((xtDe(xid) != nu) && (xtDe(xid) != un)) xid = xtDe(xid); } catch (e) { } } else if (xtG(xl, cL)) xid = cL + xtG(xl, cL); else if (xtT(xl)) xid = xtT(xl); else if (xl.id) xid = xl.id; else if (xl.name) xid = xl.name; else if (xl.title) xid = xl.title; else if (xl.value) xid = xl.value; else if (xl.href) { var ch = xl.href.toString(); if (ch.charAt(ch.length - 1) == '/') ch = xtSub(ch, 0, ch.length - 1); var pos = ch.lastIndexOf('/?', ch.length); if (pos >= 0) ch = ch.replace('/?', '?'); xid = ch; try { if ((xtDe(xid) != nu) && (xtDe(xid) != un)) xid = xtDe(xid); } catch (e) { } } else if (xl.src) { var ch = xl.src.toString(); if (ch.charAt(ch.length - 1) == '/') ch = xtSub(ch, 0, ch.length - 1); var pos = ch.lastIndexOf('/?', ch.length); if (pos >= 0) ch = ch.replace('/?', '?'); xid = ch; try { if ((xtDe(xid) != nu) && (xtDe(xid) != un)) xid = xtDe(xid); } catch (e) { } } else { var xlp = xtpN(xl); while (xlp && xtnN(xlp) != 'BODY') { if (xtG(xlp, oC) && xtV(xtG(xlp, oC))) { xid = xtG(xlp, oC); break; } else if (xlp.href && xtV(xlp.href)) { xid = xlp.href; try { if ((xtDe(xid) != nu) && (xtDe(xid) != un)) xid = xtDe(xid); } catch (e) { } break; } else if (xtG(xl, cL)) { xid = cL + xtG(xl, cL); break; } else if (xtT(xlp)) { xid = xtT(xlp); break; } else if (xlp.id) { xid = xlp.id; break; } else if (xlp.name) { xid = xlp.name; break; } else if (xlp.title) { xid = xlp.title; break; } else if (xlp.value) { xid = xlp.value; break; } else if (xlp.href) { var ch = xlp.href.toString(); if (ch.charAt(ch.length - 1) == '/') ch = xtSub(ch, 0, ch.length - 1); var pos = ch.lastIndexOf('/?', ch.length); if (pos >= 0) ch = ch.replace('/?', '?'); xid = ch; try { if ((xtDe(xid) != nu) && (xtDe(xid) != un)) xid = xtDe(xid); } catch (e) { } break; } else if (xlp.src) { var ch = xlp.src.toString(); if (ch.charAt(ch.length - 1) == '/') ch = xtSub(ch, 0, ch.length - 1); var pos = ch.lastIndexOf('/?', ch.length); if (pos >= 0) ch = ch.replace('/?', '?'); xid = ch; try { if ((xtDe(xid) != nu) && (xtDe(xid) != un)) xid = xtDe(xid); } catch (e) { } break; } xlp = xtpN(xlp); } } } xid = (xid.toString()).replace(/[\s]/gm, ''); if (xtV(xid)) { xtobj = xtExT(xid); type = xtobj.typ; xtmedp = xtobj.pag; xtmeds = xtobj.sec; if (xtG(xl, cL)) xid = cL + xtG(xl, cL); else xid = xtobj.pagcl; } else { var xlp = xtpN(xl); while (xlp && (xtnN(xlp) != 'BODY')) { if (xtG(xlp, oC) && xtV(xtG(xlp, oC))) { xtmedat = xtG(xlp, oC); xtmedat = (xtmedat.toString()).replace(/[\s]/gm, ''); xtobj = xtExT(xtmedat); type = xtobj.typ; xtmedp = xtobj.pag; xtmeds = xtobj.sec; break; } else if (xlp.href && xtV(xlp.href)) { xtmedat = xlp.href; try { if ((xtDe(xtmedat) != nu) && (xtDe(xtmedat) != un)) xtmedat = xtDe(xtmedat); } catch (e) { } xtmedat = (xtmedat.toString()).replace(/[\s]/gm, ''); xtobj = xtExT(xtmedat); type = xtobj.typ; xtmedp = xtobj.pag; xtmeds = xtobj.sec; break; } xlp = xtpN(xlp); } } if (type == '') { if (xtG(xl, cT) != nu) { type = xtG(xl, cT); } else { var xlp = xtpN(xl); while (xlp && (xtnN(xlp) != 'BODY')) { if (xtG(xlp, cT) != nu) { type = xtG(xlp, cT); break; } xlp = xtpN(xlp); } } } if (type == '') type = xtCt(xl).typ; xurld = xtCt(xl).url; if (xtmedp == '') { xtmedp = (xid.indexOf(cL, 0) >= 0) ? xtExTc(xid) : xid; if (xtmeds == '') xtmeds = xtEx2(xw.xt9); } var regex = new RegExp('(&)|[?]', 'g'); xtmedp = (xtmedp.toString()).replace(regex, '_'); if (xtmeds == '') xtmeds = '0'; var r = new RegExp('(::)', 'g'); xid = (xid.toString()).replace(r, '/'); var k = 0, xlp = xtpN(xl); while (xlp && (xtnN(xlp) != 'BODY')) { if (xtLCz(xlp) && (k < 2)) { xid = xtG(xlp, cZ) + '::' + xid; k += 1; } xlp = xtpN(xlp); } } if ((xid.length > 255) && (k == 0)) xid = xtSub(xid, 0, 255); xtmedp = xtSub(xtmedp, 0, 255); return { id: xid, pag: xtmedp, sec: xtmeds, typ: type, url: xurld} }
function xtNodesload() { if (xw.xt8 != 0) { var desc = xd.getElementsByTagName('*'); for (var i = 0; i < desc.length; i++) { if (xtL(desc[i])) xtel.xttab.push(desc[i]); } for (var k = 0; k < xtel.xttab.length; k++) { if (xtel.xttab[k].addEventListener) { xtel.xttab[k].addEventListener('mousedown', xtR, fA) } else if (xtel.xttab[k].attachEvent) { xtel.xttab[k].attachEvent('onmousedown', xtR); } } } }
function xtG(o, a) { var att = null; try { att = o.getAttribute(a); } catch (e) { } return (att == null) ? null : (((a == cZ) && (att.length > 255)) ? xtSub(att, 0, 255) : att); }
function xtEn(v) { return encodeURIComponent(v); }
function xtDe(v) { return decodeURIComponent(v); }
function xtnN(o) { return o.nodeName; }
function xtpN(o) { return o.parentNode; }
function xtSub(o, d, f) { return o.substring(d, f); }
//-- Copyright 2011 AT Internet, All Rights Reserved.
//-- AT Internet Tag 4.2.001
var xt1 = '.allocine.fr', xtfirst = false, xtcode = '', xt46 = '1', xt50 = '1', xt48 = '', xt54 = false, xt58 = false, xtdocl = false, xtud = 'undefined', xt2 = '0', xt3 = 3650, xtkwv = 'xtmc', xtkwp = 'xtnp', xtadch = new Array, xt4 = new Array; xt4['sec'] = '20'; xt4['rss'] = '20'; xt4['epr'] = '20'; xt4['erec'] = '20'; xt4['adi'] = '20'; xt4['adc'] = '20'; xt4['al'] = '20'; xt4['es'] = '20'; xt4['ad'] = '20';
//do not modify below
var xtoid = new Array, xtkey = false, xt49 = null, xt5 = 30, xw = window, xd = document, xtg = navigator, xtv = (xw.xtczv != null) ? '42001-' + xw.xtczv : '42001', xt1 = xw.xtdmc ? ';domain=' + xw.xtdmc : (xt1 != '') ? ';domain=' + xw.xt1 : '', xt6 = (xw.xtnv != null) ? xw.xtnv : xd, xt7 = (xw.xtsd != null) ? xw.xtsd : (xd.location.protocol == 'https:') ? 'http://logc188' : 'http://logc188', xt36 = (xw.xtsts != null) ? xw.xtsts : 0, xt37 = ''; if (xt54) { var xturl = ''; try { xturl = xt6.location.href; } catch (e) { xturl = xw.location.href; } xt37 = xtestr(xturl, /#.*/, 1); xt37 = xt37 ? '&sta=' + encodeURIComponent(xtclURL(xt37)) : ''; } var xt38 = (xw.xtcustom != null) ? xtserial(xw.xtcustom) : '', xt8 = (xw.xtsite != null) ? xw.xtsite : 0, xt9 = (xw.xtn2 != null) ? '&s2=' + xw.xtn2 : '', xt8b = ((xt8 == 0) ? '' : 's=' + xt8) + ((xt36 == 0) ? '' : ((xt8 == 0) ? 'sts=' + xt36 : '&sts=' + xt36)), xtp = (xw.xtpage != null) ? xw.xtpage : '', xt10 = xw.xto_force ? xw.xto_force.toLowerCase() : null, xt11 = (xt8 == 'redirect') ? true : false, xtdi = xw.xtdi ? '&di=' + xw.xtdi : '', xt12 = xw.xtidp ? '&idpays=' + xw.xtidp : '', xt13 = xw.xtidprov ? '&idprov=' + xw.xtidprov : '', xtm = (xw.xtparam != null) ? xw.xtparam : ''; xt46 = ((typeof (xw.xtnopage) != 'undefined') && (xw.xtnopage == '1')) ? '0' : xt46; xt50 = ((typeof (xw.xtergo) != 'undefined') && (xw.xtergo == '0')) ? '0' : xt50; var xtclzone = ((typeof (xw.scriptOnClickZone) != 'undefined') && (xt50 == '1')) ? xw.scriptOnClickZone : 0, xt15 = (xw.xt_orderid != null) ? xw.xt_orderid : '', xt17 = (xw.xtidcart != null) ? xw.xtidcart : '', xt44 = (xw.xtprod_load != null) ? '&pdtl=' + xw.xtprod_load : '', xt47 = (xw.xtcode != '') ? '&code=' + xw.xtcode : '';
if (xw.addEventListener) { xw.addEventListener('unload', function() { }, false); } else if (xw.attachEvent) { xw.attachEvent('onunload', function() { }); }
if (xd.addEventListener) { xd.addEventListener('keydown', function() { xtkey = true }, false); xd.addEventListener('keyup', function() { xtkey = false }, false); } else if (xd.attachEvent) { xd.attachEvent('onkeydown', function() { xtkey = true }); xd.attachEvent('onkeyup', function() { xtkey = false }); }
var xt18 = (xw.roimt && (xtm.indexOf('&roimt', 0) < 0)) ? '&roimt=' + xw.roimt : '', xtmc = (xtm.indexOf('&mc=', 0) < 0) ? (xw.xtmc ? '&mc=' + xw.xtmc : xtf3(xtkwv) ? '&mc=' + xtf3(xtkwv) : xtf3('xtmc') ? '&mc=' + xtf3('xtmc') : '') : '', xtcr = xtf3('xtcr') ? '&mcrg=' + xtf3('xtcr') : '', xtac = (xw.xtac && (xtm.indexOf('&ac=', 0) < 0)) ? '&ac=' + xw.xtac : '', xtat = (xw.xtat && (xtm.indexOf('&at=', 0) < 0)) ? '&at=' + xw.xtat : '', xtan = (xw.xtan && (xtm.indexOf('&an=', 0) < 0)) ? '&an=' + xw.xtan : '', xtnp = (xtm.indexOf('&np=', 0) < 0) ? (xw.xtnp ? '&np=' + xw.xtnp : xtf3(xtkwp) ? '&np=' + xtf3(xtkwp) : xtf3('xtnp') ? '&np=' + xtf3('xtnp') : '') : '', xt19 = ((xw.xtprm != null) && (xtm.indexOf('&x', 0) < 0)) ? xw.xtprm : ''; xtm += xt18 + xtmc + xtcr + xtac + ((xtan != '') ? xtan : xtat) + xtnp + xt19 + xt37; var xt20 = ''; try { xt20 = top.document.referrer; } catch (e) { try { xt20 = xt6.referrer; } catch (e) { } }; var xts = screen, xt21 = new Date(), xt22 = xt21.getTime() / (1000 * 3600);
function xtserial(obj) { var t = typeof (obj); if (t != "object" || obj === null) { if (t == "string") obj = encodeURIComponent('"' + obj + '"'); return String(obj); } else { var n, v, json = [], arr = (obj && obj.constructor == Array); for (n in obj) { v = obj[n]; t = typeof (v); if (t == "string") v = encodeURIComponent('"' + v + '"'); else if (t == "object" && v !== null) v = xtserial(v); json.push((arr ? "" : encodeURIComponent('"' + n + '":')) + String(v)); } return (arr ? "[" : "{") + String(json) + (arr ? "]" : "}"); } }
function xtclURL(ch) { return ch.replace(/%3C/g, '<').replace(/%3E/g, '>').replace(/[<>]/g, ''); }
function xtf1(nom, xtenc) { xtenc = ((xtenc != null) && (xtenc != xtud)) ? xtenc : '0'; var arg = nom + '=', i = 0; while (i < xd.cookie.length) { var j = i + arg.length; if (xd.cookie.substring(i, j) == arg) { return xtf2(j, xtenc); } i = xd.cookie.indexOf(' ', i) + 1; if (i == 0) { break; } } return null; }
function xtf2(index, xtenc) { var fin = xd.cookie.indexOf(';', index); if (fin == -1) { fin = xd.cookie.length; }; if (xtenc != '1') { return unescape(xtclURL(xd.cookie.substring(index, fin))); } else { return xtclURL(xd.cookie.substring(index, fin)); } } if (typeof (xt_adch) == 'function') { xt_adch(); }
function xt_addchain(val, varch) { xtvarch = varch ? varch : 'abmv'; itemp = (!xtadch[xtvarch]) ? 0 : xtadch[xtvarch]; itemp++; xtm += '&' + xtvarch + '' + itemp + '=' + val; xtadch[xtvarch] = itemp; }
function wck(p1, p2, p3, p4, fmt) { p2 = (fmt == 0) ? p2 : escape(p2); xd.cookie = p1 + '=' + p2 + ';expires=' + p3.toGMTString() + ';path=/' + p4; }
function xtf3(param, chba, a) { var xtdeb = '', xturl = ''; try { xtdeb = xt6.location.href } catch (e) { xtdeb = xw.location.href } if ((chba == null) || (chba == xtud)) { xturl = xtclURL(xtdeb.toLowerCase().replace(/%3d/g, '=')) } else { xturl = chba } var xtpos = xturl.indexOf(param + '='); if (xtpos > 0) { var chq = xturl.substring(1, xturl.length), mq = chq.substring(chq.indexOf(param + '='), chq.length); if (a == 1) { } else { try { mq = decodeURIComponent(mq) } catch (e) { } } var cr = mq.match(/(\[[^\]]*\])/g); if (cr) { var str = ''; for (var i = 0; i < cr.length; i++) { str = cr[i].substring(1, cr[i].length - 1); mq = mq.replace(str, encodeURIComponent(str)) } } var reg = new RegExp('&.[^&]+=', 'gi'); var pos = mq.search(reg); if (pos == -1) pos = mq.length; if (a == 1) { return decodeURIComponent(mq.substring(mq.indexOf('=') + 1, pos)) } else { return mq.substring(mq.indexOf('=') + 1, pos).replace('&', '%26') } } else { return null } }
function xt_med(type, section, page, x1, x2, x3, x4, x5) { xt_ajout = ((type == 'F') && ((x1 == null) || (x1 == xtud))) ? '' : (type == 'M') ? '&a=' + x1 + '&m1=' + x2 + '&m2=' + x3 + '&m3=' + x4 + '&m4=' + x5 : '&clic=' + x1; xtf4(type, '&s2=' + section + '&p=' + page + xt_ajout, x2, x3); }
xtfirst = ((xtg.userAgent.indexOf('Safari') != -1 && xtg.userAgent.indexOf('Chrome') < 0) || xtg.userAgent.indexOf('iPhone') != -1 || xtg.userAgent.indexOf('iPod') != -1 || xtg.userAgent.indexOf('iPad') != -1 || xtfirst); if (xtfirst) { var xt40 = (xw.xtidc) ? xw.xtidc : xtf1('xtidc'); if (xt40 == null) { var xt40 = Math.floor(Math.random() * 999999), xtane = xt21.getYear(); if (xtane < 100) xtane += 2000; if ((xtane > 100) && (xtane < 2000)) xtane += 1900; var xt41 = f_nb(xtane) + '' + f_nb(xt21.getMonth()) + '' + f_nb(xt21.getDate()) + '' + f_nb(xt21.getHours()) + '' + f_nb(xt21.getMinutes()) + '' + f_nb(xt21.getSeconds()); xt40 = xt41 + '' + xt40 } var xtdrc = new Date(); xtdrc.setTime(xtdrc.getTime() + (315360000000)); wck('xtidc', xt40, xtdrc, xt1, 1); xt42 = xtf1('xtidc'); xt40 += ((xt42 == null) || (xt42 != xt40)) ? '-NO' : '' }
function xt_ad(x1, x2, x3) { xtf4('AT', '&atc=' + x1 + '&type=AT&patc=' + xtp + '&s2atc=' + xw.xtn2, x2, x3); }
function xt_adc(obj, x1, x2, x3) { xtf4('AT', '&atc=' + x1 + '&type=AT&patc=' + xtp + '&s2atc=' + xw.xtn2); var xtobj = null; if (obj.nodeName != 'A') { var xelp = obj.parentNode; while (xelp) { if (xelp.nodeName == 'A') { xtobj = xelp; break; } xelp = xelp.parentNode; } } else { xtobj = obj; } if (xtobj) { xtobj.target = xtobj.target || '_self'; if (x2) { xtobj.href = x2; if (x3) { xtobj.target = '_blank'; } else { xtobj.target = '_self'; } } if (!xtkey) { if (xtobj.target.toLowerCase() == '_self') { setTimeout('self.location.href="' + xtobj.href + '"', 500); return false; } else if (xtobj.target.toLowerCase() == '_top') { setTimeout('top.location.href="' + xtobj.href + '"', 500); return false; } else if (xtobj.target.toLowerCase() == '_parent') { setTimeout('parent.location.href="' + xtobj.href + '"', 500); return false; } } } else if (x2) { if (x3) { setTimeout('(xw.open("' + x2 + '","_blank")).focus();', 500); } else { setTimeout('self.location.href="' + x2 + '"', 500); } } xtkey = false; return true; }
function xt_click(obj, type, n2, page, x1, x2, x3) { xt_ajout = ((type == 'F') && ((x1 == null) || (x1 == xtud))) ? '' : '&clic=' + x1; xtf4(type, '&s2=' + n2 + '&p=' + page + xt_ajout); var xtobj = null; if (obj.nodeName != 'A') { var xelp = obj.parentNode; while (xelp) { if (xelp.nodeName == 'A') { xtobj = xelp; break; } xelp = xelp.parentNode; } } else { xtobj = obj; } if (xtobj) { xtobj.target = xtobj.target || '_self'; if (x2) { xtobj.href = x2; if (x3) { xtobj.target = '_blank'; } else { xtobj.target = '_self'; } } if (!xtkey) { if (xtobj.target.toLowerCase() == '_self') { setTimeout('self.location.href="' + xtobj.href + '"', 500); return false; } else if (xtobj.target.toLowerCase() == '_top') { setTimeout('top.location.href="' + xtobj.href + '"', 500); return false; } else if (xtobj.target.toLowerCase() == '_parent') { setTimeout('parent.location.href="' + xtobj.href + '"', 500); return false; } } } else if (x2) { if (x3) { setTimeout('(xw.open("' + x2 + '","_blank")).focus();', 500); } else { setTimeout('self.location.href="' + x2 + '"', 500); } } xtkey = false; return true; }
function xt_form(obj, type, n2, page, x1, x2) { xt_ajout = ((type == 'F') && ((x1 == null) || (x1 == xtud))) ? '' : '&clic=' + x1; xtf4(type, '&s2=' + n2 + '&p=' + page + xt_ajout); if (x2) { setTimeout(function() { obj.submit(); }, 500); } return false; }
function xt_rm(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14) { var rmprm = '&p=' + x3 + '&s2=' + x2 + '&type=' + x1 + '&a=' + x4 + '&m5=' + x11 + '&m6=' + x12; rmprm += ((x5 != null) && (x5 != '0')) ? '&' + x5 : ''; rmprm += ((x7 != null) && (x4 != 'pause') && (x4 != 'stop')) ? '&m1=' + x7 + '&' + x8 + '&m3=' + x9 + '&m4=' + x10 + '&m7=' + x13 + '&m8=' + x14 + '&prich=' + xtp + '&s2rich=' + xw.xtn2 : ''; rmprm += ((x6 != null) && (x6 != '0') && (x7 != null)) ? '&rfsh=' + x6 : ''; xtf4(x1, rmprm); if ((x6 != null) && (x6 != '0') && ((x4 == 'play') || (x4 == 'play&buf=1') || (x4 == 'refresh'))) { xtrmdl = (Math.floor(x6) > 1500) ? 1500000 : (Math.floor(x6) < 5) ? 5000 : Math.floor(x6) * 1000; xtoid[x1] = xw.setTimeout("xt_rm('" + x1 + "','" + x2 + "','" + x3 + "','refresh','0','" + x6 + "',null,'" + x8 + "','" + x9 + "','" + x10 + "','" + x11 + "','" + x12 + "')", xtrmdl); } else if (((x4 == 'pause') || (x4 == 'stop')) && (xw.xtoid != null)) { xw.clearTimeout(xtoid[x1]); } }
function xtf4(x1, x2, x3, x4) { if (((xtclzone == 0) || (xtclzone == 3) || (x1 != 'C')) && (x1 != 'P')) { var xt_img = new Image(); var xt22 = new Date(); xt_im = xt7 + '.xiti.com/hit.xiti?' + xt8b + x2 + '&hl=' + xt22.getHours() + 'x' + xt22.getMinutes() + 'x' + xt22.getSeconds() + (xtfirst ? '&idclient=' + xt40 : ''); if (parseFloat(xtg.appVersion) >= 4) { try { xt_im += '&r=' + xts.width + 'x' + xts.height + 'x' + xts.pixelDepth + 'x' + xts.colorDepth; } catch (e) { } } xt_img.src = xt_im; xt_img.onload = function() { xt_img.onload = null; }; } if ((x3 != null) && (x3 != xtud) && (x1 != 'M')) { if ((x4 == '') || (x4 == null)) { xd.location = x3 } else { xfen = window.open(x3, 'xfen', ''); xfen.focus(); } } else { return; } }
function f_nb(a) { a = a - Math.floor(a / 100) * 100; if (a < 10) { return '0' + a; } else { return a; } }
var xtidpg = f_nb(xt21.getHours()) + '' + f_nb(xt21.getMinutes()) + '' + f_nb(xt21.getSeconds()) + '' + xt_rd(7), xt23 = 0, xt16 = '', xt43 = 0;
function xt_addProduct(rg, pdt, qtt, unp, dsc, dscc) { xt23++; xt16 += '&pdt' + xt23 + '='; xt16 += rg ? rg + '::' : ''; xt16 += pdt ? pdt : ''; xt16 += qtt ? '&qte' + xt23 + '=' + qtt : ''; xt16 += unp ? '&mt' + xt23 + '=' + unp : ''; xt16 += dsc ? '&dsc' + xt23 + '=' + dsc : ''; xt16 += dscc ? '&pcode' + xt23 + '=' + dscc : ''; }
function xt_rd(nb) { return Math.floor(Math.random() * Math.pow(10, nb)); }
function xt_addProduct_v2(rg, pdt, qtt, unp, unpht, dsc, dscht, dscc, roimtp) { xt23++; xt16 += '&pdt' + xt23 + '='; xt16 += rg ? rg + '::' : ''; xt16 += pdt ? pdt : ''; xt16 += qtt ? '&qte' + xt23 + '=' + qtt : ''; xt16 += unp ? '&mt' + xt23 + '=' + unp : ''; xt16 += unpht ? '&mtht' + xt23 + '=' + unpht : ''; xt16 += dsc ? '&dsc' + xt23 + '=' + dsc : ''; xt16 += dscht ? '&dscht' + xt23 + '=' + dscht : ''; xt16 += roimtp ? '&roimt' + xt23 + '=' + roimtp : ''; xt16 += dscc ? '&pcode' + xt23 + '=' + dscc : ''; }
function xt_addProduct_load(rg, pdt, xv) { if (pdt) { xt43++; xt44 += (xt43 == 1) ? '&pdtl=' : '|'; xt44 += rg ? rg + '::' : ''; xt44 += pdt; xt44 += xv ? ';' + xv : ''; } } if (typeof (xt_cart) == 'function') { xt_cart(); } else { xt16 = ''; }
function xt_ParseUrl(hit, xtch, xtrefP, thit) { var tabUrl = new Array; if (xtch.length > 0) { var xtlg = 1600 - xtrefP.length, i = 0, j = 0, xtch_prec = '', xterr = 0; while ((xtch.length > xtlg) && (xtch_prec != xtch) && (xterr == 0)) { xtch_prec = xtch; var xsep = '&pdt'; if (xtch.lastIndexOf(xsep, xtlg) <= 0) { if (xtch.lastIndexOf('&', xtlg) <= 0) { xterr = 1 } else { xsep = '&'; } } if (xterr == 1) { tabUrl[i] = xtch.substring(0, 1600) + '&mherr=1'; } else { tabUrl[i] = xtch.substring(0, xtch.lastIndexOf(xsep, xtlg)); xtch = xtch.substring(xtch.lastIndexOf(xsep, xtlg), xtch.length); i++; xtlg = 1600; } } if (xterr == 0) { tabUrl[i] = xtch; if (xt38 != '') { var stc = '&stc='; if ((stc.length + xt38.length + xtch.length) < xtlg) { tabUrl[i] += (stc + xt38); } else { i++; xt38 = stc + xt38; while ((xt38.length > xtlg) && (xtch_prec != xt38)) { xtch_prec = xt38; var xsep = ','; if (xt38.lastIndexOf(xsep, xtlg) <= 5) { xterr = 1; } if (xterr == 1) { tabUrl[i] = xt38.substring(0, 1600) + '&mherr=1'; } else { tabUrl[i] = xt38.substring(0, xt38.lastIndexOf(xsep, xtlg)); xt38 = stc + xt38.substring(xt38.lastIndexOf(xsep, xtlg), xt38.length); i++; xtlg = 1600; } } if (xterr == 0) { tabUrl[i] = xt38; } } } } for (j = 0; j <= i; j++) { if (i > 0) { tabUrl[j] += '&mh=' + (j + 1) + '-' + (i + 1) + '-' + xtidpg; } if (j > 0) { tabUrl[j] = ((xt15 != '') || (xt17 != '')) ? xt8b + '&cmd=' + xt15 + '&idcart=' + xt17 + tabUrl[j] : xt8b + tabUrl[j]; } else { tabUrl[j] += xtrefP; } if ((thit == '') || (thit == null)) { xd.write('<img width="1" height="1" src="' + hit + tabUrl[j] + '">'); } else if (thit == '1') { var xt_img = new Image(); xt_img.src = hit + tabUrl[j]; xt_img.onload = function() { xt_img.onload = null; }; } } } }
function xt_ParseUrl3(str1, str2, nt, ntg, name, sep, idp) { if (idp) { } else { idp = xtidpg.substring(0, 6) + xt_rd(8) } var xt_imgc = new Image(), lim = 1500, mh = '&mh=' + nt + '-' + ntg + '-' + idp; if (str2.length > lim) { var reg = new RegExp('[' + sep + ']', 'gi'), tab = str2.split(reg), hit = '', l = tab[0].length, i = 0; while ((l < lim) && (i < tab.length)) { hit += tab[i] + sep; if (i < tab.length - 1) l += (tab[i + 1].length) + 1; i += 1 } ntg = (ntg == 1) ? Math.ceil(str2.length / lim) : ntg; mh = '&mh=' + nt + '-' + ntg + '-' + idp; if (hit != '') { xt_imgc.src = str1 + '&idp=' + idp + mh + hit; xt_imgc.onload = function() { xt_imgc.onload = null } } else { xt_imgc.src = str1 + '&idp=' + idp + mh + str2.substring(0, lim) + '&mherr=1'; xt_imgc.onload = function() { xt_imgc.onload = null }; return } str2 = name; for (var j = i; j < tab.length; j++) { str2 += tab[j] + ((j == (tab.length - 1)) ? '' : sep) } xt_ParseUrl3(str1, str2, nt + 1, ntg, name, sep, idp) } else if (str2.length > name.length) { xt_imgc.src = (nt == 1) ? str1 + '&idp=' + idp + str2 : str1 + '&idp=' + idp + mh + str2; xt_imgc.onload = function() { xt_imgc.onload = null } } }
function xtestr(str, expr, pos) { var xtid = null; try { xtid = str.match(expr)[pos - 1]; } catch (e) { xtid = null } return xtid; }
function xtLhit() { if ((!xtpre && xtone) || (!xd.webkitHidden && xtone)) { xt_ParseUrl(Xt_id, Xt_param + (xtfirst ? '&idclient=' + xt40 : ''), '&ref=' + Xt_r.replace(/&/g, '$'), xt46); if (xt44 != '') { xt_ParseUrl3(Xt_id + xt8b + '&p=' + xtp + (xtfirst ? '&idclient=' + xt40 : '') + (xw.xt_pageID ? '&pid=' + xw.xt_pageID + '&pchap=' + (xw.xt_chap || '') + '&pidt=' + (xw.xt_pageDate || '') : '') + '&type=PDT' + xthl, xt44, 1, 1, '&pdtl=', '|') } if (xtati.length > 1500) { xt_ParseUrl3(Xt_id + xt8b + '&p=' + xtp + '&s2=' + xw.xtn2 + '&type=AT' + (xtfirst ? '&idclient=' + xt40 : ''), '&ati=' + xtati.replace(/&/g, '%26'), 1, 1, '&ati=', ',') } (function() { if (typeof (xtscript) != 'undefined') { var at = document.createElement('script'); at.type = 'text/javascript'; at.async = true; at.src = xtscript; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0] || document.getElementsByTagName('script')[0].parentNode).insertBefore(at, null) } })(); xtone = false } }
if ((xt8 != 0) || (xt36 != 0) || (xt11)) {
    if (xt48 != '') { var xtvid = xtf1('xtvid'); if (!xtvid) { xtvid = xt21.getTime() + '' + xt_rd(6); xt49 = xtvid; } var xtexp = new Date(); xtexp.setMinutes(xtexp.getMinutes() + 30); wck('xtvid', xtvid, xtexp, '', 1); } var xtpm = 'xtor' + xt8, xtpmd = 'xtdate' + xt8, xtpmc = 'xtocl' + xt8, xtpan = 'xtan' + xt8, xtpat = 'xtat' + xt8, xtpant = 'xtant' + xt8, xt24 = xtf3('xtor'), xtdtgo = xtf3('xtdt'), xt25 = xtf3('xtref'), xt26 = xtf3('xtan'), xt55 = xtf3('xtat'), xt27 = xtf3('an', xtm), xt56 = xtf3('at', xtm), xt28 = xtf3('ac', xtm), xtocl = (xtf1(xtpmc) != null) ? xtf1(xtpmc) : '$', xtord = (xtf1('xtgo') == '0') ? xtf1('xtord') : null, xtgord = (xtf1('xtgo') != null) ? xtf1('xtgo') : '0', xtvrn = (xtf1('xtvrn') != null) ? xtf1('xtvrn') : '$', xtgmt = xt21.getTime() / 60000, xtgo = (xtdtgo != null) ? (((xtgmt - xtdtgo) < 30) && (xtgmt - xtdtgo) >= 0) ? '2' : '1' : xtgord, xtpgt = (xtgord == '1') ? '&pgt=' + xtf1('xtord') : ((xtgo == '1') && (xt24 != null)) ? '&pgt=' + xt24 : '', xto = (xt10 != null) ? xt10 : ((xt24 != null) && (xtgo == '0')) ? xt24 : (!xt11) ? xtord : null;
    xto = ((xtocl.indexOf('$' + xto + '$') < 0) || (xtocl == '$')) ? xto : null; var xtock = (xtgo == '0') ? xto : (xtgord == '2') ? xtf1('xtord') : (xtgo == '2') ? xt24 : null; if (xtock != null) { tmpxto = xtock.substring(0, xtock.indexOf('-')); var xtdrm = xt4[tmpxto]; } else { xtdrm = '1'; } if ((xtdrm == null) || (xtdrm == xtud)) { xtdrm = xt4['ad']; } if ((xt26 == null) && (!xt11)) { xt26 = xtf1('xtanrd'); } if ((xt55 == null) && (!xt11)) { xt55 = xtf1('xtatrd'); } var xtanc = xtf1(xtpan), xtattc = xtf1(xtpat), xtanct = xtf1(xtpant), xtxp = new Date(), xt29 = new Date(), xt30 = new Date();
    if (!xt11) { xtxp.setTime(xtxp.getTime() + (xtdrm * 24 * 3600 * 1000)); } else { xtxp.setTime(xtxp.getTime() + (xt5 * 1000)); } xt30.setTime(xt30.getTime() + 1800000); xt29.setTime(xt29.getTime() + (xt3 * 24 * 3600 * 1000)); var xt31 = (xt26 != null) ? xt26.indexOf('-') : 0, xt57 = (xt55 != null) ? xt55.indexOf('-') : 0, xtan2 = (xt27 != null) ? '' : ((xt26 != null) && (xt31 > 0)) ? '&ac=' + xt26.substring(0, xt31) + '&ant=0&an=' + xt26.substring(xt31 + 1, xt26.length) : (xtanc != null) ? '&anc=' + xtanc + '&anct=' + xtanct : '', xtat2 = (xt56 != null) ? '' : ((xt55 != null) && (xt57 > 0)) ? '&ac=' + xt55.substring(0, xt57) + '&ant=0&at=' + xt55.substring(xt57 + 1, xt55.length) : (xtattc != null) ? '&attc=' + xtattc + '&anct=' + xtanct : '', xt32 = (xtvrn.indexOf('$' + xt8 + '$') < 0) ? '&vrn=1' : '', xt35 = ((xtf3('xtatc') != null) && (xtf3('atc', xtm) == null)) ? '&atc=' + xtf3('xtatc') : '';
    if (xt32 != '') { wck('xtvrn', xtvrn + xt8 + '$', xt29, xt1, 0); } xt32 += (xto == null) ? '' : '&xto=' + xto; xt32 += ((xtan2 != '') ? xtan2 : xtat2) + xtpgt + xt35; if (xt27 != null) { wck(xtpan, xt28 + '-' + xt27, xt29, xt1, 1); wck(xtpant, '1', xt29, xt1, 1); } else if ((xt26 != null) && (xtanct != '1')) { wck(xtpan, xt26, xt29, xt1, 1); wck(xtpant, '0', xt29, xt1, 1); } if (xt56 != null) { wck(xtpat, xt28 + '-' + xt56, xt29, xt1, 1); wck(xtpant, '1', xt29, xt1, 1); } else if ((xt55 != null) && (xtanct != '1')) { wck(xtpat, xt55, xt29, xt1, 1); wck(xtpant, '0', xt29, xt1, 1); }
    var xtor = xtf1(xtpm), xtor_duree = xtf1(xtpmd), xtdate2 = (xtor_duree != null) ? new Date(xtor_duree) : new Date(), xt34 = xtdate2.getTime() / (1000 * 3600), xtecart = (Math.floor(xt22 - xt34) >= 0) ? Math.floor(xt22 - xt34) : 0; xt32 += (xtor == null) ? '' : '&xtor=' + xtor + '&roinbh=' + xtecart; var xt33 = '', Xt_r = (xt25 != null) ? xt25.replace(/[<>]/g, '') : xtf1('xtref'); if (Xt_r == null) { Xt_r = xt20.replace(/[<>]/g, ''); } if (Xt_r != null) Xt_r = Xt_r.substring(0, 1000); if (!xt11) {
        if ((xtock != null) && ((xtocl.indexOf('$' + escape(xtock) + '$') < 0) || (xtocl == '$'))) { wck(xtpmc, xtocl + xtock + '$', xt30, xt1, 1); } xt33 += xtg.javaEnabled() ? '&jv=1' : '&jv=0'; var xtnav = xtg.appName + ' ' + xtg.appVersion, xtIE = (xtnav.indexOf('MSIE')); if (xtIE >= 0) { var xtvers = parseInt(xtnav.substr(xtIE + 5)); xtIE = true; } else { xtvers = parseFloat(xtg.appVersion); xtIE = false; } var xtnet = (xtnav.indexOf('Netscape') >= 0), xtmac = (xtnav.indexOf('Mac') >= 0), xtOP = (xtg.userAgent.indexOf('Opera') >= 0); if ((xtIE) && (xtvers >= 5) && (!xtmac) && (!xtOP) && (!xt11)) { try { xd.body.addBehavior('#default#clientCaps'); } catch (e) { } var xtconn = '&cn=' + xd.body.connectionType; xtconn += '&ul=' + xd.body.UserLanguage; try { xd.body.addBehavior('#default#homePage'); } catch (e) { } var xthome = ''; try { xthome = (xd.body.isHomePage(location.href)) ? '&hm=1' : '&hm=0'; } catch (e) { }; var xtresr = '&re=' + xd.body.offsetWidth + 'x' + xd.body.offsetHeight; } else { var xtconn = '', xthome = ''; if (xtvers >= 5) { xtresr = '&re=' + xw.innerWidth + 'x' + xw.innerHeight; } else { xtresr = '' } }
        if ((xtnet) && (xtvers >= 4) || (xtOP)) { var xtlang = '&lng=' + xtg.language; } else { if ((xtIE) && (xtvers >= 4) && (!xtOP)) { var xtlang = '&lng=' + xtg.userLanguage; } else { xtlang = ''; } } wck('xtord', '', xt21, xt1, 1); if (xtock != null) { if ((xtor == null) || (xt2 == '1')) { wck(xtpm, xtock, xtxp, xt1, 1); wck(xtpmd, xt21, xtxp, xt1, 1); } } var xthl = '&hl=' + xt21.getHours() + 'x' + xt21.getMinutes() + 'x' + xt21.getSeconds(), xt45 = (xtdocl) ? '&docl=' + encodeURIComponent(xt6.location.href.replace(/&/g, '#ec#')) : '', Xt_param = xt8b + xt9 + '&p=' + xtp + xthl + xtdi + xt12 + xt13 + xt32 + xt45 + xt47 + xtm + xtconn + xthome + xtlang + '&vtag=' + xtv + '&idp=' + xtidpg; var xtvalCZ = xtf1('xtvalCZ', 1); if (xtvalCZ != null) { Xt_param += xtvalCZ; var xtdateo = new Date(); xtdateo.setTime(xtdateo.getTime() - 3600000); wck('xtvalCZ', xtvalCZ, xtdateo, xt1, 1); } var Xt_id = xt7 + '.xiti.com/hit.xiti?'; if (xtvers >= 4) { try { xt33 += '&r=' + xts.width + 'x' + xts.height + 'x' + xts.pixelDepth + 'x' + xts.colorDepth; } catch (e) { } }
        var xtide = xtf1('xtide'); if (xtock != null) { switch (tmpxto.toLowerCase()) { case 'erec': case 'epr': case 'es': var xtmpide = xtestr(xtock, /(\[[^\]]*\])|([^\-]+)/g, 6); if (xtmpide != null) { xtide = xtmpide; wck('xtide', xtide, xt29, '', 1); } break; default: break; } } Xt_param += xt33 + xtresr + xt16 + ((xtide != null) ? '&ide=' + xtide : ''); var Xt_i = Xt_id + Xt_param + '&ref=' + Xt_r.replace(/&/g, '$'); if (xt49) { Xt_param += '&lnk=' + xt48 + '&vid=' + xt49; } var xtati = xtf3('ati', Xt_param, 1) || ''; if (xtati.length > 1500) { Xt_param = Xt_param.replace('&ati=' + xtati, '') } var xtpre = false, xtone = true; if (xd.webkitVisibilityState == "prerender") { xtpre = true; xd.addEventListener("webkitvisibilitychange", xtLhit, false) } else { xtLhit() } 
    } else { wck('xtgo', xtgo, xtxp, xt1, 1); if (xt24 != null) { wck('xtord', xt24, xtxp, xt1, 1); } if (xt26 != null) { wck('xtanrd', xt26, xtxp, xt1, 1); } if (xt55 != null) { wck('xtatrd', xt55, xtxp, xt1, 1); } if (Xt_r != '') { wck('xtref', Xt_r.replace(/&/g, '$'), xtxp, xt1, 0); } if (xw.xtloc != null) { xt6.location = xw.xtloc; } } 
}
if ((xtclzone > 0) && (typeof (xtNodesload) == 'function')) { if (!xt58) { xtNodesload(); } else if (xw.addEventListener) { xw.addEventListener('load', xtNodesload, false); } else if (xw.attachEvent) { xw.attachEvent('onload', xtNodesload); } }
