!function(e){e.fn.cfmLocalStorage=function(t){"use strict";if("undefined"!=typeof Storage){var a=e(this),n=cfmsync.CFMH_SHOWID+"_"+e(this).attr("id")+"_save_storage",r=e.extend({},{exclude_type:[],exclude_name:[],interval:6e4},t),o=function(){var t="";return e.each(r.exclude_type,function(e,a){t+="input[type="+a+"],"}),t},i=function(){var t="";return e.each(r.exclude_name,function(e,a){t+="input[name="+a+"],"}),t};a.find(":input").bind("change keyup",function(){var e=a.serializeArray();localStorage.setItem(n,JSON.stringify(e))}),setInterval(function(){var e=a.serializeArray();localStorage.setItem(n,JSON.stringify(e))},r.interval);!function(){if(null!==localStorage.getItem(n))for(var e=JSON.parse(localStorage.getItem(n)),t=a.find("input[type=radio]"),r=a.find("input[type=checkbox]"),l=0;l<e.length;l++){a.find(':input[name="'+e[l].name+'"]').not(o()+i()+"input[type=radio], input[type=checkbox]").val(e[l].value);for(var c=0;c<t.length;c++)t[c].getAttribute("name")===e[l].name&&t[c].getAttribute("value")===e[l].value&&(t[c].checked=!0);for(var u=0;u<r.length;u++)r[u].getAttribute("name")===e[l].name&&r[u].getAttribute("value")===e[l].value&&(r[u].checked=!0)}}()}else console.error("Sorry! No web storage support.")},e.fn.cfmGetLocalStorage=function(e,t){if("undefined"!=typeof Storage){var a=cfmsync.CFMH_SHOWID+"_"+e+"_save_storage";if(null!==localStorage.getItem(a)){local_data=JSON.parse(localStorage.getItem(a));for(var n=0;n<local_data.length;n++)if(local_data[n].name==t)return local_data[n].value}}}}(jQuery);