
var
	openTable = 0;
	
function doDropDown( tabNum, mode )
{
	var
		theTD = "TableNum" + tabNum;

	if( openTable != 0 )
	{
		theCmd2 = "TableNum" + openTable + ".className='rowHide'";
		eval(theCmd2);
	}
		
		if( mode == 1 )
		{
			theCmd = theTD + ".className='rowShow'";
			//theFlash.style.visibility = 'hidden';
			//theFlash.className='rowHide2';
			eval( theCmd );
			
		}
	openTable = tabNum;
}


/*
var state = 0;

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

// Handle all the FSCommand messages in a Flash movie.
function ui_cdi_DoFSCommand(command, args) {
	alert("x");
	var ui_cdiObj = isInternetExplorer ? document.all.ui_cdi : document.ui_cdi;
	if (command == "setState"){
		state = args;
	}
	if (command == "uiInitiate"){
		doDropDown(args, state);
		window.document.messaging_cdi.SetVariable("viaFlash", state);
	}
}

// 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 ui_cdi_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call ui_cdi_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}

function messaging_cdi_DoFSCommand(command, args) {
	var messaging_cdiObj = isInternetExplorer ? document.all.messaging_cdi : document.messaging_cdi;
	if (command == "uiCommence"){
		closeDropDowns();
		state = 0;
		window.document.messaging_cdi.SetVariable("viaFlash", state);
	}
}

// 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 messaging_cdi_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call messaging_cdi_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}
*/

function closeDropDowns( )
{
	var i, theTD;
	
	for( i = 2; i <= 6; i++ )
	{
			theTD = "TableNum" + i;
			theCmd = theTD + ".className='rowHide'";
			eval( theCmd );
	}
}

var win= null;
function popUp(mypage,myname,w,h,scroll){ 
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+1+',';
      settings +='left='+1+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=no';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}



