',d=k.lazyLoad?'
':'
',b.after(d),b.after(e)};return b.wrap('
"),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length?(l(h.attr(i)),h.remove(),!1):void("youtube"===c.type?(f="http://img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type&&a.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}))},d.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null},d.prototype.play=function(b){this._core.trigger("play",null,"video"),this._playing&&this.stop();var c,d,e=a(b.target||b.srcElement),f=e.closest("."+this._core.settings.itemClass),g=this._videos[f.attr("data-video")],h=g.width||"100%",i=g.height||this._core.$stage.height();"youtube"===g.type?c='
':"vimeo"===g.type&&(c='
'),f.addClass("owl-video-playing"),this._playing=f,d=a('
'+c+"
"),e.after(d)},d.prototype.isInFullScreen=function(){var d=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return d&&a(d).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),d&&this._fullscreen&&this._playing?!1:this._fullscreen?(this._fullscreen=!1,!1):this._playing&&this._core.state.orientation!==b.orientation?(this._core.state.orientation=b.orientation,!1):!0},d.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=d}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){this.swapping="translated"==a.type},this),"translate.owl.carousel":a.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",c)),f&&e.addClass("animated owl-animated-in").addClass(f).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",c))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c){var d=function(b){this.core=b,this.core.options=a.extend({},d.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":a.proxy(function(){this.autoplay()},this),"play.owl.autoplay":a.proxy(function(a,b,c){this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};d.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},d.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(b.clearInterval(this.interval),this.interval=b.setInterval(a.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):b.clearInterval(this.interval)},d.prototype.play=function(){return c.hidden===!0||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:this.core.settings.autoplay===!1?void b.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},d.prototype.stop=function(){b.clearInterval(this.interval)},d.prototype.pause=function(){b.clearInterval(this.interval)},d.prototype.destroy=function(){var a,c;b.clearInterval(this.interval);for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=d}(window.Zepto||window.jQuery,window,document),function(a){"use strict";var b=function(c){this._core=c,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){this._core.settings.dotsData&&this._templates.push(a(b.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":a.proxy(function(b){this._core.settings.dotsData&&this._templates.splice(b.position,0,a(b.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":a.proxy(function(a){this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"change.owl.carousel":a.proxy(function(a){if("position"==a.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var b=this._core.current(),c=this._core.maximum(),d=this._core.minimum();a.data=a.property.value>c?b>=c?d:c:a.property.value
").addClass(d.controlsClass).appendTo(this.$element)),this._controls.$indicators=d.dotsContainer?a(d.dotsContainer):a("
").hide().addClass(d.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",a.proxy(function(b){var c=a(b.target).parent().is(this._controls.$indicators)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(c,d.dotsSpeed)},this)),b=d.navContainer?a(d.navContainer):a("
").addClass(d.navContainerClass).prependTo(this._controls.$container),this._controls.$next=a("<"+d.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(d.navClass[0]).html(d.navText[0]).hide().prependTo(b).on("click",a.proxy(function(){this.prev(d.navSpeed)},this)),this._controls.$next.addClass(d.navClass[1]).html(d.navText[1]).hide().appendTo(b).on("click",a.proxy(function(){this.next(d.navSpeed)},this));for(c in this._overrides)this._core[c]=a.proxy(this[c],this)},b.prototype.destroy=function(){var a,b,c,d;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},b.prototype.update=function(){var a,b,c,d=this._core.settings,e=this._core.clones().length/2,f=e+this._core.items().length,g=d.center||d.autoWidth||d.dotData?1:d.dotsEach||d.items;if("page"!==d.slideBy&&(d.slideBy=Math.min(d.slideBy,d.items)),d.dots||"page"==d.slideBy)for(this._pages=[],a=e,b=0,c=0;f>a;a++)(b>=g||0===b)&&(this._pages.push({start:a-e,end:a-e+g-1}),b=0,++c),b+=this._core.mergers(this._core.relative(a))},b.prototype.draw=function(){var b,c,d="",e=this._core.settings,f=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!e.nav||e.loop||e.navRewind||(this._controls.$previous.toggleClass("disabled",0>=f),this._controls.$next.toggleClass("disabled",f>=this._core.maximum())),this._controls.$previous.toggle(e.nav),this._controls.$next.toggle(e.nav),e.dots){if(b=this._pages.length-this._controls.$indicators.children().length,e.dotData&&0!==b){for(c=0;c
').addClass('theiaStickySidebar').append(o.sidebar.children());o.sidebar.append(o.stickySidebar)}o.marginBottom=parseInt(o.sidebar.css('margin-bottom'));o.paddingTop=parseInt(o.sidebar.css('padding-top'));o.paddingBottom=parseInt(o.sidebar.css('padding-bottom'));var collapsedTopHeight=o.stickySidebar.offset().top;var collapsedBottomHeight=o.stickySidebar.outerHeight();o.stickySidebar.css('padding-top',1);o.stickySidebar.css('padding-bottom',1);collapsedTopHeight-=o.stickySidebar.offset().top;collapsedBottomHeight=o.stickySidebar.outerHeight()-collapsedBottomHeight-collapsedTopHeight;if(collapsedTopHeight==0){o.stickySidebar.css('padding-top',0);o.stickySidebarPaddingTop=0}else{o.stickySidebarPaddingTop=1}if(collapsedBottomHeight==0){o.stickySidebar.css('padding-bottom',0);o.stickySidebarPaddingBottom=0}else{o.stickySidebarPaddingBottom=1}o.previousScrollTop=null;o.fixedScrollTop=0;resetSidebar();o.onScroll=function(o){if(!o.stickySidebar.is(":visible")){return}if($('body').width()
- '; } else if (type.match('ticker-posts')) { var kode = '
' + title + '
'; } else if (type.match('hot-posts')) { if (i == 0) { kontent += '' + image[0] + '
' + tag + '
' + title + '
' + author + date + '
'; } else { kontent += '' + image[0] + '
' + tag + '
' + title + '
' + date + '
'; } } else if (type.match('feat-big')) { if (i == 0) { kontent += '' + image[0] + '' + tag + '
' + title + '
' + author + date + '
' + snip + '
'; } else { kontent += '- ' + image[1] + '
' + title + '
' + date + '
'; } } else if (type.match('slider')) { kontent += ' ' + image + '
' + tag + '
' + title + '
' + date + '
' + snip + '
'; } else if (type.match('col-left') || type.match('col-right')) { if (i == 0) { kontent += '' + image[0] + '' + tag + '
' + title + '
' + author + date + '
' + snip + '
'; } else { kontent += '- ' + image[2] + '
' + title + '
' + date + '
'; } } else if (type.match('grid-small')) { kontent += ' ' + image[1] + '' + tag + '
' + title + '
' + date + '
'; } else if (type.match('grid-big')) { kontent += '' + image[0] + '' + tag + '
' + title + '
' + author + date + '
' + snip + '
'; } else if (type.match('feat-list')) { kontent += '' + image[0] + '' + tag + '
' + title + '
' + author + date + '
' + snipp + '
'; } else if (type.match('post-list')) { kontent += '- ' + image[2] + '
' + title + '
' + date + '
- '; } else if (type.match('hot-posts')) { var kode = '
- '; } else if (type.match('feat-big')) { var kode = '
- '; } else if (type.match('slider')) { var kode = '
- '; } else if (type.match('col-right') || type.match('col-left')) { var kode = '
- '; } else if (type.match('grid-small')) { var kode = '
- '; } else if (type.match('grid-big')) { var kode = '
- '; } else if (type.match('feat-list')) { var kode = '
- '; } else if (type.match('post-list')) { var kode = '
- '; } else if (type.match('related')) { var kode = '
- '; } var entry = json.feed.entry; if (entry != undefined) { for (var i = 0, feed = entry; i < feed.length; i++) { var link = post_link(feed, i), title = post_title(feed, i, link), image = post_image(feed, i), tag = post_label(feed, i), author = post_author(feed, i), date = post_date(feed, i), snip = post_snip(feed, i), snipp = post_snipp(feed, i); var kontent = ''; if (type.match('mega-menu')) { kontent += '
' + image[1] + '' + tag + '
' + title + '
' + date + '
'; } else if (type.match('related')) { kontent += '
' + image[1] + '' + tag + '
' + title + '
' + date + '
'; } kode += kontent; } kode += ''; } else { kode = '
- Error: No Posts Found
'; } if (type.match("mega-menu")) { $this.addClass('has-sub mega-menu').append(kode); $this.find('a:first').attr('href', function($this, href) { if (label == 'recent' || label == 'random') { href = href.replace(href, '/search/?&max-results=' + postPerPage); } else { href = href.replace(href, '/search/label/' + label + '?&max-results=' + postPerPage); } return href; }); } else if (type.match('ticker-posts')) { $this.html(kode).parent().addClass('show-ticker'); var $newsticker = $this.find('.ticker-widget'); $newsticker.owlCarousel({ items: 1, animateIn: 'fadeInRight', animateOut: 'fadeOutRight', smartSpeed: 0, rtl: false, nav: true, navText: ['', ''], loop: true, autoplay: true, autoplayHoverPause: true, dots: false, mouseDrag: false, touchDrag: false, freeDrag: false, pullDrag: false }); } else if (type.match('hot-posts')) { $this.html(kode).parent().addClass('show-hot'); } else if (type.match('slider')) { $this.html(kode).parent().addClass('show-slider'); var $mainslider = $this.find('.main-slider'); $mainslider.owlCarousel({ items: 1, animateIn: 'fadeInRight', animateOut: 'fadeOutRight', smartSpeed: 0, rtl: false, nav: true, navText: ['', ''], loop: true, autoplay: true, autoplayHoverPause: true, dots: false, mouseDrag: false, touchDrag: false, freeDrag: false, pullDrag: false }); } else if (type.match('feat-big') || type.match('feat-list') || type.match('col-left') || type.match('col-right') || type.match('grid-small') || type.match('grid-big')) { $this.parent().find('.widget-title').append('' + messages.viewAll + ''); if (type.match('col-left') || type.match('col-right')) { if (type.match('col-right')) { $this.parent().addClass('col-right'); } $this.parent().addClass('col-width'); } $this.html(kode).parent().addClass('show-widget'); } else { $this.html(kode); } } }); } } $('.blog-post-comments').each(function() { var system = commentsSystem, disqus_url = disqus_blogger_current_url, disqus = '
', current_url = $(location).attr('href'), facebook = '
', sClass = 'comments-system-' + system; if (system == 'blogger') { $(this).addClass(sClass).show(); } else if (system == 'disqus') { (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqusShortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); $('#comments, #gpluscomments').remove(); $(this).append(disqus).addClass(sClass).show(); } else if (system == 'facebook') { $('#comments, #gpluscomments').remove(); $(this).append(facebook).addClass(sClass).show(); } else if (system == 'hide') { $(this).hide(); } else { $(this).addClass('comments-system-default').show(); } });})$(document).scroll(function(){if (fixedMenu == true) { $(window).on("scroll", function(e){ var height = 0; var scrollTop = $(this).scrollTop(); if ( scrollTop < 240 ) { height = $(".header-header").height(); $(".header-menu, .mobile-header").removeClass("scrolled-header"); } else { $(".header-menu, .mobile-header").addClass("scrolled-header"); $("body").css({"marginTop": height}); } });}});//]]>