// webchat_footer.js
// -----------------------------------------------------------------------------
// Get the address of the Chat Server, then include the code that reports the
// page hit to the Chat Server
//
// Project    > dmClubNewYear08:C37
// Copyright  > (C) Digital Mail Limited (2005-2008)
// Author     > RAK for DML
// -----------------------------------------------------------------------------

if (typeof dmx_webchat == 'object') {
	// We already know the address of the Chat Server (probably from calling get_chat_statis.php?res_type=json)
	var dmx_chatserver = dmx_webchat.chatserver;
} else {
	// Asl get_chat_server.php for the address of the Chat Server
	document.write('<script language="javascript" src="/dmx/core/webchat/php/get_chat_server.php" type="text/javascript"></scr'); document.writeln('ipt>');
} 
document.write('<script language="javascript" src="/dmx/core/webchat/js/webchat_report_hit.js" type="text/javascript"></scr'); document.writeln('ipt>');
