// source --> http://vastagbel-rakszures.hu/wp-content/plugins/cookie-law-info/public/js/cookie-law-info-public.js
CLI_ACCEPT_COOKIE_NAME =(typeof CLI_ACCEPT_COOKIE_NAME !== 'undefined' ? CLI_ACCEPT_COOKIE_NAME : 'viewed_cookie_policy');
CLI_ACCEPT_COOKIE_EXPIRE =(typeof CLI_ACCEPT_COOKIE_EXPIRE !== 'undefined' ? CLI_ACCEPT_COOKIE_EXPIRE : 365);
CLI_COOKIEBAR_AS_POPUP=(typeof CLI_COOKIEBAR_AS_POPUP !== 'undefined' ? CLI_COOKIEBAR_AS_POPUP : false);
var CLI_Cookie={
set: function (name, value, days) {
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
var expires = "; expires=" + date.toGMTString();
} else
var expires = "";
document.cookie = name + "=" + value + expires + "; path=/";
if(days<1)
{
host_name=window.location.hostname;
document.cookie = name + "=" + value + expires + "; path=/; domain=."+host_name+";";
if(host_name.indexOf("www")!=1)
{
var host_name_withoutwww=host_name.replace('www','');
document.cookie = name + "=" + value + expires + "; path=/; domain="+host_name_withoutwww+";";
}
host_name=host_name.substring(host_name.lastIndexOf(".", host_name.lastIndexOf(".")-1));
document.cookie = name + "=" + value + expires + "; path=/; domain="+host_name+";";
}
},
read: function (name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1, c.length);
}
if (c.indexOf(nameEQ) === 0) {
return c.substring(nameEQ.length, c.length);
}
}
return null;
},
erase: function (name) {
this.set(name, "", -10);
},
exists: function (name) {
return (this.read(name) !== null);
},
getallcookies:function()
{
var pairs = document.cookie.split(";");
var cookieslist = {};
for (var i = 0; i < pairs.length; i++) {
var pair = pairs[i].split("=");
cookieslist[(pair[0] + '').trim()] = unescape(pair[1]);
}
return cookieslist;
}
}
var CLI=
{
bar_config:{},
showagain_config:{},
set:function(args)
{
if(typeof JSON.parse !== "function")
{
console.log("CookieLawInfo requires JSON.parse but your browser doesn't support it");
return;
}
this.settings = JSON.parse(args.settings);
this.bar_elm=jQuery(this.settings.notify_div_id);
this.showagain_elm = jQuery(this.settings.showagain_div_id);
/* buttons */
this.main_button=jQuery('.cli-plugin-main-button');
this.main_link = jQuery('.cli-plugin-main-link');
this.reject_link = jQuery('.cookie_action_close_header_reject');
this.delete_link=jQuery(".cookielawinfo-cookie-delete");
this.settings_button=jQuery('.cli_settings_button');
if(this.settings.cookie_bar_as=='popup')
{
CLI_COOKIEBAR_AS_POPUP=true;
}
this.configBar();
this.toggleBar();
this.attachDelete();
this.attachEvents();
this.configButtons();
var cli_hidebar_on_readmore=this.hideBarInReadMoreLink();
if(this.settings.scroll_close===true && cli_hidebar_on_readmore===false)
{
window.addEventListener("scroll",CLI.closeOnScroll, false);
}
},
hideBarInReadMoreLink:function()
{
if(CLI.settings.button_2_hidebar===true && this.main_link.length>0 && this.main_link.hasClass('cli-minimize-bar'))
{
this.hideHeader();
this.showagain_elm.slideDown(this.settings.animate_speed_show);
return true;
}
return false;
},
attachEvents:function()
{
jQuery('.cli_action_button').click(function(e){
e.preventDefault();
var elm=jQuery(this);
var button_action=elm.attr('data-cli_action');
var open_link=elm[0].hasAttribute("href") && elm.attr("href") != '#' ? true : false;
var new_window=false;
if(button_action=='accept')
{
CLI.accept_close();
new_window=CLI.settings.button_1_new_win ? true : false;
}else if(button_action=='reject')
{
CLI.reject_close();
new_window=CLI.settings.button_3_new_win ? true : false;
}
if(open_link)
{
if(new_window)
{
window.open(elm.attr("href"),'_blank');
}else
{
window.location.href =elm.attr("href");
}
}
});
this.settingsPopUp();
this.settingsTabbedAccordion();
this.toggleUserPreferenceCheckBox();
},
toggleUserPreferenceCheckBox:function()
{
jQuery('.cli-user-preference-checkbox').each(function(){
if(jQuery(this).is(':checked'))
{
CLI_Cookie.set('cookielawinfo-'+jQuery(this).attr('data-id'),'yes',CLI_ACCEPT_COOKIE_EXPIRE);
}else
{
CLI_Cookie.set('cookielawinfo-'+jQuery(this).attr('data-id'),'no',CLI_ACCEPT_COOKIE_EXPIRE);
}
});
jQuery('.cli-user-preference-checkbox').click(function(){
if(jQuery(this).is(':checked'))
{
CLI_Cookie.set('cookielawinfo-'+jQuery(this).attr('data-id'),'yes',CLI_ACCEPT_COOKIE_EXPIRE);
}else
{
CLI_Cookie.set('cookielawinfo-'+jQuery(this).attr('data-id'),'no',CLI_ACCEPT_COOKIE_EXPIRE);
}
});
},
settingsPopUp:function()
{
jQuery('.cli_settings_button').click(function (e) {
e.preventDefault();
jQuery('#cliSettingsPopup').addClass("cli-show").css({'opacity':0}).animate({'opacity':1});
jQuery('#cliSettingsPopup').removeClass('cli-blowup cli-out').addClass("cli-blowup");
jQuery('body').addClass("cli-modal-open");
jQuery(".cli-settings-overlay").addClass("cli-show");
jQuery("#cookie-law-info-bar").css({'opacity':.1});
if(!jQuery('.cli-settings-mobile').is(':visible'))
{
jQuery('#cliSettingsPopup').find('.cli-nav-link:eq(0)').click();
}
});
jQuery('#cliModalClose').click(function(){
CLI.settingsPopUpClose();
});
jQuery("#cliSettingsPopup").click(function(e){
if(!(document.getElementsByClassName('cli-modal-dialog')[0].contains(e.target)))
{
CLI.settingsPopUpClose();
}
});
jQuery('.cli_enable_all_btn').click(function(){
var cli_toggle_btn = jQuery(this);
var enable_text = cli_toggle_btn.attr('data-enable-text');
var disable_text= cli_toggle_btn.attr('data-disable-text');
if(cli_toggle_btn.hasClass('cli-enabled')){
CLI.disableAllCookies();
cli_toggle_btn.html(enable_text);
}
else
{
CLI.enableAllCookies();
cli_toggle_btn.html(disable_text);
}
jQuery(this).toggleClass('cli-enabled');
});
this.privacyReadmore();
},
settingsTabbedAccordion:function()
{
jQuery(".cli-tab-header").on("click", function(e) {
if(!(jQuery(e.target).hasClass('cli-slider') || jQuery(e.target).hasClass('cli-user-preference-checkbox')))
{
if (jQuery(this).hasClass("cli-tab-active")) {
jQuery(this).removeClass("cli-tab-active");
jQuery(this)
.siblings(".cli-tab-content")
.slideUp(200);
} else {
jQuery(".cli-tab-header").removeClass("cli-tab-active");
jQuery(this).addClass("cli-tab-active");
jQuery(".cli-tab-content").slideUp(200);
jQuery(this)
.siblings(".cli-tab-content")
.slideDown(200);
}
}
});
},
settingsPopUpClose:function()
{
jQuery('#cliSettingsPopup').removeClass('cli-show');
jQuery('#cliSettingsPopup').addClass('cli-out');
jQuery('body').removeClass("cli-modal-open");
jQuery(".cli-settings-overlay").removeClass("cli-show");
jQuery("#cookie-law-info-bar").css({'opacity':1});
},
privacyReadmore:function()
{
var el= jQuery('.cli-privacy-content .cli-privacy-content-text'),
clone= el.clone(),
originalHtml= clone.html(),
originalHeight= el.outerHeight(),
Trunc = {
addReadmore:function(textBlock)
{
if(textBlock.html().length > 250)
{
jQuery('.cli-privacy-readmore').show();
}
else
{
jQuery('.cli-privacy-readmore').hide();
}
},
truncateText : function( textBlock ) {
var strippedText = jQuery('
').html(textBlock.html());
strippedText.find('table').remove();
textBlock.html(strippedText.html());
currentText = textBlock.text();
if(currentText.trim().length > 250){
var newStr = currentText.substring(0, 250);
textBlock.empty().html(newStr).append('...');
}
},
replaceText: function ( textBlock, original ){
return textBlock.html(original);
}
};
Trunc.addReadmore(el);
Trunc.truncateText(el);
jQuery('a.cli-privacy-readmore').click(function(e){
e.preventDefault();
if(jQuery('.cli-privacy-overview').hasClass('cli-collapsed'))
{
Trunc.truncateText(el);
jQuery('.cli-privacy-overview').removeClass('cli-collapsed');
el.css('height', '100%');
}
else
{
jQuery('.cli-privacy-overview').addClass('cli-collapsed');
Trunc.replaceText(el, originalHtml);
}
});
},
attachDelete:function()
{
this.delete_link.click(function () {
CLI_Cookie.erase(CLI_ACCEPT_COOKIE_NAME);
for(var k in Cli_Data.nn_cookie_ids)
{
CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]);
}
return false;
});
},
configButtons:function()
{
/*[cookie_button] */
this.main_button.css('color',this.settings.button_1_link_colour);
if(this.settings.button_1_as_button)
{
this.main_button.css('background-color',this.settings.button_1_button_colour);
this.main_button.hover(function () {
jQuery(this).css('background-color',CLI.settings.button_1_button_hover);
},function (){
jQuery(this).css('background-color',CLI.settings.button_1_button_colour);
});
}
/* [cookie_link] */
this.main_link.css('color',this.settings.button_2_link_colour);
if(this.settings.button_2_as_button)
{
this.main_link.css('background-color',this.settings.button_2_button_colour);
this.main_link.hover(function () {
jQuery(this).css('background-color',CLI.settings.button_2_button_hover);
},function (){
jQuery(this).css('background-color',CLI.settings.button_2_button_colour);
});
}
/* [cookie_reject] */
this.reject_link.css('color',this.settings.button_3_link_colour);
if(this.settings.button_3_as_button)
{
this.reject_link.css('background-color',this.settings.button_3_button_colour);
this.reject_link.hover(function () {
jQuery(this).css('background-color',CLI.settings.button_3_button_hover);
},function () {
jQuery(this).css('background-color',CLI.settings.button_3_button_colour);
});
}
/* [cookie_settings] */
this.settings_button.css('color',this.settings.button_4_link_colour);
if(this.settings.button_4_as_button)
{
this.settings_button.css('background-color',this.settings.button_4_button_colour);
this.settings_button.hover(function () {
jQuery(this).css('background-color',CLI.settings.button_4_button_hover);
},function () {
jQuery(this).css('background-color',CLI.settings.button_4_button_colour);
});
}
},
toggleBar:function()
{
if(CLI_COOKIEBAR_AS_POPUP)
{
this.barAsPopUp(1);
}
if(CLI.settings.cookie_bar_as=='widget')
{
this.barAsWidget(1);
}
if(!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME))
{
this.displayHeader();
}else
{
this.hideHeader();
}
if(this.settings.show_once_yn)
{
setTimeout(function(){
CLI.close_header();
},CLI.settings.show_once);
}
this.showagain_elm.click(function (e) {
e.preventDefault();
CLI.showagain_elm.slideUp(CLI.settings.animate_speed_hide,function()
{
CLI.bar_elm.slideDown(CLI.settings.animate_speed_show);
if(CLI_COOKIEBAR_AS_POPUP)
{
CLI.showPopupOverlay();
}
});
});
},
configShowAgain:function()
{
this.showagain_config = {
'background-color': this.settings.background,
'color':this.l1hs(this.settings.text),
'position': 'fixed',
'font-family': this.settings.font_family
};
if(this.settings.border_on)
{
var border_to_hide = 'border-' + this.settings.notify_position_vertical;
this.showagain_config['border'] = '1px solid ' + this.l1hs(this.settings.border);
this.showagain_config[border_to_hide] = 'none';
}
var cli_win=jQuery(window);
var cli_winw=cli_win.width();
var showagain_x_pos=this.settings.showagain_x_position;
if(cli_winw<300)
{
showagain_x_pos=10;
this.showagain_config.width=cli_winw-20;
}else
{
this.showagain_config.width='auto';
}
var cli_defw=cli_winw>400 ? 500 : cli_winw-20;
if(CLI_COOKIEBAR_AS_POPUP) /* cookie bar as popup */
{
var sa_pos=this.settings.popup_showagain_position;
var sa_pos_arr=sa_pos.split('-');
if(sa_pos_arr[1]=='left')
{
this.showagain_config.left=showagain_x_pos;
}else if(sa_pos_arr[1]=='right')
{
this.showagain_config.right=showagain_x_pos;
}
if(sa_pos_arr[0]=='top')
{
this.showagain_config.top=0;
}else if(sa_pos_arr[0]=='bottom')
{
this.showagain_config.bottom=0;
}
this.bar_config['position'] = 'fixed';
}else if(this.settings.cookie_bar_as=='widget')
{
this.showagain_config.bottom=0;
if(this.settings.widget_position=='left')
{
this.showagain_config.left=showagain_x_pos;
}else if(this.settings.widget_position=='right')
{
this.showagain_config.right=showagain_x_pos;
}
}
else
{
if(this.settings.notify_position_vertical == "top")
{
this.showagain_config.top = '0';
}
else if(this.settings.notify_position_vertical == "bottom")
{
this.bar_config['position'] = 'fixed';
this.bar_config['bottom'] = '0';
this.showagain_config.bottom = '0';
}
if(this.settings.notify_position_horizontal == "left")
{
this.showagain_config.left =showagain_x_pos;
}else if(this.settings.notify_position_horizontal == "right")
{
this.showagain_config.right =showagain_x_pos;
}
}
this.showagain_elm.css(this.showagain_config);
},
configBar:function()
{
this.bar_config = {
'background-color':this.settings.background,
'color':this.settings.text,
'font-family':this.settings.font_family
};
if(this.settings.notify_position_vertical=="top")
{
this.bar_config['top'] = '0';
if(this.settings.header_fix === true)
{
this.bar_config['position'] = 'fixed';
}
}else
{
this.bar_config['bottom'] = '0';
}
this.configShowAgain();
this.bar_elm.css(this.bar_config).hide();
},
l1hs:function(str)
{
if (str.charAt(0) == "#") {
str = str.substring(1, str.length);
} else {
return "#" + str;
}
return this.l1hs(str);
},
close_header:function()
{
CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'yes',CLI_ACCEPT_COOKIE_EXPIRE);
this.hideHeader();
},
accept_close:function()
{
this.hidePopupOverlay();
CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'yes',CLI_ACCEPT_COOKIE_EXPIRE);
if(this.settings.notify_animate_hide)
{
this.bar_elm.slideUp(this.settings.animate_speed_hide);
}else
{
this.bar_elm.hide();
}
if(this.settings.showagain_tab)
{
this.showagain_elm.slideDown(this.settings.animate_speed_show);
}
if(this.settings.accept_close_reload === true)
{
this.reload_current_page();
}
return false;
},
reject_close:function()
{
this.hidePopupOverlay();
for(var k in Cli_Data.nn_cookie_ids)
{
CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]);
}
CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'no',CLI_ACCEPT_COOKIE_EXPIRE);
if(this.settings.notify_animate_hide)
{
this.bar_elm.slideUp(this.settings.animate_speed_hide);
} else
{
this.bar_elm.hide();
}
if(this.settings.showagain_tab)
{
this.showagain_elm.slideDown(this.settings.animate_speed_show);
}
if(this.settings.reject_close_reload === true)
{
this.reload_current_page();
}
return false;
},
reload_current_page:function()
{
if(typeof cli_flush_cache!=='undefined' && cli_flush_cache === true)
{
window.location.href=this.add_clear_cache_url_query();
}else
{
window.location.reload(true);
}
},
add_clear_cache_url_query:function()
{
var cli_rand=new Date().getTime()/1000;
var cli_url=window.location.href;
var cli_hash_arr=cli_url.split('#');
var cli_urlparts= cli_hash_arr[0].split('?');
if(cli_urlparts.length>=2)
{
var cli_url_arr=cli_urlparts[1].split('&');
cli_url_temp_arr=new Array();
for(var cli_i=0; cli_i0 ? '&': '')+'cli_action=';
}else
{
cli_url=cli_hash_arr[0]+'?cli_action=';
}
cli_url+=cli_rand;
if(cli_hash_arr.length>1)
{
cli_url+='#'+cli_hash_arr[1];
}
return cli_url;
},
closeOnScroll:function()
{
if(window.pageYOffset > 100 && !CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME))
{
CLI.accept_close();
if(CLI.settings.scroll_close_reload === true)
{
window.location.reload();
}
window.removeEventListener("scroll",CLI.closeOnScroll,false);
}
},
displayHeader:function()
{
if(this.settings.notify_animate_show)
{
this.bar_elm.slideDown(this.settings.animate_speed_show);
}else
{
this.bar_elm.show();
}
this.showagain_elm.hide();
if(CLI_COOKIEBAR_AS_POPUP)
{
this.showPopupOverlay();
}
},
hideHeader:function()
{
if(this.settings.showagain_tab)
{
if(this.settings.notify_animate_show)
{
this.showagain_elm.slideDown(this.settings.animate_speed_show);
} else {
this.showagain_elm.show();
}
}else
{
this.showagain_elm.hide();
}
this.bar_elm.slideUp(this.settings.animate_speed_show);
this.hidePopupOverlay();
},
hidePopupOverlay:function()
{
jQuery('body').removeClass("cli-barmodal-open");
jQuery(".cli-popupbar-overlay").removeClass("cli-show");
},
showPopupOverlay:function()
{
if(this.settings.popup_overlay)
{
jQuery('body').addClass("cli-barmodal-open");
jQuery(".cli-popupbar-overlay").addClass("cli-show");
}
},
barAsWidget:function(a)
{
var cli_elm=this.bar_elm;
var cli_win=jQuery(window);
var cli_winh=cli_win.height()-40;
var cli_winw=cli_win.width();
var cli_defw=cli_winw>400 ? 300 : cli_winw-30;
cli_elm.css({
'width':cli_defw,'height':'auto','max-height':cli_winh,'padding':'25px 15px','overflow':'auto','position':'fixed','box-sizing':'border-box'
});
if(this.settings.widget_position=='left')
{
cli_elm.css({
'left':'15px','right':'auto','bottom':'15px','top':'auto'
});
}else
{
cli_elm.css({
'left':'auto','right':'15px','bottom':'15px','top':'auto'
});
}
if(a)
{
this.setResize();
}
},
barAsPopUp:function(a)
{
if(typeof cookie_law_info_bar_as_popup==='function')
{
return false;
}
var cli_elm=this.bar_elm;
var cli_win=jQuery(window);
var cli_winh=cli_win.height()-40;
var cli_winw=cli_win.width();
var cli_defw=cli_winw>700 ? 500 : cli_winw-20;
cli_elm.css({
'width':cli_defw,'height':'auto','max-height':cli_winh,'bottom':'','top':'50%','left':'50%','margin-left':(cli_defw/2)*-1,'margin-top':'-100px','padding':'25px 15px','overflow':'auto'
}).addClass('cli-bar-popup cli-modal-content');
cli_h=cli_elm.height();
li_h=cli_h<200 ? 200 : cli_h;
cli_elm.css({'top':'50%','margin-top':((cli_h/2)+30)*-1});
setTimeout(function(){
cli_elm.css({
'bottom':''
});
},100);
if(a)
{
this.setResize();
}
},
setResize:function()
{
var resizeTmr=null;
jQuery(window).resize(function() {
clearTimeout(resizeTmr);
resizeTmr=setTimeout(function()
{
if(CLI_COOKIEBAR_AS_POPUP)
{
CLI.barAsPopUp();
}
if(CLI.settings.cookie_bar_as=='widget')
{
CLI.barAsWidget();
}
CLI.configShowAgain();
},500);
});
}
}
jQuery(document).ready(function() {
if(typeof cli_cookiebar_settings!='undefined')
{
CLI.set({
settings:cli_cookiebar_settings
});
}
});
// source --> http://vastagbel-rakszures.hu/wp-content/plugins/the-mkm-plugin/jquery.lazyload.min.js
/*
* Lazy Load - jQuery plugin for lazy loading images
*
* Copyright (c) 2007-2013 Mika Tuupola
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* Project home:
* http://www.appelsiini.net/projects/lazyload
*
* Version: 1.8.4
*
*/
(function(a,b,c,d){var e=a(b);a.fn.lazyload=function(c){function i(){var b=0;f.each(function(){var c=a(this);if(h.skip_invisible&&!c.is(":visible"))return;if(!a.abovethetop(this,h)&&!a.leftofbegin(this,h))if(!a.belowthefold(this,h)&&!a.rightoffold(this,h))c.trigger("appear"),b=0;else if(++b>h.failure_limit)return!1})}var f=this,g,h={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:b,data_attribute:"original",skip_invisible:!0,appear:null,load:null};return c&&(d!==c.failurelimit&&(c.failure_limit=c.failurelimit,delete c.failurelimit),d!==c.effectspeed&&(c.effect_speed=c.effectspeed,delete c.effectspeed),a.extend(h,c)),g=h.container===d||h.container===b?e:a(h.container),0===h.event.indexOf("scroll")&&g.bind(h.event,function(a){return i()}),this.each(function(){var b=this,c=a(b);b.loaded=!1,c.one("appear",function(){if(!this.loaded){if(h.appear){var d=f.length;h.appear.call(b,d,h)}a("").bind("load",function(){c.hide().attr("src",c.data(h.data_attribute))[h.effect](h.effect_speed),b.loaded=!0;var d=a.grep(f,function(a){return!a.loaded});f=a(d);if(h.load){var e=f.length;h.load.call(b,e,h)}}).attr("src",c.data(h.data_attribute))}}),0!==h.event.indexOf("scroll")&&c.bind(h.event,function(a){b.loaded||c.trigger("appear")})}),e.bind("resize",function(a){i()}),/iphone|ipod|ipad.*os 5/gi.test(navigator.appVersion)&&e.bind("pageshow",function(b){b.originalEvent.persisted&&f.each(function(){a(this).trigger("appear")})}),a(b).load(function(){i()}),this},a.belowthefold=function(c,f){var g;return f.container===d||f.container===b?g=e.height()+e.scrollTop():g=a(f.container).offset().top+a(f.container).height(),g<=a(c).offset().top-f.threshold},a.rightoffold=function(c,f){var g;return f.container===d||f.container===b?g=e.width()+e.scrollLeft():g=a(f.container).offset().left+a(f.container).width(),g<=a(c).offset().left-f.threshold},a.abovethetop=function(c,f){var g;return f.container===d||f.container===b?g=e.scrollTop():g=a(f.container).offset().top,g>=a(c).offset().top+f.threshold+a(c).height()},a.leftofbegin=function(c,f){var g;return f.container===d||f.container===b?g=e.scrollLeft():g=a(f.container).offset().left,g>=a(c).offset().left+f.threshold+a(c).width()},a.inviewport=function(b,c){return!a.rightoffold(b,c)&&!a.leftofbegin(b,c)&&!a.belowthefold(b,c)&&!a.abovethetop(b,c)},a.extend(a.expr[":"],{"below-the-fold":function(b){return a.belowthefold(b,{threshold:0})},"above-the-top":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-screen":function(b){return a.rightoffold(b,{threshold:0})},"left-of-screen":function(b){return!a.rightoffold(b,{threshold:0})},"in-viewport":function(b){return a.inviewport(b,{threshold:0})},"above-the-fold":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-fold":function(b){return a.rightoffold(b,{threshold:0})},"left-of-fold":function(b){return!a.rightoffold(b,{threshold:0})}})})(jQuery,window,document);
// source --> http://vastagbel-rakszures.hu/wp-content/plugins/nivo-slider-for-wordpress/js/jquery.nivo.slider.pack.js
/*
* jQuery Nivo Slider v2.6
* http://nivo.dev7studios.com
*
* Copyright 2011, Gilbert Pellegrom
* Free to use and abuse under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
* March 2010
*/
(function($){var NivoSlider=function(element,options){var settings=$.extend({},$.fn.nivoSlider.defaults,options);var vars={currentSlide:0,currentImage:'',totalSlides:0,randAnim:'',running:false,paused:false,stop:false};var slider=$(element);slider.data('nivo:vars',vars);slider.css('position','relative');slider.addClass('nivoSlider');var kids=slider.children();kids.each(function(){var child=$(this);var link='';if(!child.is('img')){if(child.is('a')){child.addClass('nivo-imageLink');link=child;}
child=child.find('img:first');}
var childWidth=child.width();if(childWidth==0)childWidth=child.attr('width');var childHeight=child.height();if(childHeight==0)childHeight=child.attr('height');if(childWidth>slider.width()){slider.width(childWidth);}
if(childHeight>slider.height()){slider.height(childHeight);}
if(link!=''){link.css('display','none');}
child.css('display','none');vars.totalSlides++;});if(settings.startSlide>0){if(settings.startSlide>=vars.totalSlides)settings.startSlide=vars.totalSlides-1;vars.currentSlide=settings.startSlide;}
if($(kids[vars.currentSlide]).is('img')){vars.currentImage=$(kids[vars.currentSlide]);}else{vars.currentImage=$(kids[vars.currentSlide]).find('img:first');}
if($(kids[vars.currentSlide]).is('a')){$(kids[vars.currentSlide]).css('display','block');}
slider.css('background','url("'+vars.currentImage.attr('src')+'") no-repeat');slider.append($('').css({display:'none',opacity:settings.captionOpacity}));var processCaption=function(settings){var nivoCaption=$('.nivo-caption',slider);if(vars.currentImage.attr('title')!=''&&vars.currentImage.attr('title')!=undefined){var title=vars.currentImage.attr('title');if(title.substr(0,1)=='#')title=$(title).html();if(nivoCaption.css('display')=='block'){nivoCaption.find('p').fadeOut(settings.animSpeed,function(){$(this).html(title);$(this).fadeIn(settings.animSpeed);});}else{nivoCaption.find('p').html(title);}
nivoCaption.fadeIn(settings.animSpeed);}else{nivoCaption.fadeOut(settings.animSpeed);}}
processCaption(settings);var timer=0;if(!settings.manualAdvance&&kids.length>1){timer=setInterval(function(){nivoRun(slider,kids,settings,false);},settings.pauseTime);}
if(settings.directionNav){slider.append('');if(settings.directionNavHide){$('.nivo-directionNav',slider).hide();slider.hover(function(){$('.nivo-directionNav',slider).show();},function(){$('.nivo-directionNav',slider).hide();});}
$('a.nivo-prevNav',slider).live('click',function(){if(vars.running)return false;clearInterval(timer);timer='';vars.currentSlide-=2;nivoRun(slider,kids,settings,'prev');});$('a.nivo-nextNav',slider).live('click',function(){if(vars.running)return false;clearInterval(timer);timer='';nivoRun(slider,kids,settings,'next');});}
if(settings.controlNav){var nivoControl=$('');slider.append(nivoControl);for(var i=0;i');}else{nivoControl.append('');}}else{nivoControl.append(''+(i+1)+'');}}
$('.nivo-controlNav a:eq('+vars.currentSlide+')',slider).addClass('active');$('.nivo-controlNav a',slider).live('click',function(){if(vars.running)return false;if($(this).hasClass('active'))return false;clearInterval(timer);timer='';slider.css('background','url("'+vars.currentImage.attr('src')+'") no-repeat');vars.currentSlide=$(this).attr('rel')-1;nivoRun(slider,kids,settings,'control');});}
if(settings.keyboardNav){$(window).keypress(function(event){if(event.keyCode=='37'){if(vars.running)return false;clearInterval(timer);timer='';vars.currentSlide-=2;nivoRun(slider,kids,settings,'prev');}
if(event.keyCode=='39'){if(vars.running)return false;clearInterval(timer);timer='';nivoRun(slider,kids,settings,'next');}});}
if(settings.pauseOnHover){slider.hover(function(){vars.paused=true;clearInterval(timer);timer='';},function(){vars.paused=false;if(timer==''&&!settings.manualAdvance){timer=setInterval(function(){nivoRun(slider,kids,settings,false);},settings.pauseTime);}});}
slider.bind('nivo:animFinished',function(){vars.running=false;$(kids).each(function(){if($(this).is('a')){$(this).css('display','none');}});if($(kids[vars.currentSlide]).is('a')){$(kids[vars.currentSlide]).css('display','block');}
if(timer==''&&!vars.paused&&!settings.manualAdvance){timer=setInterval(function(){nivoRun(slider,kids,settings,false);},settings.pauseTime);}
settings.afterChange.call(this);});var createSlices=function(slider,settings,vars){for(var i=0;i').css({left:(sliceWidth*i)+'px',width:(slider.width()-(sliceWidth*i))+'px',height:'0px',opacity:'0',background:'url("'+vars.currentImage.attr('src')+'") no-repeat -'+((sliceWidth+(i*sliceWidth))-sliceWidth)+'px 0%'}));}else{slider.append($('').css({left:(sliceWidth*i)+'px',width:sliceWidth+'px',height:'0px',opacity:'0',background:'url("'+vars.currentImage.attr('src')+'") no-repeat -'+((sliceWidth+(i*sliceWidth))-sliceWidth)+'px 0%'}));}}}
var createBoxes=function(slider,settings,vars){var boxWidth=Math.round(slider.width()/settings.boxCols);var boxHeight=Math.round(slider.height()/settings.boxRows);for(var rows=0;rows').css({opacity:0,left:(boxWidth*cols)+'px',top:(boxHeight*rows)+'px',width:(slider.width()-(boxWidth*cols))+'px',height:boxHeight+'px',background:'url("'+vars.currentImage.attr('src')+'") no-repeat -'+((boxWidth+(cols*boxWidth))-boxWidth)+'px -'+((boxHeight+(rows*boxHeight))-boxHeight)+'px'}));}else{slider.append($('').css({opacity:0,left:(boxWidth*cols)+'px',top:(boxHeight*rows)+'px',width:boxWidth+'px',height:boxHeight+'px',background:'url("'+vars.currentImage.attr('src')+'") no-repeat -'+((boxWidth+(cols*boxWidth))-boxWidth)+'px -'+((boxHeight+(rows*boxHeight))-boxHeight)+'px'}));}}}}
var nivoRun=function(slider,kids,settings,nudge){var vars=slider.data('nivo:vars');if(vars&&(vars.currentSlide==vars.totalSlides-1)){settings.lastSlide.call(this);}
if((!vars||vars.stop)&&!nudge)return false;settings.beforeChange.call(this);if(!nudge){slider.css('background','url("'+vars.currentImage.attr('src')+'") no-repeat');}else{if(nudge=='prev'){slider.css('background','url("'+vars.currentImage.attr('src')+'") no-repeat');}
if(nudge=='next'){slider.css('background','url("'+vars.currentImage.attr('src')+'") no-repeat');}}
vars.currentSlide++;if(vars.currentSlide==vars.totalSlides){vars.currentSlide=0;settings.slideshowEnd.call(this);}
if(vars.currentSlide<0)vars.currentSlide=(vars.totalSlides-1);if($(kids[vars.currentSlide]).is('img')){vars.currentImage=$(kids[vars.currentSlide]);}else{vars.currentImage=$(kids[vars.currentSlide]).find('img:first');}
if(settings.controlNav){$('.nivo-controlNav a',slider).removeClass('active');$('.nivo-controlNav a:eq('+vars.currentSlide+')',slider).addClass('active');}
processCaption(settings);$('.nivo-slice',slider).remove();$('.nivo-box',slider).remove();if(settings.effect=='random'){var anims=new Array('sliceDownRight','sliceDownLeft','sliceUpRight','sliceUpLeft','sliceUpDown','sliceUpDownLeft','fold','fade','boxRandom','boxRain','boxRainReverse','boxRainGrow','boxRainGrowReverse');vars.randAnim=anims[Math.floor(Math.random()*(anims.length+1))];if(vars.randAnim==undefined)vars.randAnim='fade';}
if(settings.effect.indexOf(',')!=-1){var anims=settings.effect.split(',');vars.randAnim=anims[Math.floor(Math.random()*(anims.length))];if(vars.randAnim==undefined)vars.randAnim='fade';}
vars.running=true;if(settings.effect=='sliceDown'||settings.effect=='sliceDownRight'||vars.randAnim=='sliceDownRight'||settings.effect=='sliceDownLeft'||vars.randAnim=='sliceDownLeft'){createSlices(slider,settings,vars);var timeBuff=0;var i=0;var slices=$('.nivo-slice',slider);if(settings.effect=='sliceDownLeft'||vars.randAnim=='sliceDownLeft')slices=$('.nivo-slice',slider)._reverse();slices.each(function(){var slice=$(this);slice.css({'top':'0px'});if(i==settings.slices-1){setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed);},(100+timeBuff));}
timeBuff+=50;i++;});}
else if(settings.effect=='sliceUp'||settings.effect=='sliceUpRight'||vars.randAnim=='sliceUpRight'||settings.effect=='sliceUpLeft'||vars.randAnim=='sliceUpLeft'){createSlices(slider,settings,vars);var timeBuff=0;var i=0;var slices=$('.nivo-slice',slider);if(settings.effect=='sliceUpLeft'||vars.randAnim=='sliceUpLeft')slices=$('.nivo-slice',slider)._reverse();slices.each(function(){var slice=$(this);slice.css({'bottom':'0px'});if(i==settings.slices-1){setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed);},(100+timeBuff));}
timeBuff+=50;i++;});}
else if(settings.effect=='sliceUpDown'||settings.effect=='sliceUpDownRight'||vars.randAnim=='sliceUpDown'||settings.effect=='sliceUpDownLeft'||vars.randAnim=='sliceUpDownLeft'){createSlices(slider,settings,vars);var timeBuff=0;var i=0;var v=0;var slices=$('.nivo-slice',slider);if(settings.effect=='sliceUpDownLeft'||vars.randAnim=='sliceUpDownLeft')slices=$('.nivo-slice',slider)._reverse();slices.each(function(){var slice=$(this);if(i==0){slice.css('top','0px');i++;}else{slice.css('bottom','0px');i=0;}
if(v==settings.slices-1){setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed);},(100+timeBuff));}
timeBuff+=50;v++;});}
else if(settings.effect=='fold'||vars.randAnim=='fold'){createSlices(slider,settings,vars);var timeBuff=0;var i=0;$('.nivo-slice',slider).each(function(){var slice=$(this);var origWidth=slice.width();slice.css({top:'0px',height:'100%',width:'0px'});if(i==settings.slices-1){setTimeout(function(){slice.animate({width:origWidth,opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){slice.animate({width:origWidth,opacity:'1.0'},settings.animSpeed);},(100+timeBuff));}
timeBuff+=50;i++;});}
else if(settings.effect=='fade'||vars.randAnim=='fade'){createSlices(slider,settings,vars);var firstSlice=$('.nivo-slice:first',slider);firstSlice.css({'height':'100%','width':slider.width()+'px'});firstSlice.animate({opacity:'1.0'},(settings.animSpeed*2),'',function(){slider.trigger('nivo:animFinished');});}
else if(settings.effect=='slideInRight'||vars.randAnim=='slideInRight'){createSlices(slider,settings,vars);var firstSlice=$('.nivo-slice:first',slider);firstSlice.css({'height':'100%','width':'0px','opacity':'1'});firstSlice.animate({width:slider.width()+'px'},(settings.animSpeed*2),'',function(){slider.trigger('nivo:animFinished');});}
else if(settings.effect=='slideInLeft'||vars.randAnim=='slideInLeft'){createSlices(slider,settings,vars);var firstSlice=$('.nivo-slice:first',slider);firstSlice.css({'height':'100%','width':'0px','opacity':'1','left':'','right':'0px'});firstSlice.animate({width:slider.width()+'px'},(settings.animSpeed*2),'',function(){firstSlice.css({'left':'0px','right':''});slider.trigger('nivo:animFinished');});}
else if(settings.effect=='boxRandom'||vars.randAnim=='boxRandom'){createBoxes(slider,settings,vars);var totalBoxes=settings.boxCols*settings.boxRows;var i=0;var timeBuff=0;var boxes=shuffle($('.nivo-box',slider));boxes.each(function(){var box=$(this);if(i==totalBoxes-1){setTimeout(function(){box.animate({opacity:'1'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){box.animate({opacity:'1'},settings.animSpeed);},(100+timeBuff));}
timeBuff+=20;i++;});}
else if(settings.effect=='boxRain'||vars.randAnim=='boxRain'||settings.effect=='boxRainReverse'||vars.randAnim=='boxRainReverse'||settings.effect=='boxRainGrow'||vars.randAnim=='boxRainGrow'||settings.effect=='boxRainGrowReverse'||vars.randAnim=='boxRainGrowReverse'){createBoxes(slider,settings,vars);var totalBoxes=settings.boxCols*settings.boxRows;var i=0;var timeBuff=0;var rowIndex=0;var colIndex=0;var box2Darr=new Array();box2Darr[rowIndex]=new Array();var boxes=$('.nivo-box',slider);if(settings.effect=='boxRainReverse'||vars.randAnim=='boxRainReverse'||settings.effect=='boxRainGrowReverse'||vars.randAnim=='boxRainGrowReverse'){boxes=$('.nivo-box',slider)._reverse();}
boxes.each(function(){box2Darr[rowIndex][colIndex]=$(this);colIndex++;if(colIndex==settings.boxCols){rowIndex++;colIndex=0;box2Darr[rowIndex]=new Array();}});for(var cols=0;cols<(settings.boxCols*2);cols++){var prevCol=cols;for(var rows=0;rows=0&&prevCol