/** (C)Scripterlative.com -- RecoverDivScroll -- Description ~~~~~~~~~~~ Preserves the scrolled x & y position of specified scollable DIV elements between consecutive page reloads, for the duration of either current session or a specified number of days. * Uses cookies * Info: http://scripterlative.com?RecoverDivScroll These instructions may be removed but not the above text. Please notify any suspected errors in this text or code, however minor. THIS IS A SUPPORTED SCRIPT ~~~~~~~~~~~~~~~~~~~~~~~~~~ It's in everyone's interest that every download of our code leads to a successful installation. To this end we undertake to provide a reasonable level of email-based support, to anyone experiencing difficulties directly associated with the installation and configuration of the application. Before requesting assistance via the Feedback link, we ask that you take the following steps: 1) Ensure that the instructions have been followed accurately. 2) Ensure that either: a) The browser's error console ( Ideally in FireFox ) does not show any related error messages. b) You notify us of any error messages that you cannot interpret. 3) Validate your document's markup at: http://validator.w3.org or any equivalent site. 4) Provide a URL to a test document that demonstrates the problem. Installation ~~~~~~~~~~~~ Save this text/file as 'recoverdivscroll.js', and place it in a folder associated with your web pages. Insert the following tags in the section of the document to be scrolled: (If recoverdivscroll.js resides in a different folder, include the relative path) Configuration ~~~~~~~~~~~~~ All that is necessary is to identify the div(s) on which the script is to operate, using their ID atributes. The example below sets-up three scrollable divs with IDs: "Products", "Images" & "Prices". This code must be inserted within the section, BELOW all the divs to which it relates: You will see that the first parameter is an empty string "", which is the way the script is configured when it is to be used within a single document only. To use the script on multiple documents on the same domain, for each document the first parameter should be specified as a different unique name. This ensures that a separate cookie is created for each document. Storing Data Between Browser Sessions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To remember the scrolled position between sessions, in the same