function EUp(objTD) 
{
	//Make the calling Filter Button raised (unless disabled)
	if(objTD.className.search(/disabled/) > -1)
		return;
		
	var strClassName = "";
	if(objTD.className.search(/selected/) > -1)
		strClassName = "selected ";							
		strClassName += "filterButtonUp";
		objTD.className = strClassName;
}
function ENorm(objTD) 
{
	//Make the calling Filter Button normal (unless disabled)
	if(objTD.className.search(/disabled/) > -1)
		return;
		
	var strClassName = "";
	if(objTD.className.search(/selected/) > -1)
		strClassName = "selected ";						
		strClassName += "filterButton";
		objTD.className = strClassName;
}
function EDown(objTD) 
{
	//Make the calling Filter Button recessed (unless disabled)
	if(objTD.className.search(/disabled/) > -1) 
		return;
		
	var strClassName = "";
	if(objTD.className.search(/selected/) > -1)
		strClassName = "selected ";							
		strClassName += "filterButtonDown";
		objTD.className = strClassName;			  
}

function ShowSelectState(objTD, state) 
{
	if(objTD.className.search(/disabled/) > -1)
		return;
	var strClassName = "";
	if(state)
		strClassName = "selected ";						
	strClassName += "filterButton";
	objTD.className = strClassName;
	
}

function FilterClick(objTD, id) 
{
	if (bPageLoaded){
		//Perform Filter Button Filtering (unless disabled)
		if(objTD.className.search(/disabled/) > -1) return;
		
		ShowBits[id] = !ShowBits[id]; //Swap state in array of recorded states
		ShowSelectState(objTD,ShowBits[id]); //Indicate state on Filter Button
		
		document.VLVChart.showWaiting(true);
		document.VLVChart.filterType(TypeNames[id], !document.VLVChart.isFiltered(TypeNames[id]));
		document.VLVChart.showWaiting(false);
		
	}
}

function initFilterStates(){
	var i;
	for(i=0; i<arrTypeNames.length; i++)
	{
		objChart.filterType(arrTypeNames[i], !arrShowBits[i]);
	}
}

function NS4FilterClick(objTD, id) {
		if (!netscape4) return;
		FilterClick(objTD, id);
	}
//This array holds the values of the VLVF Property "EntityType" which must be on each end, to indicate
//which filter button it responds to.
var TypeNames = new Array(
    "Company",
    "Person",
    "WebSite"
    );
var ShowBits = new Array(
	true, 
	true, 
	true
	);

