offline events

if you are offline and try to search something... alert('nessuna
connessione')