// HANDLES ALL THE FSCOMMAND MESSAGES FROM A FLASH MOVIE
function navbar_DoFSCommand(command, args) {
   // THIS WILL BE ACTIVATED BY BUTTON # ON THE NAVBAR
 	if ( command == "04" ) {
		if ( args == "click" ) { openWindow('http://www.shoreshdavid.org/chat/chat.asp?chatchannel=General&chattitle=Messianic+General+Chat',500, 400); }
		if ( args == "over") { }
		if ( args == "out" ) { }
	}

 	if ( command == "4" ) {
		if ( args == "click" ) { openWindow('http://www.shoreshdavid.org/pages.asp?pageid=11929',500, 450); }
		if ( args == "over") { }
		if ( args == "out" ) { }

	}}

function openWindow(file,w,h)  { 
   newWindow = window.open( 
   file, 
   'newWin', 
   'top=100,left=50,width='+w+',height='+h+',resizable=yes,toolbar=no,location=no,scrollbars=no') 
}

// HANDLES FSCOMMAND CALL 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 navbar_FSCommand(ByVal command, ByVal args)\n');
document.write('  call navbar_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT\> \n');

}
