// no rules here actually
var customLS = new function()
{
var re,lo,intv,reA,reImg,loA,loImg
this.start = function(id)
{
	re = document.getElementById(id),
	loA = document.getElementById('livechat'),
	loImg = loA.firstChild
	intv = setInterval(chk1, 10)
}
var chk1 = function()
{
	if(re.firstChild)
	{
		clearInterval(intv)
		intv = setInterval(chk2, 60000);
		reA = re.firstChild
		reImg = reA.firstChild
		chk2()
	}
}
var chk2 = function()
{
	loA.href = reA.href
	loA.onclick = reA.onclick
	loImg.src = (reImg.src.indexOf('online')>0) ?'imgs/livechat-on.gif': 'imgs/livechat-off.gif'
}
}
