(function($){$(document).ready(function(){var fileurl=trizzysw.switchercss;if($('body').hasClass('page-id-2360')){$('body').addClass('fullwidth').removeClass('boxed');$('#navigation').addClass('alt');}if($('body').hasClass('page-id-2481')){$('body').addClass('fullwidth').removeClass('boxed');$('#navigation').addClass('alt');}$("#colors .green").click(function(){$("#colors").attr("href",fileurl+"colors/green.css");return false;});$("#colors .blue").click(function(){$("#colors").attr("href",fileurl+"colors/blue.css");return false;});$("#colors .orange").click(function(){$("#colors").attr("href",fileurl+"colors/orange.css");return false;});$("#colors .navy").click(function(){$("#colors").attr("href",fileurl+"colors/navy.css");return false;});$("#colors .yellow").click(function(){$("#colors").attr("href",fileurl+"colors/yellow.css");return false;});$("#colors .peach").click(function(){$("#colors").attr("href",fileurl+"colors/peach.css");return false;});$("#colors .beige").click(function(){$("#colors").attr("href",fileurl+"colors/beige.css");return false;});$("#colors .purple").click(function(){$("#colors").attr("href",fileurl+"colors/purple.css");return false;});$("#colors .red").click(function(){$("#colors").attr("href",fileurl+"colors/red.css");return false;});$("#colors .pink").click(function(){$("#colors").attr("href",fileurl+"colors/pink.css");return false;});$("#colors .celadon").click(function(){$("#colors").attr("href",fileurl+"colors/celadon.css");return false;});$("#colors .brown").click(function(){$("#colors").attr("href",fileurl+"colors/brown.css");return false;});$("#colors .cherry").click(function(){$("#colors").attr("href",fileurl+"colors/cherry.css");return false;});$("#colors .gray").click(function(){$("#colors").attr("href",fileurl+"colors/gray.css");return false;});$("#colors .dark").click(function(){$("#colors").attr("href",fileurl+"colors/dark.css");return false;});$("#colors .cyan").click(function(){$("#colors").attr("href",fileurl+"colors/cyan.css");return false;});$("#colors .olive").click(function(){$("#colors").attr("href",fileurl+"colors/olive.css");return false;});$("#colors .dirty-green").click(function(){$("#colors").attr("href",fileurl+"colors/dirty-green.css");return false;});$("#style-switcher h2 a").click(function(e){e.preventDefault();var div=$("#style-switcher");if(div.css("left")==="-205px"){$("#style-switcher").animate({left:"0px"});}else{$("#style-switcher").animate({left:"-205px"});}});$("#menu-style").change(function(e){if($(this).val()==2){$("#navigation").removeClass("alt");}else{$("#navigation").addClass("alt");}});$("#layout-style").change(function(e){if($(this).val()==1){$("body").removeClass("boxed").addClass('fullwidth'),$(window).resize();}else{$("body").removeClass("fullwidth").addClass("boxed"),$(window).resize();}});$("#layout-switcher").on('change',function(){$('#layout').attr('href',$(this).val()+'.css');});$(".colors li a").click(function(e){e.preventDefault();$(this).parent().parent().find("a").removeClass("active");$(this).addClass("active");});$('.bg li a').click(function(){var current=$('#style-switcher select[id=layout-style]').find('option:selected').val();if(current=='2'){var bg=$(this).css("backgroundImage");$("body").css("backgroundImage",bg);}else{alert('Please select boxed layout');}});$('.bgsolid li a').click(function(){var current=$('#style-switcher select[id=layout-style]').find('option:selected').val();if(current=='2'){var bg=$(this).css('backgroundColor');$('body').css('backgroundColor',bg).css('backgroundImage','none')}else{alert('Please select boxed layout');}});$("#reset a").click(function(e){e.preventDefault();$("body").css("backgroundColor","e9e9e9");$("body").css("backgroundImage","none");$("body").removeClass("fullwidth");$("body").addClass("boxed");$("#navigation").removeClass("alt");$(".colors li a").removeClass("active");$("#colors").attr("href",fileurl+"colors/green.css");$(window).resize();});});})(this.jQuery);