1var esblx=new Object(); 2esblx.jax=false; 3esblx.mid=new Date(); 4esblx.xmsgimg; 5esblx.xs=false; 6esblx.ol=false; 7esblx.sn=true; 8esblx.ivop=false; 9esblx.ivwin; 10esblx.ivwinp=150; 11esblx.ivwinc=100; 12esblx.tout=15000; 13esblx.ct=0; 14esblx.dom=null; 15esblx.mac = (navigator.platform) && (navigator.platform.toLowerCase().indexOf("mac") >= 0); 16 17function chatFixedClick() 18{ 19 startchat(1,true) 20} 21 22//function startchat(f){xcstartchat(f);} 23function startchat(f,ac){xcstartchat(f,ac);} 24function xcstartchat(f,autoclose){ 25 26 if(autoclose==null) 27 autoclose=false 28 29 if(autoclose==true && document.getElementById("chatfixedbox").style.display=="block") 30 { 31 document.getElementById("chatfixedbox").style.display="none" 32 document.getElementById("chatfixed").className="chatfixedChat" 33 return; 34 } 35 document.getElementById("chatfixed").className="chatfixedClose" 36 37 38 var str=bzsite+'inc/bizlivechat?svc='+svcname; 39 if(esblx.ol){ 40 if(f==1) 41 str+="&v=info"; 42 //str+="&v=msg"; 43 if(f==6) 44 str+="&v=invite"; 45 } 46 else 47 str=str+"&v=email"; 48 49 50 //window.open(str,'chatwin',bzwsize+',toolbar=no,menubar=no,directories=no,status,resizable=false'); 51 document.getElementById("chatfixedbox").innerHTML='<iframe frameborder="no" id="chatfixedFrame" src="'+str+'"></iframe>' 52 document.getElementById("chatfixedbox").style.display="block"; 53 //window.open(str,'chatwin'); 54} 55 56function xcsendData(msg,data,svc){ 57 58 var r = escape(document.referrer); 59 if(r==null) 60 r=""; 61 62 var xsrc=bzurl+"/bizlivestats/x.gif?sc=1&svc="+svc+"&ix="+esblx.mid+"&ref="+escape(r)+"&xmsg="+escape(msg)+":admin:"+escape(data); 63 if(esblx.jax==true) 64 { 65 var esbxmlhttp=null; 66 xsrc=xsrc+"&jax=true"; 67 xsrc=xsrc+"&dom="+escape(esblx.dom); 68 69 try 70 { 71 esbxmlhttp = new XMLHttpRequest(); 72 if (esbxmlhttp!=null && 'withCredentials' in new XMLHttpRequest()) { 73 /* supports cross-domain requests */ 74 esbxmlhttp.open("GET", xsrc, true); 75 esbxmlhttp.withCredentials = true; 76 } 77 else{ 78 esblx.jax=false; 79 } 80 } 81 catch(e) 82 { 83 } 84 85 86 if(esblx.jax) 87 { 88 esbxmlhttp.onreadystatechange = function() { 89 if (esbxmlhttp.readyState == 4 && esbxmlhttp.status == 200) { 90 xcsetStatus(esbxmlhttp.responseText,svcname); 91 } 92 } 93 94 esbxmlhttp.send(); 95 return; 96 } 97 } 98 99 100 if(esblx.xs==true && esblx.xmsgimg.complete!=true) 101 { 102 window.setTimeout('xcsendData("'+msg+'","'+data+'","'+svc+'")',250); 103 } 104 else 105 { 106 if(esblx.sn) 107 esblx.xmsgimg=new Image(); 108 else 109 esblx.xmsgimg=document.xsend; 110 111 esblx.xmsgimg.src=xsrc; 112 esblx.xs=true; 113 esblx.mid++; 114 window.setTimeout('statusCheck("'+svc+'")',100); 115 } 116} 117 118function sendcart(c){ 119 xcsendData("CART",c,svcname);} 120 121function statusCheck(svc){ 122 if(esblx.xs==true) 123 { 124 if(esblx.xmsgimg.complete) 125 {esblx.xs=false; 126 xcsetStatus(esblx.xmsgimg.width,svc); 127 } 128 else 129 window.setTimeout('statusCheck("'+svc+'")',100); 130 } 131} 132 133function chwidth() 134{window.setTimeout('chwidth();',10000);} 135 136function xchb(svc){ 137 xcsendData("H"," ",svc); 138 esblx.ct=esblx.ct+1; 139 if(esblx.ct==5) 140 esblx.tout=30000; 141 142 window.setTimeout('xchb("'+svc+'")',esblx.tout);} 143 144function xcinit(svc){ 145 146 147 try 148 { 149 if ('withCredentials' in new XMLHttpRequest()) 150 esblx.jax=true; 151 } 152 catch(e) 153 { 154 } 155 156 if(esblx.jax==false) 157 { 158 if(esblx.mac) 159 esblx.sn=false; 160 161 if(esblx.sn) 162 esblx.xmsgimg=new Image(); 163 else 164 { 165 document.writeln("<div style='visibility:hidden'><img src='/i/t/w/rnddot.gif' name='xsend'></div>"); 166 esblx.xmsgimg=document.xsend; 167 } 168 } 169 170 var pid=location.href; 171 if(pid.indexOf(":")) 172 pid=pid.substring(7); 173 174 175 176 var did=location.href; 177 var didp=did.indexOf("/",9); 178 did=did.substring(0,didp); 179 esblx.dom=did; 180 181 dt=new Date(); 182 esblx.mid=dt.getTime(); 183 xcsendData("P",pid,svc); 184 185 window.setTimeout('xchb("'+svc+'")',esblx.tout); 186} 187 188 189function xcinitchat() 190{ 191 esblx.ivop=true 192 193 if(document.getElementById) 194 { 195 196 //var str=bzsite+'inc/bizlivechat?svc=invitepop'; 197 //document.getElementById("chatfixedbox").innerHTML='<iframe frameborder="no" id="chatfixedFrame" src="'+str+'"></iframe>' 198 //document.getElementById("chatfixedbox").style.display="block"; 199 //window.open(str,'chatwin'); 200 201 202 var wind=document.getElementById("invite2"); 203 if(wind) 204 { 205 pdiv(wind); 206 wind.style.visibility="visible"; 207 esblx.ivwin=wind; 208 window.setTimeout("ivwinm();",20); 209 } 210 211 } 212 else 213 { 214 xcstartchat(); 215 } 216} 217 218function openchat() 219{ 220 xcstartchat(); 221 closeinvite(); 222} 223 224function ivwinm() 225{ 226 if(esblx.ivwinc==1) 227 esblx.ivwinc=-100; 228 if(esblx.ivwinc==-1) 229 esblx.ivwinc=100; 230 231 if(esblx.ivwinc>0) 232 { 233 esblx.ivwinp=esblx.ivwinp+1 234 esblx.ivwinc=esblx.ivwinc-1; 235 } 236 else 237 { 238 esblx.ivwinp=esblx.ivwinp-1 239 esblx.ivwinc=esblx.ivwinc+1; 240 } 241 esblx.ivwin.style.left=esblx.ivwinp; 242 if(esblx.ivop) 243 window.setTimeout("ivwinm();",25); 244} 245 246function closeinvite() 247{ 248 if(document.getElementById) 249 { 250 var wind=document.getElementById("invite2"); 251 wind.style.visibility="hidden"; 252 } 253 else 254 document.all.invite.style.visibility="hidden"; 255 esblx.ivop=false; 256} 257 258 259 260function xcsetStatus(c,svc){ 261 var gr=false; 262 //xcinitchat(6); 263 if(c==4 || c==5 || c==6) 264 { 265 esblx.ol=true; 266 } 267 268 //alert(c) 269 //xcstartchat(6) 270 if(c==5) 271 xcinitchat(1); 272 else if(c==6) 273 xcinitchat(6); 274 275 276 if(typeof(esblchat) == "undefined") 277 return; 278 279 var cbuts=esblchat.split(";"); 280 for(xi=0;xi<cbuts.length;xi++) 281 { 282 var cbi=cbuts[xi]; 283 if(cbi.length>0) 284 { 285 var cbe=document.getElementById("blchat"+cbi); 286 287 if(cbe!=null && bzsrc!=null) 288 gr=true; 289 290 if(c==3) 291 { 292 esblx.ol=false; 293 if(gr) 294 cbe.src=bzsrc+'s0.'+bzext; 295 } 296 if(c==4 || c==5 || c==6) 297 { 298 if(gr) 299 cbe.src=bzsrc+'s1.'+bzext; 300 return; 301 } 302 if(gr) 303 cbe.src=bzsrc+'s0.'+bzext; 304 } 305 } 306} 307 308function xcsetStatus2(c,svc){ 309 var gr=false; 310 if(document.chatlink && bzsrc!=null) 311 gr=true; 312 313 if(c==3) 314 { 315 esblx.ol=false; 316 if(gr) 317 document.chatlink.src=bzsrc+'s0.'+bzext; 318 return; 319 } 320 if(c==4 || c==5 || c==6) 321 { 322 esblx.ol=true; 323 if(gr) 324 document.chatlink.src=bzsrc+'s1.'+bzext; 325 if(c==5) 326 xcinitchat(1); 327 if(c==6) 328 xcinitchat(6); 329 330 return; 331 } 332 if(gr) 333 document.chatlink.src=bzsrc+'s0.'+bzext; 334} 335 336xcinit(svcname);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.