function concatObject(obj) { str=''; for(prop in obj) str+=prop + " value :"+ obj[prop]+"\n"; return(str); } ajax={getHTTPObject:function(){var A=false;if(typeof ActiveXObject!="undefined"){try{A=new ActiveXObject("Msxml2.XMLHTTP")}catch(C){try{A=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){A=false}}}else{if(window.XMLHttpRequest){try{A=new XMLHttpRequest()}catch(C){A=false}}}return A},load:function(url,callback,error,format){var http=this.init();if(!http||!url){return }if(http.overrideMimeType){http.overrideMimeType("text/xml")}if(!format){var format="text"}format=format.toLowerCase();var now="uid="+new Date().getTime();url+=(url.indexOf("?")+1)?"&":"?";url+=now; http.open("GET",url,true);http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){var result="";if(http.responseText){result=http.responseText}if(format.charAt(0)=="j"){result=result.replace(/[\n\r]/g,"");result=eval("("+result+")")}if(callback){callback(result)}}else{if(error){error(http.status)}}}};http.send(null)},init:function(){return this.getHTTPObject()}} var Cookies = { aliases: {}, alias: function(alias, name, defaultValue) { Cookies.aliases[alias] = name; Cookies[alias] = function(value, days) { if(value == null) return Cookies.get(name, defaultValue); else Cookies.set(name, value, days); } }, set: function(name, value, days) { name = Cookies.aliases[name] || name; var expires = ''; if(!isNaN(days)) { var date = new Date(); date.setTime(date.getTime() + days * 1000 * 60 * 60 * 1000); expires = "; expires=" + date.toGMTString(); } document.cookie = name + "=" + escape(value) + expires + "; path="; }, get: function(name, defaultValue) { name = Cookies.aliases[name] || name; var regex = new RegExp(name + "s*=s*(.*?)(;|$)"); var cookies = document.cookie.toString(); var match = cookies.match(regex); if(match) return unescape(match[1]); return defaultValue; }, erase: function(name) { Cookies.set(name, '', -1); } } var Live = new Object(); var Lvar = new Object(); Lvar.ip = '38.107.191.82'; Lvar.browser = 'CCBot/1.0 (+http://www.commoncrawl.org/bot.html)'; Lvar.tim = 1283524157; Lvar.width = screen.width; Lvar.height = screen.height; Lvar.referer = ''; var cp = window.location.href; cp = cp.replace('http://','').replace('www.',''); if (cp.substring(cp.length-1,cp.length) == '/') cp = cp.substring(0,cp.length-1); var tab = cp.split('?'); cp = tab[0]; var tab = cp.split('/'); tab[0] = ''; var hp = tab.join('/'); Lvar.currentPage = cp; Lvar.historyPage = hp; var q = ''; for(prop in Lvar) q+= '&' + prop + '=' + escape(Lvar[prop]); Live.addPic = function(url) { try { if (document.getElementById('__alive') != null) { document.getElementById('chat').removeChild(document.getElementById('__alive')); } if (document.getElementById('__alive') == null) { var i = document.createElement('img'); i.setAttribute('border',0); i.setAttribute('src', url); i.setAttribute('id','__alive'); document.getElementById('chat').appendChild(i); //var t = document.createTextNode(Cookies.get('_alive' , '0.0.0')); //document.getElementById('chat').appendChild(t); } } catch(e) {} } Live.endpageview = function() { Lvar.cookie = Cookies.get('_alive' , '0.0.0'); // previus_session_id . timp . id Live.addPic('http://www.adamsvision.ro/live/counter.png?act=endpageview&_live_domain=&_live_days=1000&' + q + '&cookies=' + Lvar.cookie); } window.onload = function(e) { Cookies.set('_alive','2b6aa27d9c964ca18f9dae4d358a83a0' ,1000); Lvar.cookie = Cookies.get('_alive' , '0.0.0'); Live.addPic('http://www.adamsvision.ro/live/counter.png?act=start&_live_domain=&_live_days=1000&' + q + '&cookies=' + Lvar.cookie); } window.onbeforeunload = function(evt) { Live.endpageview(); }