-/**\r
- * Storage plugin\r
- * Provides a simple interface for storing data such as user preferences.\r
- * Storage is useful for saving and retreiving data from the user's browser.\r
- * For newer browsers, localStorage is used.\r
- * If localStorage isn't supported, then cookies are used instead.\r
- * Retrievable data is limited to the same domain as this file.\r
- *\r
- * Usage:\r
- * This plugin extends jQuery by adding itself as a static method.\r
- * $.Storage - is the class name, which represents the user's data store, whether it's cookies or local storage.\r
- * <code>if ($.Storage)</code> will tell you if the plugin is loaded.\r
- * $.Storage.set("name", "value") - Stores a named value in the data store.\r
- * $.Storage.set({"name1":"value1", "name2":"value2", etc}) - Stores multiple name/value pairs in the data store.\r
- * $.Storage.get("name") - Retrieves the value of the given name from the data store.\r
- * $.Storage.remove("name") - Permanently deletes the name/value pair from the data store.\r
- *\r
- * @author Dave Schindler\r
- *\r
- * Distributed under the MIT License\r
- *\r
- * Copyright (c) 2010 Dave Schindler\r
- *\r
- * Permission is hereby granted, free of charge, to any person obtaining a copy\r
- * of this software and associated documentation files (the "Software"), to deal\r
- * in the Software without restriction, including without limitation the rights\r
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
- * copies of the Software, and to permit persons to whom the Software is\r
- * furnished to do so, subject to the following conditions:\r
- *\r
- * The above copyright notice and this permission notice shall be included in\r
- * all copies or substantial portions of the Software.\r
- *\r
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
- * THE SOFTWARE.\r
- */\r
-(function($) {\r
- // Private data\r
- var isLS=typeof window.localStorage!=='undefined';\r
- // Private functions\r
- function wls(n,v){var c;if(typeof n==="string"&&typeof v==="string"){localStorage[n]=v;return true;}else if(typeof n==="object"&&typeof v==="undefined"){for(c in n){if(n.hasOwnProperty(c)){localStorage[c]=n[c];}}return true;}return false;}\r
- function wc(n,v){var dt,e,c;dt=new Date();dt.setTime(dt.getTime()+31536000000);e="; expires="+dt.toGMTString();if(typeof n==="string"&&typeof v==="string"){document.cookie=n+"="+v+e+"; path=/";return true;}else if(typeof n==="object"&&typeof v==="undefined"){for(c in n) {if(n.hasOwnProperty(c)){document.cookie=c+"="+n[c]+e+"; path=/";}}return true;}return false;}\r
- function rls(n){return localStorage[n];}\r
- function rc(n){var nn, ca, i, c;nn=n+"=";ca=document.cookie.split(';');for(i=0;i<ca.length;i++){c=ca[i];while(c.charAt(0)===' '){c=c.substring(1,c.length);}if(c.indexOf(nn)===0){return c.substring(nn.length,c.length);}}return null;}\r
- function dls(n){return delete localStorage[n];}\r
- function dc(n){return wc(n,"",-1);}\r
-\r
- /**\r
- * Public API\r
- * $.Storage - Represents the user's data store, whether it's cookies or local storage.\r
- * $.Storage.set("name", "value") - Stores a named value in the data store.\r
- * $.Storage.set({"name1":"value1", "name2":"value2", etc}) - Stores multiple name/value pairs in the data store.\r
- * $.Storage.get("name") - Retrieves the value of the given name from the data store.\r
- * $.Storage.remove("name") - Permanently deletes the name/value pair from the data store.\r
- */\r
- $.extend({\r
- Storage: {\r
- set: isLS ? wls : wc,\r
- get: isLS ? rls : rc,\r
- remove: isLS ? dls :dc\r
- }\r
- });\r
+/**
+ * Storage plugin
+ * Provides a simple interface for storing data such as user preferences.
+ * Storage is useful for saving and retreiving data from the user's browser.
+ * For newer browsers, localStorage is used.
+ * If localStorage isn't supported, then cookies are used instead.
+ * Retrievable data is limited to the same domain as this file.
+ *
+ * Usage:
+ * This plugin extends jQuery by adding itself as a static method.
+ * $.Storage - is the class name, which represents the user's data store, whether it's cookies or local storage.
+ * <code>if ($.Storage)</code> will tell you if the plugin is loaded.
+ * $.Storage.set("name", "value") - Stores a named value in the data store.
+ * $.Storage.set({"name1":"value1", "name2":"value2", etc}) - Stores multiple name/value pairs in the data store.
+ * $.Storage.get("name") - Retrieves the value of the given name from the data store.
+ * $.Storage.remove("name") - Permanently deletes the name/value pair from the data store.
+ *
+ * @author Dave Schindler
+ *
+ * Distributed under the MIT License
+ *
+ * Copyright (c) 2010 Dave Schindler
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+(function($) {
+ // Private data
+ var isLS=typeof window.localStorage!=='undefined';
+ // Private functions
+ function wls(n,v){var c;if(typeof n==="string"&&typeof v==="string"){localStorage[n]=v;return true;}else if(typeof n==="object"&&typeof v==="undefined"){for(c in n){if(n.hasOwnProperty(c)){localStorage[c]=n[c];}}return true;}return false;}
+ function wc(n,v){var dt,e,c;dt=new Date();dt.setTime(dt.getTime()+31536000000);e="; expires="+dt.toGMTString();if(typeof n==="string"&&typeof v==="string"){document.cookie=n+"="+v+e+"; path=/";return true;}else if(typeof n==="object"&&typeof v==="undefined"){for(c in n) {if(n.hasOwnProperty(c)){document.cookie=c+"="+n[c]+e+"; path=/";}}return true;}return false;}
+ function rls(n){return localStorage[n];}
+ function rc(n){var nn, ca, i, c;nn=n+"=";ca=document.cookie.split(';');for(i=0;i<ca.length;i++){c=ca[i];while(c.charAt(0)===' '){c=c.substring(1,c.length);}if(c.indexOf(nn)===0){return c.substring(nn.length,c.length);}}return null;}
+ function dls(n){return delete localStorage[n];}
+ function dc(n){return wc(n,"",-1);}
+
+ /**
+ * Public API
+ * $.Storage - Represents the user's data store, whether it's cookies or local storage.
+ * $.Storage.set("name", "value") - Stores a named value in the data store.
+ * $.Storage.set({"name1":"value1", "name2":"value2", etc}) - Stores multiple name/value pairs in the data store.
+ * $.Storage.get("name") - Retrieves the value of the given name from the data store.
+ * $.Storage.remove("name") - Permanently deletes the name/value pair from the data store.
+ */
+ $.extend({
+ Storage: {
+ set: isLS ? wls : wc,
+ get: isLS ? rls : rc,
+ remove: isLS ? dls :dc
+ }
+ });