var evt,_imgpath="/",_borderColor="#a0a0a0",_borderTick="9",_bgColor="RGBA(240, 240, 240,0.7)",_chatBgColor="RGBA(230, 230, 230,0.8)",_textColor="#202020",_posX=0,_posY=0,_posAlign="right",_titolo="Live Chat",_site=document.domain,_offlineHref="",_offlineWindow="",CHAT=CHAT||function(){return{Site:function(a){_site=a},borderColor:function(a){_borderColor=a},borderTick:function(a){_borderTick=a},bgColor:function(a){_bgColor=a},chatBgColor:function(a){_chatBgColor=a},textColor:function(a){_textColor= a},posX:function(a){_posX=a},posY:function(a){_posY=a},posAlign:function(a){_posAlign=a},title:function(a){_titolo=a},imgPath:function(a){_imgpath=a},offlineHref:function(a){_offlineHref=a},offlineWindow:function(a){_offlineWindow=a},init:function(){start()}}}(); function start(){document.write("
");document.write(""); var a=String.fromCharCode(34);evt=0==_offlineWindow.length?"onclick='location.href="+a+_offlineHref+a+"' style='cursor:pointer'":"onclick='window.open("+a+_offlineHref+a+","+a+"cht"+a+","+a+_offlineWindow+a+")' style='cursor:pointer'";;checkOnline()}var isIE8=window.XDomainRequest?!0:!1,req=createCrossDomainRequest(),urlcht="//chat.floranet.it/Utente/oponline.asp";function createCrossDomainRequest(){return isIE8?new window.XDomainRequest:new XMLHttpRequest} function checkOnline(){rnd=Math.floor(1E3*Math.random());isIE8?(req.onload=outputResult,req.ontimeout=restart,req.onerror=restart,req.open("GET",urlcht+"?"+rnd,!0)):(req.open("GET",urlcht+"?"+rnd,!0),req.onreadystatechange=handler);req.send();param=""}function handler(a){4==req.readyState&&outputResult()}var cache;function outputResult(){var a=req.responseText;cache!=a&&(a=a.replace(/IPTH/g,_imgpath),a=a.replace("EVT",evt),cache=document.getElementById("statochat").innerHTML=a);restart()} function restart(){window.setTimeout(checkOnline,6E4)}function aprichat(a,b){u="//chat.floranet.it/chatnome.asp?loc="+location.href+"&chatbgcolor="+_chatBgColor+"&textcolor="+_textColor+"&bordercolor="+_borderColor+"&sito="+_site+"&titolo="+_titolo+"&path="+_imgpath+"&op="+a+"&avatar="+b;u=u.replace(/#/g,"^");document.getElementById("chatpopup").style.display="block";document.getElementById("chatframe").src=u} function chiudichat(){document.getElementById("chatpopup").style.display="none";document.getElementById("chatframe").src="chatnome.asp"}function listener(a){"chiudi"==a.data&&chiudichat()}window.addEventListener?addEventListener("message",listener,!1):attachEvent("onmessage",listener);window.onload=addListeners;function addListeners(){document.getElementById("chatpopup").addEventListener("mousedown",mouseDown,!1);window.addEventListener("mouseup",mouseUp,!1)} function mouseUp(){window.removeEventListener("mousemove",divMove,!0)}function mouseDown(a){window.addEventListener("mousemove",divMove,!0)}function divMove(a){var b=document.getElementById("chatpopup");b.style.position="absolute";b.style.top=a.clientY+"px";b.style.left=a.clientX+"px"};