text: $(document).ready(function(){function o(){var o=$(".searchbox-input").val();o=$.trim(o).length,0!==o?$(".searchbox-icon").css("display","none"):($(".searchbox-input").val(""),$(".searchbox-icon").css("display","block"))}$(".blog-slider").flexslider({animation:"fade",slideshowSpeed:8e3});var e=$("#blog-mansonry");e.imagesLoaded(function(){e.masonry({itemSelector:".post"})});var s=$(".searchbox-icon"),n=$(".searchbox-input"),c=$(".searchbox"),a=!1;s.on("click",function(){a===!1?(c.addClass("searchbox-open"),n.focus(),a=!0):(c.removeClass("searchbox-open"),n.focusout(),a=!1)}),s.mouseup(function(){return!1}),c.mouseup(function(){return!1}),$(document).mouseup(function(){a===!0&&($(".searchbox-icon").css("display","block"),s.click())}),n.keyup(function(){o()}),$(window).resize(function(){$(".searchbox-icon").css("display","block"),c.removeClass("searchbox-open")})});