"+i[s]+""+r[s]+""+p[s]+"
");var _="Sondaż
";_+=''+n+"
",_+="",_+=l,e.addClass(t.class_results),e.html(_)};var Callback=function(e){var t=$(".mod_newsletter_layer"),a=t.find('input[name="s_email"]').val();switch(parseInt(e.code)){case 1:t.addClass("success"),t.find("h3").html("Wysłaliśmy Ci maila na adres: "+a+"
Kliknij link w wiadomości, żeby potwierdzić zapis.");break;case 4:t.addClass("error"),t.find("h3").html("Wysłaliśmy już wiadomość na podany adres.
Sprawdź także folder SPAM i kliknij w link, żeby potwierdzić zapis.");break;case 8:t.addClass("error"),t.find("h3").html("Podany adres e-mail jest już zapisany na newsletter.");break;default:t.addClass("error"),t.find("h3").html("Podany adres e-mail jest już zapisany na newsletter.")}};gazeta_pl.News={init:function(){var e=$(".news_box");e.length&&e.find("h3").each(function(){$(this).click(function(){if(!$(this).hasClass("active")){var t=$(this).attr("class").split("_").splice(0,2);t=t.join("_"),$(this).addClass("active").siblings().removeClass("active"),e.find('div[class*="'+t+'"]').addClass("active").siblings().removeClass("active")}})})}},gazeta_pl.kultura={init:function(){var e=gazeta_pl.kultura,t=$(".path_Meskiegranie #col_right .mod.mod_poll.bunny_poll > header");e.mt.init(),e.nav.init(),e.sareNewsletter(),e.scrollViewCounter.init(),$(".mod_waether .c0 span").insertBefore($(".mod_waether .c0 a")).css("display","inline-block"),$(".SONwrp2").length>0&&$(".SONwrp2").sanitize_poll({img_src:"http://bi.gazeta.pl/i/obrazki/kultura/vote-btn.png",img_alt:"głosuj",class_vote:"voting",class_results:"results",all_votes:"Liczba oddanych głosów:",callback:function(e){var t=e.parent(),a=t.find(".SONimg");if(a.length>0){var o=a.parent("a");o.length>0?t.find(".head").prepend(o):t.find(".head").prepend(a)}$(".SONwrp2").parent().css({display:"block"})}}),t.length>0&&t.append('Sponsorowany'),$("#holder_402, #holder_403").each(function(){$(this).gazeta(gfunc.emptyChild,".wrap")&&$(this).hide()}),$("#col_left .content_row").each(function(){$(this).gazeta(gfunc.emptyChild,".holder_cl")&&$(this).hide()}),$("#navbot_wrap").each(function(){$(this).gazeta(gfunc.emptyChild,".c0")&&$(this).gazeta(gfunc.emptyChild,".c1")&&$(this).hide()}),$("#col_right .header_counter").length&&gazeta_pl.header_counter.init(),gazeta_pl.News.init()},mt:{init:function(){$(".mod_uzr_qb").each(function(){var e=$(this);e.data({automove:!1}),e.prepend(''),e.append('
'),e.gazeta(gfunc.gslider,{selectors:{bodyOuter:".slides",bodyInner:".slides > ul",bodyElems:".slides > ul > li",buttonPrev:".prev",buttonNext:".next"},visible_elems:1}),e.find(".scroll").click(function(){e.data({automove:!1})}),setTimeout(function(){!0===e.data("automove")&&(e.trigger("move"),setTimeout(arguments.callee,5e3))},5e3)})}},nav:{init:function(){$("#navH li.active").length>0&&$("#navH .p0 > li.active").prev().addClass("before beforeActive"),$("#navH .p0 > li:not(.info)").gazeta(gfunc.nav,{prevClass:"before"})}},sareNewsletter:function(){var e=$(".mod_newsletter_layer");e.find(".btnSend").click(function(t){t.preventDefault(),t.stopImmediatePropagation();var a=e.find("form");if(/^[a-zA-Z0-9\u0105\u0107\u0119\u0142\u0144\u00f3\u015b\u017a\u017c\u0104\u0106\u0118\u0141\u00d3\u0143\u015a\u0179\u017b._-]+@[a-zA-Z0-9\u0105\u0107\u0119\u0142\u0144\u00f3\u015b\u017a\u017c\u0104\u0106\u0118\u0141\u00d3\u0143\u015a\u0179\u017b.-]+\.[a-zA-Z]{2,4}$/.test(a.find('input[name="s_email"]').val())){e.removeClass("error");var o=a.attr("action")+"?"+a.serialize();$.ajax({url:o,jsonpCallback:"callback",dataType:"jsonp"}),console.log(o)}else e.addClass("error"),e.find("h3").html("Adres e-mail zawiera błąd.
Prosimy o sprawdzenie");return!1}),e.find("form").submit(function(e){return e.preventDefault(),e.stopImmediatePropagation(),$btnSend.trigger("click"),!1})},scrollViewCounter:{comments:{},qaCodes:{category:"Artykul",action:"Doscrollowanie"},init:function(){var e=gazeta_pl.kultura.scrollViewCounter,t=$("#opinions .content"),a=$("#banP42"),o=t.find("[data-permalink]"),n=null;"1"===gazeta_pl.readPageData().pageType&&(t.length||(n="Komentarze sa wylaczone"),o.length||(n="brak komentarzy"),n&&_gaq.push(["_trackEvent",e.qaCodes.category,e.qaCodes.action,n,,!0]),a.length&&(e.comments={start:{positionY:t.length?t.offset().top-window.innerHeight-100:document.body.clientHeight+100,label:"Komentarze wyswietlony poczatek",alreadyVisible:!1},end:{positionY:t.length?a.offset().top-window.innerHeight-100:document.body.clientHeight+100,label:"Komentarze wyswietlony koniec",alreadyVisible:!1}},$(window).bind("scroll",e.onScrollCounter),e.onScrollCounter()))},onScrollCounter:function(){var e=gazeta_pl.kultura.scrollViewCounter;$(window).scrollTop()>e.comments.start.positionY&&!e.comments.start.alreadyVisible&&(_gaq.push(["_trackEvent",e.qaCodes.category,e.qaCodes.action,e.comments.start.label,,!0]),e.comments.start.alreadyVisible=!0),$(window).scrollTop()>e.comments.end.positionY&&!e.comments.end.alreadyVisible&&(_gaq.push(["_trackEvent",e.qaCodes.category,e.qaCodes.action,e.comments.end.label,,!0]),e.comments.end.alreadyVisible=!0),e.comments.start.alreadyVisible&&e.comments.end.alreadyVisible&&$(window).unbind("scroll",e.onScrollCounter)}},rightColScroller:{elems:{},glueTopStart:0,glueBottStart:0,floatElemTopH:0,floatElemBottH:0,stopPoint:{top:30,bottom:50},init:function(){var e,t=gazeta_pl.kultura.rightColScroller;t.elems={$columns_wrap:$("#columns_wrap"),$col_left:$("#col_left"),$col_right:$("#col_right"),$h_301:$("#holder_301"),$h_301_bott:$("#holder_301_second"),$banP3:$("#banP3"),$banP35:$("#banP35"),$floatElem:$(),$floatElemTop:$(),$floatElemBott:$("#banP35"),$middleWrap:$("#middle_wrap"),$bottomWrap:$("#bottom_wrap"),$sec_columns_wrap:$("#second_columns_wrap"),$sec_col_right:$("#second_col_right"),$sec_col_left:$("#second_col_left"),$top_bans:$([$(),$()])},!t.elems.$middleWrap.length||!t.elems.$sec_columns_wrap.length||new RegExp(/(iPad|iPhone|iPod|Android)/g).test(navigator.userAgent)||t.elems.$col_left.height()<1701||(topWrapHeight=$("#columns_wrap").height(),t.elems.$col_right.height(topWrapHeight),t.elems.$h_301.find(" > :not([id*=ban])").each(function(e,a){$(a).insertBefore(t.elems.$h_301)}).end().find("> [id*=ban]").each(function(e,t){$(t).children(":not(script)").length||$(t).remove()}),t.elems.$h_301.css("position","relative"),t.elems.$top_bans=t.elems.$h_301.children(),t.elems.$top_bans=t.elems.$h_301.children(),$(window).bind("resize",function(e){return e.preventDefault(),t.recalc(),t.onScroll(!0),!1}),$(window).bind("scroll touchmove",function(){return t.recalc(),t.onScroll(),!1}),t.recalc(),t.onScroll(),e=setInterval(function(){t.floatElemBottH=t.elems.$floatElemBott.height(),t.floatElemBottH&&clearInterval(e)},40),t.addHeights($([t.elems.$columns_wrap,t.elems.$h_301])))},addHeights:function(e){var t=0,a=[];return e.each(function(e,o){var n=parseInt(o.height(),10)+parseInt(o.css("marginBottom").replace("px",""),10);t+=n,a.push(n)}),{total:t,tab:a}},recalc:function(){var e=gazeta_pl.kultura.rightColScroller,t=$(window).height(),a=(Math.min(t,e.elems.$col_left.height()),Math.min(t,e.elems.$sec_col_left.height()),!1);e.elems.$floatElemTop=e.elems.$top_bans.eq(0),e.glueTopStart=e.elems.$h_301.offset().top,e.glueBottStart=e.elems.$h_301_bott.offset().top,e.elems.$top_bans.each(function(e,o){$(o).height()>t&&(a=!0)}),e.elems.$top_bans.eq(0).height()>e.elems.$col_left.height()*(e.stopPoint.top/100)&&e.elems.$top_bans.eq(1).length&&(a=!0),a?e.elems.$top_bans.addClass("static"):e.elems.$top_bans.removeClass("static"),e.elems.$floatElemBott.height()>t||e.elems.$floatElemTop.height()>e.elems.$sec_col_left.height()?e.elems.$floatElemBott.addClass("static"):e.elems.$floatElemBott.removeClass("static"),1==e.elems.$top_bans.length&&(e.stopPoint.top=100-e.elems.$top_bans.eq(0).height()/e.elems.$col_left.height()*200)},onScroll:function(e){var t=gazeta_pl.kultura.rightColScroller,a=window.scrollY||window.pageYOffset||document.documentElement.scrollTop,o=a-t.glueTopStart;t.elems.$top_bans.eq(0).height()t.glueBottStart&&t.elems.$floatElemBott.height()t.elems.$bottomWrap.offset().top-t.floatElemBottH?t.elems.$bottomWrap.offset().top-a-10-t.floatElemBottH:"10px"}:cssBott={position:"static",top:0},t.elems.$floatElemBott.css(cssBott)}},NSTCommentsCounter:{init:function(e){var t=$("body.simpleArt #opinions"),a=t.data("count")||0;t.length?((parseInt(a,10)>0?$(''):$('')).appendTo("#gazeta_article_body").show(400).find("a").click(function(){_gaq.push(["_trackEvent","Artykul","Przeskok do komentarzy","",,!0])}),e()):e()}}},$(gazeta_pl.kultura.init);