
		
		function acload()
		{
			var myDataSource = new YAHOO.widget.DS_JSArray(arrSites); 
		  	// Match results of query strings that are *subsets* of the current query string 
	    	// Increase the cache size
			// search now only needs to match first three chars
    	 	myDataSource.queryMatchContains = false;
		 	var myAutoComp = new YAHOO.widget.AutoComplete("drpSelect","myContainer", myDataSource);    
    		// Require user to type at least 3 characters before triggering a query
    		myAutoComp.minQueryLength = 1;
    		myAutoComp.maxResultsDisplayed = 30
			myAutoComp.autoHighlight = true;  
			myAutoComp.typeAhead = true;
			// Container animation will take 2 seconds to complete 
			myAutoComp.animSpeed = 0.01; 
			myAutoComp.itemSelectEvent.subscribe(itemSelectHandler); 
		}
		
	    var itemSelectHandler = function(sType, aArgs) {  
			siteSelected=true;
			doSite(document.getElementById('drpSelect').value);
		}
		
		function oc(a)
		{
		  var o = {};
		  for(var i=0;i<a.length;i++)
		  {
		    o[a[i]]='';
		  }
		  return o;
		}
	
		addLoadEvent(acload);
		

