');} $('link#gFontName').attr({href:'http://fonts.googleapis.com/css?family='+logo_font});if($('head').find('style#gFontStyles').length<1){$("#gFontStyles").remove();} $('head').append('');} if($.cookie("heading_font")){var heading_font=$.cookie("heading_font");if($('head').find('link#gFontNameHeading').length<1){$('head').append('');} $('link#gFontNameHeading').attr({href:'http://fonts.googleapis.com/css?family='+heading_font});if($('head').find('style#gFontStylesHeading').length<1){$("#gFontStylesHeading").remove();} $('head').append('');} if($.cookie("links_font")){var links_font=$.cookie("links_font");if($('head').find('link#gFontNameContent').length<1){$('head').append('');} $('link#gFontNameContent').attr({href:'http://fonts.googleapis.com/css?family='+links_font});if($('head').find('style#gFontStylesContent').length<1){$("#gFontStylesContent").remove();} $('head').append('');} if($.cookie("text_font")){var text_font=$.cookie("text_font");if($('head').find('link#gFontNameText').length<1){$('head').append('');} $('link#gFontNameText').attr({href:'http://fonts.googleapis.com/css?family='+text_font});if($('head').find('style#gFontStylesText').length<1){$("#gFontStylesText").remove();} $('head').append('');} $('#logosize').change(function(){var size=$("option:selected",this).val();$("a.logo").css({'fontSize':size+'px'});$.cookie("logo_size",size);});$('#logofont').change(function(){var gFontVal=$("option:selected",this).val();var gFontName=gFontVal.split(':');$.cookie("logo_font",gFontVal);if($('head').find('link#gFontName').length<1){$('head').append('');} $('link#gFontName').attr({href:'http://fonts.googleapis.com/css?family='+gFontName});if($('head').find('style#gFontStyles').length<1){$("#gFontStyles").remove();} $('head').append('');});$('#headingfont').change(function(){var gFontVal=$("option:selected",this).val();var gFontName=gFontVal.split(':');$.cookie("heading_font",gFontVal);if($('head').find('link#gFontNameHeading').length<1){$('head').append('');} $('link#gFontNameHeading').attr({href:'http://fonts.googleapis.com/css?family='+gFontName});if($('head').find('style#gFontStylesHeading').length<1){$("#gFontStylesHeading").remove();} $('head').append('');});$('#linksfont').change(function(){var gFontVal=$("option:selected",this).val();var gFontName=gFontVal.split(':');$.cookie("links_font",gFontVal);if($('head').find('link#gFontNameLinks').length<1){$('head').append('');} $('link#gFontNameLinks').attr({href:'http://fonts.googleapis.com/css?family='+gFontName});if($('head').find('style#gFontStylesLinks').length<1){$("#gFontStylesLinks").remove();} $('head').append('');});$('#textfont').change(function(){var gFontVal=$("option:selected",this).val();var gFontName=gFontVal.split(':');$.cookie("text_font",gFontVal);if($('head').find('link#gFontNameText').length<1){$('head').append('');} $('link#gFontNameText').attr({href:'http://fonts.googleapis.com/css?family='+gFontName});if($('head').find('style#gFontStylesText').length<1){$("#gFontStylesText").remove();} $('head').append('');});if($.cookie("pattern")){var pattern=$.cookie("pattern");$("#pattern").removeClass().addClass(pattern);$("#header_pattern").removeClass().addClass(pattern);} if($.cookie("color")){var color=$.cookie("color");$("#white_bg").css('backgroundColor','#'+color);$('#colorSelector div').css('backgroundColor','#'+color);} if($.cookie("font_size")){var size=$.cookie("font_size");$("a.logo").css('fontSize',size+'px');} if($.cookie("logo_color")){var logo_color=$.cookie("logo_color");$(selectors_logo).css('color','#'+logo_color);$('#colorSelector2 div').css('backgroundColor','#'+logo_color);}else{} if($.cookie("buttons_color")){var buttons_color=$.cookie("buttons_color");$(backs).css('backgroundColor','#'+buttons_color);$('#colorSelector_buttons div').css('backgroundColor','#'+buttons_color);}else{$(backs).css('backgroundColor','#F28000');} if($.cookie("headings_color")){var headings_color=$.cookie("headings_color");$(selectors_headings).css('color','#'+headings_color);$('#colorSelector_headings div').css('backgroundColor','#'+headings_color);}else{$(selectors_headings).css('color','#F28000');$('#colorSelector_headings div').css('backgroundColor','#F28000');} if($.cookie("links_color")){var links_color=$.cookie("links_color");$(selectors_links).css('color','#'+links_color);$('#links_color div').css('backgroundColor','#'+links_color);}else{$(selectors_links).css('color','#F28000');} if($.cookie("text_color")){var text_color=$.cookie("text_color");$(selectors_text).css('color','#'+text_color);$('#text_color div').css('backgroundColor','#'+text_color);}else{$(selectors_text).css('color','#7a7874');} $('#handler').click(function(){if($(this).hasClass('closed')){$('.theme_controller').animate({left:0},300,function(){$(this).find('#handler').removeClass('closed').addClass('opened');});}else{$('.theme_controller').animate({left:'-219px'},300,function(){$(this).find('#handler').removeClass('opened').addClass('closed');});} return false;});$('.theme_controller').delay(500).fadeTo("slow",1);$('.theme_controller').delay(1000).animate({left:'-219px'},300,function(){$(this).find('#handler').removeClass('opened').addClass('closed');});$(".chzn-select").chosen();$(".chzn-select-deselect").chosen({allow_single_deselect:true});$('#reset_cookie').click(function(){$.cookie("pattern",null);$.cookie("color",null);$.cookie("logo_color",null);$.cookie("buttons_color",null);$.cookie("headings_color",null);$.cookie("links_color",null);$.cookie("text_color",null);$.cookie("logo_font",null);$.cookie("heading_font",null);$.cookie("font_size",null);$.cookie("links_font",null);$.cookie("text_font",null);$.cookie("listingView",null);$("#gFontName").remove();$("#gFontStyles").remove();$("#gFontNameHeading").remove();$("#gFontStylesHeading").remove();$("#gFontNameContent").remove();$("#gFontStylesContent").remove();location.reload();});if($("ul.pagination").length==0){$(".sortPagiBarFooter").remove();}});/* ]]> */