  $(document).ready(function() {
   $(".instantInfo").tooltip({ effect: 'slide',position: 'bottom right',offset :[10, -80]});
   //$(".instantInfo").tooltip({ effect: 'slide',relative:'true' ,offset :[0, 0]});
   $(".instantHelp a[title]").tooltip();
  var originalList = ["About your bill","Acid phase digesters","AMP5","Annual report and results","Application forms","Applying for a meter","Area map","Assist tariff","Assistant scientist","Avonmouth sewage treatment works","Awards","BA2 7WW","Bath head office","Bath schemes","Bill payment","Billing","Bio Bug","Biogas","Blashford Lakes","Blocked drains","Board of directors","Bogus callers","Bournemouth scheme","Bridgwater scheme","Bristol sewage treatment works","Bristol tunnel scheme","Build over sewers and new connections","Bus timetable","Butts and water saving","BWBSL ","Calculate your water usage","Call you","Cancel an account or Direct Debit","Carbon management","Careers at Wessex Water","Chalk stream projects","Change account name and details","Change of address","Charges schemes","Chlorine in water","Clatworthy reservoir","Complaints and enquiries","Composters and water saving gardens","CON29DW Drainage and water search ","Connect to a standpipe","Connecting to a sewer or new water supply","Contact us","Current vacancies","Customer care","Customer leaflets","Customer magazine","Developer services","Devizes scheme","Direct Debit payment","Directors of Wessex Water","Dishwasher settings","Dishwashers and water saving","Drainage and water search CON29DW ","Drainage rebate","Drought plan","Durleigh reservoir","DWI undertakings","Email and contact us","Emergency contacts","Enquiries and complaints","Extra care ","Find a meter","Flooding","Flow rates and water pressure","Fluoride in water","Forms","GENeco","GENeco Bio Bug","GIS mapping","Graduate vacancies","Grants and awards","Grey water","Hardness of water","Hawkridge reservoir","Head office","Hippo save a flush","Hosepipe ban","Hosepipe usage","How to get a meter","How to pay","How to read a meter","Human resources recruitment","Ice pigging technology","Installing a meter","Job vacancies","Laboratory at Saltford","Latest jobs","Lead in water","Lead pipe replacement","Lead pipes","Leakage","Leaks","Leakstoppers ","Locating my meter","Locating your office","Loss of water supply","Low water pressure","Making a payment","Making a payment","Managing director Colin Skellett","Map of Wessex Water region","Maundown water treatment works","Meter option","Meter readings","Meter tariff trial","Meters","Moving home","My account","My bill","Nailsea billing and customer services centre","Name change","New account","New connection s","New customer","New home","New water supply","No water","Non return to sewer","Online billing and payment","Operations centre","Otterhead Lakes","Partners programme","Pay a bill","Pay your bill","Phone numbers ","Pollution","Pressure ","Price determination","Private sewers","Private water supply","Problems paying","Problems with drainage","Problems with supply","Publications and leaflets","Quality of water","Rateable value","Rates and charges","Rebate surface water drainage","Recreational activities","Regional map","Register with us","Report a leak","Report a problem","Reporting a leak","Reservoir levels","Reservoirs","Restart plus","Road closures","Saltford laboratory","Save a flush","Searches","Setting up a new account","Sewage","Sewer and drainage maps","Sewerage network","Share price","Special needs customers","Sprinklers","Striking the balance","Submit a meter reading","Surface water drainage","Sustainability","Sutton Bingham reservoir","Telephone numbers","Testing my water","The Wessex Water region","Tucking Mill ","Vacancies","Water and drainage search CON29DW","Water butts","Water calculator","Water charges","Water hardness","Water meters","Water pressure","Water quality","Water rates","Water resources","Water testing","Watermark award","WaterSure","WECS engineering and construction","Wessex Water region","WRMP water resource management plan","Y Saddle connection form"];
    $("#PageHeader1_TBsearchtext").autocomplete({delay:0, minLength:2, source: function(request, response) {
      
    var filteredArray = originalList;
    filteredArray = $.map(filteredArray, function(a) {
        if (a.toUpperCase().indexOf(request.term.toUpperCase())==0){
            return a;
        }else{
            return null;
        }
    });  
    response(filteredArray);
},
    select:function(event, ui) { var tbValue = $(ui.item).val(); var totalurl ='/results.aspx?searchfor=' + tbValue ; $(location).attr('href',totalurl); }
});
  });

