jQuery.noConflict();function OA_SD_show(sdzona){OA_show(sdzona);}function NewWindow(d,c,b,a,e){var f=(screen.width-b)/2,g=(screen.height-a)/2;winprops="height="+a+",width="+b+",top="+g+",left="+f+",scrollbars="+e+",resizable";win=window.open(d,c,winprops);parseInt(navigator.appVersion)>=4&&win.window.focus()}function ubaciHtml(d){var a="#content",c=jQuery(d).find(".RandomView SPAN A");jQuery(a).empty().append(c);jQuery("#content A").wrap('<li class="gallery_item"></li>');jQuery(a).wrapInner('<ul id="fotoNewsGal" class="jcarousel-skin-fotovijesti"></ul>');var b=jQuery("#content A:first SPAN").text();jQuery("#content #fotoNewsGal").after('<p class="galleryName">'+b+"</p>");jQuery("#content a.lightboxFV").lightBox();jQuery("#fotoNewsGal").jcarousel()}function loadContent(a){jQuery.get("/tabid/207/mid/"+a+"/dnnprintmode/true/Default.aspx?SkinSrc=[G]Skins%2f_default%2fNo+Skin&ContainerSrc=[G]Containers%2f_default%2fNo+Container",ubaciHtml)}function setBannerOnPage(a){var c=location.protocol=="https:"?"https://ad.slobodnadalmacija.com/openx-2.4.4/www/delivery/ajs.php":"http://ad.slobodnadalmacija.com/openx-2.4.4/www/delivery/ajs.php",b=Math.floor(Math.random()*99999999999);if(!document.MAX_used)document.MAX_used=",";document.write("<script type='text/javascript' src='"+c);document.write("?zoneid="+a+"&target=_blank");document.write("&cb="+b);document.MAX_used!=","&&document.write("&exclude="+document.MAX_used);document.write("&loc="+escape(window.location));document.referrer&&document.write("&referer="+escape(document.referrer));document.context&&document.write("&context="+escape(document.context));document.mmm_fo&&document.write("&mmm_fo=1");document.write("'></script>")}function getElementsByClass(f,c,g){var b=[],a=f.getElementsByTagName(g),e=a.length,d=new RegExp("(^|\\s)"+c+"(\\s|$)");for(i=0,j=0;i<e;i++)if(d.test(a[i].className)){b[j]=a[i];j++}return b}function showBannersOnLoad(){var a=[];a=getElementsByClass(document,"bannerHolder","*");for(i=0;i<a.length;i++)a[i].style.visibility="visible"}function removeFilter(a){a.style.removeAttribute&&a.style.removeAttribute("filter")}(function(a){a.fn.lightBox=function(b){var d="click",l="#lightbox-nav-btnPrev,#lightbox-nav-btnNext",k="#lightbox-container-image-data-box",h="#lightbox-image",j="#lightbox-loading",f="#jquery-lightbox",e="#jquery-overlay",i="embed, object, select",c=false;b=a.extend({overlayBgColor:"#000",overlayOpacity:.8,fixedNavigation:c,imageLoading:"/Portals/0/containers/SlobodnaDalmacija/images/lightbox-ico-loading.gif",imageBtnPrev:"/Portals/0/containers/SlobodnaDalmacija/images/lightbox-btn-prev.gif",imageBtnNext:"/Portals/0/containers/SlobodnaDalmacija/images/lightbox-btn-next.gif",imageBtnClose:"/Portals/0/containers/SlobodnaDalmacija/images/lightbox-btn-close.gif",imageBlank:"/Portals/0/containers/SlobodnaDalmacija/images/lightbox-blank.gif",containerBorderSize:10,containerResizeSpeed:400,txtImage:"Image",txtOf:"of",keyToClose:"c",keyToPrev:"p",keyToNext:"n",imageArray:[],activeImage:0},b);var u=this;function z(){B(this,u);return c}function B(f,d){var c="href";a(i).css({visibility:"hidden"});y();b.imageArray.length=0;b.activeImage=0;if(d.length==1)b.imageArray.push([f.getAttribute(c),f.getAttribute("title")]);else for(var e=0;e<d.length;e++)b.imageArray.push([d[e].getAttribute(c),d[e].getAttribute("title")]);while(b.imageArray[b.activeImage][0]!=f.getAttribute(c))b.activeImage++;g()}function y(){a("body").append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="'+b.imageLoading+'"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="'+b.imageBtnClose+'"></a></div></div></div></div>');var d=p();a(e).css({backgroundColor:b.overlayBgColor,opacity:b.overlayOpacity,width:d[0],height:d[1]}).fadeIn();var g=o();a(f).css({top:g[1]+d[3]/10,left:g[0]}).show();a("#jquery-overlay,#jquery-lightbox").click(function(){m()});a("#lightbox-loading-link,#lightbox-secNav-btnClose").click(function(){m();return c});a(window).resize(function(){var b=p();a(e).css({width:b[0],height:b[1]});var c=o();a(f).css({top:c[1]+b[3]/10,left:c[0]})})}function g(){a(j).show();if(b.fixedNavigation)a("#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide();else a("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide();var c=new Image;c.onload=function(){a(h).attr("src",b.imageArray[b.activeImage][0]);s(c.width,c.height);c.onload=function(){}};c.src=b.imageArray[b.activeImage][0]}function s(e,d){var c="#lightbox-container-image-box",i=a(c).width(),h=a(c).height(),g=e+b.containerBorderSize*2,f=d+b.containerBorderSize*2,m=i-g,j=h-f;a(c).animate({width:g,height:f},b.containerResizeSpeed,function(){A()});if(m==0&&j==0)if(a.browser.msie)q(250);else q(100);a(k).css({width:e});a(l).css({height:d+b.containerBorderSize*2})}function A(){a(j).hide();a(h).fadeIn(function(){w();x()});t()}function w(){var c="#lightbox-image-details-caption";a(k).slideDown("fast");a(c).hide();b.imageArray[b.activeImage][1]&&a(c).html(b.imageArray[b.activeImage][1]).show();b.imageArray.length>1&&a("#lightbox-image-details-currentNumber").html(b.txtImage+" "+(b.activeImage+1)+" "+b.txtOf+" "+b.imageArray.length).show()}function x(){var j=") right 15% no-repeat",m="#lightbox-nav-btnNext",i=") left 15% no-repeat",e="url(",k="#lightbox-nav-btnPrev",h=") no-repeat",f="transparent url(";a("#lightbox-nav").show();a(l).css({background:f+b.imageBlank+h});if(b.activeImage!=0)if(b.fixedNavigation)a(k).css({background:e+b.imageBtnPrev+i}).unbind().bind(d,function(){b.activeImage=b.activeImage-1;g();return c});else a(k).unbind().hover(function(){a(this).css({background:e+b.imageBtnPrev+i})},function(){a(this).css({background:f+b.imageBlank+h})}).show().bind(d,function(){b.activeImage=b.activeImage-1;g();return c});if(b.activeImage!=b.imageArray.length-1)if(b.fixedNavigation)a(m).css({background:e+b.imageBtnNext+j}).unbind().bind(d,function(){b.activeImage=b.activeImage+1;g();return c});else a(m).unbind().hover(function(){a(this).css({background:e+b.imageBtnNext+j})},function(){a(this).css({background:f+b.imageBlank+h})}).show().bind(d,function(){b.activeImage=b.activeImage+1;g();return c});r()}function r(){a(document).keydown(function(a){v(a)})}function n(){a(document).unbind()}function v(a){if(a==null){keycode=event.keyCode;escapeKey=27}else{keycode=a.keyCode;escapeKey=a.DOM_VK_ESCAPE}key=String.fromCharCode(keycode).toLowerCase();(key==b.keyToClose||key=="x"||keycode==escapeKey)&&m();if(key==b.keyToPrev||keycode==37)if(b.activeImage!=0){b.activeImage=b.activeImage-1;g();n()}if(key==b.keyToNext||keycode==39)if(b.activeImage!=b.imageArray.length-1){b.activeImage=b.activeImage+1;g();n()}}function t(){if(b.imageArray.length-1>b.activeImage){objNext=new Image;objNext.src=b.imageArray[b.activeImage+1][0]}if(b.activeImage>0){objPrev=new Image;objPrev.src=b.imageArray[b.activeImage-1][0]}}function m(){a(f).remove();a(e).fadeOut(function(){a(e).remove()});a(i).css({visibility:"visible"})}function p(){var c,d;if(window.innerHeight&&window.scrollMaxY){c=window.innerWidth+window.scrollMaxX;d=window.innerHeight+window.scrollMaxY}else if(document.body.scrollHeight>document.body.offsetHeight){c=document.body.scrollWidth;d=document.body.scrollHeight}else{c=document.body.offsetWidth;d=document.body.offsetHeight}var a,b;if(self.innerHeight){if(document.documentElement.clientWidth)a=document.documentElement.clientWidth;else a=self.innerWidth;b=self.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}else if(document.body){a=document.body.clientWidth;b=document.body.clientHeight}if(d<b)pageHeight=b;else pageHeight=d;if(c<a)pageWidth=c;else pageWidth=a;arrayPageSize=[pageWidth,pageHeight,a,b];return arrayPageSize}function o(){var a,b;if(self.pageYOffset){b=self.pageYOffset;a=self.pageXOffset}else if(document.documentElement&&document.documentElement.scrollTop){b=document.documentElement.scrollTop;a=document.documentElement.scrollLeft}else if(document.body){b=document.body.scrollTop;a=document.body.scrollLeft}arrayPageScroll=[a,b];return arrayPageScroll}function q(c){var b=new Date;a=null;do var a=new Date;while(a-b<c)}return this.unbind(d).click(z)}})(jQuery);(function(e){var o="onAfterAnimation",n="marginBottom",g="marginRight",m="first",h="last",l="both",k="jcarousel-item-placeholder",f=true,j="block",d="px",i="<div></div>",a=null,b=false;e.fn.jcarousel=function(a){return this.each(function(){new c(this,a)})};var p={vertical:b,start:1,offset:1,size:a,scroll:3,visible:a,animation:"normal",easing:"swing",auto:0,wrap:a,initCallback:a,reloadCallback:a,itemLoadCallback:a,itemFirstInCallback:a,itemFirstOutCallback:a,itemLastInCallback:a,itemLastOutCallback:a,itemVisibleInCallback:a,itemVisibleOutCallback:a,buttonNextHTML:i,buttonPrevHTML:i,buttonNextEvent:"click",buttonPrevEvent:"click",buttonNextCallback:a,buttonPrevCallback:a};e.jcarousel=function(f,r){var k="display",h="jcarousel-container",g="jcarousel-clip",n="jcarousel-skin",c=this;c.options=e.extend({},p,r||{});c.locked=b;c.container=a;c.clip=a;c.list=a;c.buttonNext=a;c.buttonPrev=a;c.wh=!c.options.vertical?"width":"height";c.lt=!c.options.vertical?"left":"top";for(var s="",o=f.className.split(" "),m=0;m<o.length;m++)if(o[m].indexOf(n)!=-1){e(f).removeClass(o[m]);var s=o[m];break}if(f.nodeName=="UL"||f.nodeName=="OL"){c.list=e(f);c.container=c.list.parent();if(c.container.hasClass(g)){if(!c.container.parent().hasClass(h))c.container=c.container.wrap(i);c.container=c.container.parent()}else if(!c.container.hasClass(h))c.container=c.list.wrap(i).parent()}else{c.container=e(f);c.list=e(f).find(">ul,>ol,div>ul,div>ol")}s!=""&&c.container.parent()[0].className.indexOf(n)==-1&&c.container.wrap('<div class=" '+s+'"></div>');c.clip=c.list.parent();if(!c.clip.length||!c.clip.hasClass(g))c.clip=c.list.wrap(i).parent();c.buttonPrev=e(".jcarousel-prev",c.container);if(c.buttonPrev.size()==0&&c.options.buttonPrevHTML!=a)c.buttonPrev=c.clip.before(c.options.buttonPrevHTML).prev();c.buttonPrev.addClass(c.className("jcarousel-prev"));c.buttonNext=e(".jcarousel-next",c.container);if(c.buttonNext.size()==0&&c.options.buttonNextHTML!=a)c.buttonNext=c.clip.before(c.options.buttonNextHTML).prev();c.buttonNext.addClass(c.className("jcarousel-next"));c.clip.addClass(c.className(g));c.list.addClass(c.className("jcarousel-list"));c.container.addClass(c.className(h));var u=c.options.visible!=a?Math.ceil(c.clipping()/c.options.visible):a,q=c.list.children("li"),l=c;if(q.size()>0){var t=0,m=c.options.offset;q.each(function(){l.format(this,m++);t+=l.dimension(this,u)});c.list.css(c.wh,t+d);if(!r||r.size===undefined)c.options.size=q.size()}c.container.css(k,j);c.buttonNext.css(k,j);c.buttonPrev.css(k,j);c.funcNext=function(){l.next()};c.funcPrev=function(){l.prev()};c.funcResize=function(){l.reload()};c.options.initCallback!=a&&c.options.initCallback(c,"init");if(e.browser.safari){c.buttons(b,b);e(window).bind("load",function(){l.setup()})}else c.setup()};var c=e.jcarousel;c.fn=c.prototype={jcarousel:"0.2.3"};c.fn.extend=c.extend=e.extend;c.fn.extend({setup:function(){var c=this;c.first=a;c.last=a;c.prevFirst=a;c.prevLast=a;c.animating=b;c.timer=a;c.tail=a;c.inTail=b;if(c.locked)return;c.list.css(c.lt,c.pos(c.options.offset)+d);var f=c.pos(c.options.start);c.prevFirst=c.prevLast=a;c.animate(f,b);e(window).unbind("resize",c.funcResize).bind("resize",c.funcResize)},reset:function(){var b=this;b.list.empty();b.list.css(b.lt,"0px");b.list.css(b.wh,"10px");b.options.initCallback!=a&&b.options.initCallback(b,"reset");b.setup()},reload:function(){var f=this;f.tail!=a&&f.inTail&&f.list.css(f.lt,c.intval(f.list.css(f.lt))+f.tail);f.tail=a;f.inTail=b;f.options.reloadCallback!=a&&f.options.reloadCallback(f);if(f.options.visible!=a){var h=f,j=Math.ceil(f.clipping()/f.options.visible),g=0,i=0;e("li",f.list).each(function(a){g+=h.dimension(this,j);if(a+1<h.first)i=g});f.list.css(f.wh,g+d);f.list.css(f.lt,-i+d)}f.scroll(f.first,b)},lock:function(){this.locked=f;this.buttons()},unlock:function(){this.locked=b;this.buttons()},size:function(b){var a=this;if(b!=undefined){a.options.size=b;!a.locked&&a.buttons()}return a.options.size},has:function(h,c){var d=this;if(c==undefined||!c)c=h;if(d.options.size!==a&&c>d.options.size)c=d.options.size;for(var e=h;e<=c;e++){var g=d.get(e);if(!g.length||g.hasClass(k))return b}return f},"get":function(a){return e(".jcarousel-item-"+a,this.list)},add:function(f,i){var b=this,e=b.get(f),j=0,n=0;if(e.length==0){var g,e=b.create(f),h=c.intval(f);while(g=b.get(--h))if(h<=0||g.length){h<=0?b.list.prepend(e):g.after(e);break}}else j=b.dimension(e);e.removeClass(b.className(k));typeof i=="string"?e.html(i):e.empty().append(i);var m=b.options.visible!=a?Math.ceil(b.clipping()/b.options.visible):a,l=b.dimension(e,m)-j;f>0&&f<b.first&&b.list.css(b.lt,c.intval(b.list.css(b.lt))-l+d);b.list.css(b.wh,c.intval(b.list.css(b.wh))+l+d);return e},remove:function(b){var a=this,e=a.get(b);if(!e.length||b>=a.first&&b<=a.last)return;var f=a.dimension(e);b<a.first&&a.list.css(a.lt,c.intval(a.list.css(a.lt))+f+d);e.remove();a.list.css(a.wh,c.intval(a.list.css(a.wh))-f+d)},next:function(){var c=this;c.stopAuto();if(c.tail!=a&&!c.inTail)c.scrollTail(b);else c.scroll((c.options.wrap==l||c.options.wrap==h)&&c.options.size!=a&&c.last==c.options.size?1:c.first+c.options.scroll)},prev:function(){var b=this;b.stopAuto();if(b.tail!=a&&b.inTail)b.scrollTail(f);else b.scroll((b.options.wrap==l||b.options.wrap==m)&&b.options.size!=a&&b.first==1?b.options.size:b.first-b.options.scroll)},scrollTail:function(d){var a=this;if(a.locked||a.animating||!a.tail)return;var b=c.intval(a.list.css(a.lt));!d?(b-=a.tail):(b+=a.tail);a.inTail=!d;a.prevFirst=a.first;a.prevLast=a.last;a.animate(b)},scroll:function(c,b){var a=this;if(a.locked||a.animating)return;a.animate(a.pos(c),b)},pos:function(j){var h="circular",e=this;if(e.locked||e.animating)return;if(e.options.wrap!=h)j=j<1?1:e.options.size&&j>e.options.size?e.options.size:j;var m=e.first>j,o=c.intval(e.list.css(e.lt)),y=e.options.wrap!=h&&e.first<=1?1:e.first,t=m?e.get(y):e.get(e.last),i=m?y:y-1,f=a,s=0,w=b,p=0;while(m?--i>=j:++i<j){f=e.get(i);w=!f.length;if(f.length==0){f=e.create(i).addClass(e.className(k));t[m?"before":"after"](f)}t=f;p=e.dimension(f);if(w)s+=p;if(e.first!=a&&(e.options.wrap==h||i>=1&&(e.options.size==a||i<=e.options.size)))o=m?o+p:o-p}var u=e.clipping(),x=[],r=0,i=j,q=0,t=e.get(j-1);while(++r){f=e.get(i);w=!f.length;if(f.length==0){f=e.create(i).addClass(e.className(k));t.length==0?e.list.prepend(f):t[m?"before":"after"](f)}t=f;var p=e.dimension(f);if(p==0){/*alert("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...");*/return 0}if(e.options.wrap!=h&&e.options.size!==a&&i>e.options.size)x.push(f);else if(w)s+=p;q+=p;if(q>=u)break;i++}for(var z=0;z<x.length;z++)x[z].remove();if(s>0){e.list.css(e.wh,e.dimension(e.list)+s+d);if(m){o-=s;e.list.css(e.lt,c.intval(e.list.css(e.lt))-s+d)}}var l=j+r-1;if(e.options.wrap!=h&&e.options.size&&l>e.options.size)l=e.options.size;if(i>l){r=0,i=l,q=0;while(++r){var f=e.get(i--);if(!f.length)break;q+=e.dimension(f);if(q>=u)break}}var v=l-r+1;if(e.options.wrap!=h&&v<1)v=1;if(e.inTail&&m){o+=e.tail;e.inTail=b}e.tail=a;if(e.options.wrap!=h&&l==e.options.size&&l-r+1>=1){var A=c.margin(e.get(l),!e.options.vertical?g:n);if(q-A>u)e.tail=q-u-A}while(j-->v)o+=e.dimension(e.get(j));e.prevFirst=e.first;e.prevLast=e.last;e.first=v;e.last=l;return o},animate:function(g,j){var c=this;if(c.locked||c.animating)return;c.animating=f;var e=c,i=function(){e.animating=b;g==0&&e.list.css(e.lt,0);(e.options.wrap==l||e.options.wrap==h||e.options.size==a||e.last<e.options.size)&&e.startAuto();e.buttons();e.notify(o)};c.notify("onBeforeAnimation");if(!c.options.animation||j==b){c.list.css(c.lt,g+d);i()}else{var k=!c.options.vertical?{left:g}:{top:g};c.list.animate(k,c.options.animation,c.options.easing,i)}},startAuto:function(c){var b=this;if(c!=undefined)b.options.auto=c;if(b.options.auto==0)return b.stopAuto();if(b.timer!=a)return;var d=b;b.timer=setTimeout(function(){d.next()},b.options.auto*1e3)},stopAuto:function(){if(this.timer==a)return;clearTimeout(this.timer);this.timer=a},buttons:function(d,e){var j="disabled",i="addClass",g="removeClass",c=this;if(d==undefined||d==a){var d=!c.locked&&c.options.size!==0&&(c.options.wrap&&c.options.wrap!=m||c.options.size==a||c.last<c.options.size);if(!c.locked&&(!c.options.wrap||c.options.wrap==m)&&c.options.size!=a&&c.last>=c.options.size)d=c.tail!=a&&!c.inTail}if(e==undefined||e==a){var e=!c.locked&&c.options.size!==0&&(c.options.wrap&&c.options.wrap!=h||c.first>1);if(!c.locked&&(!c.options.wrap||c.options.wrap==h)&&c.options.size!=a&&c.first==1)e=c.tail!=a&&c.inTail}var k=c;c.buttonNext[d?"bind":"unbind"](c.options.buttonNextEvent,c.funcNext)[d?g:i](c.className("jcarousel-next-disabled")).attr(j,d?b:f);c.buttonPrev[e?"bind":"unbind"](c.options.buttonPrevEvent,c.funcPrev)[e?g:i](c.className("jcarousel-prev-disabled")).attr(j,e?b:f);if(c.buttonNext.length>0&&(c.buttonNext[0].jcarouselstate==undefined||c.buttonNext[0].jcarouselstate!=d)&&c.options.buttonNextCallback!=a){c.buttonNext.each(function(){k.options.buttonNextCallback(k,this,d)});c.buttonNext[0].jcarouselstate=d}if(c.buttonPrev.length>0&&(c.buttonPrev[0].jcarouselstate==undefined||c.buttonPrev[0].jcarouselstate!=e)&&c.options.buttonPrevCallback!=a){c.buttonPrev.each(function(){k.options.buttonPrevCallback(k,this,e)});c.buttonPrev[0].jcarouselstate=e}},notify:function(d){var b=this,c=b.prevFirst==a?"init":b.prevFirst<b.first?"next":"prev";b.callback("itemLoadCallback",d,c);if(b.prevFirst!==b.first){b.callback("itemFirstInCallback",d,c,b.first);b.callback("itemFirstOutCallback",d,c,b.prevFirst)}if(b.prevLast!==b.last){b.callback("itemLastInCallback",d,c,b.last);b.callback("itemLastOutCallback",d,c,b.prevLast)}b.callback("itemVisibleInCallback",d,c,b.first,b.last,b.prevFirst,b.prevLast);b.callback("itemVisibleOutCallback",d,c,b.prevFirst,b.prevLast,b.first,b.last)},callback:function(f,d,i,h,k,l,m){var b=this;if(b.options[f]==undefined||typeof b.options[f]!="object"&&d!=o)return;var g=typeof b.options[f]=="object"?b.options[f][d]:b.options[f];if(!e.isFunction(g))return;var j=b;if(h===undefined)g(j,i,d);else if(k===undefined)b.get(h).each(function(){g(j,this,h,i,d)});else for(var c=h;c<=k;c++)c!==a&&!(c>=l&&c<=m)&&b.get(c).each(function(){g(j,this,c,i,d)})},create:function(a){return this.format("<li></li>",a)},format:function(c,b){var a=e(c).addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+b));a.attr("jcarouselindex",b);return a},className:function(a){return a+" "+a+(!this.options.vertical?"-horizontal":"-vertical")},dimension:function(j,i){var f="marginTop",b="marginLeft",h=this,a=j.jquery!=undefined?j[0]:j,k=!h.options.vertical?a.offsetWidth+c.margin(a,b)+c.margin(a,g):a.offsetHeight+c.margin(a,f)+c.margin(a,n);if(i==undefined||k==i)return k;var l=!h.options.vertical?i-c.margin(a,b)-c.margin(a,g):i-c.margin(a,f)-c.margin(a,n);e(a).css(h.wh,l+d);return h.dimension(a)},clipping:function(){var a=this;return !a.options.vertical?a.clip[0].offsetWidth-c.intval(a.clip.css("borderLeftWidth"))-c.intval(a.clip.css("borderRightWidth")):a.clip[0].offsetHeight-c.intval(a.clip.css("borderTopWidth"))-c.intval(a.clip.css("borderBottomWidth"))},index:function(b,a){if(a==undefined)a=this.options.size;return Math.round(((b-1)/a-Math.floor((b-1)/a))*a)+1}});c.extend({defaults:function(a){return e.extend(p,a||{})},margin:function(b,i){if(!b)return 0;var a=b.jquery!=undefined?b[0]:b;if(i==g&&e.browser.safari){var d={display:j,"float":"none",width:"auto"},h,f;e.swap(a,d,function(){h=a.offsetWidth});d[g]=0;e.swap(a,d,function(){f=a.offsetWidth});return f-h}return c.intval(e.css(a,i))},intval:function(a){a=parseInt(a);return isNaN(a)?0:a}})})(jQuery);(function(b,c){var a="object",g=function(b){var a,c=[];for(a in b)/string|number/.test(typeof b[a])&&b[a]!==""&&c.push(a+'="'+b[a]+'"');return c[d]("")},f=function(b){var c,f,g=[],e;if(typeof b==a){for(c in b){if(typeof b[c]==a){e=[];for(f in b[c])e.push(([f,"=",encodeURIComponent(b[c][f])])[d](""));b[c]=e[d]("&amp;")}b[c]&&g.push((['<param name="',c,'" value="',b[c],'" />'])[d](""))}b=g[d]("")}return b},e=false,d="join";b[c]=function(){try{var h="0,0,0",i=navigator.plugins["Shockwave Flash"]||ActiveXObject;h=i.description||function(){try{return (new i("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}catch(a){}}()}catch(j){}h=h.match(/^[A-Za-z\s]*?(\d+)[\.|,](\d+)(?:\s+[d|r]|,)(\d+)/);return {available:h[1]>0,activeX:i&&!i.name,version:{major:h[1]*1,minor:h[2]*1,release:h[3]*1},hasVersion:function(a){var b=this.version,c="major",d="minor",e="release";a=/string|number/.test(typeof a)?a.toString().split("."):a||[0,0,0];a=[a[c]||a[0]||b[c],a[d]||a[1]||b[d],a[e]||a[2]||b[e]];return a[0]<b[c]||a[0]==b[c]&&a[1]<b[d]||a[0]==b[c]&&a[1]==b[d]&&a[2]<=b[e]},expressInstall:"expressInstall.swf",create:function(h){if(!b[c].available||e||!typeof h==a||!h.swf)return false;if(h.hasVersion&&!b[c].hasVersion(h.hasVersion)){h={swf:h.expressInstall||b[c].expressInstall,attrs:{id:h.id||"SWFObjectExprInst",name:h.name,height:Math.max(h.height||137),width:Math.max(h.width||214)},params:{flashvars:{MMredirectURL:location.href,MMplayerType:b[c].activeX?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}};e=true}else h=b.extend(true,{attrs:{id:h.id,name:h.name,height:h.height||180,width:h.width||320},params:{wmode:h.wmode||"opaque",flashvars:h.flashvars}},h);if(b[c].activeX){h.attrs.classid=h.attrs.classid||"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";h.params.movie=h.params.movie||h.swf}else{h.attrs.type=h.attrs.classid||"application/x-shockwave-flash";h.attrs.data=h.attrs.data||h.swf}return (["<object ",g(h.attrs),">",f(h.params),"</object>"])[d]("")}}}();b.fn[c]=function(d){if(typeof d==a)this.each(function(){var a=document.createElement(c),e=b[c].create(d);if(e){b(this).empty();a.innerHTML=e;a.childNodes[0]&&this.appendChild(a.childNodes[0])}});else typeof d=="function"&&this.find(a).andSelf().filter(a).each(function(){var a=this,e="jsInteractionTimeoutMs";a[e]=a[e]||0;if(a[e]<660)if(a.clientWidth||a.clientHeight)d.call(this);else setTimeout(function(){b(a)[c](d)},a[e]+66)});return this}})(jQuery,"flash");window["jscroller2"]={},jscroller2.obj=[],jscroller2.delayer=0,jscroller2.ileave=0;jscroller2.set_eventListener=function(a,b,c){if(a&&b&&c)window.attachEvent?a.attachEvent("on"+b,c):a.addEventListener(b,c,false)};jscroller2.add_scroller=function(j,f){var q="mouseout",p="mouseover",o="jscroller2_delay-",n="jscroller2_speed-",d="px",m="absolute";if(j&&f){var u=0,g=1,t=0,w=0,r=0,s=0,b=j,e=b.className.split(" "),c=j.parentNode,a=null,l=null,i=null;if(c.className.indexOf("jscroller2")>=0)c=c.parentNode;if(c){c.style.position="relative";c.style.overflow="hidden";for(var k=c.getElementsByTagName("div"),h=0;h<k.length;h++){var v=k[h].className.split(" ");if(jscroller2.check_array(v,"jscroller2_"+f+"_endless"))a=k[h]}if(b){b.style.position=m;b.style.top=0;b.style.left=0;switch(f){case "down":b.style.width=c.clientWidth+d;b.style.top=b.clientHeight*-1+c.clientHeight+d;break;case "up":b.style.width=c.clientWidth+d;break;case "right":b.style.height=c.clientHeight+d;b.style.left=b.clientWidth*-1+c.clientWidth+d;break;case "left":b.style.height=c.clientHeight+d}if(a){a.style.position=m;l=a.clientWidth;i=a.clientHeight;switch(f){case "down":a.style.top=i*-1+d;a.style.left=0;a.style.width=c.clientWidth+d;break;case "up":a.style.top=b.clientHeight+d;a.style.left=0;a.style.width=c.clientWidth+d;break;case "left":a.style.top=0;a.style.left=b.clientWidth+d;a.style.height=c.clientHeight+d;break;case "right":a.style.top=0;a.style.left=b.clientWidth*-1+d;a.style.height=c.clientHeight+d}}}if(dspeed=jscroller2.check_array(e,n,1)){g=parseFloat(dspeed.split(n)[1]||10)/10;if(window.attachEvent&&g<1)g=1}if(dspeed=jscroller2.check_array(e,"jscroller2_ignoreleave"))jscroller2.ileave=1;if(jscroller2.check_array(e,"jscroller2_alternate"))r=1;if(jscroller2.check_array(e,"jscroller2_dynamic"))s=1;if(ddelay=jscroller2.check_array(e,o,1)){t=1;jscroller2.delayer=1;u=ddelay.split(o)[1]*1e3}if(jscroller2.check_array(e,"jscroller2_mousemove")){jscroller2.set_eventListener(b,p,jscroller2.stop_sel_jscroller);jscroller2.set_eventListener(b,q,jscroller2.start_sel_jscroller);if(a){jscroller2.set_eventListener(a,p,jscroller2.stop_sel_jscroller);jscroller2.set_eventListener(a,q,jscroller2.start_sel_jscroller)}}jscroller2.obj.push([c,c.clientHeight,c.clientWidth,b,b.clientHeight,b.clientWidth,a,i,l,f,g,t,u,r,s])}}};jscroller2.init_jscroller2=function(){var l="left",p="px",n="down";for(var a=0;a<jscroller2.obj.length;a++){var w=jscroller2.obj[a][0],j=jscroller2.obj[a][1],h=jscroller2.obj[a][2],m=jscroller2.obj[a][3],g=jscroller2.obj[a][4],i=jscroller2.obj[a][5],k=jscroller2.obj[a][6],r=jscroller2.obj[a][7],s=jscroller2.obj[a][8],f=jscroller2.obj[a][9],b=jscroller2.obj[a][10],v=jscroller2.obj[a][11],u=jscroller2.obj[a][12],e=jscroller2.obj[a][13],t=jscroller2.obj[a][14];if(!v&&!u){if(t){g=jscroller2.obj[a][4]=m.clientHeight;i=jscroller2.obj[a][5]=m.clientWidth;if(k){r=jscroller2.obj[a][7]=k.clientHeight;s=jscroller2.obj[a][8]=k.clientWidth}}switch(f){case n:case "up":var c=parseFloat(m.style.top.split(p)[0]);if(f==n)e==2?(c-=b):(c+=b);else e==2?(c+=b):(c-=b);if(k&&!e)c=jscroller2.check_endless(f,"top",c,k,g,j,r,b,e);else if(e){var q=f==n?1:2,o=f==n?2:1;if(e==q&&(g>j&&c+b>0||g<j&&c+g+b>j))jscroller2.obj[a][13]=o;if(e==o&&(g>j&&c+g<j+b||g<j&&c<0))jscroller2.obj[a][13]=q}else if(f==n){if(c>h)c=g*-1}else if(c<g*-1)c=j;m.style.top=c+p;break;case l:case "right":var d=parseFloat(m.style.left.split(p)[0]);if(f==l)e==2?(d+=b):(d-=b);else e==2?(d-=b):(d+=b);if(k&&!e)d=jscroller2.check_endless(f,l,d,k,i,h,s,b,e);else if(e){var q=f==l?1:2,o=f==l?2:1;if(e==o&&(i>h&&d+b>0||i<h&&d+i+b>h))jscroller2.obj[a][13]=q;if(e==q&&(i>h&&d+i<h+b||i<h&&d-b<0))jscroller2.obj[a][13]=o}else if(f==l){if(d<i*-1)d=h}else if(d>h)d=i*-1;m.style.left=d+p}}}};jscroller2.check_endless=function(j,d,a,e,i,f,g,h){var c="px";switch(j){case "down":case "right":var b=parseFloat(e.style[d].split(c)[0])+h;if(a>0&&a<=f)e.style[d]=a-g+c;if(b+g>=f&&b<=f+h){e.style[d]=b+c;a=b+i*-1}return a;break;case "up":case "left":var b=parseFloat(e.style[d].split(c)[0])-h;if(a+i<=f)e.style[d]=a+i+c;if(b+g<=f&&b+g+h>=0){e.style[d]=b+c;a=b+g}return a}};jscroller2.start_jscroller=function(){if(!jscroller2.timer)jscroller2.timer=window.setInterval(jscroller2.init_jscroller2,jscroller2.refreshtime||150)};jscroller2.stop_jscroller=function(){if(jscroller2.timer){window.clearInterval(jscroller2.timer);jscroller2.timer=false}};jscroller2.set_jscroller2_events=function(){for(var b=document.getElementsByTagName("div"),a=0;a<b.length;a++){var c=b[a].className.split(" ");if(jscroller2.check_array(c,"jscroller2_down"))jscroller2.add_scroller(b[a],"down");else if(jscroller2.check_array(c,"jscroller2_up"))jscroller2.add_scroller(b[a],"up");else if(jscroller2.check_array(c,"jscroller2_left"))jscroller2.add_scroller(b[a],"left");else jscroller2.check_array(c,"jscroller2_right")&&jscroller2.add_scroller(b[a],"right")}if(jscroller2.obj.length>0){jscroller2.start_jscroller();if(jscroller2.delayer)for(var a=0;a<jscroller2.obj.length;a++)jscroller2.obj[a][12]>0&&window.setTimeout("jscroller2.update_delayer("+jscroller2.obj[a][12]+",0)",jscroller2.obj[a][12]);if(jscroller2.ileave==0){jscroller2.set_eventListener(window,"focus",jscroller2.start_jscroller);jscroller2.set_eventListener(window,"blur",jscroller2.stop_jscroller);jscroller2.set_eventListener(window,"resize",jscroller2.start_jscroller);jscroller2.set_eventListener(window,"scroll",jscroller2.start_jscroller)}}};jscroller2.stop_sel_jscroller=function(a){if(a.target||a.srcElement){for(var b=a.target?a.target:a.srcElement,c=0;c<5;c++)if(b.className.indexOf("jscroller2_mousemove")<0&&b.className.indexOf("_endless")<0)b=b.parentNode;else break;jscroller2.update_sel_jscroller(b,1)}};jscroller2.start_sel_jscroller=function(a){if(a.target||a.srcElement){for(var b=a.target?a.target:a.srcElement,c=0;c<5;c++)if(b.className.indexOf("jscroller2_mousemove")<0&&b.className.indexOf("_endless")<0)b=b.parentNode;else break;jscroller2.update_sel_jscroller(b,0)}};jscroller2.update_delayer=function(b){if(b>0)for(var a=0;a<jscroller2.obj.length;a++)if(b==jscroller2.obj[a][12]){jscroller2.obj[a][12]=0;jscroller2.obj[a][11]=0}};jscroller2.update_sel_jscroller=function(b,c){if(b&&c>=0)for(var a=0;a<jscroller2.obj.length;a++)if(b==jscroller2.obj[a][3]||b==jscroller2.obj[a][6])jscroller2.obj[a][11]=c};jscroller2.check_array=function(a,c,e){if(a&&c)for(var d=false,b=0;b<a.length;b++)if(e){if(a[b].indexOf(c)>=0)d=a[b]}else if(a[b]==c)d=a[b];return d};(function(a){var k="click",j="absolute",g="auto",h="position",c=true,f="cycle.opts",d=null,b=false,v="2.73";if(a.support==undefined)a.support={opacity:!a.browser.msie};function m(b){a.fn.cycle.debug&&e(b)}function e(){window.console&&window.console.log&&window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}a.fn.cycle=function(f,g){var c=this,d={s:c.selector,c:c.context};if(c.length===0&&f!="stop"){if(!a.isReady&&d.s){e("DOM not ready, queuing slideshow");a(function(){a(d.s,d.c).cycle(f,g)});return c}e("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return c}return c.each(function(){var h=this,l=w(h,f,g);if(l===b)return;h.cycleTimeout&&clearTimeout(h.cycleTimeout);h.cycleTimeout=h.cyclePause=0;var n=a(h),o=l.slideExpr?a(l.slideExpr,h):n.children(),k=o.get();if(k.length<2){e("terminating; too few slides: "+k.length);return}var c=u(n,o,k,l,d);if(c===b)return;var j=c.continuous?10:q(c.currSlide,c.nextSlide,c,!c.rev);if(j){j+=c.delay||0;if(j<10)j=10;m("first timeout: "+j);h.cycleTimeout=setTimeout(function(){i(k,c,0,!c.rev)},j)}})};function w(h,g,k){if(h.cycleStop==undefined)h.cycleStop=0;if(g===undefined||g===d)g={};if(g.constructor==String){switch(g){case "stop":h.cycleStop++;h.cycleTimeout&&clearTimeout(h.cycleTimeout);h.cycleTimeout=0;a(h).removeData(f);return b;case "pause":h.cyclePause=1;return b;case "resume":h.cyclePause=0;if(k===c){g=a(h).data(f);if(!g){e("options not found, can not resume");return b}if(h.cycleTimeout){clearTimeout(h.cycleTimeout);h.cycleTimeout=0}i(g.elements,g,1,1)}return b;case "prev":case "next":var l=a(h).data(f);if(!l){e('options not found, "prev/next" ignored');return b}a.fn.cycle[g](l);return b;default:g={fx:g}}return g}else if(g.constructor==Number){var j=g;g=a(h).data(f);if(!g){e("options not found, can not advance slide");return b}if(j<0||j>=g.elements.length){e("invalid slide index: "+j);return b}g.nextSlide=j;if(h.cycleTimeout){clearTimeout(h.cycleTimeout);h.cycleTimeout=0}if(typeof k=="string")g.oneTimeFx=k;i(g.elements,g,1,j>=g.currSlide);return b}return g}function n(b,c){if(!a.support.opacity&&c.cleartype&&b.style.filter)try{b.style.removeAttribute("filter")}catch(d){}}function u(m,q,k,u,B){var d=a.extend({},a.fn.cycle.defaults,u||{},a.metadata?m.metadata():a.meta?m.data():{});if(d.autostop)d.countdown=d.autostopCount||k.length;var J=m[0];m.data(f,d);d.$cont=m;d.stopCount=J.cycleStop;d.elements=k;d.before=d.before?[d.before]:[];d.after=d.after?[d.after]:[];d.after.unshift(function(){d.busy=0});!a.support.opacity&&d.cleartype&&d.after.push(function(){n(this,d)});d.continuous&&d.after.push(function(){i(k,d,0,!d.rev)});x(d);!a.support.opacity&&d.cleartype&&!d.cleartypeNoBg&&o(q);m.css(h)=="static"&&m.css(h,"relative");d.width&&m.width(d.width);d.height&&d.height!=g&&m.height(d.height);if(d.startingSlide)d.startingSlide=parseInt(d.startingSlide);if(d.random){d.randomMap=[];for(var D=0;D<k.length;D++)d.randomMap.push(D);d.randomMap.sort(function(){return Math.random()-.5});d.randomIndex=0;d.startingSlide=d.randomMap[0]}else if(d.startingSlide>=k.length)d.startingSlide=0;d.currSlide=d.startingSlide=d.startingSlide||0;var p=d.startingSlide;q.css({position:j,top:0,left:0}).hide().each(function(b){var c=p?b>=p?k.length-(b-p):p-b:k.length-b;a(this).css("z-index",c)});a(k[p]).css("opacity",1).show();n(k[p],d);d.fit&&d.width&&q.width(d.width);d.fit&&d.height&&d.height!=g&&q.height(d.height);var I=d.containerResize&&!m.innerHeight();if(I){for(var y=0,w=0,C=0;C<k.length;C++){var E=a(k[C]),G=E[0],z=E.outerWidth(),A=E.outerHeight();if(!z)z=G.offsetWidth;if(!A)A=G.offsetHeight;y=z>y?z:y;w=A>w?A:w}y>0&&w>0&&m.css({width:y+"px",height:w+"px"})}d.pause&&m.hover(function(){this.cyclePause++},function(){this.cyclePause--});if(r(d)===b)return b;var H=b;u.requeueAttempts=u.requeueAttempts||0;q.each(function(){var f=this,g=a(f);f.cycleH=d.fit&&d.height?d.height:g.height();f.cycleW=d.fit&&d.width?d.width:g.width();if(g.is("img")){var h=a.browser.msie&&f.cycleW==28&&f.cycleH==30&&!f.complete,j=a.browser.mozilla&&f.cycleW==34&&f.cycleH==19&&!f.complete,i=a.browser.opera&&(f.cycleW==42&&f.cycleH==19||f.cycleW==37&&f.cycleH==17)&&!f.complete,k=f.cycleH==0&&f.cycleW==0&&!f.complete;if(h||j||i||k)if(B.s&&d.requeueOnImageNotLoaded&&++u.requeueAttempts<100){e(u.requeueAttempts," - img slide not loaded, requeuing slideshow: ",f.src,f.cycleW,f.cycleH);setTimeout(function(){a(B.s,B.c).cycle(u)},d.requeueTimeout);H=c;return b}else e("could not determine size of image: "+f.src,f.cycleW,f.cycleH)}return c});if(H)return b;d.cssBefore=d.cssBefore||{};d.animIn=d.animIn||{};d.animOut=d.animOut||{};q.not(":eq("+p+")").css(d.cssBefore);d.cssFirst&&a(q[p]).css(d.cssFirst);if(d.timeout){d.timeout=parseInt(d.timeout);if(d.speed.constructor==String)d.speed=a.fx.speeds[d.speed]||parseInt(d.speed);if(!d.sync)d.speed=d.speed/2;while(d.timeout-d.speed<250)d.timeout+=d.speed}if(d.easing)d.easeIn=d.easeOut=d.easing;if(!d.speedIn)d.speedIn=d.speed;if(!d.speedOut)d.speedOut=d.speed;d.slideCount=k.length;d.currSlide=d.lastSlide=p;if(d.random){d.nextSlide=d.currSlide;if(++d.randomIndex==k.length)d.randomIndex=0;d.nextSlide=d.randomMap[d.randomIndex]}else d.nextSlide=d.startingSlide>=k.length-1?0:d.startingSlide+1;if(!d.multiFx){var F=a.fn.cycle.transitions[d.fx];if(a.isFunction(F))F(m,q,d);else if(d.fx!="custom"&&!d.multiFx){e("unknown transition: "+d.fx,"; slideshow terminating");return b}}var v=q[p];d.before.length&&d.before[0].apply(v,[v,v,d,c]);d.after.length>1&&d.after[1].apply(v,[v,v,d,c]);d.next&&a(d.next).bind(d.prevNextEvent,function(){return l(d,d.rev?-1:1)});d.prev&&a(d.prev).bind(d.prevNextEvent,function(){return l(d,d.rev?1:-1)});d.pager&&s(k,d);t(d,k);return d}function x(b){b.original={before:[],after:[]};b.original.cssBefore=a.extend({},b.cssBefore);b.original.cssAfter=a.extend({},b.cssAfter);b.original.animIn=a.extend({},b.animIn);b.original.animOut=a.extend({},b.animOut);a.each(b.before,function(){b.original.before.push(this)});a.each(b.after,function(){b.original.after.push(this)})}function r(d){var f,h,g=a.fn.cycle.transitions;if(d.fx.indexOf(",")>0){d.multiFx=c;d.fxs=d.fx.replace(/\s*/g,"").split(",");for(f=0;f<d.fxs.length;f++){var i=d.fxs[f];h=g[i];if(!h||!g.hasOwnProperty(i)||!a.isFunction(h)){e("discarding unknown transition: ",i);d.fxs.splice(f,1);f--}}if(!d.fxs.length){e("No valid transitions named; slideshow terminating.");return b}}else if(d.fx=="all"){d.multiFx=c;d.fxs=[];for(p in g){h=g[p];g.hasOwnProperty(p)&&a.isFunction(h)&&d.fxs.push(p)}}if(d.multiFx&&d.randomizeEffects){var k=Math.floor(Math.random()*20)+30;for(f=0;f<k;f++){var j=Math.floor(Math.random()*d.fxs.length);d.fxs.push(d.fxs.splice(j,1)[0])}m("randomized fx sequence: ",d.fxs)}return c}function t(b,c){b.addSlide=function(i,f){var d=a(i),e=d[0];if(!b.autostopCount)b.countdown++;c[f?"unshift":"push"](e);b.els&&b.els[f?"unshift":"push"](e);b.slideCount=c.length;d.css(h,j);d[f?"prependTo":"appendTo"](b.$cont);if(f){b.currSlide++;b.nextSlide++}!a.support.opacity&&b.cleartype&&!b.cleartypeNoBg&&o(d);b.fit&&b.width&&d.width(b.width);b.fit&&b.height&&b.height!=g&&$slides.height(b.height);e.cycleH=b.fit&&b.height?b.height:d.height();e.cycleW=b.fit&&b.width?b.width:d.width();d.css(b.cssBefore);b.pager&&a.fn.cycle.createPagerAnchor(c.length-1,e,a(b.pager),c,b);if(a.isFunction(b.onAddSlide))b.onAddSlide(d);else d.hide()}}a.fn.cycle.resetState=function(b,c){c=c||b.fx;b.before=[];b.after=[];b.cssBefore=a.extend({},b.original.cssBefore);b.cssAfter=a.extend({},b.original.cssAfter);b.animIn=a.extend({},b.original.animIn);b.animOut=a.extend({},b.original.animOut);b.fxFn=d;a.each(b.original.before,function(){b.before.push(this)});a.each(b.original.after,function(){b.after.push(this)});var e=a.fn.cycle.transitions[c];a.isFunction(e)&&e(b.$cont,a(b.elements),b)};function i(j,e,k,n){if(k&&e.busy&&e.manualTrump){a(j).stop(c,c);e.busy=b}if(e.busy)return;var h=e.$cont[0],g=j[e.currSlide],f=j[e.nextSlide];if(h.cycleStop!=e.stopCount||h.cycleTimeout===0&&!k)return;if(!k&&!h.cyclePause&&(e.autostop&&--e.countdown<=0||e.nowrap&&!e.random&&e.nextSlide<e.currSlide)){e.end&&e.end(e);return}if(k||!h.cyclePause){var m=e.fx;g.cycleH=g.cycleH||a(g).height();g.cycleW=g.cycleW||a(g).width();f.cycleH=f.cycleH||a(f).height();f.cycleW=f.cycleW||a(f).width();if(e.multiFx){if(e.lastFx==undefined||++e.lastFx>=e.fxs.length)e.lastFx=0;m=e.fxs[e.lastFx];e.currFx=m}if(e.oneTimeFx){m=e.oneTimeFx;e.oneTimeFx=d}a.fn.cycle.resetState(e,m);e.before.length&&a.each(e.before,function(b,a){if(h.cycleStop!=e.stopCount)return;a.apply(f,[g,f,e,n])});var o=function(){a.each(e.after,function(b,a){if(h.cycleStop!=e.stopCount)return;a.apply(f,[g,f,e,n])})};if(e.nextSlide!=e.currSlide){e.busy=1;if(e.fxFn)e.fxFn(g,f,e,o,n);else if(a.isFunction(a.fn.cycle[e.fx]))a.fn.cycle[e.fx](g,f,e,o);else a.fn.cycle.custom(g,f,e,o,k&&e.fastOnEvent)}e.lastSlide=e.currSlide;if(e.random){e.currSlide=e.nextSlide;if(++e.randomIndex==j.length)e.randomIndex=0;e.nextSlide=e.randomMap[e.randomIndex]}else{var p=e.nextSlide+1==j.length;e.nextSlide=p?0:e.nextSlide+1;e.currSlide=p?j.length-1:e.nextSlide-1}e.pager&&a.fn.cycle.updateActivePagerLink(e.pager,e.currSlide)}var l=0;if(e.timeout&&!e.continuous)l=q(g,f,e,n);else if(e.continuous&&h.cyclePause)l=10;if(l>0)h.cycleTimeout=setTimeout(function(){i(j,e,0,!e.rev)},l)}a.fn.cycle.updateActivePagerLink=function(b,c){a(b).each(function(){var b="activeSlide";a(this).find("a").removeClass(b).filter("a:eq("+c+")").addClass(b)})};function q(f,e,a,d){if(a.timeoutFn){var c=a.timeoutFn(f,e,a,d);while(c-a.speed<250)c+=a.speed;m("calculated timeout: "+c+"; speed: "+a.speed);if(c!==b)return c}return a.timeout}a.fn.cycle.next=function(a){l(a,a.rev?-1:1)};a.fn.cycle.prev=function(a){l(a,a.rev?1:-1)};function l(c,e){var d=c.elements,g=c.$cont[0],f=g.cycleTimeout;if(f){clearTimeout(f);g.cycleTimeout=0}if(c.random&&e<0){c.randomIndex--;if(--c.randomIndex==-2)c.randomIndex=d.length-2;else if(c.randomIndex==-1)c.randomIndex=d.length-1;c.nextSlide=c.randomMap[c.randomIndex]}else if(c.random){if(++c.randomIndex==d.length)c.randomIndex=0;c.nextSlide=c.randomMap[c.randomIndex]}else{c.nextSlide=c.currSlide+e;if(c.nextSlide<0){if(c.nowrap)return b;c.nextSlide=d.length-1}else if(c.nextSlide>=d.length){if(c.nowrap)return b;c.nextSlide=0}}a.isFunction(c.prevNextClick)&&c.prevNextClick(e>0,c.nextSlide,d[c.nextSlide]);i(d,c,1,e>=0);return b}function s(c,b){var d=a(b.pager);a.each(c,function(e,f){a.fn.cycle.createPagerAnchor(e,f,d,c,b)});a.fn.cycle.updateActivePagerLink(b.pager,b.startingSlide)}a.fn.cycle.createPagerAnchor=function(g,m,h,l,d){var f;if(a.isFunction(d.pagerAnchorBuilder))f=d.pagerAnchorBuilder(g,m);else f='<a href="#">'+(g+1)+"</a>";if(!f)return;var e=a(f);if(e.parents("body").length===0){var j=[];if(h.length>1){h.each(function(){var b=e.clone(c);a(this).append(b);j.push(b[0])});e=a(j)}else e.appendTo(h)}e.bind(d.pagerEvent,function(f){f.preventDefault();d.nextSlide=g;var e=d.$cont[0],c=e.cycleTimeout;if(c){clearTimeout(c);e.cycleTimeout=0}a.isFunction(d.pagerClick)&&d.pagerClick(d.nextSlide,l[d.nextSlide]);i(l,d,1,d.currSlide<g);return b});d.pagerEvent!=k&&e.click(function(){return b});d.pauseOnPagerHover&&e.hover(function(){d.$cont[0].cyclePause++},function(){d.$cont[0].cyclePause--})};a.fn.cycle.hopsFromLast=function(c,e){var d,a=c.lastSlide,b=c.currSlide;if(e)d=b>a?b-a:c.slideCount-a;else d=b<a?a-b:a+c.slideCount-b;return d};function o(e){var b="background-color";function c(a){a=parseInt(a).toString(16);return a.length<2?"0"+a:a}function d(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var d=a.css(e,b);if(d.indexOf("rgb")>=0){var f=d.match(/\d+/g);return "#"+c(f[0])+c(f[1])+c(f[2])}if(d&&d!="transparent")return d}return "#ffffff"}e.each(function(){a(this).css(b,d(this))})}a.fn.cycle.commonReset=function(g,e,d,h,i,f){a(d.elements).not(g).hide();d.cssBefore.opacity=1;d.cssBefore.display="block";if(h!==b&&e.cycleW>0)d.cssBefore.width=e.cycleW;if(i!==b&&e.cycleH>0)d.cssBefore.height=e.cycleH;d.cssAfter=d.cssAfter||{};d.cssAfter.display="none";a(g).css("zIndex",d.slideCount+(f===c?1:0));a(e).css("zIndex",d.slideCount+(f===c?0:1))};a.fn.cycle.custom=function(l,n,b,m,c){var g=a(l),i=a(n),e=b.speedIn,f=b.speedOut,h=b.easeIn,k=b.easeOut;i.css(b.cssBefore);if(c){if(typeof c=="number")e=f=c;else e=f=1;h=k=d}var j=function(){i.animate(b.animIn,e,h,m)};g.animate(b.animOut,f,k,function(){b.cssAfter&&g.css(b.cssAfter);!b.sync&&j()});b.sync&&j()};a.fn.cycle.transitions={fade:function(d,c,b){c.not(":eq("+b.currSlide+")").css("opacity",0);b.before.push(function(d,c,b){a.fn.cycle.commonReset(d,c,b);b.cssBefore.opacity=0});b.animIn={opacity:1};b.animOut={opacity:0};b.cssBefore={top:0,left:0}}};a.fn.cycle.ver=function(){return v};a.fn.cycle.defaults={fx:"fade",timeout:4e3,timeoutFn:d,continuous:0,speed:1e3,speedIn:d,speedOut:d,next:d,prev:d,prevNextClick:d,prevNextEvent:k,pager:d,pagerClick:d,pagerEvent:k,pagerAnchorBuilder:d,before:d,after:d,end:d,easing:d,easeIn:d,easeOut:d,shuffle:d,animIn:d,animOut:d,cssBefore:d,cssAfter:d,fxFn:d,height:g,startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:d,cleartype:!a.support.opacity,cleartypeNoBg:b,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:c,requeueOnImageNotLoaded:c,requeueTimeout:250}})(jQuery);/*var adServerURL=encodeURIComponent("http://ad.httpool.com/scripts/nuggcset?NUGGVARS&ran=")+Math.random(),nuggadCall=new Image;nuggadCall.src="http://httpoolcr.nuggad.net/bk?nuggn=70372471&nuggsid=2127433529&nuggl="+adServerURL;*/jscroller2.set_eventListener(window,"load",jscroller2.set_jscroller2_events)
// var h1logo={"sirina":100,"visina":30,"x_pomak":5,"y_pomak":15,"slika":"/Portals/0/baner/Sd/h1logo.png"};var displayduration=15;if(document.getElementById||document.all)document.write('<div id="logoH1" style="z-index:127;position:absolute;visibility:visible;left:0px;top:0px;width:1px;height:1px"><img src="'+h1logo.slika+'" border="0" width="'+h1logo.sirina+'px" height="'+h1logo.visina+'px"></div>');function gettrailobj(){if(document.getElementById)return document.getElementById("logoH1").style;else if(document.all)return document.all.trailimagid.style;}function truebody(){return(!window.opera&&document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;}function hidetrail(){gettrailobj().visibility="hidden";document.onmousemove="";}function followmouse(e){var xcoord=h1logo.x_pomak;var ycoord=h1logo.y_pomak;if(typeof e!="undefined"){xcoord+=e.pageX;ycoord+=e.pageY;}else if(typeof window.event!="undefined"){xcoord+=truebody().scrollLeft+event.clientX;ycoord+=truebody().scrollTop+event.clientY;}var docwidth=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-15;var docheight=document.all?Math.max(truebody().scrollHeight,truebody().clientHeight):Math.max(document.body.offsetHeight,window.innerHeight);if(xcoord+h1logo.sirina+3>docwidth||ycoord+h1logo.visina>docheight)gettrailobj().display="none";else gettrailobj().display="";gettrailobj().left=xcoord+"px";gettrailobj().top=ycoord+"px";}document.onmousemove=followmouse;if(displayduration>0)setTimeout("hidetrail()",displayduration*1000);
function closeBaner(divId) {
  	jQuery("#" + divId).remove();
}
function showBanerDivs() {
	jQuery('#ticker, #floater, #floaterHome, .bZona120VrhxP, .divLeft, .divRight, .SdNajavaBox, .billboard').each(function()	{ 
		if (jQuery(this).children().size() > 1) {
		jQuery(this).show();
		}
	}); 
}
function showComment() {

	jQuery("a#moreLink").click(function()
	{
		var items = jQuery(".commentsBody > .commentItem:hidden");
		
        if(items.length > 0)
		items.slice(0, 5).show();
				
		else
		jQuery(".commentNavig a").toggle();
		return false;
	});

		jQuery("a#closeLink").click(function()
		{
		jQuery(".commentsBody .commentItem").filter(':gt(4)').hide();
	 	jQuery(this).hide();
		jQuery(".commentNavig a#moreLink").show();
		return false;
		});
 
	jQuery("a#moreLink").click();
	
	if (jQuery(".commentItem").length <= 5)
	jQuery(".commentNavig").hide();
	else
	jQuery(".commentNavig").show();
}
