(function(){$('.autocomplete').each(function(){var rel=$(this).attr('rel');if(typeof(rel)!='undefined'){var options=eval('('+rel+')');if(typeof(options)!='undefined'&&typeof(options.acurl)!='undefined'){var acurl=options.acurl;}}
$(this).autocomplete(acurl,{minChars:2,delay:400,cacheLength:10,matchSubset:true,matchCase:false,matchContains:true,mustMatch:false,selectFirst:false,extraParams:{},multiple:(typeof(options)!='undefined'&&typeof(options.acmultiple)!='undefined')?options.acmultiple:true,multipleSeparator:', ',autofill:true,max:20,scroll:true,scrollHeight:180});});})()