I need a script that can recognize an Internet connection or not when a webpage is loaded inside an e-Book that has been downloaded and if it does NOT see a connection, then the script loads a local graphic file, if there IS a connection then it loads a specified URL. This way the e-Book never displays a page not found if there is no connection.