function felixplus_portfolio_detail_click(e,t,i){var r=window.location.href;return r=r.substring(0,Math.max(r.lastIndexOf("/"),r.lastIndexOf("\\\\"))),e.hasClass("inprocess")||jQuery.ajax({type:"POST",url:r+"/pages/portfolio-detail-"+t+".html",dataType:"html",async:!1,data:{},beforeSend:function(t,r){e.addClass("inprocess"),jQuery(".pf-detail-box .row-fluid .span12").html("
Loading..."),0==i&&jQuery(".pf-detail-box").fadeTo("slow",.5)},complete:function(e,t){},success:function(t){console.log(t),jQuery(".pf-detail-box .row-fluid .span12").html(t),1==i?jQuery(".pf-detail-box").slideDown(500):jQuery(".pf-detail-box").fadeTo("slow",1),e.removeClass("inprocess"),jQuery(".pf-list-flex").flexslider({animation:"slide",slideshow:!0,start:function(e){jQuery("body").removeClass("loading")}}),jQuery("audio,video").mediaelementplayer({success:function(e,t){jQuery("#"+t.id+"-mode").html("mode: "+e.pluginType)}})},error:function(e,t,i){}}),!0}function felixplus_portfolio_hide_click(e){return e.remove(),jQuery(".pf-detail-box").slideUp(500),!0}jQuery(document).ready(function(){jQuery("#comments-form").length>0&&jQuery("#comments-form").validate({rules:{name:{required:!0,minlength:2},email:{required:!0,email:!0},message:{required:!0,minlength:10}},messages:{name:{required:"Please enter your name.",minlength:jQuery.format("At least {0} characters required.")},email:{required:"Please enter your email.",email:"Please enter a valid email."},url:{required:"Please enter your url.",url:"Please enter a valid url."},message:{required:"Please enter a message.",minlength:jQuery.format("At least {0} characters required.")}},submitHandler:function(e){return jQuery("#submit-comment").attr("value","Sending..."),jQuery(e).ajaxSubmit({success:function(e,t,i,r){jQuery("#response").html(e).hide().slideDown("fast"),jQuery("#submit-comment").attr("value","Comment")}}),!1}}),jQuery("#contact-form").length>0&&jQuery("#contact-form").validate({rules:{name:{required:!0,minlength:2},email:{required:!0,email:!0},message:{required:!0,minlength:10}},messages:{name:{required:"Please enter your name.",minlength:jQuery.format("At least {0} characters required.")},email:{required:"Please enter your email.",email:"Please enter a valid email."},url:{required:"Please enter your url.",url:"Please enter a valid url."},message:{required:"Please enter a message.",minlength:jQuery.format("At least {0} characters required.")}},submitHandler:function(e){return jQuery("#submit-contact").attr("value","Sending..."),jQuery(e).ajaxSubmit({success:function(e,t,i,r){jQuery("#response").html(e).hide().slideDown("fast"),jQuery("#submit-contact").attr("value","Submit")}}),!1}})}),$(document).ready(function(){$(".intro").click(function(){$("html").css({position:"relative"}),$(this).animate({top:"-200%",opacity:"0.5"},1200)}),$("#logo_symb").animate({top:"-5px",left:"-5px"},3500);var e=0;setInterval(function(){e+=3,$("#logo_symb").rotate(e)},50)}),function(e){jQuery(document).ready(function(){jQuery("#main-menu").superfish({})})}(jQuery),jQuery(window).load(function(){jQuery(".flx-home-slider").flexslider({animation:"slide",start:function(e){jQuery("body").removeClass("loading")}}),jQuery(".carousel-slider").flexslider({animation:"slide",start:function(e){jQuery("body").removeClass("loading")}}),jQuery(".service-slider").flexslider({animation:"fade",start:function(e){jQuery("body").removeClass("loading")}}),jQuery(".home-page-3-slider").flexslider({animation:"slide",start:function(e){jQuery("body").removeClass("loading")}})}),jQuery(window).load(function(){jQuery(".testimonial-slider").flexslider({animation:"fade",start:function(e){jQuery("body").removeClass("loading")}}),jQuery(".testimonial-slider-1").flexslider({animation:"slide",slideshow:!0,controlsContainer:".flexslider-container"})}),$.Isotope.prototype._getCenteredMasonryColumns=function(){this.width=this.element.width();var e=this.element.parent().width(),t=this.options.masonry&&this.options.masonry.columnWidth||this.$filteredAtoms.outerWidth(!0)||e,i=Math.floor(e/t);i=Math.max(i,1),this.masonry.cols=i,this.masonry.columnWidth=t},$.Isotope.prototype._masonryReset=function(){this.masonry={},this._getCenteredMasonryColumns();var e=this.masonry.cols;for(this.masonry.colYs=[];e--;)this.masonry.colYs.push(0)},$.Isotope.prototype._masonryResizeChanged=function(){var e=this.masonry.cols;return this._getCenteredMasonryColumns(),this.masonry.cols!==e},$.Isotope.prototype._masonryGetContainerSize=function(){for(var e=0,t=this.masonry.cols;--t&&0===this.masonry.colYs[t];)e++;return{height:Math.max.apply(Math,this.masonry.colYs),width:(this.masonry.cols-e)*this.masonry.columnWidth}},jQuery(function(){var e=jQuery("#container");e.imagesLoaded(function(){e.isotope({itemSelector:".element",masonry:{columnWidth:10}})})}),jQuery(document).ready(function(){jQuery(".blog-post-slider").flexslider({animation:"slide",smoothHeight:!0,start:function(e){jQuery("body").removeClass("loading")}})}),jQuery(window).load(function(){jQuery("#flx-slides-1").length>0&&jQuery("#flx-slides-1").carouFredSel({responsive:!0,prev:"#prev-1",next:"#next-1",width:"100%",scroll:1,auto:!1,items:{width:200,height:"auto",visible:{min:1,max:5}}}),jQuery("#flx-slides-2").length>0&&jQuery("#flx-slides-2").carouFredSel({responsive:!0,prev:"#prev-2",next:"#next-2",width:"100%",scroll:1,auto:!1,items:{width:330,height:"auto",visible:{min:1,max:3}}}),jQuery("#flx-slides-3").length>0&&jQuery("#flx-slides-3").carouFredSel({responsive:!0,prev:"#prev-3",next:"#next-3",width:"100%",scroll:1,auto:!1,items:{width:200,height:"auto",visible:{min:1,max:3}}}),jQuery(".flx-slides-4").length>0&&jQuery(".flx-slides-4").carouFredSel({responsive:!0,prev:"#prev-4",next:"#next-4",width:"100%",scroll:1,auto:!1,items:{width:250,height:"auto",visible:{min:1,max:4}}})}),jQuery(window).load(function(){jQuery("a[rel^='prettyPhoto']").prettyPhoto({overlay_gallery:!1,theme:"light_rounded",keyboard_shortcuts:!0,social_tools:!1})}),jQuery(document).ready(function(){jQuery("#flickr-feed-1").jflickrfeed({limit:12,qstrings:{id:"94373259@N07"},itemTemplate:''},function(e){jQuery("a[rel^='prettyPhoto']").prettyPhoto({show_title:!1,deeplinking:!1}).mouseenter(function(){}).mouseleave(function(){})})}),jQuery(document).ready(function(){jQuery("#bottom-sidebar > li:last-child").css({"border-right":"none"})}),jQuery(document).ready(function(){jQuery(".tab-content-1").length>0&&(jQuery(".tab-content-1").hide(),jQuery("ul.tabs-1 li:first").addClass("active").show(),jQuery(".tab-content-1:first").show(),jQuery("ul.tabs-1 li").click(function(){jQuery("ul.tabs-1 li").removeClass("active"),jQuery(this).addClass("active"),jQuery(".tab-content-1").hide();var e=jQuery(this).find("a").attr("href");return jQuery(e).fadeIn(),!1}))}),jQuery(function(){jQuery(".progress-bar > span").each(function(){jQuery(this).data("origWidth",jQuery(this).width()).width(0).animate({width:jQuery(this).data("origWidth")},1200)})}),jQuery(document).ready(function(e){jQuery(".alert-close-info").click(function(){return jQuery(".alert-box-info").fadeOut("slow"),!1}),jQuery(".alert-close-success").click(function(){return jQuery(".alert-box-success").fadeOut("slow"),!1}),jQuery(".alert-close-warning").click(function(){return jQuery(".alert-box-warning").fadeOut("slow"),!1}),jQuery(".alert-close-error").click(function(){return jQuery(".alert-box-error").fadeOut("slow"),!1})}),jQuery(document).ready(function(){!function(){var e=jQuery(".acc-wrapper");e.length>0&&(jQuery(".acc-wrapper .accordion-container").hide(),jQuery.each(e,function(e,t){jQuery(this).find(jQuery(".accordion-title")).first().addClass("active").next().show()}),jQuery(".accordion-title").on("click",function(e){jQuery(this).next().is(":hidden")&&(jQuery(this).parent().find(jQuery(".active")).removeClass("active").next().slideUp(300),jQuery(this).toggleClass("active").next().slideDown(300)),e.preventDefault()}))}()}),jQuery("audio,video").mediaelementplayer({success:function(e,t){jQuery("#"+t.id+"-mode").html("mode: "+e.pluginType)}}),jQuery(function(){jQuery(" #da-thumbs > li ").each(function(){jQuery(this).hoverdir({hoverDelay:75})})}),jQuery(function(){jQuery("#cd-dropdown").dropdown({gutter:5,stack:!1,delay:100,slidingIn:100})}),jQuery(document).ready(function(){jQuery("#toggle-view li").click(function(e){var t=jQuery(this).children("div.panel");t.is(":hidden")?(jQuery(this).addClass("active"),t.slideDown("300"),jQuery(this).children("span").html("-")):(jQuery(this).removeClass("active"),t.slideUp("300"),jQuery(this).children("span").html("+"))})}),jQuery(document).ready(function(){var e=jQuery(".twitter_outer");e.length>0&&jQuery.each(e,function(){jQuery(this).find(".twitter_inner").first().tweet({join_text:"auto",username:jQuery(this).find(".tweet_id").first().val(),avatar_size:18,count:jQuery(this).find(".tweet_count").first().val(),auto_join_text_default:"",auto_join_text_ed:"",auto_join_text_ing:"",auto_join_text_reply:"",auto_join_text_url:"",loading_text:"loading tweets...
",template:"{join} {text} {time}"})})}),jQuery(window).load(function(){jQuery("#flx-footer .widget .tweet_list li:last-child").css({"margin-bottom":0,"padding-bottom":0,"border-bottom":"none"})}),jQuery(function(){jQuery("#dl-menu").dlmenu({animationClasses:{"in":"dl-animate-in-5",out:"dl-animate-out-5"}})}),jQuery(document).ready(function(){jQuery("#back-top").hide(),jQuery(function(){jQuery(window).scroll(function(){jQuery(this).scrollTop()>200?jQuery("#back-top").fadeIn():jQuery("#back-top").fadeOut()}),jQuery("#back-top a").click(function(){return jQuery("body,html").animate({scrollTop:0},800),!1})})}),jQuery(document).ready(function(){jQuery(function(){jQuery(window).scroll(function(){jQuery(this).scrollTop()>0?jQuery("#flx-header").addClass("sticky-header"):jQuery("#flx-header").removeClass("sticky-header")})})}),jQuery(document).ready(function(){jQuery(".shipping-arrow").click(function(){var e=jQuery(".shipping-calculator-form");e.is(":hidden")?e.slideDown("300"):e.slideUp("300"),jQuery(".shipping-arrow").toggleClass("arrow-up")})}),$(".accordion-main .accordion:first-child").addClass("current").children(".accordion-content").css("display","block"),$(".accordion-title").click(function(){var e=$(this).closest(".accordion");e.hasClass("current")?e.removeClass("current").children(".accordion-content").slideUp(300):e.addClass("current").children(".accordion-content").slideDown(300),e.siblings(".accordion").removeClass("current").children(".accordion-content").slideUp(300)}),$(function(){var e=$(".tabs-nav"),t=e.children("li");e.each(function(){var e=$(this);e.next().children(".tab-content").stop(!0,!0).hide().first().show(),e.children("li").first().addClass("active").stop(!0,!0).show()}),t.on("click",function(e){var t=$(this);if(!t.hasClass("active")){t.siblings().removeClass("active").end().addClass("active");var i=t.parent().children().index(t);t.parent().next().children(".tab-content").stop(!0,!0).hide().eq(i).fadeIn()}e.preventDefault()})}),$(".tabs .tabs-content").first().css("display","block"),$(".tabs .tab-head").click(function(){$(this).siblings().removeClass("active").end().andSelf().addClass("active");var e=$(this).index(),t=$(".tabs-content");t.stop(!0,!0).hide().velocity({opacity:0},500),$(".tabs-content:eq("+e+")").stop(!0,!0).show().velocity({opacity:1},500)}),$(".tab-main .tab-title:first-of-type").css("margin-top","30px").css("border-top","1px solid #dcdee4"),$(".tab-main .tab-content .content").first().css("display","block"),$(".tab-main .tab-title").first().addClass("active"),$(".tab-main .tab-title").click(function(){$(this).siblings().removeClass("active").end().andSelf().addClass("active");var e=$(this).index(),t=$(".content");t.stop(!0,!0).hide().velocity({opacity:0},500),$(".content:eq("+e+")").stop(!0,!0).show().velocity({opacity:1},500)});