<% '/// Check if there's people online onlinestatus=isonline() img="offline.gif" if onlinestatus=true then img="online.gif" if request("getstatus")<>"" then response.redirect "files/"&img call nocache() '/// user settings referer=request.servervariables("http_referer") ip=request.ServerVariables("REMOTE_ADDR") d=request("d") u=request("u") bypass=request("bypass") paramstart=instr(referer,"?") '/// Clear Variables if onlinestatus<>true then application.Contents.Remove("xlaALSproactive") '/// Get Full URL ? if getfullurl="" and paramstart>0 then referer=left(referer,paramstart-1) if instr(request.servervariables("HTTP_USER_AGENT"),"MSIE")=0 then style="visibility:hidden" else style="display:none" img="" if onlinestatus then img=img & "" img=replace(img,"/","\/") theurl=applicationurl&"UserPreChat.asp?ref=" & server.urlencode(referer) if d<>"" then theurl=theurl & "&d="&d&"&bypass="&bypass if u<>"" then theurl=theurl & "&u="&u response.ContentType="application/x-javascript" response.buffer=true response.flush %> function xlaALSprecheck(){ if ((document.body && typeof(document.body.innerHTML)) != 'undefined'){ xlaALSrequest(); } else { alert('Sorry, but your browser does not support several features of this system.'); } } function xlaALSrequest(){ var w = 640, h = 480; if (document.all || document.layers) { w = screen.availWidth; h = screen.availHeight; } var leftPos = (w-<%=width%>)/2, topPos = (h-<%=height%>)/2; xlaALSwindow=window.open("<%=theurl%>","ALSRoom","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=<%=width%>,height=<%=height%>,top=" + topPos + ",left=" + leftPos); xlaALSwindow.focus(); } function xlaALScheckstatus(){ var nt=String(Math.random()).substr(2,10); document.getElementById("xlaALSstatusimg").src='<%=applicationurl%>als.asp?getstatus=1&nt=' + nt; setTimeout("xlaALScheckstatus();", 10000); } document.write("<%=img%>"); xlaALScheckstatus();