// JavaScript Document

// code for auto complete control for Search Box on header.
// parses ysearch-flat file to diaplay list of matched recipes on Auto complete control
var myServer = "/ysearch-flat.php";
var mySchema = ["\n"];
var myDataSource = new YAHOO.widget.DS_XHR(myServer,mySchema);
myDataSource.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;

// Instantiate AutoComplete
var myAutoComp = new YAHOO.widget.AutoComplete('search-txt','rcpsearchcontainer', myDataSource);
myAutoComp.prehighlightClassName = "ac-prehighlight";
myAutoComp.highlightClassName = "ac-highlight";
// end of auto complete control for search box in header.

