
//::::::::::::::::::::::::: chatBox functions ::::::::::::::::::::::::::::::::
chatBoxWidth = 157;
chatBox=document.getElementById("chatBoxLayer")

function chatBoxUp(txt,evt) {

	chatBox.innerHTML='<table width="'+chatBoxWidth+'" height="250" border="0" cellpadding="0" cellspacing="0"> <tr><td valign="bottom"><TABLE WIDTH='+chatBoxWidth+' BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><IMG SRC="images/chatbox_01.png" ></TD></TR><TR><TD background="images/chatbox_02.png"><p align="center">'+txt+'</p></TD></TR><TR><TD><IMG SRC="images/chatbox_04.png" ></TD></TR></TABLE></td></tr></table>'; 
	chatBox.style.visibility="visible"; 
	if (document.all) { 
		chatBox.style.left=Math.min(evt.x-74+20,window.innerWidth-chatBoxWidth); 
		chatBox.style.top=evt.y-280;
	} else {
		chatBox.style.left=Math.min(evt.pageX-74+20,window.innerWidth-chatBoxWidth)+'px'; 
		chatBox.style.top=evt.pageY-280+'px';
	}

}

function chatBoxDown() {chatBox.style.visibility="hidden"}
