  function addFilterTag(nBox,cBox){
 		var ftag = "", fundCatList = [10000,50000,100000,500000,1000000,25000000,50000000,100000000,500000000,1000000000];
 	    if( fundCat > 0 ){
 	    	var bmin = 0, bmax = 0;
 	    	if(fundCat == 1 ) { bmax =  fundCatList[fundCat-1];}
 	    	else if(fundCat >= fundCatList.length + 1) { bmin =  fundCatList[fundCat-2];} 
 	    	else {  bmin =  fundCatList[fundCat-2]; bmax =  fundCatList[fundCat-1];} 
 	    	ftag += "&bmin=" + bmin + "&bmax=" + bmax; 
 	    }			    		
 	   // if(agCat !='0'){ ftag += "&agency="+ agCat; } 	
 	   if(vfCat !='0'){ 
			ftag += "&vftype="+ vfType;
			ftag += "&vfilter="+ vfCat;
		}
		if(currentDept != '0'){ ftag += "&dept="+ currentDept; }
 	    if(nBox!=null){ftag += "&nbox="+ nBox; }
 	    if(cBox!=null){ftag += "&cbox="+ cBox; }	    
 	    return ftag;  
   } 
	function toTitleCase(string){
		var stringL = string.toLowerCase();
		var stringA = stringL.split(" ");
		for(var j=0; j<stringA.length; j++){
			stringA[j] = stringA[j].substring(0,1).toUpperCase() + stringA[j].substring(1,stringA[j].length);	
		}		
		var newString = stringA.join(" ");
		return newString;
	}
	// zoomto menu function
	  function zoomToLocation(){
			var goToPoint = new GLatLng(locationArray[zoomToLoc][1],locationArray[zoomToLoc][2]);
			map.setCenter(goToPoint, eval(locationArray[zoomToLoc][3]));  
	  }

	  function scaleType(level){
	    	var type = '';
	    	if(level <3){ type = '';}
	    	else if(level > CTLevel){ type = 'zip';}	
	    	else if(level <= cutLevel){ type = 'state';}	
	    	else { type = 'county';}	
	    	return type;
	  }	
	  
	// begin filter functions  
	  function markerFilter(){ updateMarkers(true); }     

	  

