+ $('#theme_slate' ).on('click', function () { set_style("slate"); });
+ $('#theme_cerulean').on('click', function () { set_style("cerulean"); });
+ $('#theme_cyborg' ).on('click', function () { set_style("cyborg"); });
+ $('#theme_cosmo' ).on('click', function () { set_style("cosmo"); });
+});
+
+var theme = localStorage.getItem("theme");
+if(theme) {
+ set_style(theme);
+ $(document).ready(function(){
+ $('#yardi').attr('src', theme == "slate" || theme == "cyborg" ? "/img/yardi-white.png" : "/img/yardi-blue.png");
+ })
+}