function calcHeight(){var f=$(window).innerHeight(),r=$(window).innerWidth(),e=$(".navbar").outerHeight(),o=$(".footer").outerHeight(),t=$(".content-frame"),n=$(".comments"),i=f-e-o,u;t.outerHeight(i);n.outerWidth(r);u=Math.min(r-50,640);$(".comments-inner, .comments iframe").outerWidth(u);n.hasClass("open")?(n.height(i),t.height(0)):(t.height(i),n.height(0))}(function(n,t,i){"use strict";var u=function(){t(".rrssb-buttons").each(function(){var n=t(this),r=t("li",n).length,i=100/r;t("li",n).css("width",i+"%").attr("data-initwidth",i)})},o=function(){t(".rrssb-buttons").each(function(){var n=t(this),i=parseFloat(t(n).width()),r=t("li",n).not(".small").first().width(),u=t("li.small",n).length;r>170&&u<1?t(n).addClass("large-format"):t(n).removeClass("large-format");i<200?t(n).removeClass("small-format").addClass("tiny-format"):t(n).removeClass("tiny-format")})},s=function(){t(".rrssb-buttons").each(function(){var n=t(this),f=0,e=0,i,u,o=t("li.small",n).length,s,h,c;o===t("li",n).length?(s=o*42,h=parseFloat(t(n).width()),i=t("li.small",n).first(),u=parseFloat(t(i).attr("data-size"))+55,s+u<h&&(t(n).removeClass("small-format"),t("li.small",n).first().removeClass("small"),r())):(t("li",n).not(".small").each(function(){var n=parseFloat(t(this).attr("data-size"))+55,i=parseFloat(t(this).width());f+=i;e+=n}),c=f-e,i=t("li.small",n).first(),u=parseFloat(t(i).attr("data-size"))+55,u<c&&(t(i).removeClass("small"),r()))})},e=function(n){t(".rrssb-buttons").each(function(){var n=t(this),i=t("li",n).nextAll(),u=i.length;t(t("li",n).get().reverse()).each(function(i,u){var f,e,o;t(this).hasClass("small")===!1&&(f=parseFloat(t(this).attr("data-size"))+55,e=parseFloat(t(this).width()),f>e&&(o=t("li",n).not(".small").last(),t(o).addClass("small"),r()));--u||s()})});n===!0&&f(r)},r=function(){t(".rrssb-buttons").each(function(){var n=t(this),e,i,o,s,r,f=t("li.small",n).length;f>0&&f!==t("li",n).length?(t(n).removeClass("small-format"),t("li.small",n).css("width","42px"),o=f*42,e=t("li",n).not(".small").length,i=100/e,r=o/e,s=navigator.userAgent.indexOf("Chrome")>=0||navigator.userAgent.indexOf("Safari")>=0?"-webkit-calc("+i+"% - "+r+"px)":navigator.userAgent.indexOf("Firefox")>=0?"-moz-calc("+i+"% - "+r+"px)":"calc("+i+"% - "+r+"px)",t("li",n).not(".small").css("width",s)):f===t("li",n).length?(t(n).addClass("small-format"),u()):(t(n).removeClass("small-format"),u())});o()},h=function(){t(".rrssb-buttons").each(function(n){t(this).addClass("rrssb-"+(n+1))});u();t(".rrssb-buttons li .text").each(function(){var n=parseFloat(t(this).width());t(this).closest("li").attr("data-size",n)});e(!0)},f=function(n){t(".rrssb-buttons li.small").removeClass("small");e();n()},c=function(t,r,u,f){var e=n.screenLeft!==i?n.screenLeft:screen.left,o=n.screenTop!==i?n.screenTop:screen.top,s=n.innerWidth?n.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,h=n.innerHeight?n.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height,c=s/2-u/2+e,l=h/3-f/3+o,a=n.open(t,r,"scrollbars=yes, width="+u+", height="+f+", top="+l+", left="+c);n.focus&&a.focus()},l=function(){var n={};return function(t,i,r){r||(r="Don't call this twice without a uniqueId");n[r]&&clearTimeout(n[r]);n[r]=setTimeout(t,i)}}();t(".rrssb-buttons a.popup").on("click",function(n){var i=t(this);c(i.attr("href"),i.find(".text").html(),580,470);n.preventDefault()});t(n).resize(function(){f(r);l(function(){f(r)},200,"finished resizing")});t(document).ready(function(){h()})})(window,jQuery),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){var f={dir1:"down",dir2:"left",push:"bottom",spacing1:25,spacing2:25,context:n("body")},t,i,r=n(window),u=function(){i=n("body");PNotify.prototype.options.stack.context=i;r=n(window);r.bind("resize",function(){t&&clearTimeout(t);t=setTimeout(function(){PNotify.positionAll(!0)},10)})};PNotify=function(n){this.parseOptions(n);this.init()};n.extend(PNotify.prototype,{version:"2.0.0",options:{title:!1,title_escape:!1,text:!1,text_escape:!1,styling:"bootstrap3",addclass:"",cornerclass:"",auto_display:!0,width:"300px",min_height:"16px",type:"notice",icon:!0,opacity:1,animation:"fade",animate_speed:"slow",position_animate_speed:500,shadow:!0,hide:!0,delay:8e3,mouse_reset:!0,remove:!0,insert_brs:!0,destroy:!0,stack:f},modules:{},runModules:function(n,t){var r;for(var i in this.modules)(r="object"==typeof t&&i in t?t[i]:t,"function"==typeof this.modules[i][n])&&this.modules[i][n](this,"object"==typeof this.options[i]?this.options[i]:{},r)},state:"initializing",timer:null,styles:null,elem:null,container:null,title_container:null,text_container:null,animating:!1,timerHide:!1,init:function(){var t=this;return this.modules={},n.extend(!0,this.modules,PNotify.prototype.modules),this.styles="object"==typeof this.options.styling?this.options.styling:PNotify.styling[this.options.styling],this.elem=n("<div />",{"class":"ui-pnotify "+this.options.addclass,css:{display:"none"},mouseenter:function(){if(t.options.mouse_reset&&"out"===t.animating){if(!t.timerHide)return;t.elem.stop(!0);t.state="open";t.animating="in";t.elem.css("height","auto").animate({width:t.options.width,opacity:t.options.opacity},"fast")}t.options.hide&&t.options.mouse_reset&&t.cancelRemove()},mouseleave:function(){t.options.hide&&t.options.mouse_reset&&t.queueRemove();PNotify.positionAll()}}),this.container=n("<div />",{"class":this.styles.container+" ui-pnotify-container "+("error"===this.options.type?this.styles.error:"info"===this.options.type?this.styles.info:"success"===this.options.type?this.styles.success:this.styles.notice)}).appendTo(this.elem),""!==this.options.cornerclass&&this.container.removeClass("ui-corner-all").addClass(this.options.cornerclass),this.options.shadow&&this.container.addClass("ui-pnotify-shadow"),!1!==this.options.icon&&n("<div />",{"class":"ui-pnotify-icon"}).append(n("<span />",{"class":!0===this.options.icon?"error"===this.options.type?this.styles.error_icon:"info"===this.options.type?this.styles.info_icon:"success"===this.options.type?this.styles.success_icon:this.styles.notice_icon:this.options.icon})).prependTo(this.container),this.title_container=n("<h4 />",{"class":"ui-pnotify-title"}).appendTo(this.container),!1===this.options.title?this.title_container.hide():this.options.title_escape?this.title_container.text(this.options.title):this.title_container.html(this.options.title),this.text_container=n("<div />",{"class":"ui-pnotify-text"}).appendTo(this.container),!1===this.options.text?this.text_container.hide():this.options.text_escape?this.text_container.text(this.options.text):this.text_container.html(this.options.insert_brs?String(this.options.text).replace(/\n/g,"<br />"):this.options.text),"string"==typeof this.options.width&&this.elem.css("width",this.options.width),"string"==typeof this.options.min_height&&this.container.css("min-height",this.options.min_height),PNotify.notices="top"===this.options.stack.push?n.merge([this],PNotify.notices):n.merge(PNotify.notices,[this]),"top"===this.options.stack.push&&this.queuePosition(!1,1),this.options.stack.animation=!1,this.runModules("init"),this.options.auto_display&&this.open(),this},update:function(t){var i=this.options;return this.parseOptions(i,t),this.options.cornerclass!==i.cornerclass&&this.container.removeClass("ui-corner-all "+i.cornerclass).addClass(this.options.cornerclass),this.options.shadow!==i.shadow&&(this.options.shadow?this.container.addClass("ui-pnotify-shadow"):this.container.removeClass("ui-pnotify-shadow")),!1===this.options.addclass?this.elem.removeClass(i.addclass):this.options.addclass!==i.addclass&&this.elem.removeClass(i.addclass).addClass(this.options.addclass),!1===this.options.title?this.title_container.slideUp("fast"):this.options.title!==i.title&&(this.options.title_escape?this.title_container.text(this.options.title):this.title_container.html(this.options.title),!1===i.title&&this.title_container.slideDown(200)),!1===this.options.text?this.text_container.slideUp("fast"):this.options.text!==i.text&&(this.options.text_escape?this.text_container.text(this.options.text):this.text_container.html(this.options.insert_brs?String(this.options.text).replace(/\n/g,"<br />"):this.options.text),!1===i.text&&this.text_container.slideDown(200)),this.options.type!==i.type&&this.container.removeClass(this.styles.error+" "+this.styles.notice+" "+this.styles.success+" "+this.styles.info).addClass("error"===this.options.type?this.styles.error:"info"===this.options.type?this.styles.info:"success"===this.options.type?this.styles.success:this.styles.notice),(this.options.icon!==i.icon||!0===this.options.icon&&this.options.type!==i.type)&&(this.container.find("div.ui-pnotify-icon").remove(),!1!==this.options.icon&&n("<div />",{"class":"ui-pnotify-icon"}).append(n("<span />",{"class":!0===this.options.icon?"error"===this.options.type?this.styles.error_icon:"info"===this.options.type?this.styles.info_icon:"success"===this.options.type?this.styles.success_icon:this.styles.notice_icon:this.options.icon})).prependTo(this.container)),this.options.width!==i.width&&this.elem.animate({width:this.options.width}),this.options.min_height!==i.min_height&&this.container.animate({minHeight:this.options.min_height}),this.options.opacity!==i.opacity&&this.elem.fadeTo(this.options.animate_speed,this.options.opacity),this.options.hide?i.hide||this.queueRemove():this.cancelRemove(),this.queuePosition(!0),this.runModules("update",i),this},open:function(){this.state="opening";this.runModules("beforeOpen");var n=this;return this.elem.parent().length||this.elem.appendTo(this.options.stack.context?this.options.stack.context:i),"top"!==this.options.stack.push&&this.position(!0),"fade"===this.options.animation||"fade"===this.options.animation.effect_in?this.elem.show().fadeTo(0,0).hide():1!==this.options.opacity&&this.elem.show().fadeTo(0,this.options.opacity).hide(),this.animateIn(function(){n.queuePosition(!0);n.options.hide&&n.queueRemove();n.state="open";n.runModules("afterOpen")}),this},remove:function(t){this.state="closing";this.timerHide=!!t;this.runModules("beforeClose");var i=this;return this.timer&&(window.clearTimeout(this.timer),this.timer=null),this.animateOut(function(){if(i.state="closed",i.runModules("afterClose"),i.queuePosition(!0),i.options.remove&&i.elem.detach(),i.runModules("beforeDestroy"),i.options.destroy&&null!==PNotify.notices){var t=n.inArray(i,PNotify.notices);-1!==t&&PNotify.notices.splice(t,1)}i.runModules("afterDestroy")}),this},get:function(){return this.elem},parseOptions:function(t,i){var f,r,e,u;this.options=n.extend(!0,{},PNotify.prototype.options);this.options.stack=PNotify.prototype.options.stack;f=[t,i];for(e in f){if(r=f[e],"undefined"==typeof r)break;if("object"!=typeof r)this.options.text=r;else for(u in r)this.modules[u]?n.extend(!0,this.options[u],r[u]):this.options[u]=r[u]}},animateIn:function(n){this.animating="in";var t;t="undefined"!=typeof this.options.animation.effect_in?this.options.animation.effect_in:this.options.animation;"none"===t?(this.elem.show(),n()):"show"===t?this.elem.show(this.options.animate_speed,n):"fade"===t?this.elem.show().fadeTo(this.options.animate_speed,this.options.opacity,n):"slide"===t?this.elem.slideDown(this.options.animate_speed,n):"function"==typeof t?t("in",n,this.elem):this.elem.show(t,"object"==typeof this.options.animation.options_in?this.options.animation.options_in:{},this.options.animate_speed,n)},animateOut:function(n){this.animating="out";var t;t="undefined"!=typeof this.options.animation.effect_out?this.options.animation.effect_out:this.options.animation;"none"===t?(this.elem.hide(),n()):"show"===t?this.elem.hide(this.options.animate_speed,n):"fade"===t?this.elem.fadeOut(this.options.animate_speed,n):"slide"===t?this.elem.slideUp(this.options.animate_speed,n):"function"==typeof t?t("out",n,this.elem):this.elem.hide(t,"object"==typeof this.options.animation.options_out?this.options.animation.options_out:{},this.options.animate_speed,n)},position:function(n){var t=this.options.stack,s,o,u,f,e;if("undefined"==typeof t.context&&(t.context=i),t){if("number"!=typeof t.nextpos1&&(t.nextpos1=t.firstpos1),"number"!=typeof t.nextpos2&&(t.nextpos2=t.firstpos2),"number"!=typeof t.addpos2&&(t.addpos2=0),s="none"===this.elem.css("display"),!s||n){u={};switch(t.dir1){case"down":f="top";break;case"up":f="bottom";break;case"left":f="right";break;case"right":f="left"}n=parseInt(this.elem.css(f).replace(/(?:\..*|[^0-9.])/g,""));isNaN(n)&&(n=0);"undefined"!=typeof t.firstpos1||s||(t.firstpos1=n,t.nextpos1=t.firstpos1);switch(t.dir2){case"down":e="top";break;case"up":e="bottom";break;case"left":e="right";break;case"right":e="left"}if(o=parseInt(this.elem.css(e).replace(/(?:\..*|[^0-9.])/g,"")),isNaN(o)&&(o=0),"undefined"!=typeof t.firstpos2||s||(t.firstpos2=o,t.nextpos2=t.firstpos2),("down"===t.dir1&&t.nextpos1+this.elem.height()>(t.context.is(i)?r.height():t.context.prop("scrollHeight"))||"up"===t.dir1&&t.nextpos1+this.elem.height()>(t.context.is(i)?r.height():t.context.prop("scrollHeight"))||"left"===t.dir1&&t.nextpos1+this.elem.width()>(t.context.is(i)?r.width():t.context.prop("scrollWidth"))||"right"===t.dir1&&t.nextpos1+this.elem.width()>(t.context.is(i)?r.width():t.context.prop("scrollWidth")))&&(t.nextpos1=t.firstpos1,t.nextpos2+=t.addpos2+("undefined"==typeof t.spacing2?25:t.spacing2),t.addpos2=0),t.animation&&t.nextpos2<o)switch(t.dir2){case"down":u.top=t.nextpos2+"px";break;case"up":u.bottom=t.nextpos2+"px";break;case"left":u.right=t.nextpos2+"px";break;case"right":u.left=t.nextpos2+"px"}else"number"==typeof t.nextpos2&&this.elem.css(e,t.nextpos2+"px");switch(t.dir2){case"down":case"up":this.elem.outerHeight(!0)>t.addpos2&&(t.addpos2=this.elem.height());break;case"left":case"right":this.elem.outerWidth(!0)>t.addpos2&&(t.addpos2=this.elem.width())}if("number"==typeof t.nextpos1)if(t.animation&&(n>t.nextpos1||u.top||u.bottom||u.right||u.left))switch(t.dir1){case"down":u.top=t.nextpos1+"px";break;case"up":u.bottom=t.nextpos1+"px";break;case"left":u.right=t.nextpos1+"px";break;case"right":u.left=t.nextpos1+"px"}else this.elem.css(f,t.nextpos1+"px");(u.top||u.bottom||u.right||u.left)&&this.elem.animate(u,{duration:this.options.position_animate_speed,queue:!1});switch(t.dir1){case"down":case"up":t.nextpos1+=this.elem.height()+("undefined"==typeof t.spacing1?25:t.spacing1);break;case"left":case"right":t.nextpos1+=this.elem.width()+("undefined"==typeof t.spacing1?25:t.spacing1)}}return this}},queuePosition:function(n,i){return t&&clearTimeout(t),i||(i=10),t=setTimeout(function(){PNotify.positionAll(n)},i),this},cancelRemove:function(){return this.timer&&window.clearTimeout(this.timer),this},queueRemove:function(){var n=this;return this.cancelRemove(),this.timer=window.setTimeout(function(){n.remove(!0)},isNaN(this.options.delay)?0:this.options.delay),this}});n.extend(PNotify,{notices:[],removeAll:function(){n.each(PNotify.notices,function(){this.remove&&this.remove()})},positionAll:function(i){t&&clearTimeout(t);t=null;n.each(PNotify.notices,function(){var n=this.options.stack;n&&(n.nextpos1=n.firstpos1,n.nextpos2=n.firstpos2,n.addpos2=0,n.animation=i)});n.each(PNotify.notices,function(){this.position()})},styling:{jqueryui:{container:"ui-widget ui-widget-content ui-corner-all",notice:"ui-state-highlight",notice_icon:"ui-icon ui-icon-info",info:"",info_icon:"ui-icon ui-icon-info",success:"ui-state-default",success_icon:"ui-icon ui-icon-circle-check",error:"ui-state-error",error_icon:"ui-icon ui-icon-alert"},bootstrap2:{container:"alert",notice:"",notice_icon:"icon-exclamation-sign",info:"alert-info",info_icon:"icon-info-sign",success:"alert-success",success_icon:"icon-ok-sign",error:"alert-error",error_icon:"icon-warning-sign"},bootstrap3:{container:"alert",notice:"alert-warning",notice_icon:"glyphicon glyphicon-exclamation-sign",info:"alert-info",info_icon:"glyphicon glyphicon-info-sign",success:"alert-success",success_icon:"glyphicon glyphicon-ok-sign",error:"alert-danger",error_icon:"glyphicon glyphicon-warning-sign"}}});PNotify.styling.fontawesome=n.extend({},PNotify.styling.bootstrap3);n.extend(PNotify.styling.fontawesome,{notice_icon:"fa fa-exclamation-circle",info_icon:"fa fa-info",success_icon:"fa fa-check",error_icon:"fa fa-warning"});document.body?u():n(u)}),function(n){PNotify.prototype.options.buttons={closer:!0,closer_hover:!0,sticker:!0,sticker_hover:!0,labels:{close:"Close",stick:"Stick"}};PNotify.prototype.modules.buttons={myOptions:null,closer:null,sticker:null,init:function(t,i){var r=this;this.myOptions=i;t.elem.on({mouseenter:function(){!r.myOptions.sticker||t.options.nonblock&&t.options.nonblock.nonblock||r.sticker.trigger("pnotify_icon").css("visibility","visible");!r.myOptions.closer||t.options.nonblock&&t.options.nonblock.nonblock||r.closer.css("visibility","visible")},mouseleave:function(){r.myOptions.sticker_hover&&r.sticker.css("visibility","hidden");r.myOptions.closer_hover&&r.closer.css("visibility","hidden")}});this.sticker=n("<div />",{"class":"ui-pnotify-sticker",css:{cursor:"pointer",visibility:i.sticker_hover?"hidden":"visible"},click:function(){t.options.hide=!t.options.hide;t.options.hide?t.queueRemove():t.cancelRemove();n(this).trigger("pnotify_icon")}}).bind("pnotify_icon",function(){n(this).children().removeClass(t.styles.pin_up+" "+t.styles.pin_down).addClass(t.options.hide?t.styles.pin_up:t.styles.pin_down)}).append(n("<span />",{"class":t.styles.pin_up,title:i.labels.stick})).prependTo(t.container);(!i.sticker||t.options.nonblock&&t.options.nonblock.nonblock)&&this.sticker.css("display","none");this.closer=n("<div />",{"class":"ui-pnotify-closer",css:{cursor:"pointer",visibility:i.closer_hover?"hidden":"visible"},click:function(){t.remove(!1);r.sticker.css("visibility","hidden");r.closer.css("visibility","hidden")}}).append(n("<span />",{"class":t.styles.closer,title:i.labels.close})).prependTo(t.container);(!i.closer||t.options.nonblock&&t.options.nonblock.nonblock)&&this.closer.css("display","none")},update:function(n,t){this.myOptions=t;!t.closer||n.options.nonblock&&n.options.nonblock.nonblock?this.closer.css("display","none"):t.closer&&this.closer.css("display","block");!t.sticker||n.options.nonblock&&n.options.nonblock.nonblock?this.sticker.css("display","none"):t.sticker&&this.sticker.css("display","block");this.sticker.trigger("pnotify_icon");t.sticker_hover?this.sticker.css("visibility","hidden"):n.options.nonblock&&n.options.nonblock.nonblock||this.sticker.css("visibility","visible");t.closer_hover?this.closer.css("visibility","hidden"):n.options.nonblock&&n.options.nonblock.nonblock||this.closer.css("visibility","visible")}};n.extend(PNotify.styling.jqueryui,{closer:"ui-icon ui-icon-close",pin_up:"ui-icon ui-icon-pin-w",pin_down:"ui-icon ui-icon-pin-s"});n.extend(PNotify.styling.bootstrap2,{closer:"icon-remove",pin_up:"icon-pause",pin_down:"icon-play"});n.extend(PNotify.styling.bootstrap3,{closer:"glyphicon glyphicon-remove",pin_up:"glyphicon glyphicon-pause",pin_down:"glyphicon glyphicon-play"});n.extend(PNotify.styling.fontawesome,{closer:"fa fa-times",pin_up:"fa fa-pause",pin_down:"fa fa-play"})}(jQuery),function(){var n=PNotify.prototype.init,t=PNotify.prototype.open,i=PNotify.prototype.remove;PNotify.prototype.init=function(){this.options.before_init&&this.options.before_init(this.options);n.apply(this,arguments);this.options.after_init&&this.options.after_init(this)};PNotify.prototype.open=function(){var n;this.options.before_open&&(n=this.options.before_open(this));!1!==n&&(t.apply(this,arguments),this.options.after_open&&this.options.after_open(this))};PNotify.prototype.remove=function(n){var t;this.options.before_close&&(t=this.options.before_close(this,n));!1!==t&&(i.apply(this,arguments),this.options.after_close&&this.options.after_close(this,n))}}(jQuery),function(n){PNotify.prototype.options.confirm={confirm:!1,align:"right",buttons:[{text:"Ok",addClass:"",click:function(n){n.get().trigger("pnotify.confirm");n.remove()}},{text:"Cancel",addClass:"",click:function(n){n.get().trigger("pnotify.cancel");n.remove()}}]};PNotify.prototype.modules.confirm={buttonContainer:null,init:function(t,i){this.buttonContainer=n('<div style="margin-top:5px;clear:both;text-align:'+i.align+';" />').appendTo(t.container);i.confirm?this.makeButtons(t,i):this.buttonContainer.hide()},update:function(n,t){t.confirm?(this.makeButtons(n,t),this.buttonContainer.show()):this.buttonContainer.hide().empty()},makeButtons:function(t,i){var u=!1,r,f;this.buttonContainer.empty();for(f in i.buttons){if(r=i.buttons[f],u?this.buttonContainer.append(" "):u=!0,r=n('<button type="button" class="'+t.styles.btn+" "+r.addClass+'">'+r.text+"<\/button>").appendTo(this.buttonContainer).on("click",function(n){return function(){"function"==typeof n.click&&n.click(t)}}(r)),t.styles.text&&r.wrapInner('<span class="'+t.styles.text+'"><\/span>'),t.styles.btnhover&&r.hover(function(n){return function(){n.addClass(t.styles.btnhover)}}(r),function(n){return function(){n.removeClass(t.styles.btnhover)}}(r)),t.styles.btnactive)r.on("mousedown",function(n){return function(){n.addClass(t.styles.btnactive)}}(r)).on("mouseup",function(n){return function(){n.removeClass(t.styles.btnactive)}}(r));if(t.styles.btnfocus)r.on("focus",function(n){return function(){n.addClass(t.styles.btnfocus)}}(r)).on("blur",function(n){return function(){n.removeClass(t.styles.btnfocus)}}(r))}}};n.extend(PNotify.styling.jqueryui,{btn:"ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only",btnhover:"ui-state-hover",btnactive:"ui-state-active",btnfocus:"ui-state-focus",text:"ui-button-text"});n.extend(PNotify.styling.bootstrap2,{btn:"btn"});n.extend(PNotify.styling.bootstrap3,{btn:"btn btn-default"});n.extend(PNotify.styling.fontawesome,{btn:"btn btn-default"})}(jQuery),function(){var n,t=function(n,i){return t="Notification"in window?function(n,t){return new Notification(n,t)}:"mozNotification"in navigator?function(n,t){return navigator.mozNotification.createNotification(n,t.body,t.icon).show()}:"webkitNotifications"in window?function(n,t){return window.webkitNotifications.createNotification(t.icon,n,t.body)}:function(){return null},t(n,i)};PNotify.prototype.options.desktop={desktop:!1,icon:null};PNotify.prototype.modules.desktop={init:function(i,r){r.desktop&&(n=PNotify.desktop.checkPermission(),0==n&&(null===r.icon?r.icon="http://sciactive.com/pnotify/includes/desktop/"+i.options.type+".png":!1===r.icon&&(r.icon=null),i.desktop=t(i.options.title,{icon:r.icon,body:i.options.text}),"close"in i.desktop||(i.desktop=function(){i.desktop.cancel()}),i.desktop.onclick=function(){i.elem.trigger("click")},i.desktop.onclose=function(){"closing"!==i.state&&"closed"!==i.state&&i.remove()}))},update:function(){},beforeOpen:function(t,i){0==n&&i.desktop&&t.elem.css({left:"-10000px",display:"none"})},afterOpen:function(t,i){0==n&&i.desktop&&(t.elem.css({left:"-10000px",display:"none"}),"show"in t.desktop&&t.desktop.show())},beforeClose:function(t,i){0==n&&i.desktop&&t.elem.css({left:"-10000px",display:"none"})},afterClose:function(t,i){0==n&&i.desktop&&(t.elem.css({left:"-10000px",display:"none"}),t.desktop.close())}};PNotify.desktop={permission:function(){"undefined"!=typeof Notification&&"requestPermission"in Notification?Notification.requestPermission():"webkitNotifications"in window&&window.webkitNotifications.requestPermission()},checkPermission:function(){return"undefined"!=typeof Notification&&"permission"in Notification?"granted"==Notification.permission?0:1:"webkitNotifications"in window?window.webkitNotifications.checkPermission():1}};n=PNotify.desktop.checkPermission()}(jQuery),function(n){var t,i;n(function(){n("body").on("pnotify.history-all",function(){n.each(PNotify.notices,function(){this.modules.history.inHistory&&(this.elem.is(":visible")?this.options.hide&&this.queueRemove():this.open&&this.open())})}).on("pnotify.history-last",function(){var i="top"===PNotify.prototype.options.stack.push,n=i?0:-1,t;do{if(t=-1===n?PNotify.notices.slice(n):PNotify.notices.slice(n,n+1),!t[0])return!1;n=i?n+1:n-1}while(!t[0].modules.history.inHistory||t[0].elem.is(":visible"));t[0].open&&t[0].open()})});PNotify.prototype.options.history={history:!0,menu:!1,fixed:!0,maxonscreen:Infinity,labels:{redisplay:"Redisplay",all:"All",last:"Last"}};PNotify.prototype.modules.history={inHistory:!1,init:function(r,u){if(r.options.destroy=!1,this.inHistory=u.history,u.menu&&"undefined"==typeof t){t=n("<div />",{"class":"ui-pnotify-history-container "+r.styles.hi_menu,mouseleave:function(){t.animate({top:"-"+i+"px"},{duration:100,queue:!1})}}).append(n("<div />",{"class":"ui-pnotify-history-header",text:u.labels.redisplay})).append(n("<button />",{"class":"ui-pnotify-history-all "+r.styles.hi_btn,text:u.labels.all,mouseenter:function(){n(this).addClass(r.styles.hi_btnhov)},mouseleave:function(){n(this).removeClass(r.styles.hi_btnhov)},click:function(){return n(this).trigger("pnotify.history-all"),!1}})).append(n("<button />",{"class":"ui-pnotify-history-last "+r.styles.hi_btn,text:u.labels.last,mouseenter:function(){n(this).addClass(r.styles.hi_btnhov)},mouseleave:function(){n(this).removeClass(r.styles.hi_btnhov)},click:function(){return n(this).trigger("pnotify.history-last"),!1}})).appendTo("body");var f=n("<span />",{"class":"ui-pnotify-history-pulldown "+r.styles.hi_hnd,mouseenter:function(){t.animate({top:"0"},{duration:100,queue:!1})}}).appendTo(t);console.log(f.offset());i=f.offset().top+2;t.css({top:"-"+i+"px"});u.fixed&&t.addClass("ui-pnotify-history-fixed")}},update:function(n,i){this.inHistory=i.history;i.fixed&&t?t.addClass("ui-pnotify-history-fixed"):t&&t.removeClass("ui-pnotify-history-fixed")},beforeOpen:function(t,i){if(PNotify.notices&&PNotify.notices.length>i.maxonscreen){var r;r="top"!==t.options.stack.push?PNotify.notices.slice(0,PNotify.notices.length-i.maxonscreen):PNotify.notices.slice(i.maxonscreen,PNotify.notices.length);n.each(r,function(){this.remove&&this.remove()})}}};n.extend(PNotify.styling.jqueryui,{hi_menu:"ui-state-default ui-corner-bottom",hi_btn:"ui-state-default ui-corner-all",hi_btnhov:"ui-state-hover",hi_hnd:"ui-icon ui-icon-grip-dotted-horizontal"});n.extend(PNotify.styling.bootstrap2,{hi_menu:"well",hi_btn:"btn",hi_btnhov:"",hi_hnd:"icon-chevron-down"});n.extend(PNotify.styling.bootstrap3,{hi_menu:"well",hi_btn:"btn btn-default",hi_btnhov:"",hi_hnd:"glyphicon glyphicon-chevron-down"});n.extend(PNotify.styling.fontawesome,{hi_menu:"well",hi_btn:"btn btn-default",hi_btnhov:"",hi_hnd:"fa fa-chevron-down"})}(jQuery),function(n){var u=/^on/,f=/^(dbl)?click$|^mouse(move|down|up|over|out|enter|leave)$|^contextmenu$/,e=/^(focus|blur|select|change|reset)$|^key(press|down|up)$/,o=/^(scroll|resize|(un)?load|abort|error)$/,i=function(t,i){var r;t=t.toLowerCase();document.createEvent&&this.dispatchEvent?(t=t.replace(u,""),t.match(f)?(n(this).offset(),r=document.createEvent("MouseEvents"),r.initMouseEvent(t,i.bubbles,i.cancelable,i.view,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget)):t.match(e)?(r=document.createEvent("UIEvents"),r.initUIEvent(t,i.bubbles,i.cancelable,i.view,i.detail)):t.match(o)&&(r=document.createEvent("HTMLEvents"),r.initEvent(t,i.bubbles,i.cancelable)),r&&this.dispatchEvent(r)):(t.match(u)||(t="on"+t),r=document.createEventObject(i),this.fireEvent(t,r))},t,r=function(r,u,f){var e,o,s;r.elem.css("display","none");e=document.elementFromPoint(u.clientX,u.clientY);r.elem.css("display","block");o=n(e);s=o.css("cursor");r.elem.css("cursor","auto"!==s?s:"default");t&&t.get(0)==e||(t&&(i.call(t.get(0),"mouseleave",u.originalEvent),i.call(t.get(0),"mouseout",u.originalEvent)),i.call(e,"mouseenter",u.originalEvent),i.call(e,"mouseover",u.originalEvent));i.call(e,f,u.originalEvent);t=o};PNotify.prototype.options.nonblock={nonblock:!1,nonblock_opacity:.2};PNotify.prototype.modules.nonblock={myOptions:null,init:function(n,i){var u=this;this.myOptions=i;n.elem.on({mouseenter:function(t){u.myOptions.nonblock&&t.stopPropagation();u.myOptions.nonblock&&n.elem.stop().animate({opacity:u.myOptions.nonblock_opacity},"fast")},mouseleave:function(i){u.myOptions.nonblock&&i.stopPropagation();t=null;n.elem.css("cursor","auto");u.myOptions.nonblock&&"out"!==n.animating&&n.elem.stop().animate({opacity:n.options.opacity},"fast")},mouseover:function(n){u.myOptions.nonblock&&n.stopPropagation()},mouseout:function(n){u.myOptions.nonblock&&n.stopPropagation()},mousemove:function(t){u.myOptions.nonblock&&(t.stopPropagation(),r(n,t,"onmousemove"))},mousedown:function(t){u.myOptions.nonblock&&(t.stopPropagation(),t.preventDefault(),r(n,t,"onmousedown"))},mouseup:function(t){u.myOptions.nonblock&&(t.stopPropagation(),t.preventDefault(),r(n,t,"onmouseup"))},click:function(t){u.myOptions.nonblock&&(t.stopPropagation(),r(n,t,"onclick"))},dblclick:function(t){u.myOptions.nonblock&&(t.stopPropagation(),r(n,t,"ondblclick"))}})},update:function(n,t){this.myOptions=t}}}(jQuery),function(n){PNotify.prototype.options.reference={putThing:!1,labels:{text:"Spin Around"}};PNotify.prototype.modules.reference={thingElem:null,init:function(t,i){var r=this;i.putThing&&(this.thingElem=n('<button style="float:right;" class="btn btn-default" type="button" disabled><i class="'+t.styles.athing+'" />&nbsp;'+i.labels.text+"<\/button>").appendTo(t.container),t.container.append('<div style="clear: right; line-height: 0;" />'),t.elem.on({mouseenter:function(){r.thingElem.prop("disabled",!1)},mouseleave:function(){r.thingElem.prop("disabled",!0)}}),this.thingElem.on("click",function(){var n=0,i=setInterval(function(){n+=10;360==n&&(n=0,clearInterval(i));t.elem.css({"-moz-transform":"rotate("+n+"deg)","-webkit-transform":"rotate("+n+"deg)","-o-transform":"rotate("+n+"deg)","-ms-transform":"rotate("+n+"deg)",filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation="+n/90+")"})},20)}))},update:function(n,t){t.putThing&&this.thingElem?this.thingElem.show():!t.putThing&&this.thingElem&&this.thingElem.hide();this.thingElem&&this.thingElem.find("i").attr("class",n.styles.athing)},beforeOpen:function(){},afterOpen:function(){},beforeClose:function(){},afterClose:function(){},beforeDestroy:function(){},afterDestroy:function(){}};n.extend(PNotify.styling.jqueryui,{athing:"ui-icon ui-icon-refresh"});n.extend(PNotify.styling.bootstrap2,{athing:"icon-refresh"});n.extend(PNotify.styling.bootstrap3,{athing:"glyphicon glyphicon-refresh"});n.extend(PNotify.styling.fontawesome,{athing:"fa fa-refresh"})}(jQuery),function(n){n.fn.fitText=function(t,i){var u=t||1,r=n.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},i);return this.each(function(){var t=n(this),i=function(){t.css("font-size",Math.max(Math.min(t.width()/(u*10),parseFloat(r.maxFontSize)),parseFloat(r.minFontSize)))};i();n(window).on("resize.fittext orientationchange.fittext",i)})}}(jQuery);$.scrollbarWidth=function(){var n=$('<div style="width:50px;height:50px;overflow:auto"><div/><\/div>').appendTo("body"),t=n.children(),i=t.innerWidth()-t.height(99).innerWidth();return n.remove(),i};$(document).ready(function(){function i(n){var t,i;$(".footer").animate({height:n+"px"},{duration:500,queue:!1});t=$(".comments");t.hasClass("open")?t.animate({height:t.height()-n+"px"},{duration:500,queue:!1}):(i=$(".content-frame"),i.animate({height:i.height()-n+"px"},{duration:500,queue:!1}))}var n,t;$(window).resize(function(){calcHeight()});calcHeight();$(".rrssb-comment").click(function(){var n=$(".comments"),t=$(".content-frame");n.hasClass("open")?(n.animate({height:0},{duration:500,queue:!1}).removeClass("open"),t.animate({height:n.height()+"px"},{duration:500,queue:!1})):($(".comments-inner").show(),calcHeight(),n.animate({height:t.height()+"px"},{duration:500,queue:!1}).addClass("open"),t.animate({height:0},{duration:500,queue:!1}))});$(".rrssb-home").click(function(){window.location.href=$(this).attr("data-url")});$(".rrssb-close").click(function(){window.open("","_self").close()});n=$(".footer");n.length>0&&(t=50,setTimeout(function(){i(t)},parseInt(n.attr("data-timeout"))*1e3),$(".footer .close-button").click(function(){i(-t)}))})