function Slider(p,A,g){function q(a,b){var c=function(){h.html("");typeof a==="function"&&a()};b===!1?d.fadeOut(300,c):(j.css("background","#000"),d.fadeOut(300,function(){j.fadeOut(200,c)}))}function l(a,b){return function(c){c.preventDefault();q(a,b)}}function B(){r=g.color||"#000";s=g.closeColor||"#000";t=g.backgroundColor||"#f4f4f4";i=g.loadImage||"http://cdn2.netpr.pl/m/lib/po/slider/1.0/load.gif";u=g.leftArrowImage||"http://cdn2.netpr.pl/m/lib/po/slider/1.0/arrow-left.png";v=g.rightArrowImage||
"http://cdn2.netpr.pl/m/lib/po/slider/1.0/arrow-right.png";$("body").append("<div class='overlay' id='netPrOverlay'></div><div id='netPrPanel'><div id='netPrPanelWrap'></div><div id='netPrPanelTitle'></div><div id='netPrSide'><div id='netPrSideWrap'><a href='#' id='netPrClose'></a></div></div></div>");j=$("#netPrOverlay");d=$("#netPrPanel");h=$("#netPrPanelWrap");k=$("#netPrPanelTitle");w=$("#netPrSide");x=$("#netPrSideWrap");y=$("#netPrClose");$(document).keyup(function(a){a.keyCode==27?q():a.keyCode==
27&&showBehaviour()});j.css({display:"none",position:"fixed",top:"0px",bottom:"0px",left:"0px",right:"0px","z-index":"100",background:"#000 url("+i+") no-repeat 50% 50%"}).click(l());d.css({display:"none",border:"6px solid #3d3d3d","border-radius":"5px","z-index":"900",margin:"-180px 0 0 -240px",position:"fixed","float":"left",top:"50%",left:"50%"});k.css({font:"12px Arial, Tahoma",background:t,padding:"6px 8px 8px",color:r,border:"1px solid #222","border-top":"1px solid #dfdfdf"});h.css({border:"1px solid #222",
"border-bottom":"0",padding:"4px",background:"#fff",position:"relative"});w.css({"border-color":"#3d3d3d","border-width":"6px 6px 6px 0","border-style":"solid","border-top-right-radius":"6px","border-bottom-right-radius":"6px",position:"absolute",right:"-30px",top:"-6px",width:"25px"});x.css({"border-color":"#222","border-width":"1px 1px 1px 0","border-style":"solid",background:"#fff"});y.css({background:s+" url(http://biuroprasowe.netpr.pl/m/lib/po/video/1.0/close.png) no-repeat",display:"block",
height:"24px"}).click(l())}function z(a,b){return function(c){var e,g,f;c&&(c.preventDefault(),j.css("background","#000 url("+i+") no-repeat 50% 50%"));h.append((a===0?"":"<a href='#' class='arrowLeft'>&#160;</a>")+(a===m-1?"":"<a href='#' class='arrowRight'>&#160;</a>")+"<img src='"+n[a].webview+"' alt='' style='position; relative; z-index: 950'>");k.html(n[a].title);f=d.find("img");e=d.find(".arrowLeft");g=d.find(".arrowRight");f.bind("load",function(){d.fadeTo(0,0,function(){function c(a,b,e,d,
f){a.css({display:"block",position:"absolute",top:"6px",height:h+"px",outline:"0","z-index":"99999",width:Math.floor(i/2)+"px",background:"transparent url(/m/lib/po/slider/1.0/pix.gif) repeat"});a.css(""+e,"0");a.click(l(z(b),!1));a.hover(function(){a.css("background","transparent url("+f+") no-repeat 50% 50%")},function(){a.removeClass(d);a.css("background","transparent url(/m/lib/po/slider/1.0/pix.gif) repeat")});a.mouseover(function(){a.addClass(d);a.css("background","transparent url("+f+") no-repeat 50% 50%")})}
var h=f.height(),i=f.width();k.width(i-8);d.css({margin:"-"+Math.floor(h/2)+"px 0 0 -"+Math.floor(i/2)+"px"});c(g,a+1,"right","rightOver",v);c(e,a-1,"left","leftOver",u);b===!1?d.fadeTo(300,1):j.fadeTo(300,0.7,function(){d.fadeTo(300,1)})})})}}var c,b,a,e,o,f,m=p.length,n=[],r,s,u,v,t,i,j,d,h,k,w,x,y;m>0&&B();for(f=0;f<m;f++){c=p.eq(f);if(c.find("[href*='mediakit/'],[src*='mediakit-t/'],[href*='mediakit-w/']").length>0){e=c.find("[title]").eq(0).attr("title");if(typeof e==="undefined"||e==="")e=c.find("[alt]").eq(0).attr("alt");
o=c.find("[href*='mediakit/']").eq(0).attr("href");b=c.find("[src*='mediakit-t/']").eq(0).attr("src");a=c.find("[href*='mediakit-w/']").eq(0).attr("href");typeof a==="undefined"&&(a=c.find("[src*='mediakit-w/']").eq(0).attr("src"));typeof a==="undefined"&&typeof b!=="undefined"&&(a=b.split("mediakit-t"),a=a[0]+"mediakit-t"+a[1]);typeof a!=="undefined"&&typeof b==="undefined"&&(b=a.split("mediakit-w"),b=b[0]+"mediakit-w"+b[1])}else{e=c.find("[title]").eq(0).attr("title");if(typeof e==="undefined"||
e==="")e=c.find("[alt]").eq(0).attr("alt");o=c.find("[href*='attachment/']").eq(0).attr("href");b=c.find("[src*='attachment-t/']").eq(0).attr("src");a=c.find("[href*='attachment-w/']").eq(0).attr("href");typeof a==="undefined"&&(a=c.find("[src*='attachment-w/']").eq(0).attr("src"));typeof a==="undefined"&&typeof b!=="undefined"&&(a=b.split("attachment-t"),a=a[0]+"attachment-w"+a[1]);typeof a!=="undefined"&&typeof b==="undefined"&&(b=a.split("attachment-w"),b=b[0]+"attachment-t"+b[1])}b={position:f,
title:e,source:o,thumbnail:b,webview:a};n.push(b);c.find(A).click(z(f))}};
