<!--

function popUpChat() {

day = new Date();

id = day.getTime();

sURL = '/jchat/call-guest.php';

eval("page" + id + " = window.open(sURL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=200,height=50,left = 412,top = 359');");

}

function popUpClickToCall() {

day = new Date();

id = day.getTime();

sURL = '/gslib/managetw/callback.php';

eval("page" + id + " = window.open(sURL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=250,left = 262,top = 259');");

}
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function fscommand_DoFSCommand(command, args) {
	var fscommandObj = InternetExplorer ? fscommand : document.fscommand;
	if(command == "chat") {
		popUpChat();
	} else if(command == "call") {
		popUpClickToCall();
	} 
}

// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub fscommand_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call fscommand_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}
//-->