$(document).ready(function(){$('.lightbox').nivoLightbox({effect:'fadeScale',keyboardNav:true,errorMessage:'The requested content cannot be loaded. Please try again later.'});checkCookie();});(jQuery)(function($){(function(){$(" #nav ul ").css({display:"none"});$(" #nav li").hover(function(){$(this).find('ul:first').css({visibility:"visible",display:"none"}).fadeIn(300);},function(){$(this).find('ul:first').css({display:"none"});});})();$(function(){$('#dl-menu').dlmenu({animationClasses:{classin:'dl-animate-in-2',classout:'dl-animate-out-2'}});});var window_y;var header_height;var scroll_position;(function(){window_y=0;header_height=$("#header-wrapper").height();scroll_position=parseInt(header_height,10);window_y=$(document).scrollTop();if((window_y>0)&&!(is_touch_device())){set_static_header(1);}})(window_y,header_height,scroll_position);function set_static_header(position){if(position>0){if(!($("#header-wrapper").hasClass("static"))){$("#header-wrapper").addClass("static");header_height=$("#header-wrapper").height();if($('body').hasClass('homepage')){$('.tp-wrapper').css("margin-top",header_height+"px");}else{$("#page-title").eq(0).css("margin-top",header_height+"px");}}}else{if(($("#header-wrapper").hasClass("static"))){$("#header-wrapper").removeClass("static");if($('body').hasClass('homepage')){$('.tp-wrapper').css("margin-top","");}else{$("#page-title").eq(0).css("margin-top","");} $("#header-wrapper").css("top",0);}}} $('#header').on('click','#search',function(e){e.preventDefault();$(this).find('#m_search').fadeIn().focus();});$('#m_search').focusout(function(e){$(e.target).fadeOut();});(function(){$('.tabs').each(function(){var $tabLis=$(this).find('li');var $tabContent=$(this).next('.tab-content-wrap').find('.tab-content');$tabContent.hide();$tabLis.first().addClass('active').show();$tabContent.first().show();});$('.tabs').on('click','li',function(e){var $this=$(this);var parentUL=$this.parent();var tabContent=parentUL.next('.tab-content-wrap');parentUL.children().removeClass('active');$this.addClass('active');tabContent.find('.tab-content').hide();var showById=$($this.find('a').attr('href'));tabContent.find(showById).fadeIn();e.preventDefault();});})();(function(){'use strict';$('.accordion').on('click','.atitle',function(event){event.preventDefault();$('.atitle').not($(this)).siblings('.content').slideUp('normal');$('.atitle').not($(this)).removeClass("active");$(this).siblings('.content').slideToggle('normal');$(this).toggleClass("active");});$('.accordion .content').hide();$('.accordion .active').next().slideDown('normal');})();(function(){$('.information-boxes .close').on('click',function(){$(this).parent().slideUp(300);});$('input[placeholder], textarea[placeholder]').placeholder();})();$(window).scroll(function(){if($(this).scrollTop()>100){$('.scroll-up').fadeIn();}else{$('.scroll-up').fadeOut();}});$('.scroll-up').click(function(){$("html, body").animate({scrollTop:0},600);return false;});$('.tweets-list-container').tweetscroll({username:'EVENT_NA_MIARE',limit:20,replies:true,position:'append',animation:'slide_up',visible_tweets:2});if(!is_touch_device()){$.stellar({horizontalOffset:0,horizontalScrolling:false});if($(".animated")[0]){jQuery('.animated').css('opacity','0');} $('.triggerAnimation').waypoint(function(){var animation=$(this).attr('data-animate');$(this).css('opacity','');$(this).addClass("animated "+animation);},{offset:'80%',triggerOnce:true});} function is_touch_device(){return'ontouchstart'in window||'onmsgesturechange'in window;} $("html").niceScroll().scrollstart(function(event){if(!is_touch_device()&&event.end.y>0){set_static_header(1);}}).scrollend(function(event){if(!is_touch_device()&&event.end.y==0){set_static_header(0);}});});function info_cookie(){var exdays=365;var exdate=new Date();exdate.setDate(exdate.getDate()+exdays);document.cookie='info_cookie=1;expires='+exdate.toUTCString();element=document.getElementById('panel_cookie_dol');element.style.display='none';} function getCookie(c_name) {var i,x,y,ARRcookies=document.cookie.split(";");for(i=0;i