
var hide = false;
var counter = 0;
var cntr = 0;
var lcnpn = 0;
var reload_cntr = 0;
var justopened;
var _debug;
var _cln_requested = false;
var bProto = false;
//var __mon_img = document.cln_mon_img;
var __mon_img = new Image;
//__mon_img = _mon_img;
//var _img_1px = new Image;
//_img_1px.src = 'http://s11.livechatnow.com/js/1px.gif';
//var _img_1px = new Image;
//_img_1px.src = 'http://s11.livechatnow.com/js/3px.gif';

var LCN_FS_v = new Object();


var __arr_debug_img = new Array();
var __debug_count = 0;
var _lcn_arr_le = Array();
_lcn_arr_le.counter1 = 0;
_lcn_arr_le.counter2 = 0;
_lcn_arr_le.counter = 0;
//var le_id;
//var le_rules;
//var le_jsrules;
//var le_id2;
var _lcn_le_r = new Array();


var _lcn_all = new Array();
_lcn_all.goUrl = null;

/*
function _cln_debug(x)
{
 var url = 'http://s11.livechatnow.com/js/debug.php?data=' + escape(x);
 alert(x);
 __debug_count++;
 __arr_debug_img[__debug_count] = new Image;
 __arr_debug_img[__debug_count].src = url;
}
*/

function _cln_custom_1()
{
 _cln_debug(' _cln_custom_1()');
}

function _cln_custom_2()
{
 _cln_debug(' _cln_custom_2()');
}

function _cln_custom_3()
{
 _cln_debug(' _cln_custom_3()');
}

function _cln_live_engage()
{
 _cln_debug(' _cln_live_engage()');
}
function _lcn_decodeUrl(url){
  var arr = Array();
  arr.q = Array();
  if(url == null) return arr;
  if(url == "") return arr;
  var i1 = url.indexOf("://");
  if(i1 == -1) return arr;
  var i2 = url.indexOf("/", i1 + 3);
  if(i2 == -1){
      arr.domain = url.substring(i1 + 3);
  }else{
      arr.domain = url.substring(i1 + 3, i2);
  }
  var i3 = url.indexOf('?');
  if(i3 == -1) return arr;
  arr.queryString = url.substring(i3 + 1);
  var aq = arr.queryString.split("&");
  for(var i = 0; i < aq.length; i++){
    var aq2 = aq[i].split("=");
    var name = _lcn_utf8_decode (unescape(aq2[0].replace(/\+/g,' ')));
    var value = _lcn_utf8_decode (unescape(aq2[1].replace(/\+/g,' ')));
    arr.q[name] = value;
  }
  return arr;
}
function _lcn_utf8_decode (x) {
 var string = "";
 var i = 0;
 var c = c1 = c2 = 0;
 while ( i < x.length ) {
  c = x.charCodeAt(i);
  if (c < 128) {
   string += String.fromCharCode(c);
   i++;
  }
  else if((c > 191) && (c < 224)) {
   c2 = x.charCodeAt(i+1);
   string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
   i += 2;
  }
  else {
   c2 = x.charCodeAt(i+1);
   c3 = x.charCodeAt(i+2);
   string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
   i += 3;
  }
 }
 return string;
}
function _lcn_checkKeyword(x1, x2){
  if(!x1) return false;
  var arr = x2.split(" ");
  var b = true;
  for(var i = 0; i < arr.length; i++){
    if(arr[i] == "") continue;
    if(x1.indexOf(arr[i]) == -1) b = false;
  }
  return b;
}
function _lcn_checkRules(x){
  var arr1 = x.split(';');
  var arr_refer = _lcn_decodeUrl(document.referrer);
  for(var i = 0; i < arr1.length; i++){
    var arr2 = arr1[i].split(":");
    if(arr2[0] == 'pagenum'){
      if(arr2[1] != lcnpn) return false;
    }
    if(arr2[0] == 'domain'){
      var arr3 = arr2[1].split(',');
      var b = true;
      for(var i1 = 0; i1 < arr3.length; i1++){
        if(arr_refer.domain == arr3[i1]) b = false;
      }
      if(b) return false;
    }
    if(arr2[0] == 'keyword'){
      var arr3 = arr2[1].split(',');
      var keyword = arr_refer.q.q;
      var b = true;
      for(var i1 = 0; i1 < arr3.length; i1++){
        if(_lcn_checkKeyword(keyword,arr3[i1])) b = false;
      }
      if(b) return false;
    }
  }
  return true;
}
function _lcn_checkRules2(x){
  //alert("_lcn_checkRules2 " + x.pagenum + " D " + x.domain + " K " + x.keyword);
  //var arr1 = x.split(';');
  var arr_refer = _lcn_decodeUrl(document.referrer);
    //var arr2 = arr1[i].split(":");
    if(x.pagenum){
      if(x.pagenum == lcnpn) return true;
      return false;
    }
    if(x.domain){
      for(var i1 = 0; i1 < x.domain.length; i1++){
        if(arr_refer.domain == x.domain[i1]) return true;
      }
      return false;
    }
    if(x.keyword){
      var keyword = arr_refer.q.q;
      for(var i1 = 0; i1 < x.keyword.length; i1++){
        if(_lcn_checkKeyword(keyword,x.keyword[i1])) return true;
      }
      return false;
    }
  return true;
}
function _lcn__lcn_arr_le_push(x){
  _lcn_arr_le.counter1++;
  _lcn_arr_le[_lcn_arr_le.counter1] = x;
}
function _lcn__lcn_arr_le_pop(){
 if(_lcn_arr_le.counter2 >= _lcn_arr_le.counter1) return;
  _lcn_arr_le.counter2++;
  return _lcn_arr_le[_lcn_arr_le.counter2];
}
function _lcn__lcn_arr_le2_pop(){
 if(_lcn_arr_le.counter >= _lcn_le_r.length) return;
  return _lcn_le_r[_lcn_arr_le.counter++];
}
function _lcn_live_engage(id, rules, jsrules)
{
 //le_id = id;
 //le_rules = rules;
 //le_jsrules = jsrules;
 //le_id2 = id;
 var arr = Array();
 arr.id = id;
 arr.rules = rules;
 arr.jsrules = jsrules;
 _lcn__lcn_arr_le_push(arr);
}
function _cln_live_engage_Proto()
{
 _cln_debug(' _cln_live_engage_Proto()');
}
var arr_lcn_mouse_handler = new Array();
var _lcn_mouse_handler_counter = 0;
function addMouseHandler(x)
{
 arr_lcn_mouse_handler[_lcn_mouse_handler_counter++] = x;
}
function allMouseHandlers(e)
{
 for(i = 0; i < arr_lcn_mouse_handler.length; i++)
 {
  arr_lcn_mouse_handler[i](e);
 }
}
function _cln_setProto(x)
{
 bProto = x;
 if(x)
 {
  _cln_live_engage_Proto();
 }
 else
 {
  _lcn_caption_close_Proto();
 }
}
function _lcn_live_engage_init()
{
 _cln_debug(' _cln_live_engage_init()');
}
function _lcn_live_engage_init_Proto()
{
 _cln_debug(' _cln_live_engage_init_Proto()');
}
var _lcn_obj_le = new Object();
_lcn_obj_le.bMouseDowm = false;
function _lcn_caption_down(e)
{
_lcn_obj_le.bMouseDowm = true;
_lcn_obj_le.x = e.clientX;
_lcn_obj_le.y = e.clientY;
}
function _lcn_caption_up(e)
{
 _lcn_obj_le.bMouseDowm = false;
}
function _lcn_caption_close()
{
 var obj = document.getElementById('lcn_le');
 obj.style.display = "none";
}

function _lcn_style_add(x,a)
{
 _x = x.replace(/(\d*)(\w*)/,'\1');
 _x = x.replace(/(px|pt)/,'');
	_x *= 1;
 px = x.replace(/(\d*)(\w*)/,'\2');
	if(_x == x)
	{
	 return x + a;
	}
	else
	{
	 return ((_x + a) );
	}
}


function _lcn_mouse(e)
{
 if(document.all)
	{
	 x = event.clientX;
	 y = event.clientY;
	}
	else
	{
	 x = e.clientX;
	 y = e.clientY;
	}
 if(_lcn_obj_le.bMouseDowm == true)
	{
	 deltaX = (x - _lcn_obj_le.x);
	 deltaY = (y - _lcn_obj_le.y);
		var obj = document.getElementById('lcn_le');
		obj.style.left = _lcn_style_add(obj.style.left, deltaX)
		obj.style.top = _lcn_style_add(obj.style.top, deltaY)
  _lcn_obj_le.x = x;
  _lcn_obj_le.y = y;
	}
}

function _lcn_live_engage_init()
{

addMouseHandler(_lcn_mouse);
document.onmousemove = allMouseHandlers;

document.write("<div id=\"lcn_le\" style=\"display: none; z-index: 100; position: absolute; left: 100px; top: 100px; width: 200px;  height: 27px; background: url(http://s11.livechatnow.com/leimg/silver/caption.gif);\"><div id=\"lcn_le_caption_\" style=\"z-index: 102; position: absolute; width: 100%; height: 27px;\" onMouseDown=\"_lcn_caption_down(event);\" onMouseUp=\"_lcn_caption_up(event);\">&nbsp;</div><div id=\"lcn_le_caption_\" style=\"z-index: 103; position: absolute; right: 4px; top: 4px; cursor: pointer;\" onclick=\"_lcn_caption_close();\"><img src=\"http://s11.livechatnow.com/leimg/silver/close.gif\" border=0></div><div id=\"lcn_le_caption_\" style=\"z-index: 101;\"><table width=\"100%\" height=21 border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td>&nbsp;&nbsp;&nbsp;<b>LiveChatNow</b></td></tr></table></div><div id=\"lcn_le_body\" style=\"z-index: 101; background-color: #FFFFFF; border-top: 1px solid #9E9FB5; border-left: 2px solid #9E9FB5; border-right: 2px solid #9E9FB5;\"><a href=\"#\" onclick=\"_cln_enter_le(); return false;\">\n<img src=\"http://s11.livechatnow.com/leimg/le.jpg\" width=189 height=195 border=0>\n</a></div><div id=\"lcn_le_body_\" style=\"z-index: 101; height: 14px; background: url(http://s11.livechatnow.com/leimg/silver/bottom.gif); border-top: 1px solid #9E9FB5;\">&nbsp;</div></div>");


}

function _cln_live_engage()
{
 var obj = document.getElementById('lcn_le');
 obj.style.display = "block";
}


// window.open('http://s11.livechatnow.com/js/chatjs.php?track=' + _cln_track() + '&cid=20500&op=&name=&email=&dir=&skin=joy&flag_os=&survey=&survey_lm=&survey_ec=&ip=&group=General&url=&uid=&q=&refer=','_chat_20500','status=yes,toolbar=no,resizable=yes,menubar=no,scrollbars=yes,width=500,height=350');

var _lcn_obj_le_Proto = new Object();
_lcn_obj_le_Proto.bMouseDowm = false;
function _lcn_caption_down_Proto(e)
{
_lcn_obj_le_Proto.bMouseDowm = true;
_lcn_obj_le_Proto.x = e.clientX;
_lcn_obj_le_Proto.y = e.clientY;
}
function _lcn_caption_up_Proto(e)
{
 _lcn_obj_le_Proto.bMouseDowm = false;
}
function _lcn_caption_close_Proto()
{
 var obj = document.getElementById('lcn_le_Proto');
 obj.style.display = "none";
 difr = document.getElementById('lcn_le_body_Proto');
 difr.innerHTML = "";
}

function _lcn_style_add_Proto(x,a)
{
 _x = x.replace(/(\d*)(\w*)/,'\1');
 _x = x.replace(/(px|pt)/,'');
	_x *= 1;
 px = x.replace(/(\d*)(\w*)/,'\2');
	if(_x == x)
	{
	 return x + a;
	}
	else
	{
	 return ((_x + a) );
	}
}


function _lcn_mouse_Proto(e)
{
 if(document.all)
	{
	 x = event.clientX;
	 y = event.clientY;
	}
	else
	{
	 x = e.clientX;
	 y = e.clientY;
	}
 if(_lcn_obj_le_Proto.bMouseDowm == true)
	{
	 deltaX = (x - _lcn_obj_le_Proto.x);
	 deltaY = (y - _lcn_obj_le_Proto.y);
		var obj = document.getElementById('lcn_le_Proto');
		obj.style.left = _lcn_style_add(obj.style.left, deltaX)
		obj.style.top = _lcn_style_add(obj.style.top, deltaY)
  _lcn_obj_le_Proto.x = x;
  _lcn_obj_le_Proto.y = y;
	}
}

function _lcn_live_engage_init_Proto()
{

addMouseHandler(_lcn_mouse_Proto);
document.onmousemove = allMouseHandlers;

document.write("<div id=\"lcn_le_Proto\" style=\"display: none; z-index: 100; position: absolute; left: 300px; top: 150px; width: 350px;  height: 27px; background: url(http://s11.livechatnow.com/leimg/silver/caption.gif);\"><div id=\"lcn_le_caption__Proto\" style=\"z-index: 102; position: absolute; width: 100%; height: 27px;\" onMouseDown=\"_lcn_caption_down_Proto(event);\" onMouseUp=\"_lcn_caption_up_Proto(event);\">&nbsp;</div><div id=\"lcn_le_caption__Proto\" style=\"z-index: 103; position: absolute; right: 4px; top: 4px; cursor: pointer;\" onclick=\"_lcn_caption_close_Proto();\"><img src=\"http://s11.livechatnow.com/leimg/silver/close.gif\" border=0></div><div id=\"lcn_le_caption__Proto\" style=\"z-index: 101;\"><table width=\"100%\" height=21 border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td>&nbsp;&nbsp;&nbsp;<b>LiveChatNow ProtoChat</b></td></tr></table></div><div id=\"lcn_le_body_Proto\" style=\"z-index: 101; background-color: #FFFFFF; border-top: 1px solid #9E9FB5; border-left: 2px solid #9E9FB5; border-right: 2px solid #9E9FB5;\"></div><div id=\"lcn_le_body__Proto\" style=\"z-index: 101; height: 14px; background: url(http://s11.livechatnow.com/leimg/silver/bottom.gif); border-top: 1px solid #9E9FB5;\">&nbsp;</div></div>");


}

function _cln_live_engage_Proto()
{
 difr = document.getElementById('lcn_le_body_Proto');
 difr.innerHTML = "<iframe id=lcn_le_iframe_Proto style='width: 345px; height: 190px;' src='http://s11.livechatnow.com/js/protojs.php?cid=20500&dir=&skin=joy&flag_os=&survey=&survey_lm=&survey_ec=&group=General&track=" + escape(_cln_track()) + "&track_cube=" + escape(_cln_get_cookie('lcnone')) + " width=345 height=190 scrolling='no' frameborder='1'></iframe>";
 var obj = document.getElementById('lcn_le_Proto');
 obj.style.display = "block";
}












var sHD = "0123456789ABCDEF";
function dechex(x) {
 var r = sHD.substr(x & 15, 1);
 while(x > 15) {
  x >>= 4;
  r = sHD.substr(x & 15, 1) + r;
 }
 return r;
}
function hexdec(x) {
 return parseInt(x,16);
}
function dechexl(x, l) {
 x = dechex(x);
 var i;
 for(i = x.length; i < l; i++){
  x = "0" + x;
 }
 return x;
}

function u16_u8(x)
{
 var utf8 = '';
 if(x < 0x7f)
 {
  utf8 += "%" + dechexl(x, 2);
 }
 else if(x > 0x7ff)
 {
  utf8 += "%" + dechexl(0xE0 | (x >> 12), 2);
  utf8 += "%" + dechexl(0x80 | ((x >> 6) & 0x3F), 2);
  utf8 += "%" + dechexl(0x80 | (x & 0x3f), 2);
 }
 else
 {
  utf8 += "%" + dechexl(0xC0 | (x >> 6), 2);
  utf8 += "%" + dechexl(0x80 | (x & 0x3F), 2);
 }
 return utf8;
}

function _escape(x)
{
 x = escape(x);
 var res = '';
 var i = 0;
 var j = 0;
 for(; ; i++)
 {
  i += j; j = 0;
  if(i >= x.length) break;
  var c = x.substr(i,1);
  if(c == '%' && i + 5 < x.length)
  {
   var c2 = x.substr(i + 1,1);
   if(c2 == 'u')
   {
    var s = x.substr(i + 2,4);
    j = 5;
    res += u16_u8(hexdec(s));
    continue;
   }
  }


  if(c == '%' && i + 2 < x.length)
  {
   var c2 = x.substr(i + 1,1);
   if(c2 != 'u')
   {
    var s = x.substr(i + 1,2);
    i += 2;
    res += u16_u8(hexdec(s));
    continue;
   }
  }


  if(c == '+')
  {
   res += '%2B';
  }
  else
  {
   res += c;
  }
 }
 return res;
}




















function _cln_debug(x)
{
 return;
}

function _cln_get_cookie(x)
{ if(document.cookie == '') { return false;  }
else {var firstChar, lastChar;  var _cookie = document.cookie;
firstChar = _cookie.indexOf(x);
var NN2Hack = firstChar + x.length;
if((firstChar != -1) && (_cookie.charAt(NN2Hack) == '='))
{ firstChar += x.length + 1;lastChar = _cookie.indexOf(';', firstChar);
if(lastChar == -1) lastChar = _cookie.length;
//_cln_debug("Cookie: " + x + " " + unescape(_cookie.substring(firstChar, lastChar)));
return unescape(_cookie.substring(firstChar, lastChar));
} else { return false; }}}

function _checknew()
{
 _cln_debug("_checknew() " + __mon_img.complete + " # " + __mon_img.width + ' ' + justopened);
 if(__mon_img.complete)
 {
  _cln_debug('URL _cln_requested = false;');
  __cln_requested = _cln_requested;
  _cln_requested = false;
  if(__cln_requested)
   return __mon_img.width;
  else
  {
   //if(__mon_img.width < 10)
   // return __mon_img.width;
   //else
    return 1;
  }
 }
 return 0;
}

function _cln_track()
{
 var cookie = _cln_get_cookie('clncom')
 if(!cookie)
 {
  //alert("COOKIES_START: " + document.cookie);
  var _newcookie = escape(Math.random().toString().substr(2)+(new Date()).getTime());
  var newcookie = "clncom=" + _newcookie;
  var _oldcookie = _cln_get_cookie('lcnone');
  var lcnonepn = _cln_get_cookie('lcnonepn');
  if(!lcnonepn) lcnonepn = 1; else lcnonepn++;
  //alert("OC2: " + _oldcookie);
  var expdate = new Date ();
  //alert("DATE1: " + expdate.toGMTString());
  expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000 * 365 * 10));
  //alert("DATE2: " + expdate.toGMTString());
  // // date("D, d m Y H:i:s",time() + 473040000)." GMT"
  if(_oldcookie == '')
  {
   oldcookie = "lcnone=" + escape(_newcookie) + "; expires=" + expdate.toGMTString();
  }
  else
  {
   oldcookie = "lcnone=" + escape(_oldcookie) + "; expires=" + expdate.toGMTString();
  }
  //alert("OC: " + oldcookie);
  document.cookie = newcookie + "; path=/";
  document.cookie = oldcookie + "; path=/";
  document.cookie = "lcnonepn=" + escape(lcnonepn) + "; expires=" + expdate.toGMTString() + "; path=/";
  //alert("COOKIES_END: " + document.cookie);
  return _cln_get_cookie('clncom');
 }
 if(window._cln_track_code)
 {
  _cln_track_code = cookie;
 }
 return cookie;
}

function _cln_chat()
{
 window.open('http://s11.livechatnow.com/js/chatjs.php?track=' + _cln_track() + '&cid=20500&op=&name=&email=&dir=&skin=joy&flag_os=&survey=&survey_lm=&survey_ec=&ip=&group=General&url=&uid=&q=&refer=','_chat_20500','status=yes,toolbar=no,resizable=yes,menubar=no,scrollbars=yes,width=500,height=350');
 return false;
}

function _cln_enterchat()
{
 window.open('http://s11.livechatnow.com/js/enterchat.php?track=' + _cln_track() + '&cid=20500&op=&name=&email=&dir=&skin=joy&flag_os=&survey=&survey_lm=&survey_ec=&ip=&group=General&url=&uid=&q=&refer=','_chat_20500','status=yes,toolbar=nos,resizable=yes,menubar=no,scrollbars=yes,width=500,height=350');
 return false;
}

function _open_livechatnow(track, onlinechat)
{
 window.open('http://s11.livechatnow.com/js/enter.php?url=&refer=&name=&email=&dir=&skin=joy&flag_os=&survey=&survey_lm=&survey_ec=&user=&uid=&sid=&cid=20500&op=&ip=&group=General&q=&track='+track + '&onlinechat=' + (onlinechat ? "1" : "0"),'_chat_20500','status=yes,toolbar=no,resizable=yes, menubar=no, scrollbars=yes, width=500, height=350');
 return false;
}
function _cln_enter()
{
 return _open_livechatnow(_cln_track());
}
function _cln_enter_le()
{
 return _open_livechatnow(_cln_track(), true);
}
function _cln_reload(x, arr)
{
 if(!arr) arr = Array();
 if(_cln_get_cookie('clnaction') == 'hide')
 {
  hide = true;
 }
 var _track = _cln_track();
 var _track_cube = _cln_get_cookie('lcnone');
 if(cntr == 0)
 {
  lcnpn = _cln_get_cookie('lcncompn');
  lcnpn++;
  document.cookie = 'lcncompn=' + lcnpn + '; path=/';
  _lcn_live_engage_init();
  _lcn_live_engage_init_Proto();
 }
 if(x > 0)
 {
  if(hide)
  {
   document.write("<img src='http://s11.livechatnow.com/img/img.php?id=20500&img=&t=" + (new Date()).getTime() + "' border=0><br>");
  }
  else
  {
   if(x == 1)
   {
    s_func = '_open_livechatnow("' + _track + '");';
   }
   else if(x == 2)
   {
    s_func = '_cln_chat();';
   }
   else if(x == 3)
   {
    s_func = '_cln_enterchat();';
   }

  document.write("<a href='http://www.livechatnow.com/' onclick='" + s_func + " return false;';><img src='http://s11.livechatnow.com/img/img.php?id=20500&img=&t=" + (new Date()).getTime() + "' border=0></a><br>");
  }
 }
 var i = 0;
 i = _checknew();
  _cln_debug("### " + " counter: " + counter + " track: " + _track + " i: <b>" + i + "</b> realod_cntr: " + reload_cntr);
 if((_track != "") && (counter == 0 || reload_cntr > 15))
 {
  if(cntr == 0)
  {
   _file = 'imgjsmo_mon0';
  }
  else
  {
   _file = 'imgjs_mon';
  }
 add_query = '';
 if(arr['sss']){
  add_query += "&sss=1";
 }
  if(_lcn_all.goUrl == null) _lcn_all.goUrl = document.location;
  var url = 'http://s11.livechatnow.com/js/' + _file + '.php?track=' + escape(_track) + '&track_cube=' + escape(_track_cube) + add_query + '&cid=20500&ip=&url='  + _escape(_lcn_all.goUrl) + '&refer='  + _escape(document.referrer) + '&group=General&uid=&name=&email=&sid=&agent=CCBot%2F1.0+%28%2Bhttp%3A%2F%2Fwww.commoncrawl.org%2Fbot.html%29&le=&proto=' + (bProto ? '1' : '0') + '&cntr=' + cntr + '&time=' + escape((new Date()).getTime()) + '&rand=' + Math.round(Math.random() * 100);
  _lcn_all.goUrl = null;
  var arr_le;
  while(arr_le = _lcn__lcn_arr_le_pop()){
    if(!arr_le) break;
    if(!arr_le.jsrules || _lcn_checkRules(arr_le.jsrules)){
     url += "&le_id=" + arr_le.id;
     url += "&le_rules=" + arr_le.rules;
     _lcn_arr_le.selected = arr_le;
     _lcn_arr_le.counter2 = _lcn_arr_le.counter1;
     break;
    }
  }
  while(arr_le = _lcn__lcn_arr_le2_pop()){
    if(!arr_le) break;
    if(_lcn_checkRules2(arr_le)){
      //alert("LE Hit " + arr_le.le);
     url += "&le_id=" + arr_le.le;
     // if(arr_le.rules)
     url += "&le_rules=" + arr_le.rules;
     _lcn_arr_le.selected = arr_le;
     _lcn_arr_le.counter = _lcn_le_r.length;
     break;
    }
  }


  _cln_debug("<i><font color=#0000FF>"+url+"</font></i>");
  //document.write(url);
  if(!hide)
  {
   _cln_debug('URL _cln_requested = true;');
   _cln_requested = true;
   __mon_img.src = url;
  }
  reload_cntr = 0;
 }
 // Debug
 counter++;
 cntr++;
 counter %= 10 * 1;
 var s;
 if(i == 3)
 {
  if(!justopened)
  {
   _cln_chat();
   justopened = true;
  }
 }
 else  if(i == 4)
 {
  //if(!justopened)
  {
   _cln_live_engage();
  }
 }
 else  if(i == 5)
 {
  //if(!justopened)
  {
   _cln_setProto(true);
   //_cln_live_engage_Proto();
  }
 }
 else  if(i == 6)
 {
  _cln_setProto(false);
 }
 else  if(i == 7)
 {
  _cln_live_engage_pro();
 }
 else  if(i == 8)
 {
  _cln_live_engage_pro8();
 }
 else  if(i >= 10)
 {
  eval("_cln_custom_" + (i - 9) + "();");
 }
 else
 {
  justopened = false;
 }
 var k = 1;
 if(cntr > 300)
 {
  k = 5;
 }

 if(cntr == 1)
 {
  if(opener)
  {
   //document.onactivate = opener.FS_activate_v;
   //document.ondeactivate = opener.FS_deactivate_v;
  }
  else
  {
  }
 }

 if(cntr < 600 && !hide && x >= 0)
 {
  if(i == 0 || i == null)
  {
   counter = 1;
   reload_cntr++;
   setTimeout("_cln_reload(0)", 1000 * k);
  }
  else
  {
   if(i > 1)
   {
    counter = 0;
   }
   //_cln_debug('setTimeout ' + i + ' ' + (1000 * k));
   setTimeout("_cln_reload(0)", 1000 * k);
  }
 }
}


function _cln_live_engage_pro(){
  if (!document.createElement) {return true};
  var _track = _cln_track();
  var _track_cube = _cln_get_cookie('lcnone');
  var url = 'http://s11.livechatnow.com/js/le_js.php?track=' + escape(_track) + '&track_cube=' + escape(_track_cube) + add_query + '&cid=20500&ip=&url='  + _escape(document.location) + '&refer='  + _escape(document.referrer) + '&group=General&uid=&name=&email=&sid=&agent=CCBot%2F1.0+%28%2Bhttp%3A%2F%2Fwww.commoncrawl.org%2Fbot.html%29&le=&proto=' + (bProto ? '1' : '0') + '&cntr=' + cntr + '&time=' + escape((new Date()).getTime()) + '&rand=' + Math.round(Math.random() * 100);
  if(_lcn_arr_le.selected.le){
  url += "&le_id=" + _lcn_arr_le.selected.le;
  if(_lcn_arr_le.selected.rules) url += "&le_rules=" + _lcn_arr_le.selected.rules;
  }else{
  url += "&le_id=" + _lcn_arr_le.selected.id;
  url += "&le_rules=" + _lcn_arr_le.selected.rules;
  }
  var tagScript = document.createElement('script');
  tagScript.type = 'text/javascript';
  tagScript.src = url;
  document.body.appendChild(tagScript);
}

function _cln_live_engage_pro8(){
  if (!document.createElement) {return true};
  var _track = _cln_track();
  var _track_cube = _cln_get_cookie('lcnone');
  var url = 'http://s11.livechatnow.com/js/le_js.php?track=' + escape(_track) + '&track_cube=' + escape(_track_cube) + add_query + '&cid=20500&ip=&url='  + _escape(document.location) + '&refer='  + _escape(document.referrer) + '&group=General&uid=&name=&email=&sid=&agent=CCBot%2F1.0+%28%2Bhttp%3A%2F%2Fwww.commoncrawl.org%2Fbot.html%29&le=&proto=' + (bProto ? '1' : '0') + '&cntr=' + cntr + '&time=' + escape((new Date()).getTime()) + '&rand=' + Math.round(Math.random() * 100);
  url += "&le_id=read";
  var tagScript = document.createElement('script');
  tagScript.type = 'text/javascript';
  tagScript.src = url;
  document.body.appendChild(tagScript);
}

function _cln_start(){
 _cln_reload(0);
}
function _cln_start2(x){
 _cln_reload(x);
}
function _lcn_go(x){
  _lcn_all.goUrl = x;
  cntr = 0;
  counter = 0;
}

