');jQuery(shownav).find(".sub-menu").css({display:"block"})}
function truethemes_Nav(){var nav=jQuery("#menu-main-nav");var duration=260;jQuery(nav).find(".sub-menu").css({left:0});jQuery(nav).find("> li").each(function(){var height=jQuery(this).find("> .drop").height();jQuery(this).find("> .drop").css({display:"none",height:0,overflow:"hidden"});jQuery(this).find(".drop li > .drop").css({display:"none",width:0});if(!jQuery.browser.msie){jQuery(this).find("> .drop").css({"opacity":0});jQuery(this).find(".drop li > .drop").css({"opacity":0})}jQuery(this).mouseenter(function(){jQuery(this).addClass("hover");
var drop=jQuery(this).find("> .drop");if(jQuery.browser.msie)jQuery(drop).css({display:"block"}).stop().animate({"height":height},duration,function(){jQuery(this).css({"overflow":"visible"})});else jQuery(drop).css({display:"block"}).stop().animate({"height":height,"opacity":1},duration,function(){jQuery(this).css({"overflow":"visible"})})}).mouseleave(function(){var _this=jQuery(this);if(jQuery.browser.msie)jQuery(this).find("> .drop").stop().css({"overflow":"hidden"}).animate({"height":0},duration,
function(){jQuery(_this).removeClass("hover")});else jQuery(this).find("> .drop").stop().css({"overflow":"hidden"}).animate({"height":0,"opacity":0},duration,function(){jQuery(_this).removeClass("hover")})});jQuery(this).find(".drop ul > li ").mouseenter(function(){jQuery(this).addClass("hover");var pageW=getPageSize()[2];if(pageW
.drop").css({left:"auto",right:236});if(jQuery.browser.msie)jQuery(this).find("> .drop").css({display:"block"}).stop().animate({"width":236},
duration,function(){jQuery(this).css({overflow:"visible"})});else jQuery(this).find("> .drop").css({display:"block"}).stop().animate({"width":236,"opacity":1},duration,function(){jQuery(this).css({overflow:"visible"})})}).mouseleave(function(){jQuery(this).removeClass("hover");if(jQuery.browser.msie)jQuery(this).find("> .drop").stop().css({overflow:"hidden"}).animate({width:0},duration,function(){jQuery(this).css({display:"none"})});else jQuery(this).find("> .drop").stop().css({overflow:"hidden"}).animate({width:0,
"opacity":0},duration,function(){jQuery(this).css({display:"none"})})})})}
function getPageSize(){var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=document.body.scrollWidth;yScroll=window.innerHeight+window.scrollMaxY}else if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight}else if(document.documentElement&&document.documentElement.scrollHeight>document.documentElement.offsetHeight){xScroll=document.documentElement.scrollWidth;yScroll=document.documentElement.scrollHeight}else{xScroll=
document.body.offsetWidth;yScroll=document.body.offsetHeight}var windowWidth,windowHeight;if(self.innerHeight){windowWidth=self.innerWidth;windowHeight=self.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight}if(yScroll 0) {
jQuery(this).delay(160 * index).fadeIn(400)
}
})
}
/*--------------------------------------*/
/* Lightbox hover
/*--------------------------------------*/
function truethemes_LightboxHover(){jQuery('.lightbox-img').hover(function(){jQuery(this).children().first().children().first().stop(true);jQuery(this).children().first().children().first().fadeTo('normal',.90)},function(){jQuery(this).children().first().children().first().stop(true);jQuery(this).children().first().children().first().fadeTo('normal',0)})}
/*--------------------------------------*/
/* Scroll to Top
/*--------------------------------------*/
function truethemes_ScrollTop(){jQuery('a.link-top').click(function(){if(!jQuery.browser.opera){jQuery('body').animate({scrollTop:0},{queue:false,duration:1200})}jQuery('html').animate({scrollTop:0},{queue:false,duration:1200});return false})}
/*--------------------------------------*/
/* Sticky Sidebar
/*--------------------------------------*/
function truethemes_StickySidebar() {
/*
Sticky-kit v1.0.2 | WTFPL | Leaf Corcoran 2013 | http://leafo.net
*/
(function(){var b,q;b=this.jQuery;q=b(window);b.fn.stick_in_parent=function(e){var u,m,f,r,B,l,C;null==e&&(e={});r=e.sticky_class;u=e.inner_scrolling;f=e.parent;m=e.offset_top;null==m&&(m=0);null==f&&(f=void 0);null==u&&(u=!0);null==r&&(r="is_stuck");B=function(a,e,l,v,y,n,s){var t,z,h,w,c,d,A,x,g,k;if(!a.data("sticky_kit")){a.data("sticky_kit",!0);d=a.parent();null!=f&&(d=d.closest(f));if(!d.length)throw"failed to find stick parent";h=!1;g=b("");A=function(){var c,b;c=parseInt(d.css("border-top-width"),
10);b=parseInt(d.css("padding-top"),10);e=parseInt(d.css("padding-bottom"),10);l=d.offset().top+c+b;v=d.height();c=h?(h=!1,a.insertAfter(g).css({position:"",top:"",width:""}),g.detach(),!0):void 0;y=a.offset().top-parseInt(a.css("margin-top"),10)-m;n=a.outerHeight(!0);s=a.css("float");g.css({width:a.outerWidth(!0),height:n,display:a.css("display"),"vertical-align":a.css("vertical-align"),float:s});if(c)return k()};A();if(n!==v)return t=!1,w=void 0,c=m,k=function(){var b,k,p,f;p=q.scrollTop();null!=
w&&(k=p-w);w=p;h?(f=p+n+c>v+l,t&&!f&&(t=!1,a.css({position:"fixed",bottom:"",top:c}).trigger("sticky_kit:unbottom")),pb&&!t&&(c-=k,c=Math.max(b-n,c),c=Math.min(m,c),h&&a.css({top:c+"px"})))):p>y&&(h=!0,b={position:"fixed",top:c},b.width=a.width()+"px",a.css(b).addClass(r).after(g),"left"!==s&&"right"!==s||g.append(a),a.trigger("sticky_kit:stick"));
if(h&&(null==f&&(f=p+n+c>v+l),!t&&f))return t=!0,"static"===d.css("position")&&d.css({position:"relative"}),a.css({position:"absolute",bottom:e,top:""}).trigger("sticky_kit:bottom")},x=function(){A();return k()},z=function(){q.off("scroll",k);b(document.body).off("sticky_kit:recalc",x);a.off("sticky_kit:detach",z);a.removeData("sticky_kit");a.css({position:"",bottom:"",top:""});d.position("position","");if(h)return a.insertAfter(g).removeClass(r),g.remove()},q.on("scroll",k),q.on("resize",x),b(document.body).on("sticky_kit:recalc",
x),a.on("sticky_kit:detach",z),setTimeout(k,0)}};l=0;for(C=this.length;l