
 
/*YAHOO.example.ACJSArray = new function() { 
	    // Instantiate first JS Array DataSource 
		this.oACDS = new  Array();
		 for( var i in autoArray)
		{
		  if(!(this.oACDS[autoArray[i]['list']]))
			{ 
			  this.oACDS[autoArray[i]['list']] = new YAHOO.widget.DS_JSArray(autoArray[i]['list']); 
			}
//		   this.oACDS = new YAHOO.widget.DS_JSArray(autoArray[i]['list']); 
		 // Instantiate first AutoComplete 
		
			if(document.getElementById(autoArray[i]['suggestion']))
			{    
			oAutoComp='oAutoComp'+i;
		this.oAutoComp = new YAHOO.widget.AutoComplete(autoArray[i]['suggestion'],autoArray[i]['autocontainer'], 
					this.oACDS[autoArray[i]['list']] ); 
				this.oAutoComp.prehighlightClassName = "yui-ac-prehighlight"; 
				        this.oAutoComp.queryDelay = 0.2;
					this.oAutoComp.minQueryLength =1; 
					this.oAutoComp.useShadow = true;
				this.oAutoComp.delimChar = ","; 
				
				this.oAutoComp.textboxFocusEvent.subscribe(function(){
					var sInputValue = YAHOO.util.Dom.get(autoArray[i]['suggestion']).value;
					if(sInputValue.length === 0) {
						var oSelf = this;
						setTimeout(function(){oSelf.sendQuery(sInputValue);},0);
					}
				});
				
				
			}
	
	
		}
};*/



