function Swipe(n,t){"use strict";function w(){var l,v,u,c;for(e=r.children,p=e.length,e.length<2&&(t.continuous=!1),o.transitions&&t.continuous&&e.length<3?(r.appendChild(e[0].cloneNode(!0)),r.appendChild(r.children[1].cloneNode(!0)),e=r.children):!o.transitions&&o.isIE&&(l=e[e.length-1].cloneNode(!0),v=e[0].cloneNode(!0),r.insertBefore(l,e[0]),r.appendChild(v),e=r.children),a=new Array(e.length),f=n.getBoundingClientRect().width||n.offsetWidth,r.style.width=e.length*f+"px",u=e.length;u--;)c=e[u],c.style.width=f+"px",c.setAttribute("data-index",u),o.transitions&&(c.style.left=u*-f+"px",h(u,i>u?-f:i<u?f:0,0));t.continuous&&o.transitions&&(h(s(i-1),-f,0),h(s(i+1),f,0));o.transitions||(i=o.isIE?i+1:i,r.style.left=i*-f+"px");n.style.visibility="visible"}function ft(){t.continuous?d(i-1):i&&d(i-1)}function it(){t.continuous?d(i+1):i<e.length-1&&d(i+1)}function s(n){return(e.length+n%e.length)%e.length}function d(n,r){var u,v,c;if(i!=n){if(o.transitions){for(u=Math.abs(i-n)/(i-n),t.continuous&&(v=u,u=-a[s(n)]/f,u!==v&&(n=-u*e.length+n)),c=Math.abs(i-n)-1;c--;)h(s((n>i?n:i)-c-1),f*u,0);n=s(n);h(i,f*u,r||l);h(n,0,r||l);t.continuous&&h(s(n-u),-(f*u),0)}else o.isIE&&(n==-1&&i==0&&(i=p,n=i-1),i==p+1&&n==p+2&&(i=1,n=i+1)),n=s(n),et(i*-f,n*-f,r||l);i=n;g(t.callback&&t.callback(i,e[i]))}}function h(n,t,i){v(n,t,i);a[n]=t}function v(n,t,i){var u=e[n],r=u&&u.style;r&&(r.webkitTransitionDuration=r.MozTransitionDuration=r.msTransitionDuration=r.OTransitionDuration=r.transitionDuration=i+"ms",r.webkitTransform="translate("+t+"px,0)translateZ(0)",r.msTransform=r.MozTransform=r.OTransform="translateX("+t+"px)")}function et(n,u,f){if(!f){r.style.left=u+"px";return}var s=+new Date,h=setInterval(function(){var c=+new Date-s;if(c>f){r.style.left=u+"px";b&&tt();o.isIE&&!o.transitions?t.transitionEnd&&t.transitionEnd.call(event,i-1==-1?p-1:i-1,e[i]):t.transitionEnd&&t.transitionEnd.call(event,i,e[i]);clearInterval(h);return}r.style.left=(u-n)*(Math.floor(c/f*100)/100)+n+"px"},4)}function tt(){rt=setTimeout(it,b)}function y(){b=0;clearTimeout(rt)}var ut=function(){},g=function(n){setTimeout(n||ut,0)},o={addEventListener:!!window.addEventListener,touch:"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,ie10:window.navigator.msPointerEnabled,isIE:navigator.userAgent.search("MSIE")>=0,transitions:function(n){var t=["transitionProperty","WebkitTransition","MozTransition","OTransition","msTransition"],i;for(i in t)if(n.style[t[i]]!==undefined)return!0;return!1}(document.createElement("swipe"))},r,e,a,f,p,i,l,b,rt;if(n){r=n.children[0];t=t||{};i=parseInt(t.startSlide,10)||0;l=t.speed||300;t.continuous=t.continuous!==undefined?t.continuous:!0;b=t.auto||0;var nt={},c={},k,u={handleEvent:function(n){switch(n.type){case"touchstart":case"MSPointerDown":this.start(n);break;case"touchmove":case"MSPointerMove":this.move(n);break;case"touchend":case"MSPointerOut":case"MSPointerUp":o.ie10?this.end(n):g(this.end(n));break;case"webkitTransitionEnd":case"msTransitionEnd":case"oTransitionEnd":case"otransitionend":case"transitionend":g(this.transitionEnd(n));break;case"resize":g(w)}t.stopPropagation&&n.stopPropagation()},start:function(n){var i=n.type=="touchstart",t=i?n.touches[0]:n;nt={x:t.pageX,y:t.pageY,time:+new Date};k=undefined;c={};o.touch?(r.addEventListener("touchmove",this,!1),r.addEventListener("touchend",this,!1)):o.ie10&&(r.addEventListener("MSPointerMove",this,!1),r.addEventListener("MSPointerUp",this,!1),r.addEventListener("MSPointerOut",this,!1))},move:function(n){if(o.ie10||!(n.touches.length>1||n.scale&&n.scale!==1)){t.disableScroll&&n.preventDefault();var u=n.type=="touchmove",r=u?n.touches[0]:n;c={x:r.pageX-nt.x,y:r.pageY-nt.y};typeof k=="undefined"&&(k=!!(k||Math.abs(c.x)<Math.abs(c.y)));k||(n.preventDefault(),y(),t.continuous?(v(s(i-1),c.x+a[s(i-1)],0),v(i,c.x+a[i],0),v(s(i+1),c.x+a[s(i+1)],0)):(c.x=c.x/(!i&&c.x>0||i==e.length-1&&c.x<0?Math.abs(c.x)/f+1:1),v(i-1,c.x+a[i-1],0),v(i,c.x+a[i],0),v(i+1,c.x+a[i+1],0)))}},end:function(){var v=+new Date-nt.time,y=Number(v)<250&&Math.abs(c.x)>20||Math.abs(c.x)>f/2,n=!i&&c.x>0||i==e.length-1&&c.x<0,o;t.continuous&&(n=!1);o=c.x<0;k||(y&&!n?(o?(t.continuous?(h(s(i-1),-f,0),h(s(i+2),f,0)):h(i-1,-f,0),h(i,a[i]-f,l),h(s(i+1),a[s(i+1)]-f,l),i=s(i+1)):(t.continuous?(h(s(i+1),f,0),h(s(i-2),-f,0)):h(i+1,f,0),h(i,a[i]+f,l),h(s(i-1),a[s(i-1)]+f,l),i=s(i-1)),t.callback&&t.callback(i,e[i])):t.continuous?(h(s(i-1),-f,l),h(i,0,l),h(s(i+1),f,l)):(h(i-1,-f,l),h(i,0,l),h(i+1,f,l)));r.removeEventListener("touchmove",u,!1);r.removeEventListener("touchend",u,!1);r.removeEventListener("MSPointerMove",u,!1);r.removeEventListener("MSPointerUp",u,!1);r.removeEventListener("MSPointerUp",u,!1);r.removeEventListener("MSPointerOut",u,!1)},transitionEnd:function(n){parseInt(n.target.getAttribute("data-index"),10)==i&&(b&&tt(),t.transitionEnd&&t.transitionEnd.call(n,i,e[i]))}};return w(),b&&tt(),o.addEventListener?(o.touch?r.addEventListener("touchstart",u,!1):o.ie10&&r.addEventListener("MSPointerDown",u,!1),o.transitions&&(r.addEventListener("webkitTransitionEnd",u,!1),r.addEventListener("msTransitionEnd",u,!1),r.addEventListener("oTransitionEnd",u,!1),r.addEventListener("otransitionend",u,!1),r.addEventListener("transitionend",u,!1)),window.addEventListener("resize",u,!1)):window.onresize=function(){w()},{setup:function(){w()},slide:function(n,t){y();d(n,t)},prev:function(){y();ft()},next:function(){y();it()},stop:function(){y()},getPos:function(){return i},getNumSlides:function(){return p},enable:function(){o.addEventListener?(o.touch?r.addEventListener("touchstart",u,!1):o.ie10&&r.addEventListener("MSPointerDown",u,!1),o.transitions&&(r.addEventListener("webkitTransitionEnd",u,!1),r.addEventListener("msTransitionEnd",u,!1),r.addEventListener("oTransitionEnd",u,!1),r.addEventListener("otransitionend",u,!1),r.addEventListener("transitionend",u,!1)),window.addEventListener("resize",u,!1)):window.onresize=function(){w()};w()},disable:function(){y();o.addEventListener?(r.removeEventListener("touchstart",u,!1),r.removeEventListener("webkitTransitionEnd",u,!1),r.removeEventListener("msTransitionEnd",u,!1),r.removeEventListener("oTransitionEnd",u,!1),r.removeEventListener("otransitionend",u,!1),r.removeEventListener("transitionend",u,!1),r.removeEventListener("MSPointerMove",u,!1),r.removeEventListener("MSPointerUp",u,!1),r.removeEventListener("MSPointerDown",u,!1),r.removeEventListener("MSPointerOut",u,!1),window.removeEventListener("resize",u,!1)):window.onresize=null},kill:function(){var n,t;for(y(),r.style.width="",r.style.left="",n=e.length;n--;)t=e[n],t.style.width="",t.style.left="",o.transitions&&v(n,0,0);o.addEventListener?(r.removeEventListener("touchstart",u,!1),r.removeEventListener("webkitTransitionEnd",u,!1),r.removeEventListener("msTransitionEnd",u,!1),r.removeEventListener("oTransitionEnd",u,!1),r.removeEventListener("otransitionend",u,!1),r.removeEventListener("transitionend",u,!1),r.removeEventListener("MSPointerMove",u,!1),r.removeEventListener("MSPointerUp",u,!1),r.removeEventListener("MSPointerDown",u,!1),r.removeEventListener("MSPointerOut",u,!1),window.removeEventListener("resize",u,!1)):window.onresize=null}}}}function DNSwiper(n,t,i){function y(){for(var i=$('[data-mediabox="'+v+'"]'),n,r,t=0;t<i.length;t++){n=i[t];r=n.getAttribute("data-navigation");switch(r){case"previous":window.isIE||window.isIOs||window.isIE11?$(n).click(function(n){n.preventDefault();u.swipePrev()}):$(n).click(function(n){n.preventDefault();u.prev()});break;case"next":window.isIE||window.isIOs||window.isIE11?$(n).click(function(n){n.preventDefault();u.swipeNext()}):$(n).click(function(n){n.preventDefault();u.next()});break;case"panel":s=n}}}function a(n){var t="";window.isIE||window.isIOs||window.isIE11?u&&(t='<span class="slshw-wdget-info-camera-icon left">Bild '+(u.activeIndex==f||u.activeIndex==0?f:u.activeIndex%f)+" av "+f+"<\/span>"):t='<span class="slshw-wdget-info-camera-icon left">Bild '+(n%f+1)+" av "+f+"<\/span>";s&&$(s).html(t)}window.DNse=window.DNse||{};window.DNse.SliderHeightDefinition=window.DNse.SliderHeightDefinition||{large:{h:630,w:1e3},medium:{h:430,w:683},small:{h:315,w:500}};var c=t,e=n,v=e.getAttribute("data-mediabox-id"),u,l=!1,o=$(n).find(".swiper-slide"),s,f=o.length,r=this,h=window.DNse.SliderHeightDefinition;r.init=function(){r.adjustSize();r.internalInit();r.handleImages()};r.sizeType={};r.adjustSize=function(){switch(i){case"small":r.sizeType=h.small;break;case"medium":r.sizeType=h.medium;break;case"large":r.sizeType=h.large}r.sizeType&&r.sizeType.h&&(n.style.height=r.sizeType.h+"px",r.setSlidesHeight(r.sizeType.h))};r.setSlidesHeight=function(n){for(var t=0;t<o.length;t++)o[t].style.height=n+"px"};r.handleImages=function(){for(var t=$('span[data-preload-image="true"]',e),n=0;n<t.length;n++)r.preloadImage(t[n])};r.preloadImage=function(n){var u=n.getAttribute("data-img-url"),f=n.getAttribute("data-img-alt"),e=n.getAttribute("data-img-title"),i=document.createElement("img"),t=document.createElement("img");i.alt="loading image";i.title="loading";i.className="slshw-wdget-preload-icon";i.src="/img/FinancialHub/loader.gif";n.appendChild(i);n.appendChild(t);t.onload=function(){r.adjustSizeImage(t,n,i)};t.alt=f;t.title=e;t.className="hidden loading";t.src=u};r.adjustSizeImage=function(n,t,i){t.removeAttribute("data-img-url");t.removeAttribute("data-img-alt");t.removeAttribute("data-img-title");t.removeAttribute("data-preload-image");t.removeChild(i);t.parentNode.style.background="black";n.style.visibility="hidden";n.className="image-loaded";var e=n.width,u=n.height,f=r.sizeType,o=e/f.w,s=u/f.h,h=0;(e>f.w||u>f.h)&&(o>s?(e=f.w,u=u/o):(e=e/s,u=f.h));h=(f.h-u)/2;n.style.width=e+"px";n.style.height=u+"px";n.style.marginTop=h+"px";n.style.visibility="visible"};r.internalInit=function(){l||(l=!0,window.isIE=window.isIE||navigator.userAgent.search("MSIE")>=0,window.isIOs=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),window.isIE11=!!navigator.userAgent.match(/Trident\/7.0;/),u=window.isIE||window.isIOs||window.isIE11?new Swiper(e,{followFinger:!1,loop:!0,onSlideChangeEnd:a}):new Swipe(e,{transitionEnd:a}),o=$(n).find(".swiper-slide"),y())};c&&$(e).hover(function(){showCaption($(this).find(".caption"))},function(){hideCaption($(this).find(".caption"))})}function showCaption(n){$(n).each(function(){var n=$(this).children()[0];$(this).animate({height:n.clientHeight},200,null)})}function hideCaption(n){$(n).each(function(){$(this).animate({height:0},200,null)})}function nyroModalDebug(n,t){t.full&&t.bg?(t.bg.prepend(n+"<br />"+tmpDebug),tmpDebug=""):tmpDebug+=n+"<br />"}function loadUserInfo(n,t,i,r){var f="/Pages/ControlLoaderPage.aspx?ReturnUrl="+encodeURIComponent(t)+"&controlPath="+encodeURIComponent("~/UserControls/Login/LoginControl.ascx")+"&pageId="+r,u;f=f+"&t="+encodeURIComponent((new Date).getTime());f=f+" #result";u=window.personalizeObject||new personalizeModel;window.clientNumber&&(u.clientNumber=window.clientNumber);n.load(f,u.shorten(),function(){i();var n=$("#HiddenFieldPersonalize");n.val().toLowerCase()=="true"&&(u.sessionId=n.attr("data-session"),u.isTracked=!0,u.markAsRead().saveDataToCookie())})}function personalizeModel(n,t,i){this.contentType=n;this.contentId=t;this.sessionId=i;this.clientNumber=Math.floor(Math.random()*10+1);this.isTracked=!1;this.readArticles=[];this.cookieKey="Prsnalize.Key";var r=new Date,u=r.getMinutes(),f=r.getHours();this.cookieDuration=(23-f)*60+(59-u)}function InitWeatherControl(n){handleLocationSelected=function(t){t==undefined&&(t=$.cookie(n.cookieKey),t==null&&(t=n.defaultLocationId));var i=n.weatherServiceUrl+"?geoid="+t+"&control="+n.controlId;$.ajax({url:i,type:"GET",dataType:"html",error:function(n,t,i){console&&console.log&&console.log(i+"\n"+t+"\n"+n.statusText)},success:function(t){t!=undefined&&$(n.contentElementSelector).replaceWith(t)}});$("#weatherWidgetContent")!=null&&$.ajax({url:n.weatherServiceUrl+"?geoid="+t+"&control=footer",type:"GET",dataType:"html",error:function(n,t,i){console&&console.log&&console.log(i+"\n"+t+"\n"+n.statusText)},success:function(t){t!=undefined&&$(n.footerElementId).replaceWith(t)}})};(new GeoLocationSelectorEvents).OnLocationSelected(handleLocationSelected);var t=n.defaultLocationId,i=$.cookie(n.cookieKey);i==null||i==t?t!=null&&t!=undefined&&handleLocationSelected(t):handleLocationSelected(i)}function UrlHandler(n){this._url=n;this._locationHref=window.location.href;this._cookie=document.cookie;this._urlVars}function SetDefaultNyroModalSettings(){$.nyroModalSettings({closeButton:'<a href="#" class="nyroModalClose" id="closeBut" title="St&auml;ng"><strong>St&auml;ng<\/strong><\/a>',galleryCounts:"",galleryLinks:"",disableArrows:!0})}function GetComments(n){var t=0,i;return arguments.length==1&&(t=n),i={page:commentList.currentPage,action:commentList.getAction,size:$("#pagesizeSelect").val(),pagenumber:t},CallCommentService(i),!1}function AddComment(n){return n===undefined&&(n={page:commentList.currentPage,remoteip:commentList.ipAddress,author:$("#namn").val(),body:$("#kommentar").val(),link:$("#websida").val(),isagree:$("#comment-agree-disclaimer").prop("checked"),action:commentList.addAction,size:$("#pagesizeSelect").val(),pagenumber:0}),CallCommentService(n),!1}function CallCommentService(n){$.ajax({url:commentList.serviceUrl,data:n,type:"POST",timeout:3e4,success:function(n){$(".ajax-comment-list-container").html(n);$(".ajax-comment-list-container").html($("#ajax-comment-container").html())},error:function(n,t,i){console.log&&(console.log("ajax error xhr response text: "+n.responseText),console.log("ajax error xhr status: "+n.status),console.log("ajax error textStatus: "+t),console.log("ajax error errorThrown: "+i),console.log("url request: "+commentList.serviceUrl))},complete:function(n){Validate(n)&&(n.getResponseHeader("commentAdded")!=null&&n.getResponseHeader("commentAdded").length>0&&$("#article-comment").find("#buttonFbcPublishComment").click(),$("#kommentar").val(""),$("#websida").val("http://"),$("#comment-agree-disclaimer").attr("checked",!1));UpdateCommentCount($("#all-comments").html());UpdateShowCommentCount($("#comment-counter").html());$(".comment-count").html()=="0"?$("#zeroComment").show():$("#zeroComment").hide();$("#article-comment").trigger("commentsLoaded")}})}function UpdateCommentCount(n){$(".comment-count").html(n)}function UpdateShowCommentCount(n){$(".displayed-comments").html(n)}function openReportDialog(n,t){$.get(commentServices.abuseReportFormUrl,function(i){$.nyroModalManual({content:i,title:"Anmäl kommentaren",endRemove:showDisclaimerVar.onEndRemove});$("#buttonSendReport").bind("click",function(){SendReport(n,t)})})}function ValidateAbuseReport(){$("#abuseMailErrors").hide();$("#abuseBodyErrors").hide();$("#abuseReportMail").removeClass("inputerror");$("#abuseReportBody").removeClass("inputerror");var n=!1,t=$("#abuseReportMail").val();return t!=null&&t!=""&&/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(t)||(n=!0,$("#abuseReportMail").addClass("inputerror"),$("#abuseMailErrors").show()),($("#abuseReportBody").val()==null||$("#abuseReportBody").val()=="")&&(n=!0,$("#abuseReportBody").addClass("inputerror"),$("#abuseBodyErrors").show()),!n}function SendReport(n,t){ValidateAbuseReport()&&$.ajax({url:commentServices.abuseReportServiceUrl,data:{action:"add",email:$("#abuseReportMail").val(),body:$("#abuseReportBody").val(),commentId:t},type:"POST",timeout:3e4,success:function(){$.get(commentServices.abuseReportUrl,function(n){$("#nyroModalContent").html(n);$("#disclaimerLink").unbind("click",showDisclaimerVar.showDisclaimer);$("#disclaimerLink").bind("click",showDisclaimerVar.showDisclaimer)});DisableReportLink(n)},error:function(){$.nyroModalManual({content:"Error",title:"Anmäl kommentaren"})},complete:function(){}})}function DisableReportLink(n){$(n).html($("<strong>").text(commentServices.disabledReportLinkText));$(n).attr("onclick","")}function show_more_button(n,t,i,r,u,f,e,o,s,h){try{this.total=n;this.page=t;this.button=i;this.pagesize=r;this.layout=u;this.buttonwrapper=e;this.container=f;this.subStoryId=o;this.pageId=s;this.url=h;this.init=function(){var n=this;n.button.click(function(){n.buttonwrapper.attr("disabled","disabled");$.get(n.url,{pageIndex:++n.page,amount:n.pagesize.toString(),layout:n.layout,subStoryId:n.subStoryId,pageId:n.pageId},function(t){n.total<=n.pagesize*n.page?(n.button.hide(),n.container.next().find(".span1").html(n.total)):n.container.next().find(".span1").html(n.pagesize*n.page);n.container.append(t);n.buttonwrapper.removeAttr("disabled");$.shareTools&&n.container.find(".sharetooltip").shareTools()},"html")})}}catch(c){}}function StoryShowMore(n,t,i,r,u,f,e,o,s,h,c){try{this.total=n;this.lastItemIndex=t;this.amount=r;this.button=i;this.layout=u;this.buttonwrapper=e;this.container=f;this.subStoryId=o;this.pageId=s;this.url=h;this.fragment=t;this.init=function(){var n=this,i=$.deparam.fragment(window.location.href),t,u,r;i&&i.st&&(t=i.st.split("/"),u=t[0],u==n.subStoryId&&(r=t.length>1?Number(t[1]):0,n.fragment=r>n.total?n.total:r,n.fragment>n.lastItemIndex&&n.callAjax()));n.button.click(function(t){t.preventDefault();n.buttonwrapper.attr("disabled","disabled");n.callAjax()})};this.callAjax=function(){var n=this;n.lastItemIndex=n.lastItemIndex+n.amount;$.get(n.url,{last:n.lastItemIndex,amount:n.amount.toString(),pageId:n.pageId,layout:u,subStoryId:o},function(t){n.total<=n.lastItemIndex?(c&&n.buttonwrapper.hide(),n.button.hide(),n.container.next().find(".span1").html(n.total)):n.container.next().find(".span1").html(n.lastItemIndex);n.container.append(t);n.buttonwrapper.removeAttr("disabled");$.shareTools&&n.container.find(".sharetooltip").shareTools();var i="st="+n.subStoryId+"/"+n.lastItemIndex;window.location.href=$.param.fragment(window.location.href,i,2);n.fragment>n.lastItemIndex&&n.callAjax()},"html")}}catch(l){}}function show_more_small_auto_teasers(n,t,i,r,u,f,e,o,s,h){try{this.total=n;this.lastItemIndex=t-1;this.amount=r;this.button=i;this.buttonwrapper=f;this.container=u;this.pageId=e;this.url=o;this.excludedTeasersList=s;this.normalTeaser=h||0;this.fragment=this.lastItemIndex;this.init=function(){var n=this,i=$.deparam.fragment(window.location.href),t,u,r;i&&i.at&&(t=i.at.split("/"),u=t[0],u==n.pageId&&(r=t.length>1?Number(t[1]):0,n.fragment=r+1>=n.total+n.normalTeaser?n.total+n.normalTeaser-1:r,n.fragment>n.lastItemIndex&&n.callAjax()));n.button.click(function(t){t.preventDefault();n.buttonwrapper.attr("disabled","disabled");n.callAjax()})};this.callAjax=function(){var n=this;$.get(n.url,{last:n.lastItemIndex,amount:n.amount.toString(),pageId:n.pageId,excludedTeasersList:n.excludedTeasersList,ts:$.now()},function(t){n.lastItemIndex=n.lastItemIndex+n.amount;n.total+n.normalTeaser<=n.lastItemIndex+1?(n.button.hide(),n.container.next().find(".span1").html(n.total)):n.container.next().find(".span1").html(n.lastItemIndex+1-h);n.container.append(t);n.buttonwrapper.removeAttr("disabled");$.shareTools&&n.container.find(".sharetooltip").shareTools();var i="at="+n.pageId+"/"+n.lastItemIndex;window.location.href=$.param.fragment(window.location.href,i,2);n.fragment>n.lastItemIndex&&n.callAjax()},"html")}}catch(c){alert(c)}}function show_more_button_archive(n,t,i,r,u,f,e,o){try{this.total=n;this.page=t;this.button=i;this.pagesize=r;this.date=u;this.buttonwrapper=e;this.container=f;this.url=o;_self=this;this.init=function(){_self.button.click(function(){_self.buttonwrapper.attr("disabled","disabled");$.get(_self.url,{pageIndex:++_self.page,amount:_self.pagesize.toString(),date:_self.date},function(n){_self.total<=_self.pagesize*_self.page?(_self.button.hide(),$("#"+_self.container.attr("id")+" .span1").html(_self.total)):$("#"+_self.container.attr("id")+" .span1").html(_self.pagesize*_self.page);$(_self.container).append(n);_self.buttonwrapper.removeAttr("disabled")},"html")})}}catch(s){}}function showMoreDyhetsdygnet(n,t,i,r,u,f,e){var o=$("#"+n),s=o.find("li").length;$("#"+r).hide();$("#"+u).css("display","inline-block");$.get("/WebServices/ArchiveArticleService.ashx",{sortType:"desc",loadedCounting:s,date:t,expectedCounting:e},function(n){o.append(n);var t=o.find("li").length;$("#"+i).html(t);$("#"+u).hide();t>=parseInt($("#"+f).text())?$("#"+r).hide():$("#"+r).show()},"html")}function showMoreComics(n,t,i,r,u,f){this.total=n;this.skip=t;this.group=i;this.button=u;this.url=f;this.c=r;this.fragment=t;this.init=function(){var n=this,t;try{t=$.deparam.fragment(window.location.href);t&&$.isNumeric(t.d)&&(n.fragment=Number(t.d)>Number(n.total)?n.total:t.d,Number(n.fragment)>Number(n.skip)&&n.callAjax());n.button.click(function(t){t.preventDefault();n.callAjax()})}catch(i){}};this.callAjax=function(){var n=this;$.get(n.url,{skip:n.skip,group:n.group},function(t){$(n.c).append(t);var i=$(n.c).find(".cm-lib-item-image").length;n.skip=i;n.button.find(".comics-display-count").html(i);window.location.href=$.param.fragment(window.location.href,"d="+i,2);$(n.c).find("a").fragment("d="+i,2);i>=n.total?n.button.find("a").hide():n.button.find("a").show();n.fragment>n.skip&&n.callAjax()},"html")}}function ShareToFacebook(){var n=window.location.href;return FB.ui({method:"stream.share",u:n},function(n){if(n&&n.object_id){var t=JSON.parse($("input#articleSocial").val());$.ajax({url:t.service,data:{pageLink:t.pageRef,provider:"facebook"}})}}),!1}function ShareToDelicious(){return window.open("http://delicious.com/save?v5&noui&jump=close&url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title),"delicious","toolbar=no"),!1}function ShareToPusha(){return window.open("http://www.pusha.se/posta?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title),"pusha","toolbar=no"),!1}function rotationModel(n,t,i,r){this.container=n;this.slideItems=t;this.height=0;this.slideAvailble=!1;this.prevEl=null;this.nextEl=null;this.timeOut=i||0;this.random=r;this.applyPersonalize=!1;this.personalizeData=null;this.isOnHomePage=!1;this.initCompleted=function(){}}function ApplyRotatingSplitView(n){var t=function(){var t=$("#photo-multi_"+n+" div.content-slide"),i=$("#slideshow_"+n);t.find(".photo").hover(function(){$(this).find(".caption").each(function(){$(this).animate({height:$(this).data("height")},{queue:!1,duration:300,easing:"easeOutQuart"})})},function(){$(this).find(".caption").each(function(){$(this).animate({height:0},{queue:!1,duration:300,easing:"easeOutQuart"})})});i.find(".singel").each(function(){var n=$(this),t=n.find(".caption");n[0].style&&n[0].style.display=="none"?(n.removeClass("hidden").addClass("hidden-absolute").show(),t.data("height",t.height()).css({left:0,height:0}),n.removeClass("hidden-absolute").hide()):t.data("height",t.height()).css({left:0,height:0})})};_isEditMode?repeatUntilReady(function(){var t=!0,i=$("#photo-multi_"+n);return i.find(".caption").each(function(){return $(this).height()==0&&($(this).find(".text").text().length!=0||$(this).find(".author").text().length!=0)&&(t=!1),t}),t},t(),50,20):t()}function getDay(){var r,n,t,i;try{return r=window.location.href,n=$.deparam.querystring(r),n!=undefined&&n.d!=undefined?(t=n.d,[t.substr(0,4),t.substr(4,2),t.substr(6,2)]):(i=new Date,[i.getFullYear(),i.getMonth()+1,i.getDate()])}catch(u){}}function ZoomImage(){$(".expandable-image").imageZoom()}function adjustHeightIFrame(n){try{var t=n.contentDocument?n.contentDocument.body:n.document.body,i=$(t).height();$(n).css("height",i+"px")}catch(r){}}function playClip(n,t,i,r,u,f){var e=$("#"+i);t=t==minClipHeight?$("#"+i).height():t;$(e).css("min-height",t+"px");u?setupScreen9Player(i,n,t,r,f):($(e).find(".dnse-webtvinit").remove(),$(e).find(".clip-deleted-message").show())}function playClip2(n,t,i,r,u,f){var e=i;$(e)&&$(e).prop("tagName")=="DIV"&&(t=$(e).height());playClip(n,t,i.id,r,u,f)}function DoSearch(n,t,i,r,u){var e=$("input[name='siteUrl']").val(),f=n||$("#"+t).val();f!=i&&r=="True"&&(location.href=e+u+encodeURIComponent(f.replace(/ /g,"+")))}function resetTimer(){var r=document.getElementById("autoRefreshTime"),n=new Date,u=new Date(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds()),t;r!=null&&(t=JSON.parse(r.value),t.timeRefresh!=null&&t.timeRefresh>0&&(timeoutInterval=Number(t.timeRefresh),startTimeRefresh=t.startRefreshTime,stopTimeRefresh=t.stopRefreshTime));var i=window.location.href,f=i.indexOf("?")>-1?i.substring(0,i.indexOf("?")):i,e=new RegExp("(http|https)://(www.)?[^/]+/{0,1}?$");!e.test(f)||timeoutInterval<=0||startTimeRefresh.length==0||stopTimeRefresh.length==0||(startTimeRefresh=new Date(startTimeRefresh),stopTimeRefresh=new Date(stopTimeRefresh),u>=startTimeRefresh&&u<=stopTimeRefresh&&(dnsePageRefresh=window.setTimeout(function(){$.cookie("autorefresh","true",{expires:1,path:"/"});window.location.href=window.location.href},timeoutInterval)))}function qbProMediaPlayStart(){dnsePageRefresh!=null&&clearTimeout(dnsePageRefresh)}function qbProMediaPlayComplete(){resetTimer()}function scrollTo(n,t){$("body").scrollTo($("#container-"+t),800)}function logError(n){JSTrackingAPI&&JSTrackingAPI!=""&&(n="{errorPosted:["+n+"]}",$.post(JSTrackingAPI,{"":JSON.stringify(n)}))}function setCookieUpgradeIE7(n,t,i,r){var u,e,s,h,o,c,f;try{u=$(".notify-upgrade-link a");u.click(function(n){console.log("link clicked");n.preventDefault()});e=_blogAjaxComplete=!1;document.getElementById("notify-upgrade-ie7").style.display="none";s=$("input[name='siteUrl']").val();h=s+"/WebServices/SetCookieIE7Upgrade.ashx";$.ajax({url:h,dataType:"script",method:"get",complete:function(){e=!0;l()}});o=document.getElementById("DaysCookieUpgradeIE7");o!=null&&(c=JSON.parse(o.value),f=c.serviceEnpointSetCookieIE7BlogSite,f!=null&&f!=""&&$.ajax({url:f,dataType:"script",method:"get",complete:function(){_blogAjaxComplete=!0;l()}}));function l(){var n,t;if(e&&_blogAjaxComplete){if(r&&r.tagName.toLowerCase()=="a"){window.location.href=r.href;return}for(n=0;n<u.length;n++)if(t=u[n],t&&t.href!="#"){window.location.href=t.href;return}}}}catch(a){}}function SearchAutocomplete(n,t,i,r,u){var h=n||window.event,e,o,s,f;return h.keyCode==13?(e=$("#"+t),o=e.val(),DoSearch(o,t,i,r,u),!1):(s=$("#CurrentUrl").val(),f=$("#hiddenIsNavSearch"),f.length>0&&f.val().toLowerCase()=="false"&&s.indexOf("/nav-search")==-1)?!1:($("#"+t).autocomplete({minLength:3,source:function(n,t){var i=n.term,r=new Date,u=r.getTime();$.getJSON("/webservices/suggestions.ashx?term="+i+"&t="+u,function(n){t(n.suggestions)})},select:function(n,f){DoSearch(f.item.value,t,i,r,u)},autoFocus:!1,position:{my:"right top",at:"right bottom",of:"#"+t}}),!0)}function placeHolderTextBox(n,t){this.textBox=n;this.defaultText=t}function filterModel(n,t){this.filterContainer=n;this.filterConditionItems=[];this.filterParam=t}function searchFilterModel(n,t){this.filterType=n;this.filterCondition=t}function ShowTipsaPopup(n){return $.nyroModalManual({content:n}),!1}function InitSlideShow(n){n.cycle({fx:"scrollHorz",timeout:0,speed:450,prev:n.parent().find(".nav-left"),next:n.parent().find(".nav-right"),easing:"easeOutQuart",before:function(t,i,r){n.parent().data("initialized")&&n.parent().find("em:eq(0)").html(r.nextSlide+1);n.parent().data("initialized",!0)}})}function iPhoneMediaIsActive(){return navigator.userAgent.match(/iPhone/i)}function iPadMediaIsActive(){return navigator.userAgent.match(/iPad/i)}function iPodMediaIsActive(){return navigator.userAgent.match(/iPod/i)}function EmbedS9Library(n){if(!psInitialized){var t=document.createElement("script");n&&(t.onload=n);t.async=!0;t.src=_picsearch_js||"http://csp.screen9.com/js/ps.js";t.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(t);psInitialized=!0}}function setupScreen9Player(n,t,i,r,u,f){EmbedS9Library();var e=$("#"+n).attr("onclick","");if(e.find(".dnse-webtvinit").remove(),!r||r.length==0){OnPlayerLoadField(e);return}ps!=null?(ps.embed({mediaid:r,autoload:!0,autoplay:f==undefined?!0:f,height:i,width:t,containerid:n},function(n){n&&n.comscore&n.comscore.streamSense&&n.comscore.streamSense.setLabel("ns_site","dn");n.player?successHandlerStartTime(n,u):OnPlayerLoadField(e)},function(){OnPlayerLoadField(e)}),ps.addEventListener("playbackStart",function(){dnsePageRefresh!=null&&clearTimeout(dnsePageRefresh)}),ps.addEventListener("playbackEnded",function(){resetTimer()})):setTimeout(function(){setupScreen9Player(n,t,i,r,u,f)},1e3)}function successHandlerStartTime(n,t){var r=n.player,u=!1,i=getUrlVar("starttime");i!=null&&i.length>0&&(t=i);r.addEventListener("playbackStart",function(){!u&&t!=null&&t.length>0&&(r.seek(t),u=!0)})}function OnPlayerLoadField(n){$(n).find(".clip-deleted-message").show()}function LoadMoreKlipMediumWidget(n,t,i){var r=parseInt(t)+parseInt(i),u=servicePath+"?limit="+r+"&type=medium&pageid="+n;$.ajax({type:"GET",url:u,success:function(t){$("#klipp-widget-medium-block-"+n).html($(t).get(0).innerHTML)}})}function LoadMoreKlipSmallWidget(n,t,i){var r=parseInt(t)+parseInt(i),u=servicePath+"?limit="+r+"&type=small&pageid="+n;$.ajax({type:"GET",url:u,success:function(t){$("#klipp-widget-small-block-"+n).html($(t).get(0).innerHTML)}})}function highlightMenuWebtv(n,t){if(n!=""){var r="current bg-"+t,u='<span class="wtv-nav-arrow '+t+'"><\/span>',i="#listItem"+n;$(".wtv-nav-item").attr("class","wtv-nav-item");$(".wtv-nav-arrow").remove();$(i).addClass(r);$(i).append(u)}}function getUrlVar(n){var t=new RegExp(n+"=([^&]*)","i").exec(window.location.search);return t&&unescape(t[1])||""}function goTestAgain(){var t=window.location.href,n=$.deparam.querystring(t),i;delete n.result;delete n.question;delete n.d;$("input#articleSocial").length>0&&(i=JSON.parse($("input#articleSocial").val()),$.cookie("QuizUserProgress ["+i.pageRef+"]",null,{path:"/"}));window.location.href=$.param.querystring(t,n,2)}function GetGuid(){for(var t="",n=0;n<8;n++)t+=parseInt(Math.random()*16).toString(16);return t}function ChangeUrlParameter(n,t,i){var o="",v=new RegExp("[?|&|#]"+t+"=","i"),s=v.exec(n),l;if(s&&s.length>0){var a=s[0],y=n.indexOf(a),h=y+a.length,u=n.substr(0,h),r=n.substr(h,n.length-h),c=r+"?&#",f=Math.min(c.indexOf("?"),c.indexOf("&"));f=Math.min(f,c.indexOf("#"));o=f<r.length?u+i+r.substr(f,r.length-f):u+i}else{var u=n,r="",e=n.indexOf("#");e!=-1&&(u=n.substr(0,e),r=n.substr(e,n.length-e));l="";l=n.indexOf("?")==-1?"?":"&";o=u+l+t+"="+i+r}return o}function GetUrlParameter(n){var t=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(window.location.href);return t?t[1]||"":""}function parseDate(n){if(n=="")return"";var t=n.split(" "),i=t[3].split(":");return new Date(t[0],t[1]-1,t[2],i[0],i[1],i[2])}function GetCellValue(n,t){return n[t]==undefined?$(n).find(t).text():n[t]}function IsNotNumber(n){return!isFinite(n.toString().replace(/[\s]+/g,"").replace(",","."))}function IsNumber(n){return!isNaN(parseFloat(n))&&isFinite(n)}function dateTimeFormatter(n,t,i){var r=parseDate(n),s=GetCellValue(i,"instrumenttype"),u,f,e,o;return(Object.prototype.toString.call(r)==="[object Date]"&&isFinite(r))?(u=new Date,u.getFullYear()==r.getFullYear()&&u.getMonth()==r.getMonth()&&u.getDate()==r.getDate()&&s!=8)?(f=r.getMinutes(),f<10)?r.getHours()+":0"+f:r.getHours()+":"+f:(e=r.getDate(),o=r.getMonth()+1,t.colModel.language=="en"?o+"/"+e:e+"/"+o):""}function IsNullOrEmpty(n){return n==undefined||n==""?!0:!1}function RoundNumber(n,t){var i=Math.pow(10,t);return Math.round(n*i)/i}function openPopup(n){var t=680,i=560,r=Math.floor(screen.height/2-t/2),u=Math.floor(screen.width/2-i/2),f="width="+t+",height="+i+",top="+r+",left="+u+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no";return window.open(n,"popup",f)}function redirectWithPost(n,t){var i=document.createElement("form"),u,r;i.method="post";i.action=n;for(u in t)r=document.createElement("input"),r.setAttribute("name",u),r.setAttribute("value",t[u]),i.appendChild(r);document.body.appendChild(i);i.submit();document.body.removeChild(i)}function FhCustomRedirect(n){window.location.href=n}var Swiper,tmpDebug,Validate,showDisclaimerVar,usingRightNowTeaserJS,_isEditMode,_need_apply_rotating_split,usingRotatingSplitContainerJS,addScript,minClipHeight,s_global_userid,errorList,addUrlParameter,swfobject,servicePath,Bonnier,bonnierExpressenQuizControl,fhNamespace,dialogOpen,fhTabHelper,ChartListEditor,SynonymsListEditor;if(eval(function(n,t,i,r,u,f){if(u=function(n){return(n<t?"":u(parseInt(n/t)))+((n=n%t)>35?String.fromCharCode(n+29):n.toString(36))},!"".replace(/^/,String)){while(i--)f[u(i)]=r[i]||u(i);r=[function(n){return f[n]}];u=function(){return"\\w+"};i=1}while(i--)r[i]&&(n=n.replace(new RegExp("\\b"+u(i)+"\\b","g"),r[i]));return n}("a(37.b&&!37.b.38){(9(b){6 m=9(s,A,f){5.1M=[];5.1u={};5.2p=E;5.1N={};5.1c={};5.f=b.1m({1Z:1f,3a:1O,2q:1f,2r:1f,3b:1O,3c:1O},f);5.1v=(5.f.1v!==F)?(5.f.1v):(13.20);5.Y=(5.f.Y!==F)?(5.f.Y):(13.3d);5.3e(s,A);a(s){5.1w(5.1c['21'],A,5.f)}5.1c=E};m.y.2s='0.7.8';m.R=1O;m.y.3e=9(s,A){6 2t=/\\{#14 *(\\w*?)( .*)*\\}/g;6 22,1x,M;6 1y=E;6 2u=[];2v((22=2t.3N(s))!=E){1y=2t.1y;1x=22[1];M=s.2w('{#/14 '+1x+'}',1y);a(M==-1){C j Z('15: m \"'+1x+'\" 2x 23 3O.');}5.1c[1x]=s.2y(1y,M);2u[1x]=13.2z(22[2])}a(1y===E){5.1c['21']=s;c}N(6 i 24 5.1c){a(i!='21'){5.1N[i]=j m()}}N(6 i 24 5.1c){a(i!='21'){5.1N[i].1w(5.1c[i],b.1m({},A||{},5.1N||{}),b.1m({},5.f,2u[i]));5.1c[i]=E}}};m.y.1w=9(s,A,f){a(s==F){5.1M.B(j 1g('',1,5));c}s=s.U(/[\\n\\r]/g,'');s=s.U(/\\{\\*.*?\\*\\}/g,'');5.2p=b.1m({},5.1N||{},A||{});5.f=j 2A(f);6 p=5.1M;6 1P=s.1h(/\\{#.*?\\}/g);6 16=0,M=0;6 e;6 1i=0;6 25=0;N(6 i=0,l=(1P)?(1P.V):(0);i<l;++i){6 17=1P[i];a(1i){M=s.2w('{#/1z}');a(M==-1){C j Z(\"15: 3P 1Q 3f 1z.\");}a(M>16){p.B(j 1g(s.2y(16,M),1,5))}16=M+11;1i=0;i=b.3Q('{#/1z}',1P);1R}M=s.2w(17,16);a(M>16){p.B(j 1g(s.2y(16,M),1i,5))}6 3R=17.1h(/\\{#([\\w\\/]+).*?\\}/);6 26=I.$1;2B(26){q'3S':++25;p.27();q'a':e=j 1A(17,p);p.B(e);p=e;D;q'J':p.27();D;q'/a':2v(25){p=p.28();--25}q'/N':q'/29':p=p.28();D;q'29':e=j 1n(17,p,5);p.B(e);p=e;D;q'N':e=2a(17,p,5);p.B(e);p=e;D;q'1R':q'D':p.B(j 18(26));D;q'2C':p.B(j 2D(17,5.2p));D;q'h':p.B(j 2E(17));D;q'2F':p.B(j 2G(17));D;q'3T':p.B(j 1g('{',1,5));D;q'3U':p.B(j 1g('}',1,5));D;q'1z':1i=1;D;q'/1z':a(m.R){C j Z(\"15: 3V 2H 3f 1z.\");}D;2I:a(m.R){C j Z('15: 3W 3X: '+26+'.');}}16=M+17.V}a(s.V>16){p.B(j 1g(s.3Y(16),1i,5))}};m.y.K=9(d,h,z,H){++H;6 $T=d,2b,2c;a(5.f.3b){$T=5.1v(d,{2d:(5.f.3a&&H==1),1S:5.f.1Z},5.Y)}a(!5.f.3c){2b=5.1u;2c=h}J{2b=5.1v(5.1u,{2d:(5.f.2q),1S:1f},5.Y);2c=5.1v(h,{2d:(5.f.2q&&H==1),1S:1f},5.Y)}6 $P=b.1m({},2b,2c);6 $Q=(z!=F)?(z):({});$Q.2s=5.2s;6 19='';N(6 i=0,l=5.1M.V;i<l;++i){19+=5.1M[i].K($T,$P,$Q,H)}--H;c 19};m.y.2J=9(1T,1o){5.1u[1T]=1o};13=9(){};13.3d=9(3g){c 3g.U(/&/g,'&3Z;').U(/>/g,'&3h;').U(/<\/g,'&3i;').U(/\"/g,'&40;').U(/'/g,'&#39;')};13.20=9(d,1B,Y){a(d==E){c d}2B(d.2K){q 2A:6 o={};N(6 i 24 d){o[i]=13.20(d[i],1B,Y)}a(!1B.1S){a(d.41(\"2L\"))o.2L=d.2L}c o;q 42:6 o=[];N(6 i=0,l=d.V;i<l;++i){o[i]=13.20(d[i],1B,Y)}c o;q 2M:c(1B.2d)?(Y(d)):(d);q 43:a(1B.1S){a(m.R)C j Z(\"15: 44 45 23 46.\");J c F}2I:c d}};13.2z=9(2e){a(2e===E||2e===F){c{}}6 o=2e.47(/[= ]/);a(o[0]===''){o.48()}6 2N={};N(6 i=0,l=o.V;i<l;i+=2){2N[o[i]]=o[i+1]}c 2N};6 1g=9(2O,1i,14){5.2f=2O;5.3j=1i;5.1d=14};1g.y.K=9(d,h,z,H){6 2g=5.2f;a(!5.3j){6 2P=5.1d;6 $T=d;6 $P=h;6 $Q=z;2g=2g.U(/\\{(.*?)\\}/g,9(49,3k){1C{6 1D=10(3k);a(1E 1D=='9'){a(2P.f.1Z||!2P.f.2r){c''}J{1D=1D($T,$P,$Q)}}c(1D===F)?(\"\"):(2M(1D))}1F(e){a(m.R){a(e 1G 18)e.1j=\"4a\";C e;}c\"\"}})}c 2g};6 1A=9(L,1H){5.2h=1H;L.1h(/\\{#(?:J)*a (.*?)\\}/);5.3l=I.$1;5.1p=[];5.1q=[];5.1I=5.1p};1A.y.B=9(e){5.1I.B(e)};1A.y.28=9(){c 5.2h};1A.y.27=9(){5.1I=5.1q};1A.y.K=9(d,h,z,H){6 $T=d;6 $P=h;6 $Q=z;6 19='';1C{6 2Q=(10(5.3l))?(5.1p):(5.1q);N(6 i=0,l=2Q.V;i<l;++i){19+=2Q[i].K(d,h,z,H)}}1F(e){a(m.R||(e 1G 18))C e;}c 19};2a=9(L,1H,14){a(L.1h(/\\{#N (\\w+?) *= *(\\S+?) +4b +(\\S+?) *(?:12=(\\S+?))*\\}/)){L='{#29 2a.3m 3n '+I.$1+' 2H='+(I.$2||0)+' 1Q='+(I.$3||-1)+' 12='+(I.$4||1)+' u=$T}';c j 1n(L,1H,14)}J{C j Z('15: 4c 4d \"3o\": '+L);}};2a.3m=9(i){c i};6 1n=9(L,1H,14){5.2h=1H;5.1d=14;L.1h(/\\{#29 (.+?) 3n (\\w+?)( .+)*\\}/);5.3p=I.$1;5.x=I.$2;5.W=I.$3||E;5.W=13.2z(5.W);5.1p=[];5.1q=[];5.1I=5.1p};1n.y.B=9(e){5.1I.B(e)};1n.y.28=9(){c 5.2h};1n.y.27=9(){5.1I=5.1q};1n.y.K=9(d,h,z,H){1C{6 $T=d;6 $P=h;6 $Q=z;6 1r=10(5.3p);6 1U=[];6 1J=1E 1r;a(1J=='3q'){6 2R=[];b.1e(1r,9(k,v){1U.B(k);2R.B(v)});1r=2R}6 u=(5.W.u!==F)?(10(5.W.u)):(($T!=E)?($T):({}));6 s=1V(10(5.W.2H)||0),e;6 12=1V(10(5.W.12)||1);a(1J!='9'){e=1r.V}J{a(5.W.1Q===F||5.W.1Q===E){e=1V.4e}J{e=1V(10(5.W.1Q))+((12>0)?(1):(-1))}}6 19='';6 i,l;a(5.W.1W){6 2S=s+1V(10(5.W.1W));e=(2S>e)?(e):(2S)}a((e>s&&12>0)||(e<s&&12<0)){6 1K=0;6 3r=(1J!='9')?(4f.4g((e-s)/12)):F;6 1s,1k;N(;((12>0)?(s<e):(s>e));s+=12,++1K){1s=1U[s];a(1J!='9'){1k=1r[s]}J{1k=1r(s);a(1k===F||1k===E){D}}a((1E 1k=='9')&&(5.1d.f.1Z||!5.1d.f.2r)){1R}a((1J=='3q')&&(1s 24 2A)){1R}6 3s=u[5.x];u[5.x]=1k;u[5.x+'$3t']=s;u[5.x+'$1K']=1K;u[5.x+'$3u']=(1K==0);u[5.x+'$3v']=(s+12>=e);u[5.x+'$3w']=3r;u[5.x+'$1U']=(1s!==F&&1s.2K==2M)?(5.1d.Y(1s)):(1s);u[5.x+'$1E']=1E 1k;N(i=0,l=5.1p.V;i<l;++i){1C{19+=5.1p[i].K(u,h,z,H)}1F(2T){a(2T 1G 18){2B(2T.1j){q'1R':i=l;D;q'D':i=l;s=e;D;2I:C e;}}J{C e;}}}1l u[5.x+'$3t'];1l u[5.x+'$1K'];1l u[5.x+'$3u'];1l u[5.x+'$3v'];1l u[5.x+'$3w'];1l u[5.x+'$1U'];1l u[5.x+'$1E'];1l u[5.x];u[5.x]=3s}}J{N(i=0,l=5.1q.V;i<l;++i){19+=5.1q[i].K($T,h,z,H)}}c 19}1F(e){a(m.R||(e 1G 18))C e;c\"\"}};6 18=9(1j){5.1j=1j};18.y=Z;18.y.K=9(d){C 5;};6 2D=9(L,A){L.1h(/\\{#2C (.*?)(?: 4h=(.*?))?\\}/);5.1d=A[I.$1];a(5.1d==F){a(m.R)C j Z('15: 4i 3o 2C: '+I.$1);}5.3x=I.$2};2D.y.K=9(d,h,z,H){6 $T=d;6 $P=h;1C{c 5.1d.K(10(5.3x),h,z,H)}1F(e){a(m.R||(e 1G 18))C e;}c''};6 2E=9(L){L.1h(/\\{#h 1T=(\\w*?) 1o=(.*?)\\}/);5.x=I.$1;5.2f=I.$2};2E.y.K=9(d,h,z,H){6 $T=d;6 $P=h;6 $Q=z;1C{h[5.x]=10(5.2f)}1F(e){a(m.R||(e 1G 18))C e;h[5.x]=F}c''};6 2G=9(L){L.1h(/\\{#2F 4j=(.*?)\\}/);5.2U=10(I.$1);5.2V=5.2U.V;a(5.2V<=0){C j Z('15: 2F 4k 4l 4m');}5.2W=0;5.2X=-1};2G.y.K=9(d,h,z,H){6 2Y=b.O(z,'1X');a(2Y!=5.2X){5.2X=2Y;5.2W=0}6 i=5.2W++%5.2V;c 5.2U[i]};b.1a.1w=9(s,A,f){a(s.2K===m){c b(5).1e(9(){b.O(5,'2i',s);b.O(5,'1X',0)})}J{c b(5).1e(9(){b.O(5,'2i',j m(s,A,f));b.O(5,'1X',0)})}};b.1a.4n=9(1L,A,f){6 s=b.2Z({1t:1L,1Y:1f}).3y;c b(5).1w(s,A,f)};b.1a.4o=9(30,A,f){6 s=b('#'+30).2O();a(s==E){s=b('#'+30).3z();s=s.U(/&3i;/g,\"<\").U(/&3h;/g,\">\")}s=b.4p(s);s=s.U(/^<\\!\\[4q\\[([\\s\\S]*)\\]\\]>$/3A,'$1');s=s.U(/^<\\!--([\\s\\S]*)-->$/3A,'$1');c b(5).1w(s,A,f)};b.1a.4r=9(){6 1W=0;b(5).1e(9(){a(b.2j(5)){++1W}});c 1W};b.1a.4s=9(){b(5).3B();c b(5).1e(9(){b.3C(5,'2i')})};b.1a.2J=9(1T,1o){c b(5).1e(9(){6 t=b.2j(5);a(t===F){a(m.R)C j Z('15: m 2x 23 3D.');J c}t.2J(1T,1o)})};b.1a.31=9(d,h){c b(5).1e(9(){6 t=b.2j(5);a(t===F){a(m.R)C j Z('15: m 2x 23 3D.');J c}b.O(5,'1X',b.O(5,'1X')+1);b(5).3z(t.K(d,h,5,0))})};b.1a.4t=9(1L,h,G){6 X=5;G=b.1m({1j:'4u',1Y:1O,32:1f},G);b.2Z({1t:1L,1j:G.1j,O:G.O,3E:G.3E,1Y:G.1Y,32:G.32,3F:G.3F,4v:'4w',4x:9(d){6 r=b(X).31(d,h);a(G.2k){G.2k(r)}},4y:G.4z,4A:G.4B});c 5};6 2l=9(1t,h,2m,2n,1b,G){5.3G=1t;5.1u=h;5.3H=2m;5.3I=2n;5.1b=1b;5.3J=E;5.33=G||{};6 X=5;b(1b).1e(9(){b.O(5,'34',X)});5.35()};2l.y.35=9(){5.3K();a(5.1b.V==0){c}6 X=5;b.4C(5.3G,5.3I,9(d){6 r=b(X.1b).31(d,X.1u);a(X.33.2k){X.33.2k(r)}});5.3J=4D(9(){X.35()},5.3H)};2l.y.3K=9(){5.1b=b.3L(5.1b,9(o){a(b.4E.4F){6 n=o.36;2v(n&&n!=4G){n=n.36}c n!=E}J{c o.36!=E}})};b.1a.4H=9(1t,h,2m,2n,G){c j 2l(1t,h,2m,2n,5,G)};b.1a.3B=9(){c b(5).1e(9(){6 2o=b.O(5,'34');a(2o==E){c}6 X=5;2o.1b=b.3L(2o.1b,9(o){c o!=X});b.3C(5,'34')})};b.1m({38:9(s,A,f){c j m(s,A,f)},4I:9(1L,A,f){6 s=b.2Z({1t:1L,1Y:1f}).3y;c j m(s,A,f)},2j:9(z){c b.O(z,'2i')},4J:9(14,O,3M){c 14.K(O,3M,F,0)},4K:9(1o){m.R=1o}})})(b)}",62,295,"|||||this|var|||function|if|jQuery|return|||settings||param||new|||Template|||node|case||||extData|||_name|prototype|element|includes|push|throw|break|null|undefined|options|deep|RegExp|else|get|oper|se|for|data|||DEBUG_MODE|||replace|length|_option|that|f_escapeString|Error|eval||step|TemplateUtils|template|jTemplates|ss|this_op|JTException|ret|fn|objs|_templates_code|_template|each|false|TextNode|match|literalMode|type|cval|delete|extend|opFOREACH|value|_onTrue|_onFalse|fcount|ckey|url|_param|f_cloneData|setTemplate|tname|lastIndex|literal|opIF|filter|try|__tmp|typeof|catch|instanceof|par|_currentState|mode|iteration|url_|_tree|_templates|true|op|end|continue|noFunc|name|key|Number|count|jTemplateSID|async|disallow_functions|cloneData|MAIN|iter|not|in|elseif_level|op_|switchToElse|getParent|foreach|opFORFactory|_param1|_param2|escapeData|optionText|_value|__t|_parent|jTemplate|getTemplate|on_success|Updater|interval|args|updater|_includes|filter_params|runnable_functions|version|reg|_template_settings|while|indexOf|is|substring|optionToObject|Object|switch|include|Include|UserParam|cycle|Cycle|begin|default|setParam|constructor|toString|String|obj|val|__template|tab|arr|tmp|ex|_values|_length|_index|_lastSessionID|sid|ajax|elementName|processTemplate|cache|_options|jTemplateUpdater|run|parentNode|window|createTemplate||filter_data|clone_data|clone_params|escapeHTML|splitTemplates|of|txt|gt|lt|_literalMode|__1|_cond|funcIterator|as|find|_arg|object|_total|prevValue|index|first|last|total|_root|responseText|html|im|processTemplateStop|removeData|defined|dataFilter|timeout|_url|_interval|_args|timer|detectDeletedNodes|grep|parameter|exec|closed|No|inArray|ppp|elseif|ldelim|rdelim|Missing|unknown|tag|substr|amp|quot|hasOwnProperty|Array|Function|Functions|are|allowed|split|shift|__0|subtemplate|to|Operator|failed|MAX_VALUE|Math|ceil|root|Cannot|values|has|no|elements|setTemplateURL|setTemplateElement|trim|CDATA|hasTemplate|removeTemplate|processTemplateURL|GET|dataType|json|success|error|on_error|complete|on_complete|getJSON|setTimeout|browser|msie|document|processTemplateStart|createTemplateURL|processTemplateToText|jTemplatesDebugMode".split("|"),0,{})),function(n,t){function i(t,i){var u,f,e,o=t.nodeName.toLowerCase();return"area"===o?(u=t.parentNode,f=u.name,!t.href||!f||u.nodeName.toLowerCase()!=="map")?!1:(e=n("img[usemap=#"+f+"]")[0],!!e&&r(e)):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&r(t)}function r(t){return n.expr.filters.visible(t)&&!n(t).parents().addBack().filter(function(){return n.css(this,"visibility")==="hidden"}).length}var u=0,f=/^ui-id-\d+$/;n.ui=n.ui||{};n.extend(n.ui,{version:"1.10.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});n.fn.extend({focus:function(t){return function(i,r){return typeof i=="number"?this.each(function(){var t=this;setTimeout(function(){n(t).focus();r&&r.call(t)},i)}):t.apply(this,arguments)}}(n.fn.focus),scrollParent:function(){var t;return t=n.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(n.css(this,"position"))&&/(auto|scroll)/.test(n.css(this,"overflow")+n.css(this,"overflow-y")+n.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(n.css(this,"overflow")+n.css(this,"overflow-y")+n.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?n(document):t},zIndex:function(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var r=n(this[0]),u,f;r.length&&r[0]!==document;){if(u=r.css("position"),(u==="absolute"||u==="relative"||u==="fixed")&&(f=parseInt(r.css("zIndex"),10),!isNaN(f)&&f!==0))return f;r=r.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})},removeUniqueId:function(){return this.each(function(){f.test(this.id)&&n(this).removeAttr("id")})}});n.extend(n.expr[":"],{data:n.expr.createPseudo?n.expr.createPseudo(function(t){return function(i){return!!n.data(i,t)}}):function(t,i,r){return!!n.data(t,r[3])},focusable:function(t){return i(t,!isNaN(n.attr(t,"tabindex")))},tabbable:function(t){var r=n.attr(t,"tabindex"),u=isNaN(r);return(u||r>=0)&&i(t,!u)}});n("<a>").outerWidth(1).jquery||n.each(["Width","Height"],function(i,r){function e(t,i,r,u){return n.each(o,function(){i-=parseFloat(n.css(t,"padding"+this))||0;r&&(i-=parseFloat(n.css(t,"border"+this+"Width"))||0);u&&(i-=parseFloat(n.css(t,"margin"+this))||0)}),i}var o=r==="Width"?["Left","Right"]:["Top","Bottom"],u=r.toLowerCase(),f={innerWidth:n.fn.innerWidth,innerHeight:n.fn.innerHeight,outerWidth:n.fn.outerWidth,outerHeight:n.fn.outerHeight};n.fn["inner"+r]=function(i){return i===t?f["inner"+r].call(this):this.each(function(){n(this).css(u,e(this,i)+"px")})};n.fn["outer"+r]=function(t,i){return typeof t!="number"?f["outer"+r].call(this,t):this.each(function(){n(this).css(u,e(this,t,!0,i)+"px")})}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))});n("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(n.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,n.camelCase(i)):t.call(this)}}(n.fn.removeData));n.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());n.support.selectstart="onselectstart"in document.createElement("div");n.fn.extend({disableSelection:function(){return this.bind((n.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(n){n.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});n.extend(n.ui,{plugin:{add:function(t,i,r){var u,f=n.ui[t].prototype;for(u in r)f.plugins[u]=f.plugins[u]||[],f.plugins[u].push([i,r[u]])},call:function(n,t,i){var r,u=n.plugins[t];if(u&&n.element[0].parentNode&&n.element[0].parentNode.nodeType!==11)for(r=0;r<u.length;r++)n.options[u[r][0]]&&u[r][1].apply(n.element,i)}},hasScroll:function(t,i){if(n(t).css("overflow")==="hidden")return!1;var r=i&&i==="left"?"scrollLeft":"scrollTop",u=!1;return t[r]>0?!0:(t[r]=1,u=t[r]>0,t[r]=0,u)}})}(jQuery),function(n,t){var r=0,i=Array.prototype.slice,u=n.cleanData;n.cleanData=function(t){for(var i=0,r;(r=t[i])!=null;i++)try{n(r).triggerHandler("remove")}catch(f){}u(t)};n.widget=function(t,i,r){var s,f,u,o,h={},e=t.split(".")[0];t=t.split(".")[1];s=e+"-"+t;r||(r=i,i=n.Widget);n.expr[":"][s.toLowerCase()]=function(t){return!!n.data(t,s)};n[e]=n[e]||{};f=n[e][t];u=n[e][t]=function(n,t){if(!this._createWidget)return new u(n,t);arguments.length&&this._createWidget(n,t)};n.extend(u,f,{version:r.version,_proto:n.extend({},r),_childConstructors:[]});o=new i;o.options=n.widget.extend({},o.options);n.each(r,function(t,r){if(!n.isFunction(r)){h[t]=r;return}h[t]=function(){var n=function(){return i.prototype[t].apply(this,arguments)},u=function(n){return i.prototype[t].apply(this,n)};return function(){var i=this._super,f=this._superApply,t;return this._super=n,this._superApply=u,t=r.apply(this,arguments),this._super=i,this._superApply=f,t}}()});u.prototype=n.widget.extend(o,{widgetEventPrefix:f?o.widgetEventPrefix||t:t},h,{constructor:u,namespace:e,widgetName:t,widgetFullName:s});f?(n.each(f._childConstructors,function(t,i){var r=i.prototype;n.widget(r.namespace+"."+r.widgetName,u,i._proto)}),delete f._childConstructors):i._childConstructors.push(u);n.widget.bridge(t,u)};n.widget.extend=function(r){for(var o=i.call(arguments,1),e=0,s=o.length,u,f;e<s;e++)for(u in o[e])f=o[e][u],o[e].hasOwnProperty(u)&&f!==t&&(r[u]=n.isPlainObject(f)?n.isPlainObject(r[u])?n.widget.extend({},r[u],f):n.widget.extend({},f):f);return r};n.widget.bridge=function(r,u){var f=u.prototype.widgetFullName||r;n.fn[r]=function(e){var h=typeof e=="string",o=i.call(arguments,1),s=this;return e=!h&&o.length?n.widget.extend.apply(null,[e].concat(o)):e,h?this.each(function(){var i,u=n.data(this,f);return u?!n.isFunction(u[e])||e.charAt(0)==="_"?n.error("no such method '"+e+"' for "+r+" widget instance"):(i=u[e].apply(u,o),i!==u&&i!==t?(s=i&&i.jquery?s.pushStack(i.get()):i,!1):void 0):n.error("cannot call methods on "+r+" prior to initialization; attempted to call method '"+e+"'")}):this.each(function(){var t=n.data(this,f);t?t.option(e||{})._init():n.data(this,f,new u(e,this))}),s}};n.Widget=function(){};n.Widget._childConstructors=[];n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,i){i=n(i||this.defaultElement||this)[0];this.element=n(i);this.uuid=r++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=n.widget.extend({},this.options,this._getCreateOptions(),t);this.bindings=n();this.hoverable=n();this.focusable=n();i!==this&&(n.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(n){n.target===i&&this.destroy()}}),this.document=n(i.style?i.ownerDocument:i.document||i),this.window=n(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:n.noop,_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(n.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:n.noop,widget:function(){return this.element},option:function(i,r){var o=i,u,f,e;if(arguments.length===0)return n.widget.extend({},this.options);if(typeof i=="string")if(o={},u=i.split("."),i=u.shift(),u.length){for(f=o[i]=n.widget.extend({},this.options[i]),e=0;e<u.length-1;e++)f[u[e]]=f[u[e]]||{},f=f[u[e]];if(i=u.pop(),arguments.length===1)return f[i]===t?null:f[i];f[i]=r}else{if(arguments.length===1)return this.options[i]===t?null:this.options[i];o[i]=r}return this._setOptions(o),this},_setOptions:function(n){var t;for(t in n)this._setOption(t,n[t]);return this},_setOption:function(n,t){return this.options[n]=t,n==="disabled"&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(t,i,r){var f,u=this;typeof t!="boolean"&&(r=i,i=t,t=!1);r?(i=f=n(i),this.bindings=this.bindings.add(i)):(r=i,i=this.element,f=this.widget());n.each(r,function(r,e){function o(){if(t||u.options.disabled!==!0&&!n(this).hasClass("ui-state-disabled"))return(typeof e=="string"?u[e]:e).apply(u,arguments)}typeof e!="string"&&(o.guid=e.guid=e.guid||o.guid||n.guid++);var s=r.match(/^(\w+)\s*(.*)$/),h=s[1]+u.eventNamespace,c=s[2];c?f.delegate(c,h,o):i.bind(h,o)})},_off:function(n,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;n.unbind(t).undelegate(t)},_delay:function(n,t){function r(){return(typeof n=="string"?i[n]:n).apply(i,arguments)}var i=this;return setTimeout(r,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t);this._on(t,{mouseenter:function(t){n(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){n(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t);this._on(t,{focusin:function(t){n(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){n(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,r){var u,f,e=this.options[t];if(r=r||{},i=n.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],f=i.originalEvent,f)for(u in f)u in i||(i[u]=f[u]);return this.element.trigger(i,r),!(n.isFunction(e)&&e.apply(this.element[0],[i].concat(r))===!1||i.isDefaultPrevented())}};n.each({show:"fadeIn",hide:"fadeOut"},function(t,i){n.Widget.prototype["_"+t]=function(r,u,f){typeof u=="string"&&(u={effect:u});var o,e=u?u===!0||typeof u=="number"?i:u.effect||i:t;u=u||{};typeof u=="number"&&(u={duration:u});o=!n.isEmptyObject(u);u.complete=f;u.delay&&r.delay(u.delay);o&&n.effects&&n.effects.effect[e]?r[t](u):e!==t&&r[e]?r[e](u.duration,u.easing,f):r.queue(function(i){n(this)[t]();f&&f.call(r[0]);i()})}})}(jQuery),function(n){var t=!1;n(document).mouseup(function(){t=!1});n.widget("ui.mouse",{version:"1.10.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(n){return t._mouseDown(n)}).bind("click."+this.widgetName,function(i){if(!0===n.data(i.target,t.widgetName+".preventClickEvent"))return n.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);this._mouseMoveDelegate&&n(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseStarted&&this._mouseUp(i);this._mouseDownEvent=i;var r=this,u=i.which===1,f=typeof this.options.cancel=="string"&&i.target.nodeName?n(i.target).closest(this.options.cancel).length:!1;return!u||f||!this._mouseCapture(i)?!0:(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted))?(i.preventDefault(),!0):(!0===n.data(i.target,this.widgetName+".preventClickEvent")&&n.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(n){return r._mouseMove(n)},this._mouseUpDelegate=function(n){return r._mouseUp(n)},n(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0)}},_mouseMove:function(t){return n.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button?this._mouseUp(t):this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return n(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&n.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(n){return Math.max(Math.abs(this._mouseDownEvent.pageX-n.pageX),Math.abs(this._mouseDownEvent.pageY-n.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(n){n.widget("ui.draggable",n.ui.mouse,{version:"1.10.4",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){this.options.helper!=="original"||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative");this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(t){var i=this.options;return this.helper||i.disabled||n(t.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(t),!this.handle)?!1:(n(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){n("<div class='ui-draggable-iframeFix' style='background: #fff;'><\/div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(n(this).offset()).appendTo("body")}),!0)},_mouseStart:function(t){var i=this.options;return(this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),n.ui.ddmanager&&(n.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,n.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",t)===!1)?(this._clear(),!1):(this._cacheHelperProportions(),n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),n.ui.ddmanager&&n.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,i){if(this.offsetParentCssPosition==="fixed"&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),!i){var r=this._uiHash();if(this._trigger("drag",t,r)===!1)return this._mouseUp({}),!1;this.position=r.position}return this.options.axis&&this.options.axis==="y"||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&this.options.axis==="x"||(this.helper[0].style.top=this.position.top+"px"),n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var r=this,i=!1;return(n.ui.ddmanager&&!this.options.dropBehaviour&&(i=n.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),this.options.helper==="original"&&!n.contains(this.element[0].ownerDocument,this.element[0]))?!1:(this.options.revert==="invalid"&&!i||this.options.revert==="valid"&&i||this.options.revert===!0||n.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?n(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){r._trigger("stop",t)!==!1&&r._clear()}):this._trigger("stop",t)!==!1&&this._clear(),!1)},_mouseUp:function(t){return n("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),n.ui.ddmanager&&n.ui.ddmanager.dragStop(this,t),n.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){return this.options.handle?!!n(t.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(t){var r=this.options,i=n.isFunction(r.helper)?n(r.helper.apply(this.element[0],[t])):r.helper==="clone"?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo(r.appendTo==="parent"?this.element[0].parentNode:r.appendTo),i[0]===this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_adjustOffsetFromHelper:function(t){typeof t=="string"&&(t=t.split(" "));n.isArray(t)&&(t={left:+t[0],top:+t[1]||0});"left"in t&&(this.offset.click.left=t.left+this.margins.left);"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left);"top"in t&&(this.offset.click.top=t.top+this.margins.top);"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){var t=this.offsetParent.offset();return this.cssPosition==="absolute"&&this.scrollParent[0]!==document&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&n.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var n=this.element.position();return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:n.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var u,t,i,r=this.options;if(!r.containment){this.containment=null;return}if(r.containment==="window"){this.containment=[n(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,n(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,n(window).scrollLeft()+n(window).width()-this.helperProportions.width-this.margins.left,n(window).scrollTop()+(n(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(r.containment==="document"){this.containment=[0,0,n(document).width()-this.helperProportions.width-this.margins.left,(n(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(r.containment.constructor===Array){this.containment=r.containment;return}(r.containment==="parent"&&(r.containment=this.helper[0].parentNode),t=n(r.containment),i=t[0],i)&&(u=t.css("overflow")!=="hidden",this.containment=[(parseInt(t.css("borderLeftWidth"),10)||0)+(parseInt(t.css("paddingLeft"),10)||0),(parseInt(t.css("borderTopWidth"),10)||0)+(parseInt(t.css("paddingTop"),10)||0),(u?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t.css("borderRightWidth"),10)||0)-(parseInt(t.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(u?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t.css("borderBottomWidth"),10)||0)-(parseInt(t.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=t)},_convertPositionTo:function(t,i){i||(i=this.position);var r=t==="absolute"?1:-1,u=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&n.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent;return this.offset.scroll||(this.offset.scroll={top:u.scrollTop(),left:u.scrollLeft()}),{top:i.top+this.offset.relative.top*r+this.offset.parent.top*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():this.offset.scroll.top)*r,left:i.left+this.offset.relative.left*r+this.offset.parent.left*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():this.offset.scroll.left)*r}},_generatePosition:function(t){var i,e,u,f,r=this.options,h=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&n.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,o=t.pageX,s=t.pageY;return this.offset.scroll||(this.offset.scroll={top:h.scrollTop(),left:h.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(e=this.relative_container.offset(),i=[this.containment[0]+e.left,this.containment[1]+e.top,this.containment[2]+e.left,this.containment[3]+e.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(o=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(s=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(o=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(s=i[3]+this.offset.click.top)),r.grid&&(u=r.grid[1]?this.originalPageY+Math.round((s-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,s=i?u-this.offset.click.top>=i[1]||u-this.offset.click.top>i[3]?u:u-this.offset.click.top>=i[1]?u-r.grid[1]:u+r.grid[1]:u,f=r.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,o=i?f-this.offset.click.left>=i[0]||f-this.offset.click.left>i[2]?f:f-this.offset.click.left>=i[0]?f-r.grid[0]:f+r.grid[0]:f)),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():this.offset.scroll.top),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove();this.helper=null;this.cancelHelperRemoval=!1},_trigger:function(t,i,r){return r=r||this._uiHash(),n.ui.plugin.call(this,t,[i,r]),t==="drag"&&(this.positionAbs=this._convertPositionTo("absolute")),n.Widget.prototype._trigger.call(this,t,i,r)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});n.ui.plugin.add("draggable","connectToSortable",{start:function(t,i){var r=n(this).data("ui-draggable"),u=r.options,f=n.extend({},i,{item:r.element});r.sortables=[];n(u.connectToSortable).each(function(){var i=n.data(this,"ui-sortable");i&&!i.options.disabled&&(r.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",t,f))})},stop:function(t,i){var r=n(this).data("ui-draggable"),u=n.extend({},i,{item:r.element});n.each(r.sortables,function(){this.instance.isOver?(this.instance.isOver=0,r.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(t),this.instance.options.helper=this.instance.options._helper,r.options.helper==="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",t,u))})},drag:function(t,i){var r=n(this).data("ui-draggable"),u=this;n.each(r.sortables,function(){var f=!1,e=this;this.instance.positionAbs=r.positionAbs;this.instance.helperProportions=r.helperProportions;this.instance.offset.click=r.offset.click;this.instance._intersectsWith(this.instance.containerCache)&&(f=!0,n.each(r.sortables,function(){return this.instance.positionAbs=r.positionAbs,this.instance.helperProportions=r.helperProportions,this.instance.offset.click=r.offset.click,this!==e&&this.instance._intersectsWith(this.instance.containerCache)&&n.contains(e.instance.element[0],this.instance.element[0])&&(f=!1),f}));f?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=n(u).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},t.target=this.instance.currentItem[0],this.instance._mouseCapture(t,!0),this.instance._mouseStart(t,!0,!0),this.instance.offset.click.top=r.offset.click.top,this.instance.offset.click.left=r.offset.click.left,this.instance.offset.parent.left-=r.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=r.offset.parent.top-this.instance.offset.parent.top,r._trigger("toSortable",t),r.dropped=this.instance.element,r.currentItem=r.element,this.instance.fromOutside=r),this.instance.currentItem&&this.instance._mouseDrag(t)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",t,this.instance._uiHash(this.instance)),this.instance._mouseStop(t,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),r._trigger("fromSortable",t),r.dropped=!1)})}});n.ui.plugin.add("draggable","cursor",{start:function(){var t=n("body"),i=n(this).data("ui-draggable").options;t.css("cursor")&&(i._cursor=t.css("cursor"));t.css("cursor",i.cursor)},stop:function(){var t=n(this).data("ui-draggable").options;t._cursor&&n("body").css("cursor",t._cursor)}});n.ui.plugin.add("draggable","opacity",{start:function(t,i){var r=n(i.helper),u=n(this).data("ui-draggable").options;r.css("opacity")&&(u._opacity=r.css("opacity"));r.css("opacity",u.opacity)},stop:function(t,i){var r=n(this).data("ui-draggable").options;r._opacity&&n(i.helper).css("opacity",r._opacity)}});n.ui.plugin.add("draggable","scroll",{start:function(){var t=n(this).data("ui-draggable");t.scrollParent[0]!==document&&t.scrollParent[0].tagName!=="HTML"&&(t.overflowOffset=t.scrollParent.offset())},drag:function(t){var r=n(this).data("ui-draggable"),i=r.options,u=!1;r.scrollParent[0]!==document&&r.scrollParent[0].tagName!=="HTML"?(i.axis&&i.axis==="x"||(r.overflowOffset.top+r.scrollParent[0].offsetHeight-t.pageY<i.scrollSensitivity?r.scrollParent[0].scrollTop=u=r.scrollParent[0].scrollTop+i.scrollSpeed:t.pageY-r.overflowOffset.top<i.scrollSensitivity&&(r.scrollParent[0].scrollTop=u=r.scrollParent[0].scrollTop-i.scrollSpeed)),i.axis&&i.axis==="y"||(r.overflowOffset.left+r.scrollParent[0].offsetWidth-t.pageX<i.scrollSensitivity?r.scrollParent[0].scrollLeft=u=r.scrollParent[0].scrollLeft+i.scrollSpeed:t.pageX-r.overflowOffset.left<i.scrollSensitivity&&(r.scrollParent[0].scrollLeft=u=r.scrollParent[0].scrollLeft-i.scrollSpeed))):(i.axis&&i.axis==="x"||(t.pageY-n(document).scrollTop()<i.scrollSensitivity?u=n(document).scrollTop(n(document).scrollTop()-i.scrollSpeed):n(window).height()-(t.pageY-n(document).scrollTop())<i.scrollSensitivity&&(u=n(document).scrollTop(n(document).scrollTop()+i.scrollSpeed))),i.axis&&i.axis==="y"||(t.pageX-n(document).scrollLeft()<i.scrollSensitivity?u=n(document).scrollLeft(n(document).scrollLeft()-i.scrollSpeed):n(window).width()-(t.pageX-n(document).scrollLeft())<i.scrollSensitivity&&(u=n(document).scrollLeft(n(document).scrollLeft()+i.scrollSpeed))));u!==!1&&n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(r,t)}});n.ui.plugin.add("draggable","snap",{start:function(){var t=n(this).data("ui-draggable"),i=t.options;t.snapElements=[];n(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var i=n(this),r=i.offset();this!==t.element[0]&&t.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:r.top,left:r.left})})},drag:function(t,i){for(var e,o,s,h,c,a,l,v,w,r=n(this).data("ui-draggable"),b=r.options,f=b.snapTolerance,y=i.offset.left,k=y+r.helperProportions.width,p=i.offset.top,d=p+r.helperProportions.height,u=r.snapElements.length-1;u>=0;u--){if(c=r.snapElements[u].left,a=c+r.snapElements[u].width,l=r.snapElements[u].top,v=l+r.snapElements[u].height,k<c-f||y>a+f||d<l-f||p>v+f||!n.contains(r.snapElements[u].item.ownerDocument,r.snapElements[u].item)){r.snapElements[u].snapping&&r.options.snap.release&&r.options.snap.release.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[u].item}));r.snapElements[u].snapping=!1;continue}b.snapMode!=="inner"&&(e=Math.abs(l-d)<=f,o=Math.abs(v-p)<=f,s=Math.abs(c-k)<=f,h=Math.abs(a-y)<=f,e&&(i.position.top=r._convertPositionTo("relative",{top:l-r.helperProportions.height,left:0}).top-r.margins.top),o&&(i.position.top=r._convertPositionTo("relative",{top:v,left:0}).top-r.margins.top),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c-r.helperProportions.width}).left-r.margins.left),h&&(i.position.left=r._convertPositionTo("relative",{top:0,left:a}).left-r.margins.left));w=e||o||s||h;b.snapMode!=="outer"&&(e=Math.abs(l-p)<=f,o=Math.abs(v-d)<=f,s=Math.abs(c-y)<=f,h=Math.abs(a-k)<=f,e&&(i.position.top=r._convertPositionTo("relative",{top:l,left:0}).top-r.margins.top),o&&(i.position.top=r._convertPositionTo("relative",{top:v-r.helperProportions.height,left:0}).top-r.margins.top),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c}).left-r.margins.left),h&&(i.position.left=r._convertPositionTo("relative",{top:0,left:a-r.helperProportions.width}).left-r.margins.left));!r.snapElements[u].snapping&&(e||o||s||h||w)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[u].item}));r.snapElements[u].snapping=e||o||s||h||w}}});n.ui.plugin.add("draggable","stack",{start:function(){var i,r=this.data("ui-draggable").options,t=n.makeArray(n(r.stack)).sort(function(t,i){return(parseInt(n(t).css("zIndex"),10)||0)-(parseInt(n(i).css("zIndex"),10)||0)});t.length&&(i=parseInt(n(t[0]).css("zIndex"),10)||0,n(t).each(function(t){n(this).css("zIndex",i+t)}),this.css("zIndex",i+t.length))}});n.ui.plugin.add("draggable","zIndex",{start:function(t,i){var r=n(i.helper),u=n(this).data("ui-draggable").options;r.css("zIndex")&&(u._zIndex=r.css("zIndex"));r.css("zIndex",u.zIndex)},stop:function(t,i){var r=n(this).data("ui-draggable").options;r._zIndex&&n(i.helper).css("zIndex",r._zIndex)}})}(jQuery),function(n,t){function f(){this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._datepickerShowing=!1;this._inDialog=!1;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1};n.extend(this._defaults,this.regional[""]);this.dpDiv=e(n("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>"))}function e(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.delegate(i,"mouseout",function(){n(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!==-1&&n(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",function(){n.datepicker._isDisabledDatepicker(u.inline?t.parent()[0]:u.input[0])||(n(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),n(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&n(this).addClass("ui-datepicker-next-hover"))})}function r(t,i){n.extend(t,i);for(var r in i)i[r]==null&&(t[r]=i[r]);return t}n.extend(n.ui,{datepicker:{version:"1.10.4"}});var i="datepicker",u;n.extend(f.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(n){return r(this._defaults,n||{}),this},_attachDatepicker:function(t,i){var r,f,u;r=t.nodeName.toLowerCase();f=r==="div"||r==="span";t.id||(this.uuid+=1,t.id="dp"+this.uuid);u=this._newInst(n(t),f);u.settings=n.extend({},i||{});r==="input"?this._connectDatepicker(t,u):f&&this._inlineDatepicker(t,u)},_newInst:function(t,i){var r=t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:r,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?e(n("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>")):this.dpDiv}},_connectDatepicker:function(t,r){var u=n(t);(r.append=n([]),r.trigger=n([]),u.hasClass(this.markerClassName))||(this._attachments(u,r),u.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(r),n.data(t,i,r),r.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var u,r,f,e=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove();e&&(i.append=n("<span class='"+this._appendClass+"'>"+e+"<\/span>"),t[o?"before":"after"](i.append));t.unbind("focus",this._showDatepicker);i.trigger&&i.trigger.remove();u=this._get(i,"showOn");(u==="focus"||u==="both")&&t.focus(this._showDatepicker);(u==="button"||u==="both")&&(r=this._get(i,"buttonText"),f=this._get(i,"buttonImage"),i.trigger=n(this._get(i,"buttonImageOnly")?n("<img/>").addClass(this._triggerClass).attr({src:f,alt:r,title:r}):n("<button type='button'><\/button>").addClass(this._triggerClass).html(f?n("<img/>").attr({src:f,alt:r,title:r}):r)),t[o?"before":"after"](i.trigger),i.trigger.click(function(){return n.datepicker._datepickerShowing&&n.datepicker._lastInput===t[0]?n.datepicker._hideDatepicker():n.datepicker._datepickerShowing&&n.datepicker._lastInput!==t[0]?(n.datepicker._hideDatepicker(),n.datepicker._showDatepicker(t[0])):n.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(n){if(this._get(n,"autoSize")&&!n.inline){var r,u,f,t,i=new Date(2009,11,20),e=this._get(n,"dateFormat");e.match(/[DM]/)&&(r=function(n){for(u=0,f=0,t=0;t<n.length;t++)n[t].length>u&&(u=n[t].length,f=t);return f},i.setMonth(r(this._get(n,e.match(/MM/)?"monthNames":"monthNamesShort"))),i.setDate(r(this._get(n,e.match(/DD/)?"dayNames":"dayNamesShort"))+20-i.getDay()));n.input.attr("size",this._formatDate(n,i).length)}},_inlineDatepicker:function(t,r){var u=n(t);u.hasClass(this.markerClassName)||(u.addClass(this.markerClassName).append(r.dpDiv),n.data(t,i,r),this._setDate(r,this._getDefaultDate(r),!0),this._updateDatepicker(r),this._updateAlternate(r),r.settings.disabled&&this._disableDatepicker(t),r.dpDiv.css("display","block"))},_dialogDatepicker:function(t,u,f,e,o){var h,c,l,a,v,s=this._dialogInst;return s||(this.uuid+=1,h="dp"+this.uuid,this._dialogInput=n("<input type='text' id='"+h+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),n("body").append(this._dialogInput),s=this._dialogInst=this._newInst(this._dialogInput,!1),s.settings={},n.data(this._dialogInput[0],i,s)),r(s.settings,e||{}),u=u&&u.constructor===Date?this._formatDate(s,u):u,this._dialogInput.val(u),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(c=document.documentElement.clientWidth,l=document.documentElement.clientHeight,a=document.documentElement.scrollLeft||document.body.scrollLeft,v=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[c/2-100+a,l/2-150+v]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),s.settings.onSelect=f,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),n.blockUI&&n.blockUI(this.dpDiv),n.data(this._dialogInput[0],i,s),this},_destroyDatepicker:function(t){var r,u=n(t),f=n.data(t,i);u.hasClass(this.markerClassName)&&(r=t.nodeName.toLowerCase(),n.removeData(t,i),r==="input"?(f.append.remove(),f.trigger.remove(),u.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):(r==="div"||r==="span")&&u.removeClass(this.markerClassName).empty())},_enableDatepicker:function(t){var r,u,f=n(t),e=n.data(t,i);f.hasClass(this.markerClassName)&&(r=t.nodeName.toLowerCase(),r==="input"?(t.disabled=!1,e.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):(r==="div"||r==="span")&&(u=f.children("."+this._inlineClass),u.children().removeClass("ui-state-disabled"),u.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}))},_disableDatepicker:function(t){var r,u,f=n(t),e=n.data(t,i);f.hasClass(this.markerClassName)&&(r=t.nodeName.toLowerCase(),r==="input"?(t.disabled=!0,e.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):(r==="div"||r==="span")&&(u=f.children("."+this._inlineClass),u.children().addClass("ui-state-disabled"),u.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(n){if(!n)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===n)return!0;return!1},_getInst:function(t){try{return n.data(t,i)}catch(r){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(i,u,f){var o,c,s,h,e=this._getInst(i);if(arguments.length===2&&typeof u=="string")return u==="defaults"?n.extend({},n.datepicker._defaults):e?u==="all"?n.extend({},e.settings):this._get(e,u):null;o=u||{};typeof u=="string"&&(o={},o[u]=f);e&&(this._curInst===e&&this._hideDatepicker(),c=this._getDateDatepicker(i,!0),s=this._getMinMaxDate(e,"min"),h=this._getMinMaxDate(e,"max"),r(e.settings,o),s!==null&&o.dateFormat!==t&&o.minDate===t&&(e.settings.minDate=this._formatDate(e,s)),h!==null&&o.dateFormat!==t&&o.maxDate===t&&(e.settings.maxDate=this._formatDate(e,h)),"disabled"in o&&(o.disabled?this._disableDatepicker(i):this._enableDatepicker(i)),this._attachments(n(i),e),this._autoSize(e),this._setDate(e,c),this._updateAlternate(e),this._updateDatepicker(e))},_changeDatepicker:function(n,t,i){this._optionDatepicker(n,t,i)},_refreshDatepicker:function(n){var t=this._getInst(n);t&&this._updateDatepicker(t)},_setDateDatepicker:function(n,t){var i=this._getInst(n);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(n,t){var i=this._getInst(n);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var u,e,f,i=n.datepicker._getInst(t.target),r=!0,o=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,n.datepicker._datepickerShowing)switch(t.keyCode){case 9:n.datepicker._hideDatepicker();r=!1;break;case 13:return f=n("td."+n.datepicker._dayOverClass+":not(."+n.datepicker._currentClass+")",i.dpDiv),f[0]&&n.datepicker._selectDay(t.target,i.selectedMonth,i.selectedYear,f[0]),u=n.datepicker._get(i,"onSelect"),u?(e=n.datepicker._formatDate(i),u.apply(i.input?i.input[0]:null,[e,i])):n.datepicker._hideDatepicker(),!1;case 27:n.datepicker._hideDatepicker();break;case 33:n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 34:n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&n.datepicker._clearDate(t.target);r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&n.datepicker._gotoToday(t.target);r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,o?1:-1,"D");r=t.ctrlKey||t.metaKey;t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,-7,"D");r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,o?-1:1,"D");r=t.ctrlKey||t.metaKey;t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,7,"D");r=t.ctrlKey||t.metaKey;break;default:r=!1}else t.keyCode===36&&t.ctrlKey?n.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,r,u=n.datepicker._getInst(t.target);if(n.datepicker._get(u,"constrainInput"))return i=n.datepicker._possibleChars(n.datepicker._get(u,"dateFormat")),r=String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||r<" "||!i||i.indexOf(r)>-1},_doKeyUp:function(t){var r,i=n.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{r=n.datepicker.parseDate(n.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,n.datepicker._getFormatConfig(i));r&&(n.datepicker._setDateFromField(i),n.datepicker._updateAlternate(i),n.datepicker._updateDatepicker(i))}catch(u){}return!0},_showDatepicker:function(t){if(t=t.target||t,t.nodeName.toLowerCase()!=="input"&&(t=n("input",t.parentNode)[0]),!n.datepicker._isDisabledDatepicker(t)&&n.datepicker._lastInput!==t){var i,o,s,u,f,e,h;(i=n.datepicker._getInst(t),n.datepicker._curInst&&n.datepicker._curInst!==i&&(n.datepicker._curInst.dpDiv.stop(!0,!0),i&&n.datepicker._datepickerShowing&&n.datepicker._hideDatepicker(n.datepicker._curInst.input[0])),o=n.datepicker._get(i,"beforeShow"),s=o?o.apply(t,[t,i]):{},s!==!1)&&(r(i.settings,s),i.lastVal=null,n.datepicker._lastInput=t,n.datepicker._setDateFromField(i),n.datepicker._inDialog&&(t.value=""),n.datepicker._pos||(n.datepicker._pos=n.datepicker._findPos(t),n.datepicker._pos[1]+=t.offsetHeight),u=!1,n(t).parents().each(function(){return u|=n(this).css("position")==="fixed",!u}),f={left:n.datepicker._pos[0],top:n.datepicker._pos[1]},n.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),n.datepicker._updateDatepicker(i),f=n.datepicker._checkOffset(i,f,u),i.dpDiv.css({position:n.datepicker._inDialog&&n.blockUI?"static":u?"fixed":"absolute",display:"none",left:f.left+"px",top:f.top+"px"}),i.inline||(e=n.datepicker._get(i,"showAnim"),h=n.datepicker._get(i,"duration"),i.dpDiv.zIndex(n(t).zIndex()+1),n.datepicker._datepickerShowing=!0,n.effects&&n.effects.effect[e]?i.dpDiv.show(e,n.datepicker._get(i,"showOptions"),h):i.dpDiv[e||"show"](e?h:null),n.datepicker._shouldFocusInput(i)&&i.input.focus(),n.datepicker._curInst=i))}},_updateDatepicker:function(t){this.maxRows=4;u=t;t.dpDiv.empty().append(this._generateHTML(t));this._attachHandlers(t);t.dpDiv.find("."+this._dayOverClass+" a").mouseover();var i,r=this._getNumberOfMonths(t),f=r[1];t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");f>1&&t.dpDiv.addClass("ui-datepicker-multi-"+f).css("width",17*f+"em");t.dpDiv[(r[0]!==1||r[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi");t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");t===n.datepicker._curInst&&n.datepicker._datepickerShowing&&n.datepicker._shouldFocusInput(t)&&t.input.focus();t.yearshtml&&(i=t.yearshtml,setTimeout(function(){i===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml);i=t.yearshtml=null},0))},_shouldFocusInput:function(n){return n.input&&n.input.is(":visible")&&!n.input.is(":disabled")&&!n.input.is(":focus")},_checkOffset:function(t,i,r){var u=t.dpDiv.outerWidth(),f=t.dpDiv.outerHeight(),h=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,e=document.documentElement.clientWidth+(r?0:n(document).scrollLeft()),s=document.documentElement.clientHeight+(r?0:n(document).scrollTop());return i.left-=this._get(t,"isRTL")?u-h:0,i.left-=r&&i.left===t.input.offset().left?n(document).scrollLeft():0,i.top-=r&&i.top===t.input.offset().top+o?n(document).scrollTop():0,i.left-=Math.min(i.left,i.left+u>e&&e>u?Math.abs(i.left+u-e):0),i.top-=Math.min(i.top,i.top+f>s&&s>f?Math.abs(f+o):0),i},_findPos:function(t){for(var i,r=this._getInst(t),u=this._get(r,"isRTL");t&&(t.type==="hidden"||t.nodeType!==1||n.expr.filters.hidden(t));)t=t[u?"previousSibling":"nextSibling"];return i=n(t).offset(),[i.left,i.top]},_hideDatepicker:function(t){var u,e,f,o,r=this._curInst;r&&(!t||r===n.data(t,i))&&this._datepickerShowing&&(u=this._get(r,"showAnim"),e=this._get(r,"duration"),f=function(){n.datepicker._tidyDialog(r)},n.effects&&(n.effects.effect[u]||n.effects[u])?r.dpDiv.hide(u,n.datepicker._get(r,"showOptions"),e,f):r.dpDiv[u==="slideDown"?"slideUp":u==="fadeIn"?"fadeOut":"hide"](u?e:null,f),u||f(),this._datepickerShowing=!1,o=this._get(r,"onClose"),o&&o.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),n.blockUI&&(n.unblockUI(),n("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(n){n.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(n.datepicker._curInst){var i=n(t.target),r=n.datepicker._getInst(i[0]);(i[0].id===n.datepicker._mainDivId||i.parents("#"+n.datepicker._mainDivId).length!==0||i.hasClass(n.datepicker.markerClassName)||i.closest("."+n.datepicker._triggerClass).length||!n.datepicker._datepickerShowing||n.datepicker._inDialog&&n.blockUI)&&(!i.hasClass(n.datepicker.markerClassName)||n.datepicker._curInst===r)||n.datepicker._hideDatepicker()}},_adjustDate:function(t,i,r){var f=n(t),u=this._getInst(f[0]);this._isDisabledDatepicker(f[0])||(this._adjustInstDate(u,i+(r==="M"?this._get(u,"showCurrentAtPos"):0),r),this._updateDatepicker(u))},_gotoToday:function(t){var r,u=n(t),i=this._getInst(u[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(r=new Date,i.selectedDay=r.getDate(),i.drawMonth=i.selectedMonth=r.getMonth(),i.drawYear=i.selectedYear=r.getFullYear());this._notifyChange(i);this._adjustDate(u)},_selectMonthYear:function(t,i,r){var f=n(t),u=this._getInst(f[0]);u["selected"+(r==="M"?"Month":"Year")]=u["draw"+(r==="M"?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10);this._notifyChange(u);this._adjustDate(f)},_selectDay:function(t,i,r,u){var f,e=n(t);n(u).hasClass(this._unselectableClass)||this._isDisabledDatepicker(e[0])||(f=this._getInst(e[0]),f.selectedDay=f.currentDay=n("a",u).html(),f.selectedMonth=f.currentMonth=i,f.selectedYear=f.currentYear=r,this._selectDate(t,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(t){var i=n(t);this._selectDate(i,"")},_selectDate:function(t,i){var u,f=n(t),r=this._getInst(f[0]);i=i!=null?i:this._formatDate(r);r.input&&r.input.val(i);this._updateAlternate(r);u=this._get(r,"onSelect");u?u.apply(r.input?r.input[0]:null,[i,r]):r.input&&r.input.trigger("change");r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],typeof r.input[0]!="object"&&r.input.focus(),this._lastInput=null)},_updateAlternate:function(t){var i,r,u,f=this._get(t,"altField");f&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),r=this._getDate(t),u=this.formatDate(i,r,this._getFormatConfig(t)),n(f).each(function(){n(this).val(u)}))},noWeekends:function(n){var t=n.getDay();return[t>0&&t<6,""]},iso8601Week:function(n){var i,t=new Date(n.getTime());return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1},parseDate:function(t,i,r){if(t==null||i==null)throw"Invalid arguments";if(i=typeof i=="object"?i.toString():i+"",i==="")return null;for(var a,v,f=0,y=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,d=typeof y!="string"?y:(new Date).getFullYear()%100+parseInt(y,10),g=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,nt=(r?r.dayNames:null)||this._defaults.dayNames,tt=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,it=(r?r.monthNames:null)||this._defaults.monthNames,e=-1,s=-1,h=-1,p=-1,w=!1,u,l=function(n){var i=o+1<t.length&&t.charAt(o+1)===n;return i&&o++,i},c=function(n){var r=l(n),u=n==="@"?14:n==="!"?20:n==="y"&&r?4:n==="o"?3:2,e=new RegExp("^\\d{1,"+u+"}"),t=i.substring(f).match(e);if(!t)throw"Missing number at position "+f;return f+=t[0].length,parseInt(t[0],10)},k=function(t,r,u){var e=-1,o=n.map(l(t)?u:r,function(n,t){return[[t,n]]}).sort(function(n,t){return-(n[1].length-t[1].length)});if(n.each(o,function(n,t){var r=t[1];if(i.substr(f,r.length).toLowerCase()===r.toLowerCase())return e=t[0],f+=r.length,!1}),e!==-1)return e+1;throw"Unknown name at position "+f;},b=function(){if(i.charAt(f)!==t.charAt(o))throw"Unexpected literal at position "+f;f++},o=0;o<t.length;o++)if(w)t.charAt(o)!=="'"||l("'")?b():w=!1;else switch(t.charAt(o)){case"d":h=c("d");break;case"D":k("D",g,nt);break;case"o":p=c("o");break;case"m":s=c("m");break;case"M":s=k("M",tt,it);break;case"y":e=c("y");break;case"@":u=new Date(c("@"));e=u.getFullYear();s=u.getMonth()+1;h=u.getDate();break;case"!":u=new Date((c("!")-this._ticksTo1970)/1e4);e=u.getFullYear();s=u.getMonth()+1;h=u.getDate();break;case"'":l("'")?b():w=!0;break;default:b()}if(f<i.length&&(v=i.substr(f),!/^\s+/.test(v)))throw"Extra/unparsed characters found in date: "+v;if(e===-1?e=(new Date).getFullYear():e<100&&(e+=(new Date).getFullYear()-(new Date).getFullYear()%100+(e<=d?0:-100)),p>-1){s=1;h=p;do{if(a=this._getDaysInMonth(e,s-1),h<=a)break;s++;h-=a}while(1)}if(u=this._daylightSavingAdjust(new Date(e,s-1,h)),u.getFullYear()!==e||u.getMonth()+1!==s||u.getDate()!==h)throw"Invalid date";return u},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*864e9,formatDate:function(n,t,i){if(!t)return"";var u,h=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,c=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,f=function(t){var i=u+1<n.length&&n.charAt(u+1)===t;return i&&u++,i},e=function(n,t,i){var r=""+t;if(f(n))while(r.length<i)r="0"+r;return r},s=function(n,t,i,r){return f(n)?r[t]:i[t]},r="",o=!1;if(t)for(u=0;u<n.length;u++)if(o)n.charAt(u)!=="'"||f("'")?r+=n.charAt(u):o=!1;else switch(n.charAt(u)){case"d":r+=e("d",t.getDate(),2);break;case"D":r+=s("D",t.getDay(),h,c);break;case"o":r+=e("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":r+=e("m",t.getMonth()+1,2);break;case"M":r+=s("M",t.getMonth(),l,a);break;case"y":r+=f("y")?t.getFullYear():(t.getYear()%100<10?"0":"")+t.getYear()%100;break;case"@":r+=t.getTime();break;case"!":r+=t.getTime()*1e4+this._ticksTo1970;break;case"'":f("'")?r+="'":o=!0;break;default:r+=n.charAt(u)}return r},_possibleChars:function(n){for(var i="",r=!1,u=function(i){var r=t+1<n.length&&n.charAt(t+1)===i;return r&&t++,r},t=0;t<n.length;t++)if(r)n.charAt(t)!=="'"||u("'")?i+=n.charAt(t):r=!1;else switch(n.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":u("'")?i+="'":r=!0;break;default:i+=n.charAt(t)}return i},_get:function(n,i){return n.settings[i]!==t?n.settings[i]:this._defaults[i]},_setDateFromField:function(n,t){if(n.input.val()!==n.lastVal){var f=this._get(n,"dateFormat"),r=n.lastVal=n.input?n.input.val():null,u=this._getDefaultDate(n),i=u,e=this._getFormatConfig(n);try{i=this.parseDate(f,r,e)||u}catch(o){r=t?"":r}n.selectedDay=i.getDate();n.drawMonth=n.selectedMonth=i.getMonth();n.drawYear=n.selectedYear=i.getFullYear();n.currentDay=r?i.getDate():0;n.currentMonth=r?i.getMonth():0;n.currentYear=r?i.getFullYear():0;this._adjustInstDate(n)}},_getDefaultDate:function(n){return this._restrictMinMax(n,this._determineDate(n,this._get(n,"defaultDate"),new Date))},_determineDate:function(t,i,r){var f=function(n){var t=new Date;return t.setDate(t.getDate()+n),t},e=function(i){try{return n.datepicker.parseDate(n.datepicker._get(t,"dateFormat"),i,n.datepicker._getFormatConfig(t))}catch(h){}for(var o=(i.toLowerCase().match(/^c/)?n.datepicker._getDate(t):null)||new Date,f=o.getFullYear(),e=o.getMonth(),r=o.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=s.exec(i);u;){switch(u[2]||"d"){case"d":case"D":r+=parseInt(u[1],10);break;case"w":case"W":r+=parseInt(u[1],10)*7;break;case"m":case"M":e+=parseInt(u[1],10);r=Math.min(r,n.datepicker._getDaysInMonth(f,e));break;case"y":case"Y":f+=parseInt(u[1],10);r=Math.min(r,n.datepicker._getDaysInMonth(f,e))}u=s.exec(i)}return new Date(f,e,r)},u=i==null||i===""?r:typeof i=="string"?e(i):typeof i=="number"?isNaN(i)?r:f(i):new Date(i.getTime());return u=u&&u.toString()==="Invalid Date"?r:u,u&&(u.setHours(0),u.setMinutes(0),u.setSeconds(0),u.setMilliseconds(0)),this._daylightSavingAdjust(u)},_daylightSavingAdjust:function(n){return n?(n.setHours(n.getHours()>12?n.getHours()+2:0),n):null},_setDate:function(n,t,i){var u=!t,f=n.selectedMonth,e=n.selectedYear,r=this._restrictMinMax(n,this._determineDate(n,t,new Date));n.selectedDay=n.currentDay=r.getDate();n.drawMonth=n.selectedMonth=n.currentMonth=r.getMonth();n.drawYear=n.selectedYear=n.currentYear=r.getFullYear();f===n.selectedMonth&&e===n.selectedYear||i||this._notifyChange(n);this._adjustInstDate(n);n.input&&n.input.val(u?"":this._formatDate(n))},_getDate:function(n){return!n.currentYear||n.input&&n.input.val()===""?null:this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay))},_attachHandlers:function(t){var r=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){n.datepicker._adjustDate(i,-r,"M")},next:function(){n.datepicker._adjustDate(i,+r,"M")},hide:function(){n.datepicker._hideDatepicker()},today:function(){n.datepicker._gotoToday(i)},selectDay:function(){return n.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return n.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return n.datepicker._selectMonthYear(i,this,"Y"),!1}};n(this).bind(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(n){var b,s,rt,h,ut,k,ft,et,ri,c,ot,ui,fi,ei,oi,st,g,si,ht,nt,f,y,ct,p,lt,l,u,at,vt,yt,pt,tt,wt,i,bt,kt,d,a,it,dt=new Date,gt=this._daylightSavingAdjust(new Date(dt.getFullYear(),dt.getMonth(),dt.getDate())),e=this._get(n,"isRTL"),li=this._get(n,"showButtonPanel"),hi=this._get(n,"hideIfNoPrevNext"),ni=this._get(n,"navigationAsDateFormat"),o=this._getNumberOfMonths(n),ai=this._get(n,"showCurrentAtPos"),ci=this._get(n,"stepMonths"),ti=o[0]!==1||o[1]!==1,ii=this._daylightSavingAdjust(n.currentDay?new Date(n.currentYear,n.currentMonth,n.currentDay):new Date(9999,9,9)),w=this._getMinMaxDate(n,"min"),v=this._getMinMaxDate(n,"max"),t=n.drawMonth-ai,r=n.drawYear;if(t<0&&(t+=12,r--),v)for(b=this._daylightSavingAdjust(new Date(v.getFullYear(),v.getMonth()-o[0]*o[1]+1,v.getDate())),b=w&&b<w?w:b;this._daylightSavingAdjust(new Date(r,t,1))>b;)t--,t<0&&(t=11,r--);for(n.drawMonth=t,n.drawYear=r,s=this._get(n,"prevText"),s=ni?this.formatDate(s,this._daylightSavingAdjust(new Date(r,t-ci,1)),this._getFormatConfig(n)):s,rt=this._canAdjustMonth(n,-1,r,t)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(e?"e":"w")+"'>"+s+"<\/span><\/a>":hi?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(e?"e":"w")+"'>"+s+"<\/span><\/a>",h=this._get(n,"nextText"),h=ni?this.formatDate(h,this._daylightSavingAdjust(new Date(r,t+ci,1)),this._getFormatConfig(n)):h,ut=this._canAdjustMonth(n,1,r,t)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+h+"'><span class='ui-icon ui-icon-circle-triangle-"+(e?"w":"e")+"'>"+h+"<\/span><\/a>":hi?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+h+"'><span class='ui-icon ui-icon-circle-triangle-"+(e?"w":"e")+"'>"+h+"<\/span><\/a>",k=this._get(n,"currentText"),ft=this._get(n,"gotoCurrent")&&n.currentDay?ii:gt,k=ni?this.formatDate(k,ft,this._getFormatConfig(n)):k,et=n.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(n,"closeText")+"<\/button>",ri=li?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(e?et:"")+(this._isInRange(n,ft)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+k+"<\/button>":"")+(e?"":et)+"<\/div>":"",c=parseInt(this._get(n,"firstDay"),10),c=isNaN(c)?0:c,ot=this._get(n,"showWeek"),ui=this._get(n,"dayNames"),fi=this._get(n,"dayNamesMin"),ei=this._get(n,"monthNames"),oi=this._get(n,"monthNamesShort"),st=this._get(n,"beforeShowDay"),g=this._get(n,"showOtherMonths"),si=this._get(n,"selectOtherMonths"),ht=this._getDefaultDate(n),nt="",f,y=0;y<o[0];y++){for(ct="",this.maxRows=4,p=0;p<o[1];p++){if(lt=this._daylightSavingAdjust(new Date(r,t,n.selectedDay)),l=" ui-corner-all",u="",ti){if(u+="<div class='ui-datepicker-group",o[1]>1)switch(p){case 0:u+=" ui-datepicker-group-first";l=" ui-corner-"+(e?"right":"left");break;case o[1]-1:u+=" ui-datepicker-group-last";l=" ui-corner-"+(e?"left":"right");break;default:u+=" ui-datepicker-group-middle";l=""}u+="'>"}for(u+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+l+"'>"+(/all|left/.test(l)&&y===0?e?ut:rt:"")+(/all|right/.test(l)&&y===0?e?rt:ut:"")+this._generateMonthYearHeader(n,t,r,w,v,y>0||p>0,ei,oi)+"<\/div><table class='ui-datepicker-calendar'><thead><tr>",at=ot?"<th class='ui-datepicker-week-col'>"+this._get(n,"weekHeader")+"<\/th>":"",f=0;f<7;f++)vt=(f+c)%7,at+="<th"+((f+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+ui[vt]+"'>"+fi[vt]+"<\/span><\/th>";for(u+=at+"<\/tr><\/thead><tbody>",yt=this._getDaysInMonth(r,t),r===n.selectedYear&&t===n.selectedMonth&&(n.selectedDay=Math.min(n.selectedDay,yt)),pt=(this._getFirstDayOfMonth(r,t)-c+7)%7,tt=Math.ceil((pt+yt)/7),wt=ti?this.maxRows>tt?this.maxRows:tt:tt,this.maxRows=wt,i=this._daylightSavingAdjust(new Date(r,t,1-pt)),bt=0;bt<wt;bt++){for(u+="<tr>",kt=ot?"<td class='ui-datepicker-week-col'>"+this._get(n,"calculateWeek")(i)+"<\/td>":"",f=0;f<7;f++)d=st?st.apply(n.input?n.input[0]:null,[i]):[!0,""],a=i.getMonth()!==t,it=a&&!si||!d[0]||w&&i<w||v&&i>v,kt+="<td class='"+((f+c+6)%7>=5?" ui-datepicker-week-end":"")+(a?" ui-datepicker-other-month":"")+(i.getTime()===lt.getTime()&&t===n.selectedMonth&&n._keyEvent||ht.getTime()===i.getTime()&&ht.getTime()===lt.getTime()?" "+this._dayOverClass:"")+(it?" "+this._unselectableClass+" ui-state-disabled":"")+(a&&!g?"":" "+d[1]+(i.getTime()===ii.getTime()?" "+this._currentClass:"")+(i.getTime()===gt.getTime()?" ui-datepicker-today":""))+"'"+((!a||g)&&d[2]?" title='"+d[2].replace(/'/g,"&#39;")+"'":"")+(it?"":" data-handler='selectDay' data-event='click' data-month='"+i.getMonth()+"' data-year='"+i.getFullYear()+"'")+">"+(a&&!g?"&#xa0;":it?"<span class='ui-state-default'>"+i.getDate()+"<\/span>":"<a class='ui-state-default"+(i.getTime()===gt.getTime()?" ui-state-highlight":"")+(i.getTime()===ii.getTime()?" ui-state-active":"")+(a?" ui-priority-secondary":"")+"' href='#'>"+i.getDate()+"<\/a>")+"<\/td>",i.setDate(i.getDate()+1),i=this._daylightSavingAdjust(i);u+=kt+"<\/tr>"}t++;t>11&&(t=0,r++);u+="<\/tbody><\/table>"+(ti?"<\/div>"+(o[0]>0&&p===o[1]-1?"<div class='ui-datepicker-row-break'><\/div>":""):"");ct+=u}nt+=ct}return nt+=ri,n._keyEvent=!1,nt},_generateMonthYearHeader:function(n,t,i,r,u,f,e,o){var k,d,h,v,y,p,s,a,w=this._get(n,"changeMonth"),b=this._get(n,"changeYear"),g=this._get(n,"showMonthAfterYear"),c="<div class='ui-datepicker-title'>",l="";if(f||!w)l+="<span class='ui-datepicker-month'>"+e[t]+"<\/span>";else{for(k=r&&r.getFullYear()===i,d=u&&u.getFullYear()===i,l+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",h=0;h<12;h++)(!k||h>=r.getMonth())&&(!d||h<=u.getMonth())&&(l+="<option value='"+h+"'"+(h===t?" selected='selected'":"")+">"+o[h]+"<\/option>");l+="<\/select>"}if(g||(c+=l+(f||!(w&&b)?"&#xa0;":"")),!n.yearshtml)if(n.yearshtml="",f||!b)c+="<span class='ui-datepicker-year'>"+i+"<\/span>";else{for(v=this._get(n,"yearRange").split(":"),y=(new Date).getFullYear(),p=function(n){var t=n.match(/c[+\-].*/)?i+parseInt(n.substring(1),10):n.match(/[+\-].*/)?y+parseInt(n,10):parseInt(n,10);return isNaN(t)?y:t},s=p(v[0]),a=Math.max(s,p(v[1]||"")),s=r?Math.max(s,r.getFullYear()):s,a=u?Math.min(a,u.getFullYear()):a,n.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";s<=a;s++)n.yearshtml+="<option value='"+s+"'"+(s===i?" selected='selected'":"")+">"+s+"<\/option>";n.yearshtml+="<\/select>";c+=n.yearshtml;n.yearshtml=null}return c+=this._get(n,"yearSuffix"),g&&(c+=(f||!(w&&b)?"&#xa0;":"")+l),c+"<\/div>"},_adjustInstDate:function(n,t,i){var u=n.drawYear+(i==="Y"?t:0),f=n.drawMonth+(i==="M"?t:0),e=Math.min(n.selectedDay,this._getDaysInMonth(u,f))+(i==="D"?t:0),r=this._restrictMinMax(n,this._daylightSavingAdjust(new Date(u,f,e)));n.selectedDay=r.getDate();n.drawMonth=n.selectedMonth=r.getMonth();n.drawYear=n.selectedYear=r.getFullYear();(i==="M"||i==="Y")&&this._notifyChange(n)},_restrictMinMax:function(n,t){var i=this._getMinMaxDate(n,"min"),r=this._getMinMaxDate(n,"max"),u=i&&t<i?i:t;return r&&u>r?r:u},_notifyChange:function(n){var t=this._get(n,"onChangeMonthYear");t&&t.apply(n.input?n.input[0]:null,[n.selectedYear,n.selectedMonth+1,n])},_getNumberOfMonths:function(n){var t=this._get(n,"numberOfMonths");return t==null?[1,1]:typeof t=="number"?[1,t]:t},_getMinMaxDate:function(n,t){return this._determineDate(n,this._get(n,t+"Date"),null)},_getDaysInMonth:function(n,t){return 32-this._daylightSavingAdjust(new Date(n,t,32)).getDate()},_getFirstDayOfMonth:function(n,t){return new Date(n,t,1).getDay()},_canAdjustMonth:function(n,t,i,r){var f=this._getNumberOfMonths(n),u=this._daylightSavingAdjust(new Date(i,r+(t<0?t:f[0]*f[1]),1));return t<0&&u.setDate(this._getDaysInMonth(u.getFullYear(),u.getMonth())),this._isInRange(n,u)},_isInRange:function(n,t){var i,f,e=this._getMinMaxDate(n,"min"),o=this._getMinMaxDate(n,"max"),r=null,u=null,s=this._get(n,"yearRange");return s&&(i=s.split(":"),f=(new Date).getFullYear(),r=parseInt(i[0],10),u=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=f),i[1].match(/[+\-].*/)&&(u+=f)),(!e||t.getTime()>=e.getTime())&&(!o||t.getTime()<=o.getTime())&&(!r||t.getFullYear()>=r)&&(!u||t.getFullYear()<=u)},_getFormatConfig:function(n){var t=this._get(n,"shortYearCutoff");return t=typeof t!="string"?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(n,"dayNamesShort"),dayNames:this._get(n,"dayNames"),monthNamesShort:this._get(n,"monthNamesShort"),monthNames:this._get(n,"monthNames")}},_formatDate:function(n,t,i,r){t||(n.currentDay=n.selectedDay,n.currentMonth=n.selectedMonth,n.currentYear=n.selectedYear);var u=t?typeof t=="object"?t:this._daylightSavingAdjust(new Date(r,i,t)):this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay));return this.formatDate(this._get(n,"dateFormat"),u,this._getFormatConfig(n))}});n.fn.datepicker=function(t){if(!this.length)return this;n.datepicker.initialized||(n(document).mousedown(n.datepicker._checkExternalClick),n.datepicker.initialized=!0);n("#"+n.datepicker._mainDivId).length===0&&n("body").append(n.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return typeof t=="string"&&(t==="isDisabled"||t==="getDate"||t==="widget")?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):t==="option"&&arguments.length===2&&typeof arguments[1]=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):this.each(function(){typeof t=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this].concat(i)):n.datepicker._attachDatepicker(this,t)})};n.datepicker=new f;n.datepicker.initialized=!1;n.datepicker.uuid=(new Date).getTime();n.datepicker.version="1.10.4"}(jQuery),function(n){var t=0;n.widget("ui.autocomplete",{version:"1.10.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var t,i,r,u=this.element[0].nodeName.toLowerCase(),f=u==="textarea",e=u==="input";this.isMultiLine=f?!0:e?!1:this.element.prop("isContentEditable");this.valueMethod=this.element[f||e?"val":"text"];this.isNewMenu=!0;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off");this._on(this.element,{keydown:function(u){if(this.element.prop("readOnly")){t=!0;r=!0;i=!0;return}t=!1;r=!1;i=!1;var f=n.ui.keyCode;switch(u.keyCode){case f.PAGE_UP:t=!0;this._move("previousPage",u);break;case f.PAGE_DOWN:t=!0;this._move("nextPage",u);break;case f.UP:t=!0;this._keyEvent("previous",u);break;case f.DOWN:t=!0;this._keyEvent("next",u);break;case f.ENTER:case f.NUMPAD_ENTER:this.menu.active&&(t=!0,u.preventDefault(),this.menu.select(u));break;case f.TAB:this.menu.active&&this.menu.select(u);break;case f.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(u),u.preventDefault());break;default:i=!0;this._searchTimeout(u)}},keypress:function(r){if(t){t=!1;(!this.isMultiLine||this.menu.element.is(":visible"))&&r.preventDefault();return}if(!i){var u=n.ui.keyCode;switch(r.keyCode){case u.PAGE_UP:this._move("previousPage",r);break;case u.PAGE_DOWN:this._move("nextPage",r);break;case u.UP:this._keyEvent("previous",r);break;case u.DOWN:this._keyEvent("next",r)}}},input:function(n){if(r){r=!1;n.preventDefault();return}this._searchTimeout(n)},focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(n){if(this.cancelBlur){delete this.cancelBlur;return}clearTimeout(this.searching);this.close(n);this._change(n)}});this._initSource();this.menu=n("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu");this._on(this.menu.element,{mousedown:function(t){t.preventDefault();this.cancelBlur=!0;this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];n(t.target).closest(".ui-menu-item").length||this._delay(function(){var t=this;this.document.one("mousedown",function(r){r.target===t.element[0]||r.target===i||n.contains(i,r.target)||t.close()})})},menufocus:function(t,i){if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type))){this.menu.blur();this.document.one("mousemove",function(){n(t.target).trigger(t.originalEvent)});return}var r=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",t,{item:r})?t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(r.value):this.liveRegion.text(r.value)},menuselect:function(n,t){var i=t.item.data("ui-autocomplete-item"),r=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=r,this._delay(function(){this.previous=r;this.selectedItem=i}));!1!==this._trigger("select",n,{item:i})&&this._value(i.value);this.term=this._value();this.close(n);this.selectedItem=i}});this.liveRegion=n("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element);this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching);this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete");this.menu.element.remove();this.liveRegion.remove()},_setOption:function(n,t){this._super(n,t);n==="source"&&this._initSource();n==="appendTo"&&this.menu.element.appendTo(this._appendTo());n==="disabled"&&t&&this.xhr&&this.xhr.abort()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?n(t):this.document.find(t).eq(0)),t||(t=this.element.closest(".ui-front")),t.length||(t=this.document[0].body),t},_initSource:function(){var i,r,t=this;n.isArray(this.options.source)?(i=this.options.source,this.source=function(t,r){r(n.ui.autocomplete.filter(i,t.term))}):typeof this.options.source=="string"?(r=this.options.source,this.source=function(i,u){t.xhr&&t.xhr.abort();t.xhr=n.ajax({url:r,data:i,dataType:"json",success:function(n){u(n)},error:function(){u([])}})}):this.source=this.options.source},_searchTimeout:function(n){clearTimeout(this.searching);this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,n))},this.options.delay)},search:function(n,t){return(n=n!=null?n:this._value(),this.term=this._value(),n.length<this.options.minLength)?this.close(t):this._trigger("search",t)===!1?void 0:this._search(n)},_search:function(n){this.pending++;this.element.addClass("ui-autocomplete-loading");this.cancelSearch=!1;this.source({term:n},this._response())},_response:function(){var n=this,i=++t;return function(r){i===t&&n.__response(r);n.pending--;n.pending||n.element.removeClass("ui-autocomplete-loading")}},__response:function(n){n&&(n=this._normalize(n));this._trigger("response",null,{content:n});!this.options.disabled&&n&&n.length&&!this.cancelSearch?(this._suggest(n),this._trigger("open")):this._close()},close:function(n){this.cancelSearch=!0;this._close(n)},_close:function(n){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",n))},_change:function(n){this.previous!==this._value()&&this._trigger("change",n,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:n.map(t,function(t){return typeof t=="string"?{label:t,value:t}:n.extend({label:t.label||t.value,value:t.value||t.label},t)})},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t);this.isNewMenu=!0;this.menu.refresh();i.show();this._resizeMenu();i.position(n.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var n=this.menu.element;n.outerWidth(Math.max(n.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var r=this;n.each(i,function(n,i){r._renderItemData(t,i)})},_renderItemData:function(n,t){return this._renderItem(n,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return n("<li>").append(n("<a>").text(i.label)).appendTo(t)},_move:function(n,t){if(!this.menu.element.is(":visible")){this.search(null,t);return}if(this.menu.isFirstItem()&&/^previous/.test(n)||this.menu.isLastItem()&&/^next/.test(n)){this._value(this.term);this.menu.blur();return}this.menu[n](t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(n,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(n,t),t.preventDefault())}});n.extend(n.ui.autocomplete,{escapeRegex:function(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var r=new RegExp(n.ui.autocomplete.escapeRegex(i),"i");return n.grep(t,function(n){return r.test(n.label||n.value||n)})}});n.widget("ui.autocomplete",n.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(n){return n+(n>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(n){var t;(this._superApply(arguments),this.options.disabled||this.cancelSearch)||(t=n&&n.length?this.options.messages.results(n.length):this.options.messages.noResults,this.liveRegion.text(t))}})}(jQuery),function(n){n.widget("ui.menu",{version:"1.10.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.mouseHandled=!1;this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,n.proxy(function(n){this.options.disabled&&n.preventDefault()},this));this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true");this._on({"mousedown .ui-menu-item > a":function(n){n.preventDefault()},"click .ui-state-disabled > a":function(n){n.preventDefault()},"click .ui-menu-item:has(a)":function(t){var i=n(t.target).closest(".ui-menu-item");!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(t),i.has(".ui-menu").length?this.expand(t):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){var i=n(t.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active");this.focus(t,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(n,t){var i=this.active||this.element.children(".ui-menu-item").eq(0);t||this.focus(n,i)},blur:function(t){this._delay(function(){n.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(t){n(t.target).closest(".ui-menu").length||this.collapseAll(t);this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var t=n(this);t.data("ui-menu-submenu-carat")&&t.remove()});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){function s(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var i,f,r,e,u,o=!0;switch(t.keyCode){case n.ui.keyCode.PAGE_UP:this.previousPage(t);break;case n.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case n.ui.keyCode.HOME:this._move("first","first",t);break;case n.ui.keyCode.END:this._move("last","last",t);break;case n.ui.keyCode.UP:this.previous(t);break;case n.ui.keyCode.DOWN:this.next(t);break;case n.ui.keyCode.LEFT:this.collapse(t);break;case n.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case n.ui.keyCode.ENTER:case n.ui.keyCode.SPACE:this._activate(t);break;case n.ui.keyCode.ESCAPE:this.collapse(t);break;default:o=!1;f=this.previousFilter||"";r=String.fromCharCode(t.keyCode);e=!1;clearTimeout(this.filterTimer);r===f?e=!0:r=f+r;u=new RegExp("^"+s(r),"i");i=this.activeMenu.children(".ui-menu-item").filter(function(){return u.test(n(this).children("a").text())});i=e&&i.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):i;i.length||(r=String.fromCharCode(t.keyCode),u=new RegExp("^"+s(r),"i"),i=this.activeMenu.children(".ui-menu-item").filter(function(){return u.test(n(this).children("a").text())}));i.length?(this.focus(t,i),i.length>1?(this.previousFilter=r,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}o&&t.preventDefault()},_activate:function(n){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(n):this.select(n))},refresh:function(){var t,r=this.options.icons.submenu,i=this.element.find(this.options.menus);i.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=n(this),i=t.prev("a"),u=n("<span>").addClass("ui-menu-icon ui-icon "+r).data("ui-menu-submenu-carat",!0);i.attr("aria-haspopup","true").prepend(u);t.attr("aria-labelledby",i.attr("id"))});t=i.add(this.element);t.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()});t.children(":not(.ui-menu-item)").each(function(){var t=n(this);/[^\-\u2014\u2013\s]/.test(t.text())||t.addClass("ui-widget-content ui-menu-divider")});t.children(".ui-state-disabled").attr("aria-disabled","true");this.active&&!n.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(n,t){n==="icons"&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(t.submenu);this._super(n,t)},focus:function(n,t){var i,r;this.blur(n,n&&n.type==="focus");this._scrollIntoView(t);this.active=t.first();r=this.active.children("a").addClass("ui-state-focus");this.options.role&&this.element.attr("aria-activedescendant",r.attr("id"));this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active");n&&n.type==="keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay);i=t.children(".ui-menu");i.length&&/^mouse/.test(n.type)&&this._startOpening(i);this.activeMenu=t.parent();this._trigger("focus",n,{item:t})},_scrollIntoView:function(t){var e,o,i,r,u,f;this._hasScroll()&&(e=parseFloat(n.css(this.activeMenu[0],"borderTopWidth"))||0,o=parseFloat(n.css(this.activeMenu[0],"paddingTop"))||0,i=t.offset().top-this.activeMenu.offset().top-e-o,r=this.activeMenu.scrollTop(),u=this.activeMenu.height(),f=t.height(),i<0?this.activeMenu.scrollTop(r+i):i+f>u&&this.activeMenu.scrollTop(r+i-u+f))},blur:function(n,t){(t||clearTimeout(this.timer),this.active)&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",n,{item:this.active}))},_startOpening:function(n){(clearTimeout(this.timer),n.attr("aria-hidden")==="true")&&(this.timer=this._delay(function(){this._close();this._open(n)},this.delay))},_open:function(t){var i=n.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true");t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer);this.timer=this._delay(function(){var r=i?this.element:n(t&&t.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element);this._close(r);this.blur(t);this.activeMenu=r},this.delay)},_close:function(n){n||(n=this.active?this.active.parent():this.element);n.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(n){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(n,t))},expand:function(n){var t=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(n,t)}))},next:function(n){this._move("next","first",n)},previous:function(n){this._move("prev","last",n)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(n,t,i){var r;this.active&&(r=n==="first"||n==="last"?this.active[n==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[n+"All"](".ui-menu-item").eq(0));r&&r.length&&this.active||(r=this.activeMenu.children(".ui-menu-item")[t]());this.focus(i,r)},nextPage:function(t){var i,r,u;if(!this.active){this.next(t);return}this.isLastItem()||(this._hasScroll()?(r=this.active.offset().top,u=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=n(this),i.offset().top-r-u<0}),this.focus(t,i)):this.focus(t,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))},previousPage:function(t){var i,r,u;if(!this.active){this.next(t);return}this.isFirstItem()||(this._hasScroll()?(r=this.active.offset().top,u=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=n(this),i.offset().top-r+u>0}),this.focus(t,i)):this.focus(t,this.activeMenu.children(".ui-menu-item").first()))},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||n(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0);this._trigger("select",t,i)}})}(jQuery),function(n,t){function a(n,t,i){return[parseFloat(n[0])*(l.test(n[0])?t/100:1),parseFloat(n[1])*(l.test(n[1])?i/100:1)]}function u(t,i){return parseInt(n.css(t,i),10)||0}function y(t){var i=t[0];return i.nodeType===9?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:n.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}n.ui=n.ui||{};var f,r=Math.max,i=Math.abs,e=Math.round,o=/left|center|right/,s=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,l=/%$/,v=n.fn.position;n.position={scrollbarWidth:function(){if(f!==t)return f;var u,r,i=n("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'><\/div><\/div>"),e=i.children()[0];return n("body").append(i),u=e.offsetWidth,i.css("overflow","scroll"),r=e.offsetWidth,u===r&&(r=i[0].clientWidth),i.remove(),f=u-r},getScrollInfo:function(t){var i=t.isWindow?"":t.element.css("overflow-x"),r=t.isWindow?"":t.element.css("overflow-y"),u=i==="scroll"||i==="auto"&&t.width<t.element[0].scrollWidth,f=r==="scroll"||r==="auto"&&t.height<t.element[0].scrollHeight;return{width:f?n.position.scrollbarWidth():0,height:u?n.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=n(t||window),r=n.isWindow(i[0]);return{element:i,isWindow:r,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:r?i.width():i.outerWidth(),height:r?i.height():i.outerHeight()}}};n.fn.position=function(t){if(!t||!t.of)return v.apply(this,arguments);t=n.extend({},t);var b,f,l,w,p,d,g=n(t.of),tt=n.position.getWithinInfo(t.within),it=n.position.getScrollInfo(tt),k=(t.collision||"flip").split(" "),nt={};return d=y(g),g[0].preventDefault&&(t.at="left top"),f=d.width,l=d.height,w=d.offset,p=n.extend({},w),n.each(["my","at"],function(){var n=(t[this]||"").split(" "),i,r;n.length===1&&(n=o.test(n[0])?n.concat(["center"]):s.test(n[0])?["center"].concat(n):["center","center"]);n[0]=o.test(n[0])?n[0]:"center";n[1]=s.test(n[1])?n[1]:"center";i=h.exec(n[0]);r=h.exec(n[1]);nt[this]=[i?i[0]:0,r?r[0]:0];t[this]=[c.exec(n[0])[0],c.exec(n[1])[0]]}),k.length===1&&(k[1]=k[0]),t.at[0]==="right"?p.left+=f:t.at[0]==="center"&&(p.left+=f/2),t.at[1]==="bottom"?p.top+=l:t.at[1]==="center"&&(p.top+=l/2),b=a(nt.at,f,l),p.left+=b[0],p.top+=b[1],this.each(function(){var y,d,s=n(this),h=s.outerWidth(),c=s.outerHeight(),rt=u(this,"marginLeft"),ut=u(this,"marginTop"),ft=h+rt+u(this,"marginRight")+it.width,et=c+ut+u(this,"marginBottom")+it.height,o=n.extend({},p),v=a(nt.my,s.outerWidth(),s.outerHeight());t.my[0]==="right"?o.left-=h:t.my[0]==="center"&&(o.left-=h/2);t.my[1]==="bottom"?o.top-=c:t.my[1]==="center"&&(o.top-=c/2);o.left+=v[0];o.top+=v[1];n.support.offsetFractions||(o.left=e(o.left),o.top=e(o.top));y={marginLeft:rt,marginTop:ut};n.each(["left","top"],function(i,r){n.ui.position[k[i]]&&n.ui.position[k[i]][r](o,{targetWidth:f,targetHeight:l,elemWidth:h,elemHeight:c,collisionPosition:y,collisionWidth:ft,collisionHeight:et,offset:[b[0]+v[0],b[1]+v[1]],my:t.my,at:t.at,within:tt,elem:s})});t.using&&(d=function(n){var u=w.left-o.left,v=u+f-h,e=w.top-o.top,y=e+l-c,a={target:{element:g,left:w.left,top:w.top,width:f,height:l},element:{element:s,left:o.left,top:o.top,width:h,height:c},horizontal:v<0?"left":u>0?"right":"center",vertical:y<0?"top":e>0?"bottom":"middle"};f<h&&i(u+v)<f&&(a.horizontal="center");l<c&&i(e+y)<l&&(a.vertical="middle");a.important=r(i(u),i(v))>r(i(e),i(y))?"horizontal":"vertical";t.using.call(this,n,a)});s.offset(n.extend(o,{using:d}))})};n.ui.position={fit:{left:function(n,t){var e=t.within,u=e.isWindow?e.scrollLeft:e.offset.left,o=e.width,s=n.left-t.collisionPosition.marginLeft,i=u-s,f=s+t.collisionWidth-o-u,h;t.collisionWidth>o?i>0&&f<=0?(h=n.left+i+t.collisionWidth-o-u,n.left+=i-h):n.left=f>0&&i<=0?u:i>f?u+o-t.collisionWidth:u:i>0?n.left+=i:f>0?n.left-=f:n.left=r(n.left-s,n.left)},top:function(n,t){var o=t.within,u=o.isWindow?o.scrollTop:o.offset.top,e=t.within.height,s=n.top-t.collisionPosition.marginTop,i=u-s,f=s+t.collisionHeight-e-u,h;t.collisionHeight>e?i>0&&f<=0?(h=n.top+i+t.collisionHeight-e-u,n.top+=i-h):n.top=f>0&&i<=0?u:i>f?u+e-t.collisionHeight:u:i>0?n.top+=i:f>0?n.top-=f:n.top=r(n.top-s,n.top)}},flip:{left:function(n,t){var r=t.within,y=r.offset.left+r.scrollLeft,c=r.width,o=r.isWindow?r.scrollLeft:r.offset.left,l=n.left-t.collisionPosition.marginLeft,a=l-o,v=l+t.collisionWidth-c-o,u=t.my[0]==="left"?-t.elemWidth:t.my[0]==="right"?t.elemWidth:0,f=t.at[0]==="left"?t.targetWidth:t.at[0]==="right"?-t.targetWidth:0,e=-2*t.offset[0],s,h;a<0?(s=n.left+u+f+e+t.collisionWidth-c-y,(s<0||s<i(a))&&(n.left+=u+f+e)):v>0&&(h=n.left-t.collisionPosition.marginLeft+u+f+e-o,(h>0||i(h)<v)&&(n.left+=u+f+e))},top:function(n,t){var r=t.within,y=r.offset.top+r.scrollTop,a=r.height,o=r.isWindow?r.scrollTop:r.offset.top,v=n.top-t.collisionPosition.marginTop,s=v-o,h=v+t.collisionHeight-a-o,p=t.my[1]==="top",u=p?-t.elemHeight:t.my[1]==="bottom"?t.elemHeight:0,f=t.at[1]==="top"?t.targetHeight:t.at[1]==="bottom"?-t.targetHeight:0,e=-2*t.offset[1],c,l;s<0?(l=n.top+u+f+e+t.collisionHeight-a-y,n.top+u+f+e>s&&(l<0||l<i(s))&&(n.top+=u+f+e)):h>0&&(c=n.top-t.collisionPosition.marginTop+u+f+e-o,n.top+u+f+e>h&&(c>0||i(c)<h)&&(n.top+=u+f+e))}},flipfit:{left:function(){n.ui.position.flip.left.apply(this,arguments);n.ui.position.fit.left.apply(this,arguments)},top:function(){n.ui.position.flip.top.apply(this,arguments);n.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,r,u,f,e=document.getElementsByTagName("body")[0],o=document.createElement("div");t=document.createElement(e?"div":"body");r={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};e&&n.extend(r,{position:"absolute",left:"-1000px",top:"-1000px"});for(f in r)t.style[f]=r[f];t.appendChild(o);i=e||document.documentElement;i.insertBefore(t,i.firstChild);o.style.cssText="position: absolute; left: 10.7432222px;";u=n(o).offset().left;n.support.offsetFractions=u>10&&u<11;t.innerHTML="";i.removeChild(t)}()}(jQuery),jQuery(function(n){n.datepicker.setDefaults(n.datepicker.regional[""])}),jQuery(function(n){n.datepicker.regional.sv={closeText:"Stäng",prevText:"&laquo;Förra",nextText:"Nästa&raquo;",currentText:"Idag",monthNames:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNamesShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayNames:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],dayNamesMin:["Sö","Må","Ti","On","To","Fr","Lö"],weekHeader:"Ve",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""};n.datepicker.setDefaults(n.datepicker.regional.sv)}),function(n){var i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t={array:function(n){for(var i=["["],e,f,o=n.length,r,u=0;u<o;u+=1)r=n[u],f=t[typeof r],f&&(r=f(r),typeof r=="string"&&(e&&(i[i.length]=","),i[i.length]=r,e=!0));return i[i.length]="]",i.join("")},boolean:function(n){return String(n)},"null":function(){return"null"},number:function(n){return isFinite(n)?String(n):"null"},object:function(n){if(n){if(n instanceof Array)return t.array(n);var i=["{"],e,u,f,r;for(f in n)r=n[f],u=t[typeof r],u&&(r=u(r),typeof r=="string"&&(e&&(i[i.length]=","),i.push(t.string(f),":",r),e=!0));return i[i.length]="}",i.join("")}return"null"},string:function(n){return/["\\\x00-\x1f]/.test(n)&&(n=n.replace(/([\x00-\x1f\\"])/g,function(n,t){var r=i[t];return r?r:(r=t.charCodeAt(),"\\u00"+Math.floor(r/16).toString(16)+(r%16).toString(16))})),'"'+n+'"'}};n.altToJSON=function(n){var i=isNaN(n)?t[typeof n]:t.number;if(i)return i(n)};n.altParseJSON=function(v,safe){return(safe===undefined&&(safe=n.altParseJSON.safe),safe&&!/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/.test(v))?undefined:eval("("+v+")")};n.altParseJSON.safe=!1}(jQuery),Function.prototype.bind=function(n){var t=this;return function(){return t.apply(n,arguments)}},this.JSON||(JSON=function(){function t(n){return n<10?"0"+n:n}function n(t,r){var e,u,f,s,h=/["\\\x00-\x1f\x7f-\x9f]/g,o;switch(typeof t){case"string":return h.test(t)?'"'+t.replace(h,function(n){var t=i[n];return t?t:(t=n.charCodeAt(),"\\u00"+Math.floor(t/16).toString(16)+(t%16).toString(16))})+'"':'"'+t+'"';case"number":return isFinite(t)?String(t):"null";case"boolean":case"null":return String(t);case"object":if(!t)return"null";if(typeof t.toJSON=="function")return n(t.toJSON());if(e=[],typeof t.length=="number"&&!t.propertyIsEnumerable("length")){for(s=t.length,u=0;u<s;u+=1)e.push(n(t[u],r)||"null");return"["+e.join(",")+"]"}if(r)for(s=r.length,u=0;u<s;u+=1)f=r[u],typeof f=="string"&&(o=n(t[f],r),o&&e.push(n(f)+":"+o));else for(f in t)typeof f=="string"&&(o=n(t[f],r),o&&e.push(n(f)+":"+o));return"{"+e.join(",")+"}"}}Date.prototype.toJSON=function(){return this.getUTCFullYear()+"-"+t(this.getUTCMonth()+1)+"-"+t(this.getUTCDate())+"T"+t(this.getUTCHours())+":"+t(this.getUTCMinutes())+":"+t(this.getUTCSeconds())+"Z"};var i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return{stringify:n,parse:function(text,filter){function walk(n,t){var i,r;if(t&&typeof t=="object")for(i in t)Object.prototype.hasOwnProperty.apply(t,[i])&&(r=walk(i,t[i]),r!==undefined&&(t[i]=r));return filter(n,t)}var j;if(/^[\],:{}\s]*$/.test(text.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof filter=="function"?walk("",j):j;throw new SyntaxError("parseJSON");}}}()),Swiper=function(n,t){function o(n,t){return document.querySelectorAll?(t||document).querySelectorAll(n):jQuery(n,t)}function f(){var n=l-u;return t.freeMode&&(n=l-u),t.slidesPerView>i.slides.length&&(n=0),n<0&&(n=0),n}function ti(){function u(n){var r=new Image;r.onload=function(){if(i.imagesLoaded++,i.imagesLoaded==i.imagesToLoad.length&&(i.reInit(),t.onImagesReady))t.onImagesReady(i)};r.src=n}var n=i.h.addEventListener,r;if(i.browser.ie10?(n(i.wrapper,i.touchEvents.touchStart,v),n(document,i.touchEvents.touchMove,y),n(document,i.touchEvents.touchEnd,p)):(i.support.touch&&(n(i.wrapper,"touchstart",v),n(i.wrapper,"touchmove",y),n(i.wrapper,"touchend",p)),t.simulateTouch&&(n(i.wrapper,"mousedown",v),n(document,"mousemove",y),n(document,"mouseup",p))),t.autoResize&&n(window,"resize",i.resizeFix),lt(),i._wheelEvent=!1,t.mousewheelControl){document.onmousewheel!==undefined&&(i._wheelEvent="mousewheel");try{WheelEvent("wheel");i._wheelEvent="wheel"}catch(f){}i._wheelEvent||(i._wheelEvent="DOMMouseScroll");i._wheelEvent&&n(i.container,i._wheelEvent,yt)}if(t.keyboardControl&&n(document,"keydown",vt),t.updateOnImagesReady)for(i.imagesToLoad=o("img",i.container),r=0;r<i.imagesToLoad.length;r++)u(i.imagesToLoad[r].getAttribute("src"))}function lt(){var r=i.h.addEventListener,n,u,f;if(t.preventLinks)for(u=o("a",i.container),n=0;n<u.length;n++)r(u[n],"click",kt);if(t.releaseFormElements)for(f=o("input, textarea, select",i.container),n=0;n<f.length;n++)r(f[n],i.touchEvents.touchStart,dt,!0);if(t.onSlideClick)for(n=0;n<i.slides.length;n++)r(i.slides[n],"click",pt);if(t.onSlideTouch)for(n=0;n<i.slides.length;n++)r(i.slides[n],i.touchEvents.touchStart,wt)}function at(){var r=i.h.removeEventListener,n,u,f;if(t.onSlideClick)for(n=0;n<i.slides.length;n++)r(i.slides[n],"click",pt);if(t.onSlideTouch)for(n=0;n<i.slides.length;n++)r(i.slides[n],i.touchEvents.touchStart,wt);if(t.releaseFormElements)for(u=o("input, textarea, select",i.container),n=0;n<u.length;n++)r(u[n],i.touchEvents.touchStart,dt,!0);if(t.preventLinks)for(f=o("a",i.container),n=0;n<f.length;n++)r(f[n],"click",kt)}function vt(n){var t=n.keyCode||n.charCode,e,f;if(t==37||t==39||t==38||t==40){var o=!1,u=i.h.getOffset(i.container),s=i.h.windowScroll().left,h=i.h.windowScroll().top,l=i.h.windowWidth(),a=i.h.windowHeight(),c=[[u.left,u.top],[u.left+i.width,u.top],[u.left,u.top+i.height],[u.left+i.width,u.top+i.height]];for(e=0;e<c.length;e++)f=c[e],f[0]>=s&&f[0]<=s+l&&f[1]>=h&&f[1]<=h+a&&(o=!0);if(!o)return}r?((t==37||t==39)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),t==39&&i.swipeNext(),t==37&&i.swipePrev()):((t==38||t==40)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),t==40&&i.swipeNext(),t==38&&i.swipePrev())}function yt(n){var e=i._wheelEvent,u,r;return n.detail?u=-n.detail:e=="mousewheel"?u=n.wheelDelta:e=="DOMMouseScroll"?u=-n.detail:e=="wheel"&&(u=Math.abs(n.deltaX)>Math.abs(n.deltaY)?-n.deltaX:-n.deltaY),t.freeMode?(r=i.getWrapperTranslate()+u,r>0&&(r=0),r<-f()&&(r=-f()),i.setWrapperTransition(0),i.setWrapperTranslate(r),i.updateActiveSlide(r)):u<0?i.swipeNext():i.swipePrev(),t.autoplay&&i.stopAutoplay(!0),n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function pt(n){if(i.allowSlideClick){bt(n);t.onSlideClick(i,n)}}function wt(n){bt(n);t.onSlideTouch(i,n)}function bt(n){if(n.currentTarget)i.clickedSlide=n.currentTarget;else{var r=n.srcElement;do if(r.className.indexOf(t.slideClass)>-1)break;while(r=r.parentNode);i.clickedSlide=r}i.clickedSlideIndex=i.slides.indexOf(i.clickedSlide);i.clickedSlideLoopIndex=i.clickedSlideIndex-(i.loopedSlides||0)}function kt(n){if(!i.allowLinks)return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function dt(n){return n.stopPropagation?n.stopPropagation():n.returnValue=!1,!1}function v(n){if((t.preventLinks&&(i.allowLinks=!0),i.isTouched||t.onlyExternal)||t.noSwiping&&(n.target||n.srcElement)&&ri(n.target||n.srcElement))return!1;if(g=!1,i.isTouched=!0,h=n.type=="touchstart",!h||n.targetTouches.length==1){i.callPlugins("onTouchStartBegin");h||(n.preventDefault?n.preventDefault():n.returnValue=!1);var u=h?n.targetTouches[0].pageX:n.pageX||n.clientX,f=h?n.targetTouches[0].pageY:n.pageY||n.clientY;if(i.touches.startX=i.touches.currentX=u,i.touches.startY=i.touches.currentY=f,i.touches.start=i.touches.current=r?u:f,i.setWrapperTransition(0),i.positions.start=i.positions.current=i.getWrapperTranslate(),i.setWrapperTranslate(i.positions.start),i.times.start=(new Date).getTime(),c=undefined,t.moveStartThreshold>0&&(ct=!1),t.onTouchStart)t.onTouchStart(i);i.callPlugins("onTouchStartEnd")}}function y(n){var o,s,e;if(i.isTouched&&!t.onlyExternal&&(!h||n.type!="mousemove")){if(o=h?n.targetTouches[0].pageX:n.pageX||n.clientX,s=h?n.targetTouches[0].pageY:n.pageY||n.clientY,typeof c=="undefined"&&r&&(c=!!(c||Math.abs(s-i.touches.startY)>Math.abs(o-i.touches.startX))),typeof c!="undefined"||r||(c=!!(c||Math.abs(s-i.touches.startY)<Math.abs(o-i.touches.startX))),c){i.isTouched=!1;return}if(n.assignedToSwiper){i.isTouched=!1;return}if(n.assignedToSwiper=!0,t.preventLinks&&(i.allowLinks=!1),t.onSlideClick&&(i.allowSlideClick=!1),t.autoplay&&i.stopAutoplay(!0),!h||n.touches.length==1){if(!i.isMoved&&(i.callPlugins("onTouchMoveStart"),t.loop&&(i.fixLoop(),i.positions.start=i.getWrapperTranslate()),t.onTouchMoveStart))t.onTouchMoveStart(i);if(i.isMoved=!0,n.preventDefault?n.preventDefault():n.returnValue=!1,i.touches.current=r?o:s,i.positions.current=(i.touches.current-i.touches.start)*t.touchRatio+i.positions.start,i.positions.current>0&&t.onResistanceBefore)t.onResistanceBefore(i,i.positions.current);if(i.positions.current<-f()&&t.onResistanceAfter)t.onResistanceAfter(i,Math.abs(i.positions.current+f()));if(t.resistance&&t.resistance!="100%"&&(i.positions.current>0&&(e=1-i.positions.current/u/2,i.positions.current=e<.5?u/2:i.positions.current*e),i.positions.current<-f())){var l=(i.touches.current-i.touches.start)*t.touchRatio+(f()+i.positions.start),e=(u+l)/u,a=i.positions.current-l*(1-e)/2,v=-f()-u/2;i.positions.current=a<v||e<=0?v:a}if(t.resistance&&t.resistance=="100%"&&(i.positions.current>0&&!(t.freeMode&&!t.freeModeFluid)&&(i.positions.current=0),i.positions.current<-f()&&!(t.freeMode&&!t.freeModeFluid)&&(i.positions.current=-f())),!t.followFinger)return;if(t.moveStartThreshold?Math.abs(i.touches.current-i.touches.start)>t.moveStartThreshold||ct?(ct=!0,i.setWrapperTranslate(i.positions.current)):i.positions.current=i.positions.start:i.setWrapperTranslate(i.positions.current),(t.freeMode||t.watchActiveIndex)&&i.updateActiveSlide(i.positions.current),t.grabCursor&&(i.container.style.cursor="move",i.container.style.cursor="grabbing",i.container.style.cursor="-moz-grabbin",i.container.style.cursor="-webkit-grabbing"),nt||(nt=i.touches.current),ft||(ft=(new Date).getTime()),i.velocity=(i.touches.current-nt)/((new Date).getTime()-ft)/2,Math.abs(i.touches.current-nt)<2&&(i.velocity=0),nt=i.touches.current,ft=(new Date).getTime(),i.callPlugins("onTouchMoveEnd"),t.onTouchMove)t.onTouchMove(i);return!1}}}function p(){var o,s,nt,k,d,a;if(c&&i.swipeReset(),!t.onlyExternal&&i.isTouched){i.isTouched=!1;t.grabCursor&&(i.container.style.cursor="move",i.container.style.cursor="grab",i.container.style.cursor="-moz-grab",i.container.style.cursor="-webkit-grab");i.positions.current||i.positions.current===0||(i.positions.current=i.positions.start);t.followFinger&&i.setWrapperTranslate(i.positions.current);i.times.end=(new Date).getTime();i.touches.diff=i.touches.current-i.touches.start;i.touches.abs=Math.abs(i.touches.diff);i.positions.diff=i.positions.current-i.positions.start;i.positions.abs=Math.abs(i.positions.diff);var tt=i.positions.diff,h=i.positions.abs,l=i.times.end-i.times.start;if(h<5&&l<300&&i.allowLinks==!1&&(t.freeMode||h==0||i.swipeReset(),t.preventLinks&&(i.allowLinks=!0),t.onSlideClick&&(i.allowSlideClick=!0)),setTimeout(function(){t.preventLinks&&(i.allowLinks=!0);t.onSlideClick&&(i.allowSlideClick=!0)},100),o=f(),!i.isMoved&&t.freeMode){if(i.isMoved=!1,t.onTouchEnd)t.onTouchEnd(i);i.callPlugins("onTouchEnd");return}if(!i.isMoved||i.positions.current>0||i.positions.current<-o){if(i.swipeReset(),t.onTouchEnd)t.onTouchEnd(i);i.callPlugins("onTouchEnd");return}if(i.isMoved=!1,t.freeMode){if(t.freeModeFluid){var y=1e3*t.momentumRatio,it=i.velocity*y,n=i.positions.current+it,p=!1,b,v=Math.abs(i.velocity)*20*t.momentumBounceRatio;n<-o&&(t.momentumBounce&&i.support.transitions?(n+o<-v&&(n=-o-v),b=-o,p=!0,g=!0):n=-o);n>0&&(t.momentumBounce&&i.support.transitions?(n>v&&(n=v),b=0,p=!0,g=!0):n=0);i.velocity!=0&&(y=Math.abs((n-i.positions.current)/i.velocity));i.setWrapperTranslate(n);i.setWrapperTransition(y);t.momentumBounce&&p&&i.wrapperTransitionEnd(function(){if(g){if(t.onMomentumBounce)t.onMomentumBounce(i);i.setWrapperTranslate(b);i.setWrapperTransition(300)}});i.updateActiveSlide(n)}if((!t.freeModeFluid||l>=300)&&i.updateActiveSlide(i.positions.current),t.onTouchEnd)t.onTouchEnd(i);i.callPlugins("onTouchEnd");return}if(w=tt<0?"toNext":"toPrev",w=="toNext"&&l<=300&&(h<30||!t.shortSwipes?i.swipeReset():i.swipeNext(!0)),w=="toPrev"&&l<=300&&(h<30||!t.shortSwipes?i.swipeReset():i.swipePrev(!0)),s=0,t.slidesPerView=="auto"){for(nt=Math.abs(i.getWrapperTranslate()),k=0,a=0;a<i.slides.length;a++)if(d=r?i.slides[a].getWidth(!0):i.slides[a].getHeight(!0),k+=d,k>nt){s=d;break}s>u&&(s=u)}else s=e*t.slidesPerView;if(w=="toNext"&&l>300&&(h>=s*.5?i.swipeNext(!0):i.swipeReset()),w=="toPrev"&&l>300&&(h>=s*.5?i.swipePrev(!0):i.swipeReset()),t.onTouchEnd)t.onTouchEnd(i);i.callPlugins("onTouchEnd")}}function ri(n){var i=!1;do n.className.indexOf(t.noSwipingClass)>-1&&(i=!0),n=n.parentElement;while(!i&&n.parentElement&&n.className.indexOf(t.wrapperClass)==-1);return!i&&n.className.indexOf(t.wrapperClass)>-1&&n.className.indexOf(t.noSwipingClass)>-1&&(i=!0),i}function et(n,r,u){function h(){if(f+=c,s=o=="toNext"?f>n:f<n,s)i.setWrapperTranslate(Math.round(f)),i._DOMAnimating=!0,window.setTimeout(function(){h()},1e3/60);else{if(t.onSlideChangeEnd)t.onSlideChangeEnd(i);i.setWrapperTranslate(n);i._DOMAnimating=!1}}var e=r=="to"&&u.speed>=0?u.speed:t.speed;if(i.support.transitions||!t.DOMAnimation)i.setWrapperTranslate(n),i.setWrapperTransition(e);else{var f=i.getWrapperTranslate(),c=Math.ceil((n-f)/e*(1e3/60)),o=f>n?"toNext":"toPrev",s=o=="toNext"?f>n:f<n;if(i._DOMAnimating)return;h()}if(i.updateActiveSlide(n),t.onSlideNext&&r=="next")t.onSlideNext(i,n);if(t.onSlidePrev&&r=="prev")t.onSlidePrev(i,n);if(t.onSlideReset&&r=="reset")t.onSlideReset(i,n);(r=="next"||r=="prev"||r=="to"&&u.runCallbacks==!0)&&ui()}function ui(){if(i.callPlugins("onSlideChangeStart"),t.onSlideChangeStart)if(t.queueStartCallbacks&&i.support.transitions){if(i._queueStartCallbacks)return;i._queueStartCallbacks=!0;t.onSlideChangeStart(i);i.wrapperTransitionEnd(function(){i._queueStartCallbacks=!1})}else t.onSlideChangeStart(i);if(t.onSlideChangeEnd)if(i.support.transitions)if(t.queueEndCallbacks){if(i._queueEndCallbacks)return;i._queueEndCallbacks=!0;i.wrapperTransitionEnd(t.onSlideChangeEnd)}else i.wrapperTransitionEnd(t.onSlideChangeEnd);else t.DOMAnimation||setTimeout(function(){t.onSlideChangeEnd(i)},10)}function gt(){for(var t=i.paginationButtons,n=0;n<t.length;n++)i.h.removeEventListener(t[n],"click",ni)}function fi(){for(var t=i.paginationButtons,n=0;n<t.length;n++)i.h.addEventListener(t[n],"click",ni)}function ni(n){for(var r,f=n.target||n.srcElement,u=i.paginationButtons,t=0;t<u.length;t++)f===u[t]&&(r=t);i.swipeTo(r)}function ei(){if(i.calcSlides(),t.loader.slides.length>0&&i.slides.length==0&&i.loadSlides(),t.loop&&i.createLoop(),i.init(),ti(),t.pagination&&i.createPagination(!0),t.loop||t.initialSlide>0?i.swipeTo(t.initialSlide,0,!1):i.updateActiveSlide(0),t.autoplay&&i.startAutoplay(),i.centerIndex=i.activeIndex,t.onSwiperCreated)t.onSwiperCreated(this);i.callPlugins("onSwiperCreated")}var ot,i,tt,e,l,w,c,u,b,s,it,r,a,st,rt,k,ut,ht,ii,d,h,ct,g,nt,ft;if((document.body.__defineGetter__&&HTMLElement&&(ot=HTMLElement.prototype,ot.__defineGetter__&&ot.__defineGetter__("outerHTML",function(){return(new XMLSerializer).serializeToString(this)})),window.getComputedStyle||(window.getComputedStyle=function(n){return this.el=n,this.getPropertyValue=function(t){var i=/(\-([a-z]){1})/g;return t==="float"&&(t="styleFloat"),i.test(t)&&(t=t.replace(i,function(){return arguments[2].toUpperCase()})),n.currentStyle[t]?n.currentStyle[t]:null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){for(var i=t||0,r=this.length;i<r;i++)if(this[i]===n)return i;return-1}),document.querySelectorAll||window.jQuery)&&typeof n!="undefined"&&(n.nodeType||o(n).length!==0)){i=this;i.touches={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,diff:0,abs:0};i.positions={start:0,abs:0,diff:0,current:0};i.times={start:0,end:0};i.id=(new Date).getTime();i.container=n.nodeType?n:o(n)[0];i.isTouched=!1;i.isMoved=!1;i.activeIndex=0;i.centerIndex=0;i.activeLoaderIndex=0;i.activeLoopIndex=0;i.previousIndex=null;i.velocity=0;i.snapGrid=[];i.slidesGrid=[];i.imagesToLoad=[];i.imagesLoaded=0;i.wrapperLeft=0;i.wrapperRight=0;i.wrapperTop=0;i.wrapperBottom=0;b={mode:"horizontal",touchRatio:1,speed:300,freeMode:!1,freeModeFluid:!1,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,slidesPerView:1,slidesPerGroup:1,simulateTouch:!0,followFinger:!0,shortSwipes:!0,moveStartThreshold:!1,autoplay:!1,onlyExternal:!1,createPagination:!0,pagination:!1,paginationElement:"span",paginationClickable:!1,paginationAsRange:!0,resistance:!0,scrollContainer:!1,preventLinks:!0,noSwiping:!1,noSwipingClass:"swiper-no-swiping",initialSlide:0,keyboardControl:!1,mousewheelControl:!1,mousewheelDebounce:600,useCSS3Transforms:!0,autoplay:!1,autoplayDisableOnInteraction:!1,loop:!1,loopAdditionalSlides:0,calculateHeight:!1,updateOnImagesReady:!0,releaseFormElements:!0,watchActiveIndex:!1,visibilityFullFit:!1,offsetPxBefore:0,offsetPxAfter:0,offsetSlidesBefore:0,offsetSlidesAfter:0,centeredSlides:!1,queueStartCallbacks:!1,queueEndCallbacks:!1,autoResize:!0,resizeReInit:!1,DOMAnimation:!0,loader:{slides:[],slidesHTMLType:"inner",surroundGroups:1,logic:"reload",loadAllSlides:!1},slideElement:"div",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",wrapperClass:"swiper-wrapper",paginationElementClass:"swiper-pagination-switch",paginationActiveClass:"swiper-active-switch",paginationVisibleClass:"swiper-visible-switch"};t=t||{};for(s in b)if(s in t&&typeof t[s]=="object")for(it in b[s])it in t[s]||(t[s][it]=b[s][it]);else s in t||(t[s]=b[s]);for(i.params=t,t.scrollContainer&&(t.freeMode=!0,t.freeModeFluid=!0),t.loop&&(t.resistance="100%"),r=t.mode==="horizontal",i.touchEvents={touchStart:i.support.touch||!t.simulateTouch?"touchstart":i.browser.ie10?"MSPointerDown":"mousedown",touchMove:i.support.touch||!t.simulateTouch?"touchmove":i.browser.ie10?"MSPointerMove":"mousemove",touchEnd:i.support.touch||!t.simulateTouch?"touchend":i.browser.ie10?"MSPointerUp":"mouseup"},a=i.container.childNodes.length-1;a>=0;a--)if(i.container.childNodes[a].className)for(st=i.container.childNodes[a].className.split(" "),rt=0;rt<st.length;rt++)st[rt]===t.wrapperClass&&(tt=i.container.childNodes[a]);i.wrapper=tt;i._extendSwiperSlide=function(n){return n.append=function(){return t.loop?(n.insertAfter(i.slides.length-i.loopedSlides),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):i.wrapper.appendChild(n),i.reInit(),n},n.prepend=function(){return t.loop?(i.wrapper.insertBefore(n,i.slides[i.loopedSlides]),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):i.wrapper.insertBefore(n,i.wrapper.firstChild),i.reInit(),n},n.insertAfter=function(r){if(typeof r=="undefined")return!1;var u;return t.loop?(u=i.slides[r+1+i.loopedSlides],i.wrapper.insertBefore(n,u),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):(u=i.slides[r+1],i.wrapper.insertBefore(n,u)),i.reInit(),n},n.clone=function(){return i._extendSwiperSlide(n.cloneNode(!0))},n.remove=function(){i.wrapper.removeChild(n);i.reInit()},n.html=function(t){return typeof t=="undefined"?n.innerHTML:(n.innerHTML=t,n)},n.index=function(){for(var r,t=i.slides.length-1;t>=0;t--)n===i.slides[t]&&(r=t);return r},n.isActive=function(){return n.index()===i.activeIndex?!0:!1},n.swiperSlideDataStorage||(n.swiperSlideDataStorage={}),n.getData=function(t){return n.swiperSlideDataStorage[t]},n.setData=function(t,i){return n.swiperSlideDataStorage[t]=i,n},n.data=function(t,i){return i?(n.setAttribute("data-"+t,i),n):n.getAttribute("data-"+t)},n.getWidth=function(t){return i.h.getWidth(n,t)},n.getHeight=function(t){return i.h.getHeight(n,t)},n.getOffset=function(){return i.h.getOffset(n)},n};i.calcSlides=function(n){var e=i.slides?i.slides.length:!1,r,o,f,u;for(i.slides=[],i.displaySlides=[],r=0;r<i.wrapper.childNodes.length;r++)if(i.wrapper.childNodes[r].className)for(o=i.wrapper.childNodes[r].className,f=o.split(" "),u=0;u<f.length;u++)f[u]===t.slideClass&&i.slides.push(i.wrapper.childNodes[r]);for(r=i.slides.length-1;r>=0;r--)i._extendSwiperSlide(i.slides[r]);e!==!1&&(e!==i.slides.length||n)&&(at(),lt(),i.updateActiveSlide(),i.params.pagination&&i.createPagination(),i.callPlugins("numberOfSlidesChanged"))};i.createSlide=function(n,r,u){var r=r||i.params.slideClass,u=u||t.slideElement,f=document.createElement(u);return f.innerHTML=n||"",f.className=r,i._extendSwiperSlide(f)};i.appendSlide=function(n,t,r){if(n)return n.nodeType?i._extendSwiperSlide(n).append():i.createSlide(n,t,r).append()};i.prependSlide=function(n,t,r){if(n)return n.nodeType?i._extendSwiperSlide(n).prepend():i.createSlide(n,t,r).prepend()};i.insertSlideAfter=function(n,t,r,u){return typeof n=="undefined"?!1:t.nodeType?i._extendSwiperSlide(t).insertAfter(n):i.createSlide(t,r,u).insertAfter(n)};i.removeSlide=function(n){if(i.slides[n]){if(t.loop){if(!i.slides[n+i.loopedSlides])return!1;i.slides[n+i.loopedSlides].remove();i.removeLoopedSlides();i.calcSlides();i.createLoop()}else i.slides[n].remove();return!0}return!1};i.removeLastSlide=function(){return i.slides.length>0?(t.loop?(i.slides[i.slides.length-1-i.loopedSlides].remove(),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):i.slides[i.slides.length-1].remove(),!0):!1};i.removeAllSlides=function(){for(var n=i.slides.length-1;n>=0;n--)i.slides[n].remove()};i.getSlide=function(n){return i.slides[n]};i.getLastSlide=function(){return i.slides[i.slides.length-1]};i.getFirstSlide=function(){return i.slides[0]};i.activeSlide=function(){return i.slides[i.activeIndex]};k=[];for(ut in i.plugins)t[ut]&&(ht=i.plugins[ut](i,t[ut]),ht&&k.push(ht));i.callPlugins=function(n,t){t||(t={});for(var i=0;i<k.length;i++)n in k[i]&&k[i][n](t)};i.browser.ie10&&!t.onlyExternal&&i.wrapper.classList.add("swiper-wp8-"+(r?"horizontal":"vertical"));t.freeMode&&(i.container.className+=" swiper-free-mode");i.initialized=!1;i.init=function(n,f){var nt=i.h.getWidth(i.container),tt=i.h.getHeight(i.container),o,k,d,g,b,v,y,h,a,p,w,c,s;if(nt!==i.width||tt!==i.height||n){if(i.width=nt,i.height=tt,u=r?nt:tt,o=i.wrapper,n&&i.calcSlides(f),t.slidesPerView==="auto"){for(k=0,d=0,t.slidesOffset>0&&(o.style.paddingLeft="",o.style.paddingRight="",o.style.paddingTop="",o.style.paddingBottom=""),o.style.width="",o.style.height="",t.offsetPxBefore>0&&(r?i.wrapperLeft=t.offsetPxBefore:i.wrapperTop=t.offsetPxBefore),t.offsetPxAfter>0&&(r?i.wrapperRight=t.offsetPxAfter:i.wrapperBottom=t.offsetPxAfter),t.centeredSlides&&(r?(i.wrapperLeft=(u-this.slides[0].getWidth(!0))/2,i.wrapperRight=(u-i.slides[i.slides.length-1].getWidth(!0))/2):(i.wrapperTop=(u-i.slides[0].getHeight(!0))/2,i.wrapperBottom=(u-i.slides[i.slides.length-1].getHeight(!0))/2)),r?(i.wrapperLeft>=0&&(o.style.paddingLeft=i.wrapperLeft+"px"),i.wrapperRight>=0&&(o.style.paddingRight=i.wrapperRight+"px")):(i.wrapperTop>=0&&(o.style.paddingTop=i.wrapperTop+"px"),i.wrapperBottom>=0&&(o.style.paddingBottom=i.wrapperBottom+"px")),c=0,g=0,i.snapGrid=[],i.slidesGrid=[],y=0,s=0;s<i.slides.length;s++){if(p=i.slides[s].getWidth(!0),h=i.slides[s].getHeight(!0),t.calculateHeight&&(y=Math.max(y,h)),b=r?p:h,t.centeredSlides){var it=s===i.slides.length-1?0:i.slides[s+1].getWidth(!0),rt=s===i.slides.length-1?0:i.slides[s+1].getHeight(!0),ut=r?it:rt;if(b>u){for(v=0;v<=Math.floor(b/(u+i.wrapperLeft));v++)v===0?i.snapGrid.push(c+i.wrapperLeft):i.snapGrid.push(c+i.wrapperLeft+u*v);i.slidesGrid.push(c+i.wrapperLeft)}else i.snapGrid.push(g),i.slidesGrid.push(g);g+=b/2+ut/2}else{if(b>u)for(v=0;v<=Math.floor(b/u);v++)i.snapGrid.push(c+u*v);else i.snapGrid.push(c);i.slidesGrid.push(c)}c+=b;k+=p;d+=h}t.calculateHeight&&(i.height=y);r?(l=k+i.wrapperRight+i.wrapperLeft,o.style.width=k+"px",o.style.height=i.height+"px"):(l=d+i.wrapperTop+i.wrapperBottom,o.style.width=i.width+"px",o.style.height=d+"px")}else if(t.scrollContainer)o.style.width="",o.style.height="",w=i.slides[0].getWidth(!0),a=i.slides[0].getHeight(!0),l=r?w:a,o.style.width=w+"px",o.style.height=a+"px",e=r?w:a;else{if(t.calculateHeight){for(y=0,a=0,r||(i.container.style.height=""),o.style.height="",s=0;s<i.slides.length;s++)i.slides[s].style.height="",y=Math.max(i.slides[s].getHeight(!0),y),r||(a+=i.slides[s].getHeight(!0));h=y;i.height=h;r?a=h:(u=h,i.container.style.height=u+"px")}else h=r?i.height:i.height/t.slidesPerView,a=r?i.height:i.slides.length*h;for(p=r?i.width/t.slidesPerView:i.width,w=r?i.slides.length*p:i.width,e=r?p:h,t.offsetSlidesBefore>0&&(r?i.wrapperLeft=e*t.offsetSlidesBefore:i.wrapperTop=e*t.offsetSlidesBefore),t.offsetSlidesAfter>0&&(r?i.wrapperRight=e*t.offsetSlidesAfter:i.wrapperBottom=e*t.offsetSlidesAfter),t.offsetPxBefore>0&&(r?i.wrapperLeft=t.offsetPxBefore:i.wrapperTop=t.offsetPxBefore),t.offsetPxAfter>0&&(r?i.wrapperRight=t.offsetPxAfter:i.wrapperBottom=t.offsetPxAfter),t.centeredSlides&&(r?(i.wrapperLeft=(u-e)/2,i.wrapperRight=(u-e)/2):(i.wrapperTop=(u-e)/2,i.wrapperBottom=(u-e)/2)),r?(i.wrapperLeft>0&&(o.style.paddingLeft=i.wrapperLeft+"px"),i.wrapperRight>0&&(o.style.paddingRight=i.wrapperRight+"px")):(i.wrapperTop>0&&(o.style.paddingTop=i.wrapperTop+"px"),i.wrapperBottom>0&&(o.style.paddingBottom=i.wrapperBottom+"px")),l=r?w+i.wrapperRight+i.wrapperLeft:a+i.wrapperTop+i.wrapperBottom,o.style.width=w+"px",o.style.height=a+"px",c=0,i.snapGrid=[],i.slidesGrid=[],s=0;s<i.slides.length;s++)i.snapGrid.push(c),i.slidesGrid.push(c),c+=e,i.slides[s].style.width=p+"px",i.slides[s].style.height=h+"px"}if(i.initialized){if(i.callPlugins("onInit"),t.onInit)t.onInit(i)}else if(i.callPlugins("onFirstInit"),t.onFirstInit)t.onFirstInit(i);i.initialized=!0}};i.reInit=function(n){i.init(!0,n)};i.resizeFix=function(n){i.callPlugins("beforeResizeFix");i.init(t.resizeReInit||n);t.freeMode?i.getWrapperTranslate()<-f()&&(i.setWrapperTransition(0),i.setWrapperTranslate(-f())):i.swipeTo(t.loop?i.activeLoopIndex:i.activeIndex,0,!1);i.callPlugins("afterResizeFix")};i.destroy=function(){var n=i.h.removeEventListener;i.browser.ie10?(n(i.wrapper,i.touchEvents.touchStart,v),n(document,i.touchEvents.touchMove,y),n(document,i.touchEvents.touchEnd,p)):(i.support.touch&&(n(i.wrapper,"touchstart",v),n(i.wrapper,"touchmove",y),n(i.wrapper,"touchend",p)),t.simulateTouch&&(n(i.wrapper,"mousedown",v),n(document,"mousemove",y),n(document,"mouseup",p)));t.autoResize&&n(window,"resize",i.resizeFix);at();t.paginationClickable&&gt();t.mousewheelControl&&i._wheelEvent&&n(i.container,i._wheelEvent,yt);t.keyboardControl&&n(document,"keydown",vt);t.autoplay&&i.stopAutoplay();i.callPlugins("onDestroy");i=null};ii=!0;t.grabCursor&&(d=i.container.style,d.cursor="move",d.cursor="grab",d.cursor="-moz-grab",d.cursor="-webkit-grab");i.allowSlideClick=!0;i.allowLinks=!0;h=!1;g=!0;i.swipeNext=function(n){var u,r,o,s;if(!n&&t.loop&&i.fixLoop(),!n&&t.autoplay&&i.stopAutoplay(!0),i.callPlugins("onSwipeNext"),u=i.getWrapperTranslate(),r=u,t.slidesPerView=="auto"){for(o=0;o<i.snapGrid.length;o++)if(-u>=i.snapGrid[o]&&-u<i.snapGrid[o+1]){r=-i.snapGrid[o+1];break}}else s=e*t.slidesPerGroup,r=-(Math.floor(Math.abs(u)/Math.floor(s))*s+s);return(r<-f()&&(r=-f()),r==u)?!1:(et(r,"next"),!0)};i.swipePrev=function(n){var f,r,u,o;if(!n&&t.loop&&i.fixLoop(),!n&&t.autoplay&&i.stopAutoplay(!0),i.callPlugins("onSwipePrev"),f=Math.ceil(i.getWrapperTranslate()),t.slidesPerView=="auto")for(r=0,u=1;u<i.snapGrid.length;u++){if(-f==i.snapGrid[u]){r=-i.snapGrid[u-1];break}if(-f>i.snapGrid[u]&&-f<i.snapGrid[u+1]){r=-i.snapGrid[u];break}}else o=e*t.slidesPerGroup,r=-(Math.ceil(-f/o)-1)*o;return(r>0&&(r=0),r==f)?!1:(et(r,"prev"),!0)};i.swipeReset=function(){var o;i.callPlugins("onSwipeReset");var r=i.getWrapperTranslate(),s=e*t.slidesPerGroup,n,h=-f();if(t.slidesPerView=="auto"){for(n=0,o=0;o<i.snapGrid.length;o++){if(-r===i.snapGrid[o])return;if(-r>=i.snapGrid[o]&&-r<i.snapGrid[o+1]){n=i.positions.diff>0?-i.snapGrid[o+1]:-i.snapGrid[o];break}}-r>=i.snapGrid[i.snapGrid.length-1]&&(n=-i.snapGrid[i.snapGrid.length-1]);r<=-f()&&(n=-f())}else n=r<0?Math.round(r/s)*s:0;return(t.scrollContainer&&(n=r<0?r:0),n<-f()&&(n=-f()),t.scrollContainer&&u>e&&(n=0),n==r)?!1:(et(n,"reset"),!0)};i.swipeTo=function(n,r,u){var s,o;if(n=parseInt(n,10),i.callPlugins("onSwipeTo",{index:n,speed:r}),t.loop&&(n=n+i.loopedSlides),s=i.getWrapperTranslate(),!(n>i.slides.length-1)&&!(n<0))return(o=t.slidesPerView=="auto"?-i.slidesGrid[n]:-n*e,o<-f()&&(o=-f()),o==s)?!1:(u=u===!1?!1:!0,et(o,"to",{index:n,speed:r,runCallbacks:u}),!0)};i._queueStartCallbacks=!1;i._queueEndCallbacks=!1;i.updateActiveSlide=function(n){var c,f,o,s,h,r,u;if(i.initialized&&i.slides.length!=0){if(i.previousIndex=i.activeIndex,typeof n=="undefined"&&(n=i.getWrapperTranslate()),n>0&&(n=0),t.slidesPerView=="auto"){if(c=0,i.activeIndex=i.slidesGrid.indexOf(-n),i.activeIndex<0){for(r=0;r<i.slidesGrid.length-1;r++)if(-n>i.slidesGrid[r]&&-n<i.slidesGrid[r+1])break;f=Math.abs(i.slidesGrid[r]+n);o=Math.abs(i.slidesGrid[r+1]+n);i.activeIndex=f<=o?r:r+1}}else i.activeIndex=Math[t.visibilityFullFit?"ceil":"round"](-n/e);if(i.activeIndex==i.slides.length&&(i.activeIndex=i.slides.length-1),i.activeIndex<0&&(i.activeIndex=0),i.slides[i.activeIndex]){for(i.calcVisibleSlides(n),s=new RegExp("\\s*"+t.slideActiveClass),h=new RegExp("\\s*"+t.slideVisibleClass),r=0;r<i.slides.length;r++)i.slides[r].className=i.slides[r].className.replace(s,"").replace(h,""),i.visibleSlides.indexOf(i.slides[r])>=0&&(i.slides[r].className+=" "+t.slideVisibleClass);i.slides[i.activeIndex].className+=" "+t.slideActiveClass;t.loop?(u=i.loopedSlides,i.activeLoopIndex=i.activeIndex-u,i.activeLoopIndex>=i.slides.length-u*2&&(i.activeLoopIndex=i.slides.length-u*2-i.activeLoopIndex),i.activeLoopIndex<0&&(i.activeLoopIndex=i.slides.length-u*2+i.activeLoopIndex)):i.activeLoopIndex=i.activeIndex;t.pagination&&i.updatePagination(n)}}};i.createPagination=function(n){var r;if(t.paginationClickable&&i.paginationButtons&&gt(),i.paginationContainer=t.pagination.nodeType?t.pagination:o(t.pagination)[0],t.createPagination){var u="",e=i.slides.length,f=e;for(t.loop&&(f-=i.loopedSlides*2),r=0;r<f;r++)u+="<"+t.paginationElement+' class="'+t.paginationElementClass+'"><\/'+t.paginationElement+">";i.paginationContainer.innerHTML=u}i.paginationButtons=o("."+t.paginationElementClass,i.paginationContainer);n||i.updatePagination();i.callPlugins("onCreatePagination");t.paginationClickable&&fi()};i.updatePagination=function(n){var s,u,h,e,r,f;if(t.pagination&&!(i.slides.length<1)&&(s=o("."+t.paginationActiveClass,i.paginationContainer),s)&&(u=i.paginationButtons,u.length!=0)){for(r=0;r<u.length;r++)u[r].className=t.paginationElementClass;if(h=t.loop?i.loopedSlides:0,t.paginationAsRange){for(i.visibleSlides||i.calcVisibleSlides(n),e=[],r=0;r<i.visibleSlides.length;r++)f=i.slides.indexOf(i.visibleSlides[r])-h,t.loop&&f<0&&(f=i.slides.length-i.loopedSlides*2+f),t.loop&&f>=i.slides.length-i.loopedSlides*2&&(f=i.slides.length-i.loopedSlides*2-f,f=Math.abs(f)),e.push(f);for(r=0;r<e.length;r++)u[e[r]]&&(u[e[r]].className+=" "+t.paginationVisibleClass);t.loop?u[i.activeLoopIndex].className+=" "+t.paginationActiveClass:u[i.activeIndex].className+=" "+t.paginationActiveClass}else t.loop?u[i.activeLoopIndex].className+=" "+t.paginationActiveClass+" "+t.paginationVisibleClass:u[i.activeIndex].className+=" "+t.paginationActiveClass+" "+t.paginationVisibleClass}};i.calcVisibleSlides=function(n){var c=[],f=0,l=0,s=0,h,o;for(r&&i.wrapperLeft>0&&(n=n+i.wrapperLeft),!r&&i.wrapperTop>0&&(n=n+i.wrapperTop),h=0;h<i.slides.length;h++)f+=l,l=t.slidesPerView=="auto"?r?i.h.getWidth(i.slides[h],!0):i.h.getHeight(i.slides[h],!0):e,s=f+l,o=!1,t.visibilityFullFit?(f>=-n&&s<=-n+u&&(o=!0),f<=-n&&s>=-n+u&&(o=!0)):(s>-n&&s<=-n+u&&(o=!0),f>=-n&&f<-n+u&&(o=!0),f<-n&&s>-n+u&&(o=!0)),o&&c.push(i.slides[h]);c.length==0&&(c=[i.slides[i.activeIndex]]);i.visibleSlides=c};i.autoPlayIntervalId=undefined;i.startAutoplay=function(){if(typeof i.autoPlayIntervalId!="undefined")return!1;t.autoplay&&(i.autoPlayIntervalId=setInterval(function(){t.loop?i.swipeNext():i.swipeNext(!0)||i.swipeTo(0)},t.autoplay),i.callPlugins("onAutoplayStart"))};i.stopAutoplay=function(){i.autoPlayIntervalId&&clearInterval(i.autoPlayIntervalId);i.autoPlayIntervalId=undefined;i.callPlugins("onAutoplayStop")};i.loopCreated=!1;i.removeLoopedSlides=function(){if(i.loopCreated)for(var n=0;n<i.slides.length;n++)i.slides[n].getData("looped")===!0&&i.wrapper.removeChild(i.slides[n])};i.createLoop=function(){var f,h,c;if(i.slides.length!=0){i.loopedSlides=t.slidesPerView=="auto"?t.loopedSlides:t.slidesPerView+t.loopAdditionalSlides;i.loopedSlides>i.slides.length&&(i.loopedSlides=i.slides.length);for(var e="",o="",u="",r=i.slides.length,l=Math.floor(i.loopedSlides/r),s=i.loopedSlides%r,n=0;n<l*r;n++)f=n,n>=r&&(h=Math.floor(n/r),f=n-r*h),u+=i.slides[f].outerHTML;for(n=0;n<s;n++)o+=i.slides[n].outerHTML;for(n=r-s;n<r;n++)e+=i.slides[n].outerHTML;for(c=e+u+tt.innerHTML+u+o,tt.innerHTML=c,i.loopCreated=!0,i.calcSlides(),n=0;n<i.slides.length;n++)(n<i.loopedSlides||n>=i.slides.length-i.loopedSlides)&&i.slides[n].setData("looped",!0);i.callPlugins("onCreateLoop")}};i.fixLoop=function(){var n;i.activeIndex<i.loopedSlides?(n=i.slides.length-i.loopedSlides*3+i.activeIndex,i.swipeTo(n,0,!1)):i.activeIndex>i.slides.length-t.slidesPerView*2&&(n=-i.slides.length+i.activeIndex+i.loopedSlides,i.swipeTo(n,0,!1))};i.loadSlides=function(){var u="",r,f,n;for(i.activeLoaderIndex=0,r=t.loader.slides,f=t.loader.loadAllSlides?r.length:t.slidesPerView*(1+t.loader.surroundGroups),n=0;n<f;n++)u+=t.loader.slidesHTMLType=="outer"?r[n]:"<"+t.slideElement+' class="'+t.slideClass+'" data-swiperindex="'+n+'">'+r[n]+"<\/"+t.slideElement+">";i.wrapper.innerHTML=u;i.calcSlides(!0);t.loader.loadAllSlides||i.wrapperTransitionEnd(i.reloadSlides,!0)};i.reloadSlides=function(){var f=t.loader.slides,u=parseInt(i.activeSlide().data("swiperindex"),10),o,h,v,a,c,l,s,n,r;if(!(u<0)&&!(u>f.length-1)){if(i.activeLoaderIndex=u,o=Math.max(0,u-t.slidesPerView*t.loader.surroundGroups),h=Math.min(u+t.slidesPerView*(1+t.loader.surroundGroups)-1,f.length-1),u>0&&(v=-e*(u-o),i.setWrapperTranslate(v),i.setWrapperTransition(0)),t.loader.logic==="reload"){for(i.wrapper.innerHTML="",a="",n=o;n<=h;n++)a+=t.loader.slidesHTMLType=="outer"?f[n]:"<"+t.slideElement+' class="'+t.slideClass+'" data-swiperindex="'+n+'">'+f[n]+"<\/"+t.slideElement+">";i.wrapper.innerHTML=a}else{for(c=1e3,l=0,n=0;n<i.slides.length;n++)s=i.slides[n].data("swiperindex"),s<o||s>h?i.wrapper.removeChild(i.slides[n]):(c=Math.min(s,c),l=Math.max(s,l));for(n=o;n<=h;n++)n<c&&(r=document.createElement(t.slideElement),r.className=t.slideClass,r.setAttribute("data-swiperindex",n),r.innerHTML=f[n],i.wrapper.insertBefore(r,i.wrapper.firstChild)),n>l&&(r=document.createElement(t.slideElement),r.className=t.slideClass,r.setAttribute("data-swiperindex",n),r.innerHTML=f[n],i.wrapper.appendChild(r))}i.reInit(!0)}};ei()}},Swiper.prototype={plugins:{},wrapperTransitionEnd:function(n,t){function e(){if(n(r),r.params.queueEndCallbacks&&(r._queueEndCallbacks=!1),!t)for(i=0;i<u.length;i++)r.h.removeEventListener(f,u[i],e)}var r=this,f=r.wrapper,u=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],i;if(n)for(i=0;i<u.length;i++)r.h.addEventListener(f,u[i],e)},getWrapperTranslate:function(n){var f=this.wrapper,i,r,t,u;return typeof n=="undefined"&&(n=this.params.mode=="horizontal"?"x":"y"),t=window.getComputedStyle(f,null),window.WebKitCSSMatrix?u=new WebKitCSSMatrix(t.webkitTransform):(u=t.MozTransform||t.OTransform||t.MsTransform||t.msTransform||t.transform||t.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=u.toString().split(",")),this.support.transforms&&this.params.useCSS3Transforms?(n=="x"&&(r=window.WebKitCSSMatrix?u.m41:i.length==16?parseFloat(i[12]):parseFloat(i[4])),n=="y"&&(r=window.WebKitCSSMatrix?u.m42:i.length==16?parseFloat(i[13]):parseFloat(i[5]))):(n=="x"&&(r=parseFloat(f.style.left,10)||0),n=="y"&&(r=parseFloat(f.style.top,10)||0)),r||0},setWrapperTranslate:function(n,t,i){var u=this.wrapper.style,r={x:0,y:0,z:0},f;if(arguments.length==3?(r.x=n,r.y=t,r.z=i):(typeof t=="undefined"&&(t=this.params.mode=="horizontal"?"x":"y"),r[t]=n),this.support.transforms&&this.params.useCSS3Transforms?(f=this.support.transforms3d?"translate3d("+r.x+"px, "+r.y+"px, "+r.z+"px)":"translate("+r.x+"px, "+r.y+"px)",u.webkitTransform=u.MsTransform=u.msTransform=u.MozTransform=u.OTransform=u.transform=f):(u.left=r.x+"px",u.top=r.y+"px"),this.callPlugins("onSetWrapperTransform",r),this.params.onSetWrapperTransform)this.params.onSetWrapperTransform(this,r)},setWrapperTransition:function(n){var t=this.wrapper.style;if(t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=n/1e3+"s",this.callPlugins("onSetWrapperTransition",{duration:n}),this.params.onSetWrapperTransition)this.params.onSetWrapperTransition(this)},h:{getWidth:function(n,t){var r=window.getComputedStyle(n,null).getPropertyValue("width"),i=parseFloat(r);return(isNaN(i)||r.indexOf("%")>0)&&(i=n.offsetWidth-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-left"))-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-right"))),t&&(i+=parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-left"))+parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-right"))),i},getHeight:function(n,t){if(t)return n.offsetHeight;var r=window.getComputedStyle(n,null).getPropertyValue("height"),i=parseFloat(r);return(isNaN(i)||r.indexOf("%")>0)&&(i=n.offsetHeight-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-top"))-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-bottom"))),t&&(i+=parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-top"))+parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-bottom"))),i},getOffset:function(n){var t=n.getBoundingClientRect(),i=document.body,f=n.clientTop||i.clientTop||0,e=n.clientLeft||i.clientLeft||0,r=window.pageYOffset||n.scrollTop,u=window.pageXOffset||n.scrollLeft;return document.documentElement&&!window.pageYOffset&&(r=document.documentElement.scrollTop,u=document.documentElement.scrollLeft),{top:t.top+r-f,left:t.left+u-e}},windowWidth:function(){return window.innerWidth?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:void 0},windowHeight:function(){return window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:void 0},windowScroll:function(){return typeof pageYOffset!="undefined"?{left:window.pageXOffset,top:window.pageYOffset}:document.documentElement?{left:document.documentElement.scrollLeft,top:document.documentElement.scrollTop}:void 0},addEventListener:function(n,t,i,r){typeof r=="undefined"&&(r=!1);n.addEventListener?n.addEventListener(t,i,r):n.attachEvent&&n.attachEvent("on"+t,i)},removeEventListener:function(n,t,i,r){typeof r=="undefined"&&(r=!1);n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent&&n.detachEvent("on"+t,i)}},setTransform:function(n,t){var i=n.style;i.webkitTransform=i.MsTransform=i.msTransform=i.MozTransform=i.OTransform=i.transform=t},setTranslate:function(n,t){var i=n.style,r={x:t.x||0,y:t.y||0,z:t.z||0},u=this.support.transforms3d?"translate3d("+r.x+"px,"+r.y+"px,"+r.z+"px)":"translate("+r.x+"px,"+r.y+"px)";i.webkitTransform=i.MsTransform=i.msTransform=i.MozTransform=i.OTransform=i.transform=u;this.support.transforms||(i.left=r.x+"px",i.top=r.y+"px")},setTransition:function(n,t){var i=n.style;i.webkitTransitionDuration=i.MsTransitionDuration=i.msTransitionDuration=i.MozTransitionDuration=i.OTransitionDuration=i.transitionDuration=t+"ms"},support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var n=document.createElement("div").style;return"webkitPerspective"in n||"MozPerspective"in n||"OPerspective"in n||"MsPerspective"in n||"perspective"in n}(),transforms:window.Modernizr&&Modernizr.csstransforms===!0||function(){var n=document.createElement("div").style;return"transform"in n||"WebkitTransform"in n||"MozTransform"in n||"msTransform"in n||"MsTransform"in n||"OTransform"in n}(),transitions:window.Modernizr&&Modernizr.csstransitions===!0||function(){var n=document.createElement("div").style;return"transition"in n||"WebkitTransition"in n||"MozTransition"in n||"msTransition"in n||"MsTransition"in n||"OTransition"in n}()},browser:{ie8:function(){var n=-1,t,i;return navigator.appName=="Microsoft Internet Explorer"&&(t=navigator.userAgent,i=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"),i.exec(t)!=null&&(n=parseFloat(RegExp.$1))),n!=-1&&n<9}(),ie10:window.navigator.msPointerEnabled}},(window.jQuery||window.Zepto)&&function(n){n.fn.swiper=function(t){var i=new Swiper(n(this)[0],t);return n(this).data("swiper",i),i}}(window.jQuery||window.Zepto),typeof module!="undefined"&&(module.exports=Swiper),Swiper=function(n,t){function o(n,t){return document.querySelectorAll?(t||document).querySelectorAll(n):jQuery(n,t)}function ui(n){"use strict";return Object.prototype.toString.apply(n)==="[object Array]"?!0:!1}function f(){var n=a-u;return t.freeMode&&(n=a-u),t.slidesPerView>i.slides.length&&(n=0),n<0&&(n=0),n}function fi(){function u(n){var r=new Image;r.onload=function(){i.imagesLoaded++;i.imagesLoaded==i.imagesToLoad.length&&(i.reInit(),t.onImagesReady&&i.fireCallback(t.onImagesReady,i))};r.src=n}var n=i.h.addEventListener,r;if(i.browser.ie10?(n(i.wrapper,i.touchEvents.touchStart,y),n(document,i.touchEvents.touchMove,p),n(document,i.touchEvents.touchEnd,w)):(i.support.touch&&(n(i.wrapper,"touchstart",y),n(i.wrapper,"touchmove",p),n(i.wrapper,"touchend",w)),t.simulateTouch&&(n(i.wrapper,"mousedown",y),n(document,"mousemove",p),n(document,"mouseup",w))),t.autoResize&&n(window,"resize",i.resizeFix),yt(),i._wheelEvent=!1,t.mousewheelControl){document.onmousewheel!==undefined&&(i._wheelEvent="mousewheel");try{WheelEvent("wheel");i._wheelEvent="wheel"}catch(f){}i._wheelEvent||(i._wheelEvent="DOMMouseScroll");i._wheelEvent&&n(i.container,i._wheelEvent,bt)}if(t.keyboardControl&&n(document,"keydown",wt),t.updateOnImagesReady)for(i.imagesToLoad=o("img",i.container),r=0;r<i.imagesToLoad.length;r++)u(i.imagesToLoad[r].getAttribute("src"))}function yt(){var r=i.h.addEventListener,n,u,f;if(t.preventLinks)for(u=o("a",i.container),n=0;n<u.length;n++)r(u[n],"click",ni);if(t.releaseFormElements)for(f=o("input, textarea, select",i.container),n=0;n<f.length;n++)r(f[n],i.touchEvents.touchStart,ti,!0);if(t.onSlideClick)for(n=0;n<i.slides.length;n++)r(i.slides[n],"click",kt);if(t.onSlideTouch)for(n=0;n<i.slides.length;n++)r(i.slides[n],i.touchEvents.touchStart,dt)}function pt(){var r=i.h.removeEventListener,n,u,f;if(t.onSlideClick)for(n=0;n<i.slides.length;n++)r(i.slides[n],"click",kt);if(t.onSlideTouch)for(n=0;n<i.slides.length;n++)r(i.slides[n],i.touchEvents.touchStart,dt);if(t.releaseFormElements)for(u=o("input, textarea, select",i.container),n=0;n<u.length;n++)r(u[n],i.touchEvents.touchStart,ti,!0);if(t.preventLinks)for(f=o("a",i.container),n=0;n<f.length;n++)r(f[n],"click",ni)}function wt(n){var t=n.keyCode||n.charCode,e,f;if(t==37||t==39||t==38||t==40){var o=!1,u=i.h.getOffset(i.container),s=i.h.windowScroll().left,h=i.h.windowScroll().top,l=i.h.windowWidth(),a=i.h.windowHeight(),c=[[u.left,u.top],[u.left+i.width,u.top],[u.left,u.top+i.height],[u.left+i.width,u.top+i.height]];for(e=0;e<c.length;e++)f=c[e],f[0]>=s&&f[0]<=s+l&&f[1]>=h&&f[1]<=h+a&&(o=!0);if(!o)return}r?((t==37||t==39)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),t==39&&i.swipeNext(),t==37&&i.swipePrev()):((t==38||t==40)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),t==40&&i.swipeNext(),t==38&&i.swipePrev())}function bt(n){var o=i._wheelEvent,e=0,u;if(n.detail)e=-n.detail;else if(o=="mousewheel")if(r)if(Math.abs(n.wheelDeltaX)>Math.abs(n.wheelDeltaY))e=n.wheelDeltaX;else return;else if(Math.abs(n.wheelDeltaY)>Math.abs(n.wheelDeltaX))e=n.wheelDeltaY;else return;else if(o=="DOMMouseScroll")e=-n.detail;else if(o=="wheel")if(r)if(Math.abs(n.deltaX)>Math.abs(n.deltaY))e=-n.deltaX;else return;else if(Math.abs(n.deltaY)>Math.abs(n.deltaX))e=-n.deltaY;else return;if(t.freeMode){if(u=i.getWrapperTranslate()+e,u>0&&(u=0),u<-f()&&(u=-f()),i.setWrapperTransition(0),i.setWrapperTranslate(u),i.updateActiveSlide(u),u==0||u==-f())return}else(new Date).getTime()-lt>60&&(e<0?i.swipeNext():i.swipePrev()),lt=(new Date).getTime();return t.autoplay&&i.stopAutoplay(!0),n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function kt(n){i.allowSlideClick&&(gt(n),i.fireCallback(t.onSlideClick,i,n))}function dt(n){gt(n);i.fireCallback(t.onSlideTouch,i,n)}function gt(n){if(n.currentTarget)i.clickedSlide=n.currentTarget;else{var r=n.srcElement;do if(r.className.indexOf(t.slideClass)>-1)break;while(r=r.parentNode);i.clickedSlide=r}i.clickedSlideIndex=i.slides.indexOf(i.clickedSlide);i.clickedSlideLoopIndex=i.clickedSlideIndex-(i.loopedSlides||0)}function ni(n){if(!i.allowLinks)return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function ti(n){return n.stopPropagation?n.stopPropagation():n.returnValue=!1,!1}function y(n){if((navigator.userAgent.match(/Android/i)&&n.preventDefault(),t.preventLinks&&(i.allowLinks=!0),i.isTouched||t.onlyExternal)||t.noSwiping&&(n.target||n.srcElement)&&ei(n.target||n.srcElement))return!1;if(nt=!1,i.isTouched=!0,h=n.type=="touchstart",!h||n.targetTouches.length==1){i.callPlugins("onTouchStartBegin");h||(n.preventDefault?n.preventDefault():n.returnValue=!1);var u=h?n.targetTouches[0].pageX:n.pageX||n.clientX,f=h?n.targetTouches[0].pageY:n.pageY||n.clientY;i.touches.startX=i.touches.currentX=u;i.touches.startY=i.touches.currentY=f;i.touches.start=i.touches.current=r?u:f;i.setWrapperTransition(0);i.positions.start=i.positions.current=i.getWrapperTranslate();i.setWrapperTranslate(i.positions.start);i.times.start=(new Date).getTime();c=undefined;t.moveStartThreshold>0&&(at=!1);t.onTouchStart&&i.fireCallback(t.onTouchStart,i);i.callPlugins("onTouchStartEnd")}}function p(n){var o,s,e;if(i.isTouched&&!t.onlyExternal&&(!h||n.type!="mousemove")){if(o=h?n.targetTouches[0].pageX:n.pageX||n.clientX,s=h?n.targetTouches[0].pageY:n.pageY||n.clientY,typeof c=="undefined"&&r&&(c=!!(c||Math.abs(s-i.touches.startY)>Math.abs(o-i.touches.startX))),typeof c!="undefined"||r||(c=!!(c||Math.abs(s-i.touches.startY)<Math.abs(o-i.touches.startX))),c){i.isTouched=!1;return}if(n.assignedToSwiper){i.isTouched=!1;return}if(n.assignedToSwiper=!0,t.preventLinks&&(i.allowLinks=!1),t.onSlideClick&&(i.allowSlideClick=!1),t.autoplay&&i.stopAutoplay(!0),!h||n.touches.length==1){if(i.isMoved||(i.callPlugins("onTouchMoveStart"),t.loop&&(i.fixLoop(),i.positions.start=i.getWrapperTranslate()),t.onTouchMoveStart&&i.fireCallback(t.onTouchMoveStart,i)),i.isMoved=!0,n.preventDefault?n.preventDefault():n.returnValue=!1,i.touches.current=r?o:s,i.positions.current=(i.touches.current-i.touches.start)*t.touchRatio+i.positions.start,i.positions.current>0&&t.onResistanceBefore&&i.fireCallback(t.onResistanceBefore,i,i.positions.current),i.positions.current<-f()&&t.onResistanceAfter&&i.fireCallback(t.onResistanceAfter,i,Math.abs(i.positions.current+f())),t.resistance&&t.resistance!="100%"&&(i.positions.current>0&&(e=1-i.positions.current/u/2,i.positions.current=e<.5?u/2:i.positions.current*e),i.positions.current<-f())){var l=(i.touches.current-i.touches.start)*t.touchRatio+(f()+i.positions.start),e=(u+l)/u,a=i.positions.current-l*(1-e)/2,v=-f()-u/2;i.positions.current=a<v||e<=0?v:a}return(t.resistance&&t.resistance=="100%"&&(i.positions.current>0&&!(t.freeMode&&!t.freeModeFluid)&&(i.positions.current=0),i.positions.current<-f()&&!(t.freeMode&&!t.freeModeFluid)&&(i.positions.current=-f())),!t.followFinger)?void 0:(t.moveStartThreshold?Math.abs(i.touches.current-i.touches.start)>t.moveStartThreshold||at?(at=!0,i.setWrapperTranslate(i.positions.current)):i.positions.current=i.positions.start:i.setWrapperTranslate(i.positions.current),(t.freeMode||t.watchActiveIndex)&&i.updateActiveSlide(i.positions.current),t.grabCursor&&(i.container.style.cursor="move",i.container.style.cursor="grabbing",i.container.style.cursor="-moz-grabbin",i.container.style.cursor="-webkit-grabbing"),tt||(tt=i.touches.current),et||(et=(new Date).getTime()),i.velocity=(i.touches.current-tt)/((new Date).getTime()-et)/2,Math.abs(i.touches.current-tt)<2&&(i.velocity=0),tt=i.touches.current,et=(new Date).getTime(),i.callPlugins("onTouchMoveEnd"),t.onTouchMove&&i.fireCallback(t.onTouchMove,i),!1)}}}function w(){var o,s,g,k,d,a;if(c&&i.swipeReset(),!t.onlyExternal&&i.isTouched){i.isTouched=!1;t.grabCursor&&(i.container.style.cursor="move",i.container.style.cursor="grab",i.container.style.cursor="-moz-grab",i.container.style.cursor="-webkit-grab");i.positions.current||i.positions.current===0||(i.positions.current=i.positions.start);t.followFinger&&i.setWrapperTranslate(i.positions.current);i.times.end=(new Date).getTime();i.touches.diff=i.touches.current-i.touches.start;i.touches.abs=Math.abs(i.touches.diff);i.positions.diff=i.positions.current-i.positions.start;i.positions.abs=Math.abs(i.positions.diff);var tt=i.positions.diff,h=i.positions.abs,l=i.times.end-i.times.start;if(h<5&&l<300&&i.allowLinks==!1&&(t.freeMode||h==0||i.swipeReset(),t.preventLinks&&(i.allowLinks=!0),t.onSlideClick&&(i.allowSlideClick=!0)),setTimeout(function(){t.preventLinks&&(i.allowLinks=!0);t.onSlideClick&&(i.allowSlideClick=!0)},100),o=f(),!i.isMoved&&t.freeMode){i.isMoved=!1;t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i);i.callPlugins("onTouchEnd");return}if(!i.isMoved||i.positions.current>0||i.positions.current<-o){i.swipeReset();t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i);i.callPlugins("onTouchEnd");return}if(i.isMoved=!1,t.freeMode){if(t.freeModeFluid){var y=1e3*t.momentumRatio,it=i.velocity*y,n=i.positions.current+it,p=!1,w,v=Math.abs(i.velocity)*20*t.momentumBounceRatio;n<-o&&(t.momentumBounce&&i.support.transitions?(n+o<-v&&(n=-o-v),w=-o,p=!0,nt=!0):n=-o);n>0&&(t.momentumBounce&&i.support.transitions?(n>v&&(n=v),w=0,p=!0,nt=!0):n=0);i.velocity!=0&&(y=Math.abs((n-i.positions.current)/i.velocity));i.setWrapperTranslate(n);i.setWrapperTransition(y);t.momentumBounce&&p&&i.wrapperTransitionEnd(function(){nt&&(t.onMomentumBounce&&i.fireCallback(t.onMomentumBounce,i),i.callPlugins("onMomentumBounce"),i.setWrapperTranslate(w),i.setWrapperTransition(300))});i.updateActiveSlide(n)}(!t.freeModeFluid||l>=300)&&i.updateActiveSlide(i.positions.current);t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i);i.callPlugins("onTouchEnd");return}if(b=tt<0?"toNext":"toPrev",b=="toNext"&&l<=300&&(h<30||!t.shortSwipes?i.swipeReset():i.swipeNext(!0)),b=="toPrev"&&l<=300&&(h<30||!t.shortSwipes?i.swipeReset():i.swipePrev(!0)),s=0,t.slidesPerView=="auto"){for(g=Math.abs(i.getWrapperTranslate()),k=0,a=0;a<i.slides.length;a++)if(d=r?i.slides[a].getWidth(!0):i.slides[a].getHeight(!0),k+=d,k>g){s=d;break}s>u&&(s=u)}else s=e*t.slidesPerView;if(b=="toNext"&&l>300&&(h>=s*.5?i.swipeNext(!0):i.swipeReset()),b=="toPrev"&&l>300&&(h>=s*.5?i.swipePrev(!0):i.swipeReset()),t.onTouchEnd)t.onTouchEnd(i);i.callPlugins("onTouchEnd")}}function ei(n){var i=!1;do n.className.indexOf(t.noSwipingClass)>-1&&(i=!0),n=n.parentElement;while(!i&&n.parentElement&&n.className.indexOf(t.wrapperClass)==-1);return!i&&n.className.indexOf(t.wrapperClass)>-1&&n.className.indexOf(t.noSwipingClass)>-1&&(i=!0),i}function ot(n,r,u){function h(){f+=c;s=o=="toNext"?f>n:f<n;s?(i.setWrapperTranslate(Math.round(f)),i._DOMAnimating=!0,window.setTimeout(function(){h()},1e3/60)):(t.onSlideChangeEnd&&i.fireCallback(t.onSlideChangeEnd,i),i.setWrapperTranslate(n),i._DOMAnimating=!1)}var e=r=="to"&&u.speed>=0?u.speed:t.speed;if(i.support.transitions||!t.DOMAnimation)i.setWrapperTranslate(n),i.setWrapperTransition(e);else{var f=i.getWrapperTranslate(),c=Math.ceil((n-f)/e*(1e3/60)),o=f>n?"toNext":"toPrev",s=o=="toNext"?f>n:f<n;if(i._DOMAnimating)return;h()}i.updateActiveSlide(n);t.onSlideNext&&r=="next"&&i.fireCallback(t.onSlideNext,i,n);t.onSlidePrev&&r=="prev"&&i.fireCallback(t.onSlidePrev,i,n);t.onSlideReset&&r=="reset"&&i.fireCallback(t.onSlideReset,i,n);(r=="next"||r=="prev"||r=="to"&&u.runCallbacks==!0)&&oi(r)}function oi(n){if(i.callPlugins("onSlideChangeStart"),t.onSlideChangeStart)if(t.queueStartCallbacks&&i.support.transitions){if(i._queueStartCallbacks)return;i._queueStartCallbacks=!0;i.fireCallback(t.onSlideChangeStart,i,n);i.wrapperTransitionEnd(function(){i._queueStartCallbacks=!1})}else i.fireCallback(t.onSlideChangeStart,i,n);if(t.onSlideChangeEnd)if(i.support.transitions)if(t.queueEndCallbacks){if(i._queueEndCallbacks)return;i._queueEndCallbacks=!0;i.wrapperTransitionEnd(function(r){i.fireCallback(t.onSlideChangeEnd,r,n)})}else i.wrapperTransitionEnd(function(r){i.fireCallback(t.onSlideChangeEnd,r,n)});else t.DOMAnimation||setTimeout(function(){i.fireCallback(t.onSlideChangeStart,i,n)},10)}function ii(){for(var t=i.paginationButtons,n=0;n<t.length;n++)i.h.removeEventListener(t[n],"click",ri)}function si(){for(var t=i.paginationButtons,n=0;n<t.length;n++)i.h.addEventListener(t[n],"click",ri)}function ri(n){for(var r,f=n.target||n.srcElement,u=i.paginationButtons,t=0;t<u.length;t++)f===u[t]&&(r=t);i.swipeTo(r)}function vt(){l=setTimeout(function(){t.loop?(i.fixLoop(),i.swipeNext(!0)):i.swipeNext(!0)||i.swipeTo(0);i.wrapperTransitionEnd(function(){typeof l!="undefined"&&vt()})},t.autoplay)}function hi(){i.calcSlides();t.loader.slides.length>0&&i.slides.length==0&&i.loadSlides();t.loop&&i.createLoop();i.init();fi();t.pagination&&i.createPagination(!0);t.loop||t.initialSlide>0?i.swipeTo(t.initialSlide,0,!1):i.updateActiveSlide(0);t.autoplay&&i.startAutoplay();i.centerIndex=i.activeIndex;t.onSwiperCreated&&i.fireCallback(t.onSwiperCreated,i);i.callPlugins("onSwiperCreated")}var st,i,it,e,a,b,c,u,k,s,rt,r,v,ht,ut,d,ft,ct,lt,g,h,at,nt,tt,et,l;if((document.body.__defineGetter__&&HTMLElement&&(st=HTMLElement.prototype,st.__defineGetter__&&st.__defineGetter__("outerHTML",function(){return(new XMLSerializer).serializeToString(this)})),window.getComputedStyle||(window.getComputedStyle=function(n){return this.el=n,this.getPropertyValue=function(t){var i=/(\-([a-z]){1})/g;return t==="float"&&(t="styleFloat"),i.test(t)&&(t=t.replace(i,function(){return arguments[2].toUpperCase()})),n.currentStyle[t]?n.currentStyle[t]:null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){for(var i=t||0,r=this.length;i<r;i++)if(this[i]===n)return i;return-1}),document.querySelectorAll||window.jQuery)&&typeof n!="undefined"&&(n.nodeType||o(n).length!==0)){i=this;i.touches={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,diff:0,abs:0};i.positions={start:0,abs:0,diff:0,current:0};i.times={start:0,end:0};i.id=(new Date).getTime();i.container=n.nodeType?n:o(n)[0];i.isTouched=!1;i.isMoved=!1;i.activeIndex=0;i.centerIndex=0;i.activeLoaderIndex=0;i.activeLoopIndex=0;i.previousIndex=null;i.velocity=0;i.snapGrid=[];i.slidesGrid=[];i.imagesToLoad=[];i.imagesLoaded=0;i.wrapperLeft=0;i.wrapperRight=0;i.wrapperTop=0;i.wrapperBottom=0;k={mode:"horizontal",touchRatio:1,speed:300,freeMode:!1,freeModeFluid:!1,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,slidesPerView:1,slidesPerGroup:1,simulateTouch:!0,followFinger:!0,shortSwipes:!0,moveStartThreshold:!1,onlyExternal:!1,createPagination:!0,pagination:!1,paginationElement:"span",paginationClickable:!1,paginationAsRange:!0,resistance:!0,scrollContainer:!1,preventLinks:!0,noSwiping:!1,noSwipingClass:"swiper-no-swiping",initialSlide:0,keyboardControl:!1,mousewheelControl:!1,useCSS3Transforms:!0,autoplay:!1,autoplayDisableOnInteraction:!0,loop:!1,loopAdditionalSlides:0,calculateHeight:!1,cssWidthAndHeight:!1,updateOnImagesReady:!0,releaseFormElements:!0,watchActiveIndex:!1,visibilityFullFit:!1,offsetPxBefore:0,offsetPxAfter:0,offsetSlidesBefore:0,offsetSlidesAfter:0,centeredSlides:!1,queueStartCallbacks:!1,queueEndCallbacks:!1,autoResize:!0,resizeReInit:!1,DOMAnimation:!0,loader:{slides:[],slidesHTMLType:"inner",surroundGroups:1,logic:"reload",loadAllSlides:!1},slideElement:"div",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",wrapperClass:"swiper-wrapper",paginationElementClass:"swiper-pagination-switch",paginationActiveClass:"swiper-active-switch",paginationVisibleClass:"swiper-visible-switch"};t=t||{};for(s in k)if(s in t&&typeof t[s]=="object")for(rt in k[s])rt in t[s]||(t[s][rt]=k[s][rt]);else s in t||(t[s]=k[s]);for(i.params=t,t.scrollContainer&&(t.freeMode=!0,t.freeModeFluid=!0),t.loop&&(t.resistance="100%"),r=t.mode==="horizontal",i.touchEvents={touchStart:i.support.touch||!t.simulateTouch?"touchstart":i.browser.ie10?"MSPointerDown":"mousedown",touchMove:i.support.touch||!t.simulateTouch?"touchmove":i.browser.ie10?"MSPointerMove":"mousemove",touchEnd:i.support.touch||!t.simulateTouch?"touchend":i.browser.ie10?"MSPointerUp":"mouseup"},v=i.container.childNodes.length-1;v>=0;v--)if(i.container.childNodes[v].className)for(ht=i.container.childNodes[v].className.split(" "),ut=0;ut<ht.length;ut++)ht[ut]===t.wrapperClass&&(it=i.container.childNodes[v]);i.wrapper=it;i._extendSwiperSlide=function(n){return n.append=function(){return t.loop?(n.insertAfter(i.slides.length-i.loopedSlides),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):i.wrapper.appendChild(n),i.reInit(),n},n.prepend=function(){return t.loop?(i.wrapper.insertBefore(n,i.slides[i.loopedSlides]),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):i.wrapper.insertBefore(n,i.wrapper.firstChild),i.reInit(),n},n.insertAfter=function(r){if(typeof r=="undefined")return!1;var u;return t.loop?(u=i.slides[r+1+i.loopedSlides],i.wrapper.insertBefore(n,u),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):(u=i.slides[r+1],i.wrapper.insertBefore(n,u)),i.reInit(),n},n.clone=function(){return i._extendSwiperSlide(n.cloneNode(!0))},n.remove=function(){i.wrapper.removeChild(n);i.reInit()},n.html=function(t){return typeof t=="undefined"?n.innerHTML:(n.innerHTML=t,n)},n.index=function(){for(var r,t=i.slides.length-1;t>=0;t--)n===i.slides[t]&&(r=t);return r},n.isActive=function(){return n.index()===i.activeIndex?!0:!1},n.swiperSlideDataStorage||(n.swiperSlideDataStorage={}),n.getData=function(t){return n.swiperSlideDataStorage[t]},n.setData=function(t,i){return n.swiperSlideDataStorage[t]=i,n},n.data=function(t,i){return i?(n.setAttribute("data-"+t,i),n):n.getAttribute("data-"+t)},n.getWidth=function(t){return i.h.getWidth(n,t)},n.getHeight=function(t){return i.h.getHeight(n,t)},n.getOffset=function(){return i.h.getOffset(n)},n};i.calcSlides=function(n){var e=i.slides?i.slides.length:!1,r,o,f,u;for(i.slides=[],i.displaySlides=[],r=0;r<i.wrapper.childNodes.length;r++)if(i.wrapper.childNodes[r].className)for(o=i.wrapper.childNodes[r].className,f=o.split(" "),u=0;u<f.length;u++)f[u]===t.slideClass&&i.slides.push(i.wrapper.childNodes[r]);for(r=i.slides.length-1;r>=0;r--)i._extendSwiperSlide(i.slides[r]);e!==!1&&(e!==i.slides.length||n)&&(pt(),yt(),i.updateActiveSlide(),i.params.pagination&&i.createPagination(),i.callPlugins("numberOfSlidesChanged"))};i.createSlide=function(n,r,u){var r=r||i.params.slideClass,u=u||t.slideElement,f=document.createElement(u);return f.innerHTML=n||"",f.className=r,i._extendSwiperSlide(f)};i.appendSlide=function(n,t,r){if(n)return n.nodeType?i._extendSwiperSlide(n).append():i.createSlide(n,t,r).append()};i.prependSlide=function(n,t,r){if(n)return n.nodeType?i._extendSwiperSlide(n).prepend():i.createSlide(n,t,r).prepend()};i.insertSlideAfter=function(n,t,r,u){return typeof n=="undefined"?!1:t.nodeType?i._extendSwiperSlide(t).insertAfter(n):i.createSlide(t,r,u).insertAfter(n)};i.removeSlide=function(n){if(i.slides[n]){if(t.loop){if(!i.slides[n+i.loopedSlides])return!1;i.slides[n+i.loopedSlides].remove();i.removeLoopedSlides();i.calcSlides();i.createLoop()}else i.slides[n].remove();return!0}return!1};i.removeLastSlide=function(){return i.slides.length>0?(t.loop?(i.slides[i.slides.length-1-i.loopedSlides].remove(),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):i.slides[i.slides.length-1].remove(),!0):!1};i.removeAllSlides=function(){for(var n=i.slides.length-1;n>=0;n--)i.slides[n].remove()};i.getSlide=function(n){return i.slides[n]};i.getLastSlide=function(){return i.slides[i.slides.length-1]};i.getFirstSlide=function(){return i.slides[0]};i.activeSlide=function(){return i.slides[i.activeIndex]};d=[];for(ft in i.plugins)t[ft]&&(ct=i.plugins[ft](i,t[ft]),ct&&d.push(ct));i.callPlugins=function(n,t){t||(t={});for(var i=0;i<d.length;i++)n in d[i]&&d[i][n](t)};i.fireCallback=function(){var n=arguments[0],t;if(Object.prototype.toString.call(n)==="[object Array]")for(t=0;t<n.length;t++)typeof n[t]=="function"&&n[t](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);else n(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])};i.addCallback=function(n,t){"use strict";var r=this,i;if(r.params["on"+n]){if(ui(this.params["on"+n]))return this.params["on"+n].push(t);if(typeof this.params["on"+n]=="function")return i=this.params["on"+n],this.params["on"+n]=[],this.params["on"+n].push(i),this.params["on"+n].push(t)}else return this.params["on"+n]=[],this.params["on"+n].push(t)};i.removeCallbacks=function(n){if(i.params["on"+n])return i.params["on"+n]=null};i.browser.ie10&&!t.onlyExternal&&i.wrapper.classList.add("swiper-wp8-"+(r?"horizontal":"vertical"));t.freeMode&&(i.container.className+=" swiper-free-mode");i.initialized=!1;i.init=function(n,f){var nt=i.h.getWidth(i.container),tt=i.h.getHeight(i.container),o,k,d,g,b,v,y,h,l,p,w,c,s;if(nt!==i.width||tt!==i.height||n){if(i.width=nt,i.height=tt,u=r?nt:tt,o=i.wrapper,n&&i.calcSlides(f),t.slidesPerView==="auto"){for(k=0,d=0,t.slidesOffset>0&&(o.style.paddingLeft="",o.style.paddingRight="",o.style.paddingTop="",o.style.paddingBottom=""),o.style.width="",o.style.height="",t.offsetPxBefore>0&&(r?i.wrapperLeft=t.offsetPxBefore:i.wrapperTop=t.offsetPxBefore),t.offsetPxAfter>0&&(r?i.wrapperRight=t.offsetPxAfter:i.wrapperBottom=t.offsetPxAfter),t.centeredSlides&&(r?(i.wrapperLeft=(u-this.slides[0].getWidth(!0))/2,i.wrapperRight=(u-i.slides[i.slides.length-1].getWidth(!0))/2):(i.wrapperTop=(u-i.slides[0].getHeight(!0))/2,i.wrapperBottom=(u-i.slides[i.slides.length-1].getHeight(!0))/2)),r?(i.wrapperLeft>=0&&(o.style.paddingLeft=i.wrapperLeft+"px"),i.wrapperRight>=0&&(o.style.paddingRight=i.wrapperRight+"px")):(i.wrapperTop>=0&&(o.style.paddingTop=i.wrapperTop+"px"),i.wrapperBottom>=0&&(o.style.paddingBottom=i.wrapperBottom+"px")),c=0,g=0,i.snapGrid=[],i.slidesGrid=[],y=0,s=0;s<i.slides.length;s++){if(p=i.slides[s].getWidth(!0),h=i.slides[s].getHeight(!0),t.calculateHeight&&(y=Math.max(y,h)),b=r?p:h,t.centeredSlides){var it=s===i.slides.length-1?0:i.slides[s+1].getWidth(!0),rt=s===i.slides.length-1?0:i.slides[s+1].getHeight(!0),ut=r?it:rt;if(b>u){for(v=0;v<=Math.floor(b/(u+i.wrapperLeft));v++)v===0?i.snapGrid.push(c+i.wrapperLeft):i.snapGrid.push(c+i.wrapperLeft+u*v);i.slidesGrid.push(c+i.wrapperLeft)}else i.snapGrid.push(g),i.slidesGrid.push(g);g+=b/2+ut/2}else{if(b>u)for(v=0;v<=Math.floor(b/u);v++)i.snapGrid.push(c+u*v);else i.snapGrid.push(c);i.slidesGrid.push(c)}c+=b;k+=p;d+=h}t.calculateHeight&&(i.height=y);r?(a=k+i.wrapperRight+i.wrapperLeft,o.style.width=k+"px",o.style.height=i.height+"px"):(a=d+i.wrapperTop+i.wrapperBottom,o.style.width=i.width+"px",o.style.height=d+"px")}else if(t.scrollContainer)o.style.width="",o.style.height="",w=i.slides[0].getWidth(!0),l=i.slides[0].getHeight(!0),a=r?w:l,o.style.width=w+"px",o.style.height=l+"px",e=r?w:l;else{if(t.calculateHeight){for(y=0,l=0,r||(i.container.style.height=""),o.style.height="",s=0;s<i.slides.length;s++)i.slides[s].style.height="",y=Math.max(i.slides[s].getHeight(!0),y),r||(l+=i.slides[s].getHeight(!0));h=y;i.height=h;r?l=h:(u=h,i.container.style.height=u+"px")}else h=r?i.height:i.height/t.slidesPerView,l=r?i.height:i.slides.length*h;for(p=r?i.width/t.slidesPerView:i.width,w=r?i.slides.length*p:i.width,e=r?p:h,t.offsetSlidesBefore>0&&(r?i.wrapperLeft=e*t.offsetSlidesBefore:i.wrapperTop=e*t.offsetSlidesBefore),t.offsetSlidesAfter>0&&(r?i.wrapperRight=e*t.offsetSlidesAfter:i.wrapperBottom=e*t.offsetSlidesAfter),t.offsetPxBefore>0&&(r?i.wrapperLeft=t.offsetPxBefore:i.wrapperTop=t.offsetPxBefore),t.offsetPxAfter>0&&(r?i.wrapperRight=t.offsetPxAfter:i.wrapperBottom=t.offsetPxAfter),t.centeredSlides&&(r?(i.wrapperLeft=(u-e)/2,i.wrapperRight=(u-e)/2):(i.wrapperTop=(u-e)/2,i.wrapperBottom=(u-e)/2)),r?(i.wrapperLeft>0&&(o.style.paddingLeft=i.wrapperLeft+"px"),i.wrapperRight>0&&(o.style.paddingRight=i.wrapperRight+"px")):(i.wrapperTop>0&&(o.style.paddingTop=i.wrapperTop+"px"),i.wrapperBottom>0&&(o.style.paddingBottom=i.wrapperBottom+"px")),a=r?w+i.wrapperRight+i.wrapperLeft:l+i.wrapperTop+i.wrapperBottom,t.cssWidthAndHeight||(parseFloat(w)>0&&(o.style.width=w+"px"),parseFloat(l)>0&&(o.style.height=l+"px")),c=0,i.snapGrid=[],i.slidesGrid=[],s=0;s<i.slides.length;s++)i.snapGrid.push(c),i.slidesGrid.push(c),c+=e,t.cssWidthAndHeight||(parseFloat(p)>0&&(i.slides[s].style.width=p+"px"),parseFloat(h)>0&&(i.slides[s].style.height=h+"px"))}i.initialized?(i.callPlugins("onInit"),t.onInit&&i.fireCallback(t.onInit,i)):(i.callPlugins("onFirstInit"),t.onFirstInit&&i.fireCallback(t.onFirstInit,i));i.initialized=!0}};i.reInit=function(n){i.init(!0,n)};i.resizeFix=function(n){i.callPlugins("beforeResizeFix");i.init(t.resizeReInit||n);t.freeMode?i.getWrapperTranslate()<-f()&&(i.setWrapperTransition(0),i.setWrapperTranslate(-f())):i.swipeTo(t.loop?i.activeLoopIndex:i.activeIndex,0,!1);i.callPlugins("afterResizeFix")};i.destroy=function(){var n=i.h.removeEventListener;i.browser.ie10?(n(i.wrapper,i.touchEvents.touchStart,y),n(document,i.touchEvents.touchMove,p),n(document,i.touchEvents.touchEnd,w)):(i.support.touch&&(n(i.wrapper,"touchstart",y),n(i.wrapper,"touchmove",p),n(i.wrapper,"touchend",w)),t.simulateTouch&&(n(i.wrapper,"mousedown",y),n(document,"mousemove",p),n(document,"mouseup",w)));t.autoResize&&n(window,"resize",i.resizeFix);pt();t.paginationClickable&&ii();t.mousewheelControl&&i._wheelEvent&&n(i.container,i._wheelEvent,bt);t.keyboardControl&&n(document,"keydown",wt);t.autoplay&&i.stopAutoplay();i.callPlugins("onDestroy");i=null};lt=(new Date).getTime();t.grabCursor&&(g=i.container.style,g.cursor="move",g.cursor="grab",g.cursor="-moz-grab",g.cursor="-webkit-grab");i.allowSlideClick=!0;i.allowLinks=!0;h=!1;nt=!0;i.swipeNext=function(n){var u,r,o,s;if(!n&&t.loop&&i.fixLoop(),!n&&t.autoplay&&i.stopAutoplay(!0),i.callPlugins("onSwipeNext"),u=i.getWrapperTranslate(),r=u,t.slidesPerView=="auto"){for(o=0;o<i.snapGrid.length;o++)if(-u>=i.snapGrid[o]&&-u<i.snapGrid[o+1]){r=-i.snapGrid[o+1];break}}else s=e*t.slidesPerGroup,r=-(Math.floor(Math.abs(u)/Math.floor(s))*s+s);return(r<-f()&&(r=-f()),r==u)?!1:(ot(r,"next"),!0)};i.swipePrev=function(n){var f,r,u,o;if(!n&&t.loop&&i.fixLoop(),!n&&t.autoplay&&i.stopAutoplay(!0),i.callPlugins("onSwipePrev"),f=Math.ceil(i.getWrapperTranslate()),t.slidesPerView=="auto")for(r=0,u=1;u<i.snapGrid.length;u++){if(-f==i.snapGrid[u]){r=-i.snapGrid[u-1];break}if(-f>i.snapGrid[u]&&-f<i.snapGrid[u+1]){r=-i.snapGrid[u];break}}else o=e*t.slidesPerGroup,r=-(Math.ceil(-f/o)-1)*o;return(r>0&&(r=0),r==f)?!1:(ot(r,"prev"),!0)};i.swipeReset=function(){var o;i.callPlugins("onSwipeReset");var r=i.getWrapperTranslate(),s=e*t.slidesPerGroup,n,h=-f();if(t.slidesPerView=="auto"){for(n=0,o=0;o<i.snapGrid.length;o++){if(-r===i.snapGrid[o])return;if(-r>=i.snapGrid[o]&&-r<i.snapGrid[o+1]){n=i.positions.diff>0?-i.snapGrid[o+1]:-i.snapGrid[o];break}}-r>=i.snapGrid[i.snapGrid.length-1]&&(n=-i.snapGrid[i.snapGrid.length-1]);r<=-f()&&(n=-f())}else n=r<0?Math.round(r/s)*s:0;return(t.scrollContainer&&(n=r<0?r:0),n<-f()&&(n=-f()),t.scrollContainer&&u>e&&(n=0),n==r)?!1:(ot(n,"reset"),!0)};i.swipeTo=function(n,r,u){var s,o;if(n=parseInt(n,10),i.callPlugins("onSwipeTo",{index:n,speed:r}),t.loop&&(n=n+i.loopedSlides),s=i.getWrapperTranslate(),!(n>i.slides.length-1)&&!(n<0))return(o=t.slidesPerView=="auto"?-i.slidesGrid[n]:-n*e,o<-f()&&(o=-f()),o==s)?!1:(u=u===!1?!1:!0,ot(o,"to",{index:n,speed:r,runCallbacks:u}),!0)};i._queueStartCallbacks=!1;i._queueEndCallbacks=!1;i.updateActiveSlide=function(n){var c,f,o,s,h,r,u;if(i.initialized&&i.slides.length!=0){if(i.previousIndex=i.activeIndex,typeof n=="undefined"&&(n=i.getWrapperTranslate()),n>0&&(n=0),t.slidesPerView=="auto"){if(c=0,i.activeIndex=i.slidesGrid.indexOf(-n),i.activeIndex<0){for(r=0;r<i.slidesGrid.length-1;r++)if(-n>i.slidesGrid[r]&&-n<i.slidesGrid[r+1])break;f=Math.abs(i.slidesGrid[r]+n);o=Math.abs(i.slidesGrid[r+1]+n);i.activeIndex=f<=o?r:r+1}}else i.activeIndex=Math[t.visibilityFullFit?"ceil":"round"](-n/e);if(i.activeIndex==i.slides.length&&(i.activeIndex=i.slides.length-1),i.activeIndex<0&&(i.activeIndex=0),i.slides[i.activeIndex]){for(i.calcVisibleSlides(n),s=new RegExp("\\s*"+t.slideActiveClass),h=new RegExp("\\s*"+t.slideVisibleClass),r=0;r<i.slides.length;r++)i.slides[r].className=i.slides[r].className.replace(s,"").replace(h,""),i.visibleSlides.indexOf(i.slides[r])>=0&&(i.slides[r].className+=" "+t.slideVisibleClass);i.slides[i.activeIndex].className+=" "+t.slideActiveClass;t.loop?(u=i.loopedSlides,i.activeLoopIndex=i.activeIndex-u,i.activeLoopIndex>=i.slides.length-u*2&&(i.activeLoopIndex=i.slides.length-u*2-i.activeLoopIndex),i.activeLoopIndex<0&&(i.activeLoopIndex=i.slides.length-u*2+i.activeLoopIndex)):i.activeLoopIndex=i.activeIndex;t.pagination&&i.updatePagination(n)}}};i.createPagination=function(n){var r;if(t.paginationClickable&&i.paginationButtons&&ii(),i.paginationContainer=t.pagination.nodeType?t.pagination:o(t.pagination)[0],t.createPagination){var u="",e=i.slides.length,f=e;for(t.loop&&(f-=i.loopedSlides*2),r=0;r<f;r++)u+="<"+t.paginationElement+' class="'+t.paginationElementClass+'"><\/'+t.paginationElement+">";i.paginationContainer.innerHTML=u}i.paginationButtons=o("."+t.paginationElementClass,i.paginationContainer);n||i.updatePagination();i.callPlugins("onCreatePagination");t.paginationClickable&&si()};i.updatePagination=function(n){var s,u,h,e,r,f;if(t.pagination&&!(i.slides.length<1)&&(s=o("."+t.paginationActiveClass,i.paginationContainer),s)&&(u=i.paginationButtons,u.length!=0)){for(r=0;r<u.length;r++)u[r].className=t.paginationElementClass;if(h=t.loop?i.loopedSlides:0,t.paginationAsRange){for(i.visibleSlides||i.calcVisibleSlides(n),e=[],r=0;r<i.visibleSlides.length;r++)f=i.slides.indexOf(i.visibleSlides[r])-h,t.loop&&f<0&&(f=i.slides.length-i.loopedSlides*2+f),t.loop&&f>=i.slides.length-i.loopedSlides*2&&(f=i.slides.length-i.loopedSlides*2-f,f=Math.abs(f)),e.push(f);for(r=0;r<e.length;r++)u[e[r]]&&(u[e[r]].className+=" "+t.paginationVisibleClass);t.loop?u[i.activeLoopIndex].className+=" "+t.paginationActiveClass:u[i.activeIndex].className+=" "+t.paginationActiveClass}else t.loop?u[i.activeLoopIndex].className+=" "+t.paginationActiveClass+" "+t.paginationVisibleClass:u[i.activeIndex].className+=" "+t.paginationActiveClass+" "+t.paginationVisibleClass}};i.calcVisibleSlides=function(n){var c=[],f=0,l=0,s=0,h,o;for(r&&i.wrapperLeft>0&&(n=n+i.wrapperLeft),!r&&i.wrapperTop>0&&(n=n+i.wrapperTop),h=0;h<i.slides.length;h++)f+=l,l=t.slidesPerView=="auto"?r?i.h.getWidth(i.slides[h],!0):i.h.getHeight(i.slides[h],!0):e,s=f+l,o=!1,t.visibilityFullFit?(f>=-n&&s<=-n+u&&(o=!0),f<=-n&&s>=-n+u&&(o=!0)):(s>-n&&s<=-n+u&&(o=!0),f>=-n&&f<-n+u&&(o=!0),f<-n&&s>-n+u&&(o=!0)),o&&c.push(i.slides[h]);c.length==0&&(c=[i.slides[i.activeIndex]]);i.visibleSlides=c};l=undefined;i.startAutoplay=function(){if(typeof l!="undefined")return!1;t.autoplay&&(i.callPlugins("onAutoplayStart"),vt())};i.stopAutoplay=function(n){l&&clearTimeout(l);l=undefined;n&&!t.autoplayDisableOnInteraction&&i.wrapperTransitionEnd(function(){vt()});i.callPlugins("onAutoplayStop")};i.loopCreated=!1;i.removeLoopedSlides=function(){if(i.loopCreated)for(var n=0;n<i.slides.length;n++)i.slides[n].getData("looped")===!0&&i.wrapper.removeChild(i.slides[n])};i.createLoop=function(){var f,h,c;if(i.slides.length!=0){i.loopedSlides=t.slidesPerView=="auto"?t.loopedSlides||1:t.slidesPerView+t.loopAdditionalSlides;i.loopedSlides>i.slides.length&&(i.loopedSlides=i.slides.length);for(var e="",o="",u="",r=i.slides.length,l=Math.floor(i.loopedSlides/r),s=i.loopedSlides%r,n=0;n<l*r;n++)f=n,n>=r&&(h=Math.floor(n/r),f=n-r*h),u+=i.slides[f].outerHTML;for(n=0;n<s;n++)o+=i.slides[n].outerHTML;for(n=r-s;n<r;n++)e+=i.slides[n].outerHTML;for(c=e+u+it.innerHTML+u+o,it.innerHTML=c,i.loopCreated=!0,i.calcSlides(),n=0;n<i.slides.length;n++)(n<i.loopedSlides||n>=i.slides.length-i.loopedSlides)&&i.slides[n].setData("looped",!0);i.callPlugins("onCreateLoop")}};i.fixLoop=function(){var n;i.activeIndex<i.loopedSlides?(n=i.slides.length-i.loopedSlides*3+i.activeIndex,i.swipeTo(n,0,!1)):i.activeIndex>i.slides.length-t.slidesPerView*2&&(n=-i.slides.length+i.activeIndex+i.loopedSlides,i.swipeTo(n,0,!1))};i.loadSlides=function(){var u="",r,f,n;for(i.activeLoaderIndex=0,r=t.loader.slides,f=t.loader.loadAllSlides?r.length:t.slidesPerView*(1+t.loader.surroundGroups),n=0;n<f;n++)u+=t.loader.slidesHTMLType=="outer"?r[n]:"<"+t.slideElement+' class="'+t.slideClass+'" data-swiperindex="'+n+'">'+r[n]+"<\/"+t.slideElement+">";i.wrapper.innerHTML=u;i.calcSlides(!0);t.loader.loadAllSlides||i.wrapperTransitionEnd(i.reloadSlides,!0)};i.reloadSlides=function(){var f=t.loader.slides,u=parseInt(i.activeSlide().data("swiperindex"),10),o,h,v,a,c,l,s,n,r;if(!(u<0)&&!(u>f.length-1)){if(i.activeLoaderIndex=u,o=Math.max(0,u-t.slidesPerView*t.loader.surroundGroups),h=Math.min(u+t.slidesPerView*(1+t.loader.surroundGroups)-1,f.length-1),u>0&&(v=-e*(u-o),i.setWrapperTranslate(v),i.setWrapperTransition(0)),t.loader.logic==="reload"){for(i.wrapper.innerHTML="",a="",n=o;n<=h;n++)a+=t.loader.slidesHTMLType=="outer"?f[n]:"<"+t.slideElement+' class="'+t.slideClass+'" data-swiperindex="'+n+'">'+f[n]+"<\/"+t.slideElement+">";i.wrapper.innerHTML=a}else{for(c=1e3,l=0,n=0;n<i.slides.length;n++)s=i.slides[n].data("swiperindex"),s<o||s>h?i.wrapper.removeChild(i.slides[n]):(c=Math.min(s,c),l=Math.max(s,l));for(n=o;n<=h;n++)n<c&&(r=document.createElement(t.slideElement),r.className=t.slideClass,r.setAttribute("data-swiperindex",n),r.innerHTML=f[n],i.wrapper.insertBefore(r,i.wrapper.firstChild)),n>l&&(r=document.createElement(t.slideElement),r.className=t.slideClass,r.setAttribute("data-swiperindex",n),r.innerHTML=f[n],i.wrapper.appendChild(r))}i.reInit(!0)}};hi()}},Swiper.prototype={plugins:{},wrapperTransitionEnd:function(n,t){function e(){if(n(r),r.params.queueEndCallbacks&&(r._queueEndCallbacks=!1),!t)for(i=0;i<u.length;i++)r.h.removeEventListener(f,u[i],e)}var r=this,f=r.wrapper,u=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],i;if(n)for(i=0;i<u.length;i++)r.h.addEventListener(f,u[i],e)},getWrapperTranslate:function(n){var f=this.wrapper,i,r,t,u;return typeof n=="undefined"&&(n=this.params.mode=="horizontal"?"x":"y"),this.support.transforms&&this.params.useCSS3Transforms?(t=window.getComputedStyle(f,null),window.WebKitCSSMatrix?u=new WebKitCSSMatrix(t.webkitTransform):(u=t.MozTransform||t.OTransform||t.MsTransform||t.msTransform||t.transform||t.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=u.toString().split(",")),n=="x"&&(r=window.WebKitCSSMatrix?u.m41:i.length==16?parseFloat(i[12]):parseFloat(i[4])),n=="y"&&(r=window.WebKitCSSMatrix?u.m42:i.length==16?parseFloat(i[13]):parseFloat(i[5]))):(n=="x"&&(r=parseFloat(f.style.left,10)||0),n=="y"&&(r=parseFloat(f.style.top,10)||0)),r||0},setWrapperTranslate:function(n,t,i){var u=this.wrapper.style,r={x:0,y:0,z:0},f;arguments.length==3?(r.x=n,r.y=t,r.z=i):(typeof t=="undefined"&&(t=this.params.mode=="horizontal"?"x":"y"),r[t]=n);this.support.transforms&&this.params.useCSS3Transforms?(f=this.support.transforms3d?"translate3d("+r.x+"px, "+r.y+"px, "+r.z+"px)":"translate("+r.x+"px, "+r.y+"px)",u.webkitTransform=u.MsTransform=u.msTransform=u.MozTransform=u.OTransform=u.transform=f):(u.left=r.x+"px",u.top=r.y+"px");this.callPlugins("onSetWrapperTransform",r);this.params.onSetWrapperTransform&&this.fireCallback(this.params.onSetWrapperTransform,this,r)},setWrapperTransition:function(n){var t=this.wrapper.style;t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=n/1e3+"s";this.callPlugins("onSetWrapperTransition",{duration:n});this.params.onSetWrapperTransition&&this.fireCallback(this.params.onSetWrapperTransition,this,n)},h:{getWidth:function(n,t){var r=window.getComputedStyle(n,null).getPropertyValue("width"),i=parseFloat(r);return(isNaN(i)||r.indexOf("%")>0)&&(i=n.offsetWidth-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-left"))-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-right"))),t&&(i+=parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-left"))+parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-right"))),i},getHeight:function(n,t){if(t)return n.offsetHeight;var r=window.getComputedStyle(n,null).getPropertyValue("height"),i=parseFloat(r);return(isNaN(i)||r.indexOf("%")>0)&&(i=n.offsetHeight-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-top"))-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-bottom"))),t&&(i+=parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-top"))+parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-bottom"))),i},getOffset:function(n){var t=n.getBoundingClientRect(),i=document.body,f=n.clientTop||i.clientTop||0,e=n.clientLeft||i.clientLeft||0,r=window.pageYOffset||n.scrollTop,u=window.pageXOffset||n.scrollLeft;return document.documentElement&&!window.pageYOffset&&(r=document.documentElement.scrollTop,u=document.documentElement.scrollLeft),{top:t.top+r-f,left:t.left+u-e}},windowWidth:function(){return window.innerWidth?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:void 0},windowHeight:function(){return window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:void 0},windowScroll:function(){return typeof pageYOffset!="undefined"?{left:window.pageXOffset,top:window.pageYOffset}:document.documentElement?{left:document.documentElement.scrollLeft,top:document.documentElement.scrollTop}:void 0},addEventListener:function(n,t,i,r){typeof r=="undefined"&&(r=!1);n.addEventListener?n.addEventListener(t,i,r):n.attachEvent&&n.attachEvent("on"+t,i)},removeEventListener:function(n,t,i,r){typeof r=="undefined"&&(r=!1);n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent&&n.detachEvent("on"+t,i)}},setTransform:function(n,t){var i=n.style;i.webkitTransform=i.MsTransform=i.msTransform=i.MozTransform=i.OTransform=i.transform=t},setTranslate:function(n,t){var i=n.style,r={x:t.x||0,y:t.y||0,z:t.z||0},u=this.support.transforms3d?"translate3d("+r.x+"px,"+r.y+"px,"+r.z+"px)":"translate("+r.x+"px,"+r.y+"px)";i.webkitTransform=i.MsTransform=i.msTransform=i.MozTransform=i.OTransform=i.transform=u;this.support.transforms||(i.left=r.x+"px",i.top=r.y+"px")},setTransition:function(n,t){var i=n.style;i.webkitTransitionDuration=i.MsTransitionDuration=i.msTransitionDuration=i.MozTransitionDuration=i.OTransitionDuration=i.transitionDuration=t+"ms"},support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var n=document.createElement("div").style;return"webkitPerspective"in n||"MozPerspective"in n||"OPerspective"in n||"MsPerspective"in n||"perspective"in n}(),transforms:window.Modernizr&&Modernizr.csstransforms===!0||function(){var n=document.createElement("div").style;return"transform"in n||"WebkitTransform"in n||"MozTransform"in n||"msTransform"in n||"MsTransform"in n||"OTransform"in n}(),transitions:window.Modernizr&&Modernizr.csstransitions===!0||function(){var n=document.createElement("div").style;return"transition"in n||"WebkitTransition"in n||"MozTransition"in n||"msTransition"in n||"MsTransition"in n||"OTransition"in n}()},browser:{ie8:function(){var n=-1,t,i;return navigator.appName=="Microsoft Internet Explorer"&&(t=navigator.userAgent,i=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"),i.exec(t)!=null&&(n=parseFloat(RegExp.$1))),n!=-1&&n<9}(),ie10:window.navigator.msPointerEnabled}},(window.jQuery||window.Zepto)&&function(n){n.fn.swiper=function(t){var i=new Swiper(n(this)[0],t);return n(this).data("swiper",i),i}}(window.jQuery||window.Zepto),typeof module!="undefined"&&(module.exports=Swiper),(window.jQuery||window.Zepto)&&function(n){n.fn.Swipe=function(t){return this.each(function(){n(this).data("Swipe",new Swipe(n(this)[0],t))})}}(window.jQuery||window.Zepto),function(){for(var i=$('[data-mediabox="true"]'),n=0;n<i.length;n++){var t=i[n],r=t.getAttribute("data-mediabox-photoslide")||"false",u=t.getAttribute("data-mediabox-type")||"unset",f=new DNSwiper(t,r=="true",u);f.init()}}(window),function(n){n.extend(n.fn,{livequery:function(t,i,r){var f=this,u;return n.isFunction(t)&&(r=i,i=t,t=undefined),n.each(n.livequery.queries,function(n,e){if(f.selector==e.selector&&f.context==e.context&&t==e.type&&(!i||i.$lqguid==e.fn.$lqguid)&&(!r||r.$lqguid==e.fn2.$lqguid))return(u=e)&&!1}),u=u||new n.livequery(this.selector,this.context,t,i,r),u.stopped=!1,u.run(),this},expire:function(t,i,r){var u=this;return n.isFunction(t)&&(r=i,i=t,t=undefined),n.each(n.livequery.queries,function(f,e){u.selector!=e.selector||u.context!=e.context||t&&t!=e.type||i&&i.$lqguid!=e.fn.$lqguid||r&&r.$lqguid!=e.fn2.$lqguid||this.stopped||n.livequery.stop(e.id)}),this}});n.livequery=function(t,i,r,u,f){return this.selector=t,this.context=i,this.type=r,this.fn=u,this.fn2=f,this.elements=[],this.stopped=!1,this.id=n.livequery.queries.push(this)-1,u.$lqguid=u.$lqguid||n.livequery.guid++,f&&(f.$lqguid=f.$lqguid||n.livequery.guid++),this};n.livequery.prototype={stop:function(){var n=this;this.type?this.elements.unbind(this.type,this.fn):this.fn2&&this.elements.each(function(t,i){n.fn2.apply(i)});this.elements=[];this.stopped=!0},run:function(){if(!this.stopped){var i=this,t=this.elements,r=n(this.selector,this.context),u=r.not(t);this.elements=r;this.type?(u.bind(this.type,this.fn),t.length>0&&n.each(t,function(t,u){n.inArray(u,r)<0&&n.event.remove(u,i.type,i.fn)})):(u.each(function(){i.fn.apply(this)}),this.fn2&&t.length>0&&n.each(t,function(t,u){n.inArray(u,r)<0&&i.fn2.apply(u)}))}}};n.extend(n.livequery,{guid:0,queries:[],queue:[],running:!1,timeout:null,checkQueue:function(){if(n.livequery.running&&n.livequery.queue.length)for(var t=n.livequery.queue.length;t--;)n.livequery.queries[n.livequery.queue.shift()].run()},pause:function(){n.livequery.running=!1},play:function(){n.livequery.running=!0;n.livequery.run()},registerPlugin:function(){n.each(arguments,function(t,i){if(n.fn[i]){var r=n.fn[i];n.fn[i]=function(){var t=r.apply(this,arguments);return n.livequery.run(),t}}})},run:function(t){t!=undefined?n.inArray(t,n.livequery.queue)<0&&n.livequery.queue.push(t):n.each(n.livequery.queries,function(t){n.inArray(t,n.livequery.queue)<0&&n.livequery.queue.push(t)});n.livequery.timeout&&clearTimeout(n.livequery.timeout);n.livequery.timeout=setTimeout(n.livequery.checkQueue,20)},stop:function(t){t!=undefined?n.livequery.queries[t].stop():n.each(n.livequery.queries,function(t){n.livequery.queries[t].stop()})}});n.livequery.registerPlugin("append","prepend","after","before","wrap","attr","removeAttr","addClass","removeClass","toggleClass","empty","remove","html");n(function(){n.livequery.play()})}(jQuery),function(n){n.alerts={verticalOffset:-75,horizontalOffset:0,repositionOnResize:!0,overlayOpacity:.01,overlayColor:"#FFF",draggable:!0,okButton:"&nbsp;OK&nbsp;",cancelButton:"&nbsp;Cancel&nbsp;",dialogClass:null,alert:function(t,i,r){i==null&&(i="Alert");n.alerts._show(i,t,null,"alert",function(n){r&&r(n)})},confirm:function(t,i,r){i==null&&(i="Confirm");n.alerts._show(i,t,null,"confirm",function(n){r&&r(n)})},prompt:function(t,i,r,u){r==null&&(r="Prompt");n.alerts._show(r,t,i,"prompt",function(n){u&&u(n)})},_show:function(t,i,r,u,f){n.alerts._hide();n.alerts._overlay("show");n("BODY").append('<div id="popup_container"><h1 id="popup_title"><\/h1><div id="popup_content"><div id="popup_message"><\/div><\/div><\/div>');n.alerts.dialogClass&&n("#popup_container").addClass(n.alerts.dialogClass);var e=n.browser.msie&&parseInt(n.browser.version)<=6?"absolute":"fixed";n("#popup_container").css({position:e,zIndex:99999,padding:0,margin:0});n("#popup_title").text(t);n("#popup_content").addClass(u);n("#popup_message").text(i);n("#popup_message").html(n("#popup_message").text().replace(/\n/g,"<br />"));n("#popup_container").css({minWidth:n("#popup_container").outerWidth(),maxWidth:n("#popup_container").outerWidth()});n.alerts._reposition();n.alerts._maintainPosition(!0);switch(u){case"alert":n("#popup_message").after('<div id="popup_panel"><input type="button" value="'+n.alerts.okButton+'" id="popup_ok" /><\/div>');n("#popup_ok").click(function(){n.alerts._hide();f(!0)});n("#popup_ok").focus().keypress(function(t){(t.keyCode==13||t.keyCode==27)&&n("#popup_ok").trigger("click")});break;case"confirm":n("#popup_message").after('<div id="popup_panel"><input type="button" value="'+n.alerts.okButton+'" id="popup_ok" /> <input type="button" value="'+n.alerts.cancelButton+'" id="popup_cancel" /><\/div>');n("#popup_ok").click(function(){n.alerts._hide();f&&f(!0)});n("#popup_cancel").click(function(){n.alerts._hide();f&&f(!1)});n("#popup_ok").focus();n("#popup_ok, #popup_cancel").keypress(function(t){t.keyCode==13&&n("#popup_ok").trigger("click");t.keyCode==27&&n("#popup_cancel").trigger("click")});break;case"prompt":n("#popup_message").append('<br /><input type="text" size="30" id="popup_prompt" />').after('<div id="popup_panel"><input type="button" value="'+n.alerts.okButton+'" id="popup_ok" /> <input type="button" value="'+n.alerts.cancelButton+'" id="popup_cancel" /><\/div>');n("#popup_prompt").width(n("#popup_message").width());n("#popup_ok").click(function(){var t=n("#popup_prompt").val();n.alerts._hide();f&&f(t)});n("#popup_cancel").click(function(){n.alerts._hide();f&&f(null)});n("#popup_prompt, #popup_ok, #popup_cancel").keypress(function(t){t.keyCode==13&&n("#popup_ok").trigger("click");t.keyCode==27&&n("#popup_cancel").trigger("click")});r&&n("#popup_prompt").val(r);n("#popup_prompt").focus().select()}if(n.alerts.draggable)try{n("#popup_container").draggable({handle:n("#popup_title")});n("#popup_title").css({cursor:"move"})}catch(o){}},_hide:function(){n("#popup_container").remove();n.alerts._overlay("hide");n.alerts._maintainPosition(!1)},_overlay:function(t){switch(t){case"show":n.alerts._overlay("hide");n("BODY").append('<div id="popup_overlay"><\/div>');n("#popup_overlay").css({position:"absolute",zIndex:99998,top:"0px",left:"0px",width:"100%",height:n(document).height(),background:n.alerts.overlayColor,opacity:n.alerts.overlayOpacity});break;case"hide":n("#popup_overlay").remove()}},_reposition:function(){var t=n(window).height()/2-n("#popup_container").outerHeight()/2+n.alerts.verticalOffset,i=n(window).width()/2-n("#popup_container").outerWidth()/2+n.alerts.horizontalOffset;t<0&&(t=0);i<0&&(i=0);n.browser.msie&&parseInt(n.browser.version)<=6&&(t=t+n(window).scrollTop());n("#popup_container").css({top:t+"px",left:i+"px"});n("#popup_overlay").height(n(document).height())},_maintainPosition:function(t){if(n.alerts.repositionOnResize)switch(t){case!0:n(window).bind("resize",function(){n.alerts._reposition()});break;case!1:n(window).unbind("resize")}}};jAlert=function(t,i,r){n.alerts.alert(t,i,r)};jConfirm=function(t,i,r){n.alerts.confirm(t,i,r)};jPrompt=function(t,i,r,u){n.alerts.prompt(t,i,r,u)}}(jQuery),jQuery(function(n){function w(f){var w,e,b,h,nt,y;if(!i.loadingShown&&!i.transition&&!i.anim)if(r("processModal"),i.started=!0,ni=n.extend(!0,f),ii(f),i.full||(i.blockerVars=i.blocker=null),i.error=!1,i.closing=!1,i.dataReady=!1,i.scripts=[],i.scriptsShown=[],t.type=fi(),t.forceType&&(t.content||(t.from=!0),t.type=t.forceType,t.forceType=null),n.isFunction(t.processHandler)&&t.processHandler(t),w=t.from,e=t.url,o.width=t.width,o.height=t.height,t.type=="swf"&&(u({overflow:"visible"},"cssOpt","content"),t.content='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+t.width+'" height="'+t.height+'"><param name="movie" value="'+e+'"><\/param>',b="",n.each(t.swf,function(n,i){t.content+='<param name="'+n+'" value="'+i+'"><\/param>';b+=" "+n+'="'+i+'"'}),t.content+='<embed src="'+e+'" type="application/x-shockwave-flash" width="'+t.width+'" height="'+t.height+'"'+b+"><\/embed><\/object>"),w)if(h=n(w).blur(),t.type=="form")y=n(w).serializeArray(),y.push({name:t.formIndicator,value:1}),t.selector&&y.push({name:t.selIndicator,value:t.selector.substring(1)}),c(),n.ajax(n.extend({},t.ajax,{url:e,data:y,type:h.attr("method")?h.attr("method"):"get",success:wt,error:s})),r("Form Ajax Load: "+h.attr("action"));else if(t.type=="formData")v(),h.attr("target","nyroModalIframe"),h.attr("action",e),h.prepend('<input type="hidden" name="'+t.formIndicator+'" value="1" />'),t.selector&&h.prepend('<input type="hidden" name="'+t.selIndicator+'" value="'+t.selector.substring(1)+'" />'),i.tmp.html('<iframe frameborder="0" hspace="0" name="nyroModalIframe" src="javascript:\'\';"><\/iframe>'),n("iframe",i.tmp).css({width:t.width,height:t.height}).error(s).load(oi),r("Form Data Load: "+h.attr("action")),c(),l();else if(t.type=="image")r("Image Load: "+e),nt=h.attr("title")||t.defaultImgAlt,v(),i.tmp.html('<img id="nyroModalImg" />').find("img").attr("alt",nt),i.tmp.css({lineHeight:0}),n("img",i.tmp).error(s).load(function(){r("Image Loaded: "+this.src);n(this).unbind("load");var t=i.tmp.width(),f=i.tmp.height();i.tmp.css({lineHeight:""});a.width=t;a.height=f;u({width:t,height:f,imgWidth:t,imgHeight:f});o.width=t;o.height=f;u({overflow:"visible"},"cssOpt","content");i.dataReady=!0;(i.loadingShown||i.transition)&&l()}).attr("src",e),c();else if(t.type=="iframeForm")v(),i.tmp.html('<iframe frameborder="0" hspace="0" src="javascript:\'\';" name="nyroModalIframe" id="nyroModalIframe"><\/iframe>'),r("Iframe Form Load: "+e),n("iframe",i.tmp).eq(0).css({width:"100%",height:n.support.boxModel?"99%":"100%"}).load(bt),i.dataReady=!0,c();else if(t.type=="iframe")v(),i.tmp.html('<iframe frameborder="0" hspace="0" src="javascript:\'\';" name="nyroModalIframe" id="nyroModalIframe"><\/iframe>'),r("Iframe Load: "+e),n("iframe",i.tmp).eq(0).css({width:"100%",height:n.support.boxModel?"99%":"100%"}).load(bt),i.dataReady=!0,c();else if(t.type){r("Content: "+t.type);v();i.tmp.html(t.content);var d=i.tmp.width(),g=i.tmp.height(),p=n(t.type);p.length&&(u({type:"div"}),d=p.width(),g=p.height(),k&&(ut=k),k=p,i.tmp.append(p.contents()));t.width==null&&(o.width=d,o.height=g,u({width:d,height:g}));i.tmp.html()?i.dataReady=!0:s();i.ready?it():c()}else r("Ajax Load: "+e),u({type:"ajax"}),y=t.ajax.data||{},t.selector&&(typeof y=="string"?y+="&"+t.selIndicator+"="+t.selector.substring(1):y[t.selIndicator]=t.selector.substring(1)),c(),n.ajax(n.extend(!0,t.ajax,{url:e,success:wt,error:s,data:y}));else t.content&&(r("Content: "+t.type),u({type:"manual"}),v(),i.tmp.html(n("<div/>").html(t.content).contents()),i.tmp.html()?i.dataReady=!0:s(),c())}function ii(i){r("setDefaultCurrentSettings");t=n.extend(!0,{},n.fn.nyroModal.settings,i);ft()}function u(r,u,f){i.started?u&&f?n.extend(!0,t[u][f],r):u?n.extend(!0,t[u],r):(i.animContent&&("width"in r&&(i.resizing||(r.setWidth=r.width,rt=!0),delete r.width),"height"in r&&(i.resizing||(r.setHeight=r.height,rt=!0),delete r.height)),n.extend(!0,t,r)):u&&f?n.extend(!0,n.fn.nyroModal.settings[u][f],r):u?n.extend(!0,n.fn.nyroModal.settings[u],r):n.extend(!0,n.fn.nyroModal.settings,r)}function st(){p&&!i.blocker?document.documentElement?(t.marginScrollLeft=document.documentElement.scrollLeft,t.marginScrollTop=document.documentElement.scrollTop):(t.marginScrollLeft=document.body.scrollLeft,t.marginScrollTop=document.body.scrollTop):(t.marginScrollLeft=0,t.marginScrollTop=0)}function ft(){st();t.marginLeft=-(t.width+t.borderW)/2;t.marginTop=-(t.height+t.borderH)/2;i.blocker||(t.marginLeft+=t.marginScrollLeft,t.marginTop+=t.marginScrollTop)}function et(){st();var n=d(i.loading);t.marginTopLoading=-(i.loading.height()+n.h.border+n.h.padding)/2;t.marginLeftLoading=-(i.loading.width()+n.w.border+n.w.padding)/2;i.blocker||(t.marginLeftLoading+=t.marginScrollLeft,t.marginTopLoading+=t.marginScrollTop)}function ht(){var r=n("h1#nyroModalTitle",i.contentWrapper);r.length?r.text(t.title):i.contentWrapper.prepend('<h1 id="nyroModalTitle">'+t.title+"<\/h1>")}function v(){var c,l,e,o;if(r("initModal"),!i.full){t.debug&&u({color:"white"},"cssOpt","bg");var a={zIndex:t.zIndexStart,position:"fixed",top:0,left:0,width:"100%",height:"100%"},v=h,w="";if(t.blocker){i.blocker=v=n(t.blocker);var s=i.blocker.offset(),e=i.blocker.outerWidth(),o=i.blocker.outerHeight();p&&u({height:"100%",width:"100%",top:0,left:0},"cssOpt","bg");i.blockerVars={top:s.top,left:s.left,width:e,height:o};c=/msie/.test(y)?0:f(h.get(0),"borderTopWidth");l=/msie/.test(y)?0:f(h.get(0),"borderLeftWidth");a={position:"absolute",top:s.top+c,left:s.left+l,width:e,height:o}}else p&&(h.css({marginLeft:0,marginRight:0}),e=h.width(),o=n(window).height()+"px",n(window).height()>=h.outerHeight()?o=h.outerHeight()+"px":e+=20,e+="px",h.css({width:e,height:o,position:"static",overflow:"hidden"}),n("html").css({overflow:"hidden"}),u({cssOpt:{bg:{position:"absolute",zIndex:t.zIndexStart+1,height:"110%",width:"110%",top:t.marginScrollTop+"px",left:t.marginScrollLeft+"px"},wrapper:{zIndex:t.zIndexStart+2},loading:{zIndex:t.zIndexStart+3}}}),w=n('<iframe id="nyroModalIframeHideIe" src="javascript:\'\';"><\/iframe>').css(n.extend({},t.cssOpt.bg,{opacity:0,zIndex:50,border:"none"})));v.append(n('<div id="nyroModalFull"><\/div>'));p?n("#nyroModalFull").append(n('<div id="nyroModalBg"><\/div><div id="nyroModalWrapper"><div id="dnse-modal"><div class="modalie6"><div id="nyroModalContent" style="position: static !important;"><\/div><\/div><\/div><\/div><div id="nyrModalTmp"><\/div><div id="nyroModalLoading"><\/div>').hide()):n("#nyroModalFull").append(n('<div id="nyroModalBg"><\/div><div id="nyroModalWrapper"><div id="dnse-modal"><div class="dialog" style="z-index:2;margin: 0 0 0 -12px;"><div class="content"><div class="t"><\/div><div id="nyroModalContent" style="position: static !important;"><\/div><\/div><div class="b"><div><\/div><\/div><\/div><\/div><\/div><div id="nyrModalTmp"><\/div><div id="nyroModalLoading"><\/div>').hide());i.full=n("#nyroModalFull").css(a).show();i.bg=n("#nyroModalBg").css(n.extend({backgroundColor:t.bgColor},t.cssOpt.bg)).before(w);i.bg.bind("click.nyroModal",ui);i.loading=n("#nyroModalLoading").css(t.cssOpt.loading).hide();i.contentWrapper=n("#nyroModalWrapper").css(t.cssOpt.wrapper).hide();i.content=n("#nyroModalContent");i.tmp=n("#nyrModalTmp").hide();n.isFunction(n.fn.mousewheel)&&i.content.mousewheel(function(n,t){var r=i.content.get(0);(t>0&&r.scrollTop==0||t<0&&r.scrollHeight-r.scrollTop==r.clientHeight)&&(n.preventDefault(),n.stopPropagation())});n(document).bind("keydown.nyroModal",ct);i.content.css({width:"auto",height:"auto"});i.contentWrapper.css({width:"auto",height:"auto"});!t.blocker&&t.windowResize&&n(window).bind("resize.nyroModal",function(){window.clearTimeout(ti);ti=window.setTimeout(ri,200)})}}function ri(){n.nyroModalSettings(o)}function c(){r("showModal");i.ready?(i.anim=!0,i.transition=!0,t.showTransition(i,t,function(){it();i.anim=!1;l()})):(v(),i.anim=!0,t.showBackground(i,t,hi))}function ui(){t.modal||b()}function ct(r){if(r.keyCode==27)t.modal||b();else if(t.gallery&&i.ready&&i.dataReady&&!i.anim&&!i.transition){if(r.keyCode==39||r.keyCode==40)return r.preventDefault(),n.nyroModalNext(),!1;if(r.keyCode==37||r.keyCode==38)return r.preventDefault(),n.nyroModalPrev(),!1}}function fi(){var i=t.from,r,e,h,o,c,f,s;if(i&&i.nodeName){if(e=n(i),r=e.attr(i.nodeName.toLowerCase()=="form"?"action":"href"),r||(r=location.href.substring(window.location.host.length+7)),t.url=r,e.attr("rev")=="modal"&&(t.modal=!0),t.title=e.attr("title"),i&&i.rel&&i.rel.toLowerCase()!="nofollow"&&(h=i.rel.indexOf(" "),t.gallery=h>0?i.rel.substr(0,h):i.rel),f=lt(r,i),f)return f;if(at(r))return"swf";if(o=!1,(i.target&&i.target.toLowerCase()=="_blank"||i.hostname&&i.hostname.replace(/:\d*$/,"")!=window.location.hostname.replace(/:\d*$/,""))&&(o=!0),i.nodeName.toLowerCase()=="form")return o?"iframeForm":(u(vt(r)),e.attr("enctype")=="multipart/form-data")?"formData":"form";if(o)return"iframe"}else{if(r=t.url,t.content||(t.from=!0),!r)return null;if(at(r))return"swf";if(c=new RegExp("^http://|https://","g"),r.match(c))return"iframe"}return(f=lt(r,i),f)?f:(s=vt(r),u(s),s.url?void 0:s.selector)}function lt(n){var i=new RegExp(t.regexImg,"i");if(i.test(n))return"image"}function at(n){var t=new RegExp("[^.].(swf)s*$","i");return t.test(n)}function vt(t){var i={url:null,selector:null};if(t){var r=dt(t),f=dt(window.location.href),e=window.location.href.substring(0,window.location.href.length-f.length),u=t.substring(0,t.length-r.length);u==e||u==n("base").attr("href")?i.selector=r:(i.url=u,i.selector=r)}return i}function s(){(r("loadingError"),i.error=!0,i.ready)&&(n.isFunction(t.handleError)&&t.handleError(i,t),i.loading.addClass(t.errorClass).html(t.contentError),n(t.closeSelector,i.loading).unbind("click.nyroModal").bind("click.nyroModal",b),et(),i.loading.css({marginTop:t.marginTopLoading+"px",marginLeft:t.marginLeftLoading+"px"}))}function yt(){(r("fillContent"),i.tmp.html())&&(i.content.html(i.tmp.contents()),i.tmp.empty(),ei(),t.type=="iframeForm"&&n(t.from).attr("target","nyroModalIframe").data("nyroModalprocessing",1).submit().attr("target","_blank").removeData("nyroModalprocessing"),t.modal||i.wrapper.prepend(t.closeButton),n.isFunction(t.endFillContent)&&t.endFillContent(i,t),i.content.append(i.scripts),n(t.closeSelector,i.contentWrapper).unbind("click.nyroModal").bind("click.nyroModal",b),n(t.openSelector,i.contentWrapper).nyroModal(nt()))}function nt(){return ni}function ei(){var o,c,s,u,h,f;r("wrapContent");o=n(t.wrap[t.type]);i.content.append(o.children().remove());i.contentWrapper.wrapInner(o);t.gallery&&(i.content.append(t.galleryLinks),e.links=n('[rel="'+t.gallery+'"], [rel^="'+t.gallery+' "]'),e.index=e.links.index(t.from),t.galleryCounts&&n.isFunction(t.galleryCounts)&&t.galleryCounts(e.index+1,e.links.length,i,t),c=nt(),s=tt(-1),s?(u=n(".nyroModalPrev",i.contentWrapper).attr("href",s.attr("href")).click(function(t){return t.preventDefault(),n.nyroModalPrev(),!1}),p&&t.type=="swf"&&u.before(n('<iframe id="nyroModalIframeHideIeGalleryPrev" src="javascript:\'\';"><\/iframe>').css({position:u.css("position"),top:u.css("top"),left:u.css("left"),width:u.width(),height:u.height(),opacity:0,border:"none"}))):n(".nyroModalPrev",i.contentWrapper).remove(),h=tt(1),h?(f=n(".nyroModalNext",i.contentWrapper).attr("href",h.attr("href")).click(function(t){return t.preventDefault(),n.nyroModalNext(),!1}),p&&t.type=="swf"&&f.before(n('<iframe id="nyroModalIframeHideIeGalleryNext" src="javascript:\'\';"><\/iframe>').css(n.extend({},{position:f.css("position"),top:f.css("top"),left:f.css("left"),width:f.width(),height:f.height(),opacity:0,border:"none"})))):n(".nyroModalNext",i.contentWrapper).remove());pt()}function tt(n){if(t.gallery){t.ltr||(n*=-1);var i=e.index+n;if(i>=0&&i<e.links.length)return e.links.eq(i);if(t.galleryLoop)return i<0?e.links.eq(e.links.length-1):e.links.eq(0)}return!1}function pt(f){var e,c,l,h,tt;r("calculateSize");i.wrapper=i.contentWrapper.children("div:first");a.width=!1;a.height=!1;!0||t.windowResizing||(o.width=t.width,o.height=t.height);!t.autoSizable||t.width&&t.height||(i.contentWrapper.css({opacity:0,width:"auto",height:"auto"}).show(),e={width:"auto",height:"auto"},t.width?e.width=t.width:t.type=="iframe"&&(e.width=t.minWidth),t.height?e.height=t.height:t.type=="iframe"&&(e.height=t.minHeight),i.content.css(e),t.width||(t.width=i.content.outerWidth(!0),a.width=!0),t.height||(t.height=i.content.outerHeight(!0),a.height=!0),i.contentWrapper.css({opacity:1}),f||i.contentWrapper.hide());t.type!="image"&&t.type!="swf"&&(t.width=Math.max(t.width,t.minWidth),t.height=Math.max(t.height,t.minHeight));var v=d(i.contentWrapper),y=d(i.wrapper),s=d(i.content),e={content:{width:t.width,height:t.height},wrapper2:{width:t.width+s.w.total,height:t.height+s.h.total},wrapper:{width:t.width+s.w.total+y.w.total,height:t.height+s.h.total+y.h.total}};if(t.resizable&&(c=i.blockerVars?i.blockerVars.height:n(window).height()-v.h.border-(e.wrapper.height-t.height),l=i.blockerVars?i.blockerVars.width:n(window).width()-v.w.border-(e.wrapper.width-t.width),c-=t.padding*2,l-=t.padding*2,e.content.height>c||e.content.width>l)){if(t.type=="image"||t.type=="swf"){var b=t.imgWidth?t.imgWidth:t.width,k=t.imgHeight?t.imgHeight:t.height,p=e.content.width-b,w=e.content.height-k;w<0&&(w=0);p<0&&(p=0);var g=c-w,nt=l-p,it=Math.min(g/k,nt/b);nt=Math.floor(b*it);g=Math.floor(k*it);e.content.height=g+w;e.content.width=nt+p}else e.content.height=Math.min(e.content.height,c),e.content.width=Math.min(e.content.width,l);e.wrapper2={width:e.content.width+s.w.total,height:e.content.height+s.h.total};e.wrapper={width:e.content.width+s.w.total+y.w.total,height:e.content.height+s.h.total+y.h.total}}t.type=="swf"?n("object, embed",i.content).attr("width",e.content.width).attr("height",e.content.height):t.type=="image"&&n("img",i.content).css({width:e.content.width,height:e.content.height});i.content.css(n.extend({},e.content,t.cssOpt.content));i.wrapper.css(n.extend({},e.wrapper2,t.cssOpt.wrapper2));f||i.contentWrapper.css(n.extend({},e.wrapper,t.cssOpt.wrapper));t.type=="image"&&t.addImageDivTitle&&(n("img",i.content).removeAttr("alt"),h=n("div",i.content),t.title!=t.defaultImgAlt&&t.title?(h.length==0&&(h=n("<div>"+t.title+"<\/div>"),i.content.append(h)),t.setWidthImgTitle&&(tt=d(h),h.css({width:e.content.width+s.w.padding-tt.w.total+"px"}))):(h.length=0)&&h.remove());t.title&&ht();e.wrapper.borderW=v.w.border;e.wrapper.borderH=v.h.border;u(e.wrapper);ft()}function b(u){return r("removeModal"),u&&u.preventDefault(),i.full&&i.ready&&(n(document).unbind("keydown.nyroModal"),t.blocker||n(window).unbind("resize.nyroModal"),i.ready=!1,i.anim=!0,i.closing=!0,i.loadingShown||i.transition?t.hideLoading(i,t,function(){i.loading.hide();i.loadingShown=!1;i.transition=!1;t.hideBackground(i,t,ot)}):(g&&i.content.css({position:""}),i.wrapper.css({overflow:"hidden"}),i.content.css({overflow:"hidden"}),n("iframe",i.content).hide(),n.isFunction(t.beforeHideContent)?t.beforeHideContent(i,t,function(){t.hideContent(i,t,function(){it();t.hideBackground(i,t,ot)})}):t.hideContent(i,t,function(){it();t.hideBackground(i,t,ot)}))),u?!1:void 0}function l(){r("showContentOrLoading");i.ready&&!i.anim&&(i.dataReady?i.tmp.html()&&(i.anim=!0,i.transition?(yt(),i.animContent=!0,t.hideTransition(i,t,function(){i.loading.hide();i.transition=!1;i.loadingShown=!1;kt()})):t.hideLoading(i,t,function(){i.loading.hide();i.loadingShown=!1;yt();et();ft();i.animContent=!0;t.showContent(i,t,kt)})):i.loadingShown||i.transition||(i.anim=!0,i.loadingShown=!0,i.error?s():i.loading.html(t.contentLoading),n(t.closeSelector,i.loading).unbind("click.nyroModal").bind("click.nyroModal",b),et(),t.showLoading(i,t,function(){i.anim=!1;l()})))}function wt(u){if(r("AjaxLoaded: "+this.url),t.selector){var f={},e=0;u=u.replace(/\r\n/gi,"nyroModalLN").replace(/<script(.|\s)*?\/script>/gi,function(n){return f[e]=n,'<pre style="display: none" class=nyroModalScript rel="'+e+++'"><\/pre>'});u=n("<div>"+u+"<\/div>").find(t.selector).html().replace(/<pre style="display: none;?" class="?nyroModalScript"? rel="(.?)"><\/pre>/gi,function(n,t){return f[t]}).replace(/nyroModalLN/gi,"\r\n")}i.tmp.html(ci(u));i.tmp.html()?(i.dataReady=!0,l()):s()}function oi(){var u,f,e;r("formDataLoaded");u=n(t.from);u.attr("action",u.attr("action")+t.selector);u.attr("target","");n("input[name="+t.formIndicator+"]",t.from).remove();f=i.tmp.children("iframe");e=f.unbind("load").contents().find(t.selector||"body").not("script[src]");f.attr("src","about:blank");i.tmp.html(e.html());i.tmp.html()?(i.dataReady=!0,l()):s()}function bt(){var f,r,u;if(window.location.hostname&&t.url.indexOf(window.location.hostname)>-1||t.url.indexOf("http://")){if(f=n("iframe",i.full).contents(),r={},t.titleFromIframe&&(r.title=f.find("title").text(),!r.title))try{r.title=f.find("title").html()}catch(e){}u=f.find("body");!t.height&&u.height()&&(r.height=u.height());!t.width&&u.width()&&(r.width=u.width());n.extend(o,r);n.nyroModalSettings(r)}}function si(n,t,i,r){t>1&&(r.title+=(r.title?" - ":"")+n+"/"+t)}function it(){r("endHideContent");i.anim=!1;ut?(ut.append(i.content.contents()),ut=null):k&&(k.append(i.content.contents()),k=null);i.content.empty();e={};i.contentWrapper.hide().children().remove().empty().attr("style","").hide();(i.closing||i.transition)&&i.contentWrapper.hide();i.contentWrapper.css(t.cssOpt.wrapper).append(i.content);l()}function ot(){r("endRemove");n(document).unbind("keydown",ct);i.anim=!1;i.full.remove();i.full=null;p&&(h.css({height:"",width:"",position:"",overflow:"",marginLeft:"",marginRight:""}),n("html").css({overflow:""}));n.isFunction(t.endRemove)&&t.endRemove(i,t)}function hi(){r("endBackground");i.ready=!0;i.anim=!1;l()}function kt(){r("endShowContent");i.anim=!1;i.animContent=!1;i.contentWrapper.css({opacity:""});g=/mozilla/.test(y)&&!/(compatible|webkit)/.test(y)&&parseFloat(gt)<1.9&&t.type!="image";g&&i.content.css({position:"fixed"});i.content.append(i.scriptsShown);t.type=="iframe"&&i.content.find("iframe").attr("src",t.url);n.isFunction(t.endShowContent)&&t.endShowContent(i,t);rt&&(rt=!1,n.nyroModalSettings({width:t.setWidth,height:t.setHeight}),delete t.setWidth,delete t.setHeight);a.width&&u({width:null});a.height&&u({height:null})}function dt(n){if(typeof n=="string"){var t=n.indexOf("#");if(t>-1)return n.substring(t)}return""}function ci(t){typeof t=="string"&&(t=t.replace(/<\/?(html|head|body)([^>]*)>/gi,""));var r=[];return n.each(n.clean({0:t},this.ownerDocument),function(){n.nodeName(this,"script")?this.src&&n(this).attr("rel")!="forceLoad"||(n(this).attr("rev")=="shown"?i.scriptsShown.push(this):i.scripts.push(this)):r.push(this)}),r}function d(n){n=n.get(0);var t={h:{margin:f(n,"marginTop")+f(n,"marginBottom"),border:f(n,"borderTopWidth")+f(n,"borderBottomWidth"),padding:f(n,"paddingTop")+f(n,"paddingBottom")},w:{margin:f(n,"marginLeft")+f(n,"marginRight"),border:f(n,"borderLeftWidth")+f(n,"borderRightWidth"),padding:f(n,"paddingLeft")+f(n,"paddingRight")}};return t.h.outer=t.h.margin+t.h.border,t.w.outer=t.w.margin+t.w.border,t.h.inner=t.h.padding+t.h.border,t.w.inner=t.w.padding+t.w.border,t.h.total=t.h.outer+t.h.padding,t.w.total=t.w.outer+t.w.padding,t}function f(t,i){var r=parseInt(n.css(t,i,!0));return isNaN(r)&&(r=0),r}function r(r){(n.fn.nyroModal.settings.debug||t&&t.debug)&&nyroModalDebug(r,i,t||{})}function li(n,t,i){n.bg.css({opacity:0}).fadeTo(500,0,i)}function ai(n,t,i){n.bg.fadeOut(300,i)}function vi(n,t,i){n.loading.css({marginTop:t.marginTopLoading+"px",marginLeft:t.marginLeftLoading+"px",opacity:0}).show().animate({opacity:1},{complete:i,duration:400})}function yi(n,t,i){i()}function pi(n,t,i){n.loading.css({marginTop:t.marginTopLoading+"px",marginLeft:t.marginLeftLoading+"px"}).show().animate({width:t.width+"px",height:t.height+"px",marginTop:t.marginTop+"px",marginLeft:t.marginLeft+"px"},{duration:350,complete:function(){n.contentWrapper.css({width:t.width+"px",height:t.height+"px",marginTop:t.marginTop+"px",marginLeft:t.marginLeft+"px"}).show();n.loading.fadeOut(200,i)}})}function wi(n,t,i){n.contentWrapper.animate({height:"50px",width:"50px",marginTop:-(25+t.borderH)/2+t.marginScrollTop+"px",marginLeft:-(25+t.borderW)/2+t.marginScrollLeft+"px"},{duration:350,complete:function(){n.contentWrapper.hide();i()}})}function bi(n,t,i){n.loading.css({marginTop:n.contentWrapper.css("marginTop"),marginLeft:n.contentWrapper.css("marginLeft"),height:n.contentWrapper.css("height"),width:n.contentWrapper.css("width"),opacity:0}).show().fadeTo(400,1,function(){n.contentWrapper.hide();i()})}function ki(n,t,i){n.contentWrapper.hide().css({width:t.width+"px",height:t.height+"px",marginLeft:t.marginLeft+"px",marginTop:t.marginTop+"px",opacity:1});n.loading.animate({width:t.width+"px",height:t.height+"px",marginLeft:t.marginLeft+"px",marginTop:t.marginTop+"px"},{complete:function(){n.contentWrapper.show();n.loading.fadeOut(400,function(){n.loading.hide();i()})},duration:350})}function di(n,t,i){n.contentWrapper.animate({width:t.width+"px",height:t.height+"px",marginLeft:t.marginLeft+"px",marginTop:t.marginTop+"px"},{complete:i,duration:400})}function gi(t,i,r){n.fx.step.backgroundColor?t.bg.animate({backgroundColor:i.bgColor},{complete:r,duration:400}):(t.bg.css({backgroundColor:i.bgColor}),r())}var y=navigator.userAgent.toLowerCase(),gt=(y.match(/.+(?:rv|webkit|khtml|opera|msie)[\/: ]([\d.]+)/)||[0,"0"])[1],p=/msie/.test(y)&&!/opera/.test(y)&&parseInt(gt)<7&&(!window.XMLHttpRequest||typeof XMLHttpRequest=="function"),h=n("body"),t,ni,rt=!1,e={},g=!1,k,ut,i={started:!1,ready:!1,dataReady:!1,anim:!1,animContent:!1,loadingShown:!1,transition:!1,resizing:!1,closing:!1,error:!1,blocker:null,blockerVars:null,full:null,bg:null,loading:null,tmp:null,content:null,wrapper:null,contentWrapper:null,scripts:[],scriptsShown:[]},a={width:!1,height:!1,windowResizing:!1},o={width:null,height:null,windowResizing:!0},ti;n.fn.nyroModal=function(t){return this?this.each(function(){var i=n(this);this.nodeName.toLowerCase()=="form"?i.unbind("submit.nyroModal").bind("submit.nyroModal",function(r){return r.isDefaultPrevented()?!1:i.data("nyroModalprocessing")?!0:this.enctype=="multipart/form-data"?(w(n.extend(t,{from:this})),!0):(r.preventDefault(),w(n.extend(t,{from:this})),!1)}):i.unbind("click.nyroModal").bind("click.nyroModal",function(i){return i.isDefaultPrevented()?!1:(i.preventDefault(),w(n.extend(t,{from:this})),!1)})}):!1};n.fn.nyroModalManual=function(t){return this.length||w(t),this.each(function(){w(n.extend(t,{from:this}))})};n.nyroModalManual=function(n){w(n)};n.nyroModalSettings=function(r,f,e){u(r,f,e);!f&&i.started&&(i.bg&&r.bgColor&&t.updateBgColor(i,t,function(){}),i.contentWrapper&&r.title&&ht(),!i.error&&(r.windowResizing||!i.resizing&&("width"in r&&r.width==t.width||"height"in r&&r.height==t.height))&&(i.resizing=!0,i.contentWrapper&&pt(!0),i.contentWrapper&&i.contentWrapper.is(":visible")&&!i.animContent&&(g&&i.content.css({position:""}),t.resize(i,t,function(){t.windowResizing=!1;i.resizing=!1;g&&i.content.css({position:"fixed"});n.isFunction(t.endResize)&&t.endResize(i,t)}))))};n.nyroModalRemove=function(){b()};n.nyroModalNext=function(){var n=tt(1);return n?n.nyroModalManual(nt()):!1};n.nyroModalPrev=function(){var n=tt(-1);return n?n.nyroModalManual(nt()):!1};n.fn.nyroModal.settings={debug:!1,blocker:!1,windowResize:!0,modal:!1,type:"",forceType:null,from:"",hash:"",processHandler:null,selIndicator:"nyroModalSel",formIndicator:"nyroModal",content:null,bgColor:"#000000",ajax:{},swf:{wmode:"transparent"},width:null,height:null,minWidth:400,minHeight:360,resizable:!0,autoSizable:!0,padding:25,regexImg:"[^.].(jpg|jpeg|png|tiff|gif|bmp)s*$",addImageDivTitle:!1,defaultImgAlt:"Image",setWidthImgTitle:!0,ltr:!0,gallery:null,galleryLinks:'<a href="#" class="nyroModalPrev">Prev<\/a><a href="#"  class="nyroModalNext">Next<\/a>',galleryCounts:si,galleryLoop:!1,zIndexStart:100,cssOpt:{bg:{position:"absolute",overflow:"hidden",top:0,left:0,height:"100%",width:"100%"},wrapper:{position:"absolute",top:"50%",left:"50%"},wrapper2:{},content:{},loading:{position:"absolute",top:"50%",left:"50%",marginTop:"-50px",marginLeft:"-50px"}},wrap:{div:'<div class="wrapper"><\/div>',ajax:'<div class="wrapper"><\/div>',form:'<div class="wrapper"><\/div>',formData:'<div class="wrapper"><\/div>',image:'<div class="wrapperImg"><\/div>',swf:'<div class="wrapperSwf"><\/div>',iframe:'<div class="wrapperIframe"><\/div>',iframeForm:'<div class="wrapperIframe"><\/div>',manual:'<div class="wrapper"><\/div>'},closeButton:'<a href="#" class="nyroModalClose" id="closeBut" title="close">Close<\/a>',title:null,titleFromIframe:!0,openSelector:".nyroModal",closeSelector:".nyroModalClose",contentLoading:'<a href="#" class="nyroModalClose">Cancel<\/a>',errorClass:"error",contentError:'The requested content cannot be loaded.<br />Please try again later.<br /><a href="#" class="nyroModalClose">Close<\/a>',handleError:null,showBackground:li,hideBackground:ai,endFillContent:null,showContent:pi,endShowContent:null,beforeHideContent:null,hideContent:wi,showTransition:bi,hideTransition:ki,showLoading:vi,hideLoading:yi,resize:di,endResize:null,updateBgColor:gi,endRemove:null};n(n.fn.nyroModal.settings.openSelector).nyroModal()}),tmpDebug="",jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),-(o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e))+i)},easeOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),o*Math.pow(2,-10*t)*Math.sin((t*u-f)*2*Math.PI/e)+r+i)},easeInOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u/2)==2?i+r:(e||(e=u*.3*1.5),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),t<1)?-.5*o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)+i:o*Math.pow(2,-10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}}),function(n){function r(t,r,u){var f=this,h=t.add(this),e=t.find(u.tabs),o=r.jquery?r:t.children(r),s;e.length||(e=t.children());o.length||(o=t.parent().find(r));o.length||(o=n(r));n.extend(this,{click:function(t,r){var o=e.eq(t),c;if(typeof t=="string"&&t.replace("#","")&&(o=e.filter("[href*="+t.replace("#","")+"]"),t=Math.max(e.index(o),0)),u.rotate){if(c=e.length-1,t<0)return f.click(c,r);if(t>c)return f.click(0,r)}if(!o.length){if(s>=0)return f;t=u.initialIndex;o=e.eq(t)}return t===s?f:(r=r||n.Event(),r.type="onBeforeClick",h.trigger(r,[t]),r.isDefaultPrevented()?void 0:(i[u.effect].call(f,t,function(){r.type="onClick";h.trigger(r,[t])}),s=t,e.removeClass(u.current),o.addClass(u.current),f))},getConf:function(){return u},getTabs:function(){return e},getPanes:function(){return o},getCurrentPane:function(){return o.eq(s)},getCurrentTab:function(){return e.eq(s)},getIndex:function(){return s},next:function(){return f.click(s+1)},prev:function(){return f.click(s-1)},destroy:function(){return e.unbind(u.event).removeClass(u.current),o.find("a[href^=#]").unbind("click.T"),f}});n.each("onBeforeClick,onClick".split(","),function(t,i){n.isFunction(u[i])&&n(f).bind(i,u[i]);f[i]=function(t){return t&&n(f).bind(i,t),f}});u.history&&n.fn.history&&(n.tools.history.init(e),u.event="history");e.each(function(t){n(this).bind(u.event,function(n){return f.click(t,n),n.preventDefault()})});o.find("a[href^=#]").bind("click.T",function(t){f.click(n(this).attr("href"),t)});location.hash&&u.tabs=="a"&&t.find("[href="+location.hash+"]").length?f.click(location.hash):(u.initialIndex===0||u.initialIndex>0)&&f.click(u.initialIndex)}n.tools=n.tools||{version:"v1.2.5"};n.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:!1,history:!1},addEffect:function(n,t){i[n]=t}};var i={"default":function(n,t){this.getPanes().hide().eq(n).show();t.call()},fade:function(n,t){var r=this.getConf(),u=r.fadeOutSpeed,i=this.getPanes();u?i.fadeOut(u):i.hide();i.eq(n).fadeIn(r.fadeInSpeed,t)},slide:function(n,t){this.getPanes().slideUp(200);this.getPanes().eq(n).slideDown(400,t)},ajax:function(n,t){this.getPanes().eq(0).load(this.getTabs().eq(n).attr("href"),t)}},t;n.tools.tabs.addEffect("horizontal",function(i,r){t||(t=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){n(this).hide()});this.getPanes().eq(i).animate({width:t},function(){n(this).show();r.call()})});n.fn.tabs=function(t,i){var u=this.data("tabs");return u&&(u.destroy(),this.removeData("tabs")),n.isFunction(i)&&(i={onBeforeClick:i}),i=n.extend({},n.tools.tabs.conf,i),this.each(function(){u=new r(n(this),t,i);n(this).data("tabs",u)}),i.api?u:this}}(jQuery),function(n){function i(n){return typeof n=="object"?n:{top:n,left:n}}var t=n.scrollTo=function(t,i,r){n(window).scrollTo(t,i,r)};t.defaults={axis:"xy",duration:parseFloat(n.fn.jquery)>=1.3?0:1,limit:!0};t.window=function(){return n(window)._scrollable()};n.fn._scrollable=function(){return this.map(function(){var t=this,r=!t.nodeName||n.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1,i;return r?(i=(t.contentWindow||t).document||t.ownerDocument||t,/webkit/i.test(navigator.userAgent)||i.compatMode=="BackCompat"?i.body:i.documentElement):t})};n.fn.scrollTo=function(r,u,f){return typeof u=="object"&&(f=u,u=0),typeof f=="function"&&(f={onAfter:f}),r=="max"&&(r=9e9),f=n.extend({},t.defaults,f),u=u||f.duration,f.queue=f.queue&&f.axis.length>1,f.queue&&(u/=2),f.offset=i(f.offset),f.over=i(f.over),this._scrollable().each(function(){function l(n){h.animate(o,u,f.easing,n&&function(){n.call(this,r,f)})}if(r!=null){var s=this,h=n(s),e=r,c,o={},a=h.is("html,body");switch(typeof e){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(e)){e=i(e);break}if(e=n(e,this),!e.length)return;case"object":(e.is||e.style)&&(c=(e=n(e)).offset())}n.each(f.axis.split(""),function(n,i){var y=i=="x"?"Left":"Top",u=y.toLowerCase(),r="scroll"+y,p=s[r],w=t.max(s,i),v;c?(o[r]=c[u]+(a?0:p-h.offset()[u]),f.margin&&(o[r]-=parseInt(e.css("margin"+y))||0,o[r]-=parseInt(e.css("border"+y+"Width"))||0),o[r]+=f.offset[u]||0,f.over[u]&&(o[r]+=e[i=="x"?"width":"height"]()*f.over[u])):(v=e[u],o[r]=v.slice&&v.slice(-1)=="%"?parseFloat(v)/100*w:v);f.limit&&/^\d+$/.test(o[r])&&(o[r]=o[r]<=0?0:Math.min(o[r],w));!n&&f.queue&&(p!=o[r]&&l(f.onAfterFirst),delete o[r])});l(f.onAfter)}}).end()};t.max=function(t,i){var r=i=="x"?"Width":"Height",u="scroll"+r;if(!n(t).is("html,body"))return t[u]-n(t)[r.toLowerCase()]();var f="client"+r,e=t.ownerDocument.documentElement,o=t.ownerDocument.body;return Math.max(e[u],o[u])-Math.min(e[f],o[f])}}(jQuery),function(n){function i(n){return typeof n=="object"?n:{top:n,left:n}}var t=n.scrollTo=function(t,i,r){n(window).scrollTo(t,i,r)};t.defaults={axis:"xy",duration:parseFloat(n.fn.jquery)>=1.3?0:1,limit:!0};t.window=function(){return n(window)._scrollable()};n.fn._scrollable=function(){return this.map(function(){var t=this,r=!t.nodeName||n.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1,i;return r?(i=(t.contentWindow||t).document||t.ownerDocument||t,/webkit/i.test(navigator.userAgent)||i.compatMode=="BackCompat"?i.body:i.documentElement):t})};n.fn.scrollTo=function(r,u,f){return typeof u=="object"&&(f=u,u=0),typeof f=="function"&&(f={onAfter:f}),r=="max"&&(r=9e9),f=n.extend({},t.defaults,f),u=u||f.duration,f.queue=f.queue&&f.axis.length>1,f.queue&&(u/=2),f.offset=i(f.offset),f.over=i(f.over),this._scrollable().each(function(){function l(n){h.animate(o,u,f.easing,n&&function(){n.call(this,r,f)})}if(r!=null){var s=this,h=n(s),e=r,c,o={},a=h.is("html,body");switch(typeof e){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(e)){e=i(e);break}if(e=n(e,this),!e.length)return;case"object":(e.is||e.style)&&(c=(e=n(e)).offset())}n.each(f.axis.split(""),function(n,i){var y=i=="x"?"Left":"Top",u=y.toLowerCase(),r="scroll"+y,p=s[r],w=t.max(s,i),v;c?(o[r]=c[u]+(a?0:p-h.offset()[u]),f.margin&&(o[r]-=parseInt(e.css("margin"+y))||0,o[r]-=parseInt(e.css("border"+y+"Width"))||0),o[r]+=f.offset[u]||0,f.over[u]&&(o[r]+=e[i=="x"?"width":"height"]()*f.over[u])):(v=e[u],o[r]=v.slice&&v.slice(-1)=="%"?parseFloat(v)/100*w:v);f.limit&&/^\d+$/.test(o[r])&&(o[r]=o[r]<=0?0:Math.min(o[r],w));!n&&f.queue&&(p!=o[r]&&l(f.onAfterFirst),delete o[r])});l(f.onAfter)}}).end()};t.max=function(t,i){var r=i=="x"?"Width":"Height",u="scroll"+r;if(!n(t).is("html,body"))return t[u]-n(t)[r.toLowerCase()]();var f="client"+r,e=t.ownerDocument.documentElement,o=t.ownerDocument.body;return Math.max(e[u],o[u])-Math.min(e[f],o[f])}}(jQuery),function(n){var i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t={array:function(n){for(var i=["["],e,f,o=n.length,r,u=0;u<o;u+=1)r=n[u],f=t[typeof r],f&&(r=f(r),typeof r=="string"&&(e&&(i[i.length]=","),i[i.length]=r,e=!0));return i[i.length]="]",i.join("")},boolean:function(n){return String(n)},"null":function(){return"null"},number:function(n){return isFinite(n)?String(n):"null"},object:function(n){if(n){if(n instanceof Array)return t.array(n);var i=["{"],e,u,f,r;for(f in n)r=n[f],u=t[typeof r],u&&(r=u(r),typeof r=="string"&&(e&&(i[i.length]=","),i.push(t.string(f),":",r),e=!0));return i[i.length]="}",i.join("")}return"null"},string:function(n){return/["\\\x00-\x1f]/.test(n)&&(n=n.replace(/([\x00-\x1f\\"])/g,function(n,t){var r=i[t];return r?r:(r=t.charCodeAt(),"\\u00"+Math.floor(r/16).toString(16)+(r%16).toString(16))})),'"'+n+'"'}};n.toJSON=function(n){var i=isNaN(n)?t[typeof n]:t.number;if(i)return i(n)};n.parseJSON=function(v,safe){return(safe===undefined&&(safe=n.parseJSON.safe),safe&&!/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/.test(v))?undefined:eval("("+v+")")};n.parseJSON.safe=!1}(jQuery),Function.prototype.bind=function(n){var t=this;return function(){return t.apply(n,arguments)}},function(n){n.fn.extend({limit:function(limit,element){var interval,f,self=n(this);n(this).focus(function(){interval=window.setInterval(substring,100)});n(this).blur(function(){clearInterval(interval);substring()});substringFunction="function substring(){ var val = $(self).val();var length = val.length;if(length > limit){$(self).val($(self).val().substring(0,limit));}";typeof element!="undefined"&&(substringFunction+="if($(element).html() != limit-length){$(element).html((limit-length<=0)?'0':limit-length);}");substringFunction+="}";eval(substringFunction);substring()}})}(jQuery),function(n,t){"use strict";function r(t){n.fn.cycle.debug&&i(t)}function i(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function u(t,i,r){var u=n(t).data("cycle.opts"),f;u&&(f=!!t.cyclePause,f&&u.paused?u.paused(t,u,i,r):!f&&u.resumed&&u.resumed(t,u,i,r))}function l(r,e,o){function c(t,r,u){if(!t&&r===!0){var e=n(u).data("cycle.opts");if(!e)return i("options not found, can not resume"),!1;u.cycleTimeout&&(clearTimeout(u.cycleTimeout),u.cycleTimeout=0);f(e.elements,e,1,!e.backwards)}}var s,h;if(r.cycleStop===t&&(r.cycleStop=0),(e===t||e===null)&&(e={}),e.constructor==String){switch(e){case"destroy":case"stop":return(s=n(r).data("cycle.opts"),!s)?!1:(r.cycleStop++,r.cycleTimeout&&clearTimeout(r.cycleTimeout),r.cycleTimeout=0,s.elements&&n(s.elements).stop(),n(r).removeData("cycle.opts"),e=="destroy"&&a(r,s),!1);case"toggle":return r.cyclePause=r.cyclePause===1?0:1,c(r.cyclePause,o,r),u(r),!1;case"pause":return r.cyclePause=1,u(r),!1;case"resume":return r.cyclePause=0,c(!1,o,r),u(r),!1;case"prev":case"next":return(s=n(r).data("cycle.opts"),!s)?(i('options not found, "prev/next" ignored'),!1):(n.fn.cycle[e](s),!1);default:e={fx:e}}return e}return e.constructor==Number?(h=e,e=n(r).data("cycle.opts"),!e)?(i("options not found, can not advance slide"),!1):h<0||h>=e.elements.length?(i("invalid slide index: "+h),!1):(e.nextSlide=h,r.cycleTimeout&&(clearTimeout(r.cycleTimeout),r.cycleTimeout=0),typeof o=="string"&&(e.oneTimeFx=o),f(e.elements,e,1,h>=e.currSlide),!1):e}function o(t,i){if(!n.support.opacity&&i.cleartype&&t.style.filter)try{t.style.removeAttribute("filter")}catch(r){}}function a(t,i){i.next&&n(i.next).unbind(i.prevNextEvent);i.prev&&n(i.prev).unbind(i.prevNextEvent);(i.pager||i.pagerAnchorBuilder)&&n.each(i.pagerAnchors||[],function(){this.unbind().remove()});i.pagerAnchors=null;n(t).unbind("mouseenter.cycle mouseleave.cycle");i.destroy&&i.destroy(i)}function v(r,s,c,l,a){var at,v=n.extend({},n.fn.cycle.defaults,l||{},n.metadata?r.metadata():n.meta?r.data():{}),vt=n.isFunction(r.data)?r.data(v.metaAttr):null,rt,ut,tt,k,yt,nt,d,ft,ht,ct,pt,lt,g;if(vt&&(v=n.extend(v,vt)),v.autostop&&(v.countdown=v.autostopCount||c.length),rt=r[0],r.data("cycle.opts",v),v.$cont=r,v.stopCount=rt.cycleStop,v.elements=c,v.before=v.before?[v.before]:[],v.after=v.after?[v.after]:[],!n.support.opacity&&v.cleartype&&v.after.push(function(){o(this,v)}),v.continuous&&v.after.push(function(){f(c,v,0,!v.backwards)}),y(v),n.support.opacity||!v.cleartype||v.cleartypeNoBg||h(s),r.css("position")=="static"&&r.css("position","relative"),v.width&&r.width(v.width),v.height&&v.height!="auto"&&r.height(v.height),v.startingSlide!==t?(v.startingSlide=parseInt(v.startingSlide,10),v.startingSlide>=c.length||v.startSlide<0?v.startingSlide=0:at=!0):v.startingSlide=v.backwards?c.length-1:0,v.random){for(v.randomMap=[],ut=0;ut<c.length;ut++)v.randomMap.push(ut);if(v.randomMap.sort(function(){return Math.random()-.5}),at)for(tt=0;tt<c.length;tt++)v.startingSlide==v.randomMap[tt]&&(v.randomIndex=tt);else v.randomIndex=1,v.startingSlide=v.randomMap[1]}else v.startingSlide>=c.length&&(v.startingSlide=0);if(v.currSlide=v.startingSlide||0,k=v.startingSlide,s.css({position:"absolute",top:0,left:0}).hide().each(function(t){var i;i=v.backwards?k?t<=k?c.length+(t-k):k-t:c.length-t:k?t>=k?c.length-(t-k):k-t:c.length-t;n(this).css("z-index",i)}),n(c[k]).css("opacity",1).show(),o(c[k],v),v.fit&&(v.aspect?s.each(function(){var t=n(this),i=v.aspect===!0?t.width()/t.height():v.aspect;v.width&&t.width()!=v.width&&(t.width(v.width),t.height(v.width/i));v.height&&t.height()<v.height&&(t.height(v.height),t.width(v.height*i))}):(v.width&&s.width(v.width),v.height&&v.height!="auto"&&s.height(v.height))),v.center&&(!v.fit||v.aspect)&&s.each(function(){var t=n(this);t.css({"margin-left":v.width?(v.width-t.width())/2+"px":0,"margin-top":v.height?(v.height-t.height())/2+"px":0})}),!v.center||v.fit||v.slideResize||s.each(function(){var t=n(this);t.css({"margin-left":v.width?(v.width-t.width())/2+"px":0,"margin-top":v.height?(v.height-t.height())/2+"px":0})}),yt=(v.containerResize||v.containerResizeHeight)&&!r.innerHeight(),yt){for(nt=0,d=0,ft=0;ft<c.length;ft++){var it=n(c[ft]),et=it[0],ot=it.outerWidth(),st=it.outerHeight();ot||(ot=et.offsetWidth||et.width||it.attr("width"));st||(st=et.offsetHeight||et.height||it.attr("height"));nt=ot>nt?ot:nt;d=st>d?st:d}v.containerResize&&nt>0&&d>0&&r.css({width:nt+"px",height:d+"px"});v.containerResizeHeight&&d>0&&r.css({height:d+"px"})}if((ht=!1,v.pause&&r.bind("mouseenter.cycle",function(){ht=!0;this.cyclePause++;u(rt,!0)}).bind("mouseleave.cycle",function(){ht&&this.cyclePause--;u(rt,!0)}),p(v)===!1)||(ct=!1,l.requeueAttempts=l.requeueAttempts||0,s.each(function(){var t=n(this),r;if(this.cycleH=v.fit&&v.height?v.height:t.height()||this.offsetHeight||this.height||t.attr("height")||0,this.cycleW=v.fit&&v.width?v.width:t.width()||this.offsetWidth||this.width||t.attr("width")||0,t.is("img")&&(r=this.cycleH===0&&this.cycleW===0&&!this.complete,r)){if(a.s&&v.requeueOnImageNotLoaded&&++l.requeueAttempts<100)return i(l.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){n(a.s,a.c).cycle(l)},v.requeueTimeout),ct=!0,!1;i("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return!0}),ct))return!1;if(v.cssBefore=v.cssBefore||{},v.cssAfter=v.cssAfter||{},v.cssFirst=v.cssFirst||{},v.animIn=v.animIn||{},v.animOut=v.animOut||{},s.not(":eq("+k+")").css(v.cssBefore),n(s[k]).css(v.cssFirst),v.timeout)for(v.timeout=parseInt(v.timeout,10),v.speed.constructor==String&&(v.speed=n.fx.speeds[v.speed]||parseInt(v.speed,10)),v.sync||(v.speed=v.speed/2),pt=v.fx=="none"?0:v.fx=="shuffle"?500:250;v.timeout-v.speed<pt;)v.timeout+=v.speed;if(v.easing&&(v.easeIn=v.easeOut=v.easing),v.speedIn||(v.speedIn=v.speed),v.speedOut||(v.speedOut=v.speed),v.slideCount=c.length,v.currSlide=v.lastSlide=k,v.random?(++v.randomIndex==c.length&&(v.randomIndex=0),v.nextSlide=v.randomMap[v.randomIndex]):v.nextSlide=v.backwards?v.startingSlide===0?c.length-1:v.startingSlide-1:v.startingSlide>=c.length-1?0:v.startingSlide+1,!v.multiFx)if(lt=n.fn.cycle.transitions[v.fx],n.isFunction(lt))lt(r,s,v);else if(v.fx!="custom"&&!v.multiFx)return i("unknown transition: "+v.fx,"; slideshow terminating"),!1;return g=s[k],v.skipInitializationCallbacks||(v.before.length&&v.before[0].apply(g,[g,g,v,!0]),v.after.length&&v.after[0].apply(g,[g,g,v,!0])),v.next&&n(v.next).bind(v.prevNextEvent,function(){return e(v,1)}),v.prev&&n(v.prev).bind(v.prevNextEvent,function(){return e(v,0)}),(v.pager||v.pagerAnchorBuilder)&&b(c,v),w(v,c),v}function y(t){t.original={before:[],after:[]};t.original.cssBefore=n.extend({},t.cssBefore);t.original.cssAfter=n.extend({},t.cssAfter);t.original.animIn=n.extend({},t.animIn);t.original.animOut=n.extend({},t.animOut);n.each(t.before,function(){t.original.before.push(this)});n.each(t.after,function(){t.original.after.push(this)})}function p(t){var u,e,f=n.fn.cycle.transitions,s,o,h,c;if(t.fx.indexOf(",")>0){for(t.multiFx=!0,t.fxs=t.fx.replace(/\s*/g,"").split(","),u=0;u<t.fxs.length;u++)s=t.fxs[u],e=f[s],e&&f.hasOwnProperty(s)&&n.isFunction(e)||(i("discarding unknown transition: ",s),t.fxs.splice(u,1),u--);if(!t.fxs.length)return i("No valid transitions named; slideshow terminating."),!1}else if(t.fx=="all"){t.multiFx=!0;t.fxs=[];for(o in f)f.hasOwnProperty(o)&&(e=f[o],f.hasOwnProperty(o)&&n.isFunction(e)&&t.fxs.push(o))}if(t.multiFx&&t.randomizeEffects){for(h=Math.floor(Math.random()*20)+30,u=0;u<h;u++)c=Math.floor(Math.random()*t.fxs.length),t.fxs.push(t.fxs.splice(c,1)[0]);r("randomized fx sequence: ",t.fxs)}return!0}function w(t,i){t.addSlide=function(r,u){var f=n(r),e=f[0];if(t.autostopCount||t.countdown++,i[u?"unshift":"push"](e),t.els&&t.els[u?"unshift":"push"](e),t.slideCount=i.length,t.random&&(t.randomMap.push(t.slideCount-1),t.randomMap.sort(function(){return Math.random()-.5})),f.css("position","absolute"),f[u?"prependTo":"appendTo"](t.$cont),u&&(t.currSlide++,t.nextSlide++),n.support.opacity||!t.cleartype||t.cleartypeNoBg||h(f),t.fit&&t.width&&f.width(t.width),t.fit&&t.height&&t.height!="auto"&&f.height(t.height),e.cycleH=t.fit&&t.height?t.height:f.height(),e.cycleW=t.fit&&t.width?t.width:f.width(),f.css(t.cssBefore),(t.pager||t.pagerAnchorBuilder)&&n.fn.cycle.createPagerAnchor(i.length-1,e,n(t.pager),i,t),n.isFunction(t.onAddSlide))t.onAddSlide(f);else f.hide()}}function f(i,u,e,o){function w(){var n=0,t=u.timeout;u.timeout&&!u.continuous?(n=s(i[u.currSlide],i[u.nextSlide],u,o),u.fx=="shuffle"&&(n-=u.speedOut)):u.continuous&&l.cyclePause&&(n=10);n>0&&(l.cycleTimeout=setTimeout(function(){f(i,u,0,!u.backwards)},n))}var l=u.$cont[0],c=i[u.currSlide],h=i[u.nextSlide],y,v,p,a;if(e&&u.busy&&u.manualTrump&&(r("manualTrump in go(), stopping active transition"),n(i).stop(!0,!0),u.busy=0,clearTimeout(l.cycleTimeout)),u.busy){r("transition active, ignoring new tx request");return}if(l.cycleStop==u.stopCount&&(l.cycleTimeout!==0||e)){if(!e&&!l.cyclePause&&!u.bounce&&(u.autostop&&--u.countdown<=0||u.nowrap&&!u.random&&u.nextSlide<u.currSlide)){u.end&&u.end(u);return}y=!1;(e||!l.cyclePause)&&u.nextSlide!=u.currSlide?(y=!0,v=u.fx,c.cycleH=c.cycleH||n(c).height(),c.cycleW=c.cycleW||n(c).width(),h.cycleH=h.cycleH||n(h).height(),h.cycleW=h.cycleW||n(h).width(),u.multiFx&&(o&&(u.lastFx===t||++u.lastFx>=u.fxs.length)?u.lastFx=0:!o&&(u.lastFx===t||--u.lastFx<0)&&(u.lastFx=u.fxs.length-1),v=u.fxs[u.lastFx]),u.oneTimeFx&&(v=u.oneTimeFx,u.oneTimeFx=null),n.fn.cycle.resetState(u,v),u.before.length&&n.each(u.before,function(n,t){l.cycleStop==u.stopCount&&t.apply(h,[c,h,u,o])}),p=function(){u.busy=0;n.each(u.after,function(n,t){l.cycleStop==u.stopCount&&t.apply(h,[c,h,u,o])});l.cycleStop||w()},r("tx firing("+v+"); currSlide: "+u.currSlide+"; nextSlide: "+u.nextSlide),u.busy=1,u.fxFn?u.fxFn(c,h,u,p,o,e&&u.fastOnEvent):n.isFunction(n.fn.cycle[u.fx])?n.fn.cycle[u.fx](c,h,u,p,o,e&&u.fastOnEvent):n.fn.cycle.custom(c,h,u,p,o,e&&u.fastOnEvent)):w();(y||u.nextSlide==u.currSlide)&&(u.lastSlide=u.currSlide,u.random?(u.currSlide=u.nextSlide,++u.randomIndex==i.length&&(u.randomIndex=0,u.randomMap.sort(function(){return Math.random()-.5})),u.nextSlide=u.randomMap[u.randomIndex],u.nextSlide==u.currSlide&&(u.nextSlide=u.currSlide==u.slideCount-1?0:u.currSlide+1)):u.backwards?(a=u.nextSlide-1<0,a&&u.bounce?(u.backwards=!u.backwards,u.nextSlide=1,u.currSlide=0):(u.nextSlide=a?i.length-1:u.nextSlide-1,u.currSlide=a?0:u.nextSlide+1)):(a=u.nextSlide+1==i.length,a&&u.bounce?(u.backwards=!u.backwards,u.nextSlide=i.length-2,u.currSlide=i.length-1):(u.nextSlide=a?0:u.nextSlide+1,u.currSlide=a?i.length-1:u.nextSlide-1)));y&&u.pager&&u.updateActivePagerLink(u.pager,u.currSlide,u.activePagerClass)}}function s(n,t,i,u){if(i.timeoutFn){for(var f=i.timeoutFn.call(n,n,t,i,u);i.fx!="none"&&f-i.speed<250;)f+=i.speed;if(r("calculated timeout: "+f+"; speed: "+i.speed),f!==!1)return f}return i.timeout}function e(t,i){var u=i?1:-1,r=t.elements,o=t.$cont[0],s=o.cycleTimeout,e;if(s&&(clearTimeout(s),o.cycleTimeout=0),t.random&&u<0)t.randomIndex--,--t.randomIndex==-2?t.randomIndex=r.length-2:t.randomIndex==-1&&(t.randomIndex=r.length-1),t.nextSlide=t.randomMap[t.randomIndex];else if(t.random)t.nextSlide=t.randomMap[t.randomIndex];else if(t.nextSlide=t.currSlide+u,t.nextSlide<0){if(t.nowrap)return!1;t.nextSlide=r.length-1}else if(t.nextSlide>=r.length){if(t.nowrap)return!1;t.nextSlide=0}return e=t.onPrevNextEvent||t.prevNextClick,n.isFunction(e)&&e(u>0,t.nextSlide,r[t.nextSlide]),f(r,t,1,i),!1}function b(t,i){var r=n(i.pager);n.each(t,function(u,f){n.fn.cycle.createPagerAnchor(u,f,r,t,i)});i.updateActivePagerLink(i.pager,i.startingSlide,i.activePagerClass)}function h(t){function i(n){return n=parseInt(n,10).toString(16),n.length<2?"0"+n:n}function u(t){for(var r,u;t&&t.nodeName.toLowerCase()!="html";t=t.parentNode){if(r=n.css(t,"background-color"),r&&r.indexOf("rgb")>=0)return u=r.match(/\d+/g),"#"+i(u[0])+i(u[1])+i(u[2]);if(r&&r!="transparent")return r}return"#ffffff"}r("applying clearType background-color hack");t.each(function(){n(this).css("background-color",u(this))})}var c="2.9999.81";n.expr[":"].paused=function(n){return n.cyclePause};n.fn.cycle=function(t,u){var e={s:this.selector,c:this.context};return this.length===0&&t!="stop"?!n.isReady&&e.s?(i("DOM not ready, queuing slideshow"),n(function(){n(e.s,e.c).cycle(t,u)}),this):(i("terminating; zero elements found by selector"+(n.isReady?"":" (DOM not ready)")),this):this.each(function(){var h=l(this,t,u),o,c;if(h!==!1){h.updateActivePagerLink=h.updateActivePagerLink||n.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;this.cycleStop=0;var y=n(this),p=h.slideExpr?n(h.slideExpr,this):y.children(),a=p.get();if(a.length<2){i("terminating; too few slides: "+a.length);return}(o=v(y,p,a,h,e),o!==!1)&&(c=o.continuous?10:s(a[o.currSlide],a[o.nextSlide],o,!o.backwards),c&&(c+=o.delay||0,c<10&&(c=10),r("first timeout: "+c),this.cycleTimeout=setTimeout(function(){f(a,o,0,!h.backwards)},c)))}})};n.fn.cycle.resetState=function(t,i){i=i||t.fx;t.before=[];t.after=[];t.cssBefore=n.extend({},t.original.cssBefore);t.cssAfter=n.extend({},t.original.cssAfter);t.animIn=n.extend({},t.original.animIn);t.animOut=n.extend({},t.original.animOut);t.fxFn=null;n.each(t.original.before,function(){t.before.push(this)});n.each(t.original.after,function(){t.after.push(this)});var r=n.fn.cycle.transitions[i];n.isFunction(r)&&r(t.$cont,n(t.elements),t)};n.fn.cycle.updateActivePagerLink=function(t,i,r){n(t).each(function(){n(this).children().removeClass(r).eq(i).addClass(r)})};n.fn.cycle.next=function(n){e(n,1)};n.fn.cycle.prev=function(n){e(n,0)};n.fn.cycle.createPagerAnchor=function(t,i,e,o,s){var c,h,a,v,l,y;(n.isFunction(s.pagerAnchorBuilder)?(c=s.pagerAnchorBuilder(t,i),r("pagerAnchorBuilder("+t+", el) returned: "+c)):c='<a href="#">'+(t+1)+"<\/a>",c)&&(h=n(c),h.parents("body").length===0&&(a=[],e.length>1?(e.each(function(){var t=h.clone(!0);n(this).append(t);a.push(t[0])}),h=n(a)):h.appendTo(e)),s.pagerAnchors=s.pagerAnchors||[],s.pagerAnchors.push(h),v=function(i){var r,u,e;i.preventDefault();s.nextSlide=t;r=s.$cont[0];u=r.cycleTimeout;u&&(clearTimeout(u),r.cycleTimeout=0);e=s.onPagerEvent||s.pagerClick;n.isFunction(e)&&e(s.nextSlide,o[s.nextSlide]);f(o,s,1,s.currSlide<t)},/mouseenter|mouseover/i.test(s.pagerEvent)?h.hover(v,function(){}):h.bind(s.pagerEvent,v),/^click/.test(s.pagerEvent)||s.allowPagerClickBubble||h.bind("click.cycle",function(){return!1}),l=s.$cont[0],y=!1,s.pauseOnPagerHover&&h.hover(function(){y=!0;l.cyclePause++;u(l,!0,!0)},function(){y&&l.cyclePause--;u(l,!0,!0)}))};n.fn.cycle.hopsFromLast=function(n,t){var i=n.lastSlide,r=n.currSlide;return t?r>i?r-i:n.slideCount-i:r<i?i-r:i+n.slideCount-r};n.fn.cycle.commonReset=function(t,i,r,u,f,e){n(r.elements).not(t).hide();typeof r.cssBefore.opacity=="undefined"&&(r.cssBefore.opacity=1);r.cssBefore.display="block";r.slideResize&&u!==!1&&i.cycleW>0&&(r.cssBefore.width=i.cycleW);r.slideResize&&f!==!1&&i.cycleH>0&&(r.cssBefore.height=i.cycleH);r.cssAfter=r.cssAfter||{};r.cssAfter.display="none";n(t).css("zIndex",r.slideCount+(e===!0?1:0));n(i).css("zIndex",r.slideCount+(e===!0?0:1))};n.fn.cycle.custom=function(t,i,r,u,f,e){var h=n(t),c=n(i),l=r.speedIn,o=r.speedOut,a=r.easeIn,v=r.easeOut,s;c.css(r.cssBefore);e&&(l=typeof e=="number"?o=e:o=1,a=v=null);s=function(){c.animate(r.animIn,l,a,function(){u()})};h.animate(r.animOut,o,v,function(){h.css(r.cssAfter);r.sync||s()});r.sync&&s()};n.fn.cycle.transitions={fade:function(t,i,r){i.not(":eq("+r.currSlide+")").css("opacity",0);r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.cssBefore.opacity=0});r.animIn={opacity:1};r.animOut={opacity:0};r.cssBefore={top:0,left:0}}};n.fn.cycle.ver=function(){return c};n.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:!1,animIn:null,animOut:null,aspect:!1,autostop:0,autostopCount:0,backwards:!1,before:null,center:null,cleartype:!n.support.opacity,cleartypeNoBg:!1,containerResize:1,containerResizeHeight:0,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:!0,metaAttr:"cycle",next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:!0,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:!1,slideExpr:null,slideResize:1,speed:1e3,speedIn:null,speedOut:null,startingSlide:t,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null,width:null}}(jQuery),function(n){"use strict";n.fn.cycle.transitions.none=function(t,i,r){r.fxFn=function(t,i,r,u){n(i).show();n(t).hide();u()}};n.fn.cycle.transitions.fadeout=function(t,i,r){i.not(":eq("+r.currSlide+")").css({display:"block",opacity:1});r.before.push(function(t,i,r,u,f,e){n(t).css("zIndex",r.slideCount+(e!==!0?1:0));n(i).css("zIndex",r.slideCount+(e!==!0?0:1))});r.animIn.opacity=1;r.animOut.opacity=0;r.cssBefore.opacity=1;r.cssBefore.display="block";r.cssAfter.zIndex=0};n.fn.cycle.transitions.scrollUp=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssBefore.top=u;r.cssBefore.left=0;r.cssFirst.top=0;r.animIn.top=0;r.animOut.top=-u};n.fn.cycle.transitions.scrollDown=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssFirst.top=0;r.cssBefore.top=-u;r.cssBefore.left=0;r.animIn.top=0;r.animOut.top=u};n.fn.cycle.transitions.scrollLeft=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.width();r.cssFirst.left=0;r.cssBefore.left=u;r.cssBefore.top=0;r.animIn.left=0;r.animOut.left=0-u};n.fn.cycle.transitions.scrollRight=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.width();r.cssFirst.left=0;r.cssBefore.left=-u;r.cssBefore.top=0;r.animIn.left=0;r.animOut.left=u};n.fn.cycle.transitions.scrollHorz=function(t,i,r){t.css("overflow","hidden").width();r.before.push(function(t,i,r,u){r.rev&&(u=!u);n.fn.cycle.commonReset(t,i,r);r.cssBefore.left=u?i.cycleW-1:1-i.cycleW;r.animOut.left=u?-t.cycleW:t.cycleW});r.cssFirst.left=0;r.cssBefore.top=0;r.animIn.left=0;r.animOut.top=0};n.fn.cycle.transitions.scrollVert=function(t,i,r){t.css("overflow","hidden");r.before.push(function(t,i,r,u){r.rev&&(u=!u);n.fn.cycle.commonReset(t,i,r);r.cssBefore.top=u?1-i.cycleH:i.cycleH-1;r.animOut.top=u?t.cycleH:-t.cycleH});r.cssFirst.top=0;r.cssBefore.left=0;r.animIn.top=0;r.animOut.left=0};n.fn.cycle.transitions.slideX=function(t,i,r){r.before.push(function(t,i,r){n(r.elements).not(t).hide();n.fn.cycle.commonReset(t,i,r,!1,!0);r.animIn.width=i.cycleW});r.cssBefore.left=0;r.cssBefore.top=0;r.cssBefore.width=0;r.animIn.width="show";r.animOut.width=0};n.fn.cycle.transitions.slideY=function(t,i,r){r.before.push(function(t,i,r){n(r.elements).not(t).hide();n.fn.cycle.commonReset(t,i,r,!0,!1);r.animIn.height=i.cycleH});r.cssBefore.left=0;r.cssBefore.top=0;r.cssBefore.height=0;r.animIn.height="show";r.animOut.height=0};n.fn.cycle.transitions.shuffle=function(t,i,r){var u,f=t.css("overflow","visible").width();for(i.css({left:0,top:0}),r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0)}),r.speedAdjusted||(r.speed=r.speed/2,r.speedAdjusted=!0),r.random=0,r.shuffle=r.shuffle||{left:-f,top:15},r.els=[],u=0;u<i.length;u++)r.els.push(i[u]);for(u=0;u<r.currSlide;u++)r.els.push(r.els.shift());r.fxFn=function(t,i,r,u,f){var e,o;r.rev&&(f=!f);e=f?n(t):n(i);n(i).css(r.cssBefore);o=r.slideCount;e.animate(r.shuffle,r.speedIn,r.easeIn,function(){for(var l=n.fn.cycle.hopsFromLast(r,f),i,h,c,s=0;s<l;s++)f?r.els.push(r.els.shift()):r.els.unshift(r.els.pop());if(f)for(i=0,h=r.els.length;i<h;i++)n(r.els[i]).css("z-index",h-i+o);else c=n(t).css("z-index"),e.css("z-index",parseInt(c,10)+1+o);e.animate({left:0,top:0},r.speedOut,r.easeOut,function(){n(f?this:t).hide();u&&u()})})};n.extend(r.cssBefore,{display:"block",opacity:1,top:0,left:0})};n.fn.cycle.transitions.turnUp=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1);r.cssBefore.top=i.cycleH;r.animIn.height=i.cycleH;r.animOut.width=i.cycleW});r.cssFirst.top=0;r.cssBefore.left=0;r.cssBefore.height=0;r.animIn.top=0;r.animOut.height=0};n.fn.cycle.transitions.turnDown=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1);r.animIn.height=i.cycleH;r.animOut.top=t.cycleH});r.cssFirst.top=0;r.cssBefore.left=0;r.cssBefore.top=0;r.cssBefore.height=0;r.animOut.height=0};n.fn.cycle.transitions.turnLeft=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0);r.cssBefore.left=i.cycleW;r.animIn.width=i.cycleW});r.cssBefore.top=0;r.cssBefore.width=0;r.animIn.left=0;r.animOut.width=0};n.fn.cycle.transitions.turnRight=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0);r.animIn.width=i.cycleW;r.animOut.left=t.cycleW});n.extend(r.cssBefore,{top:0,left:0,width:0});r.animIn.left=0;r.animOut.width=0};n.fn.cycle.transitions.zoom=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!1,!0);r.cssBefore.top=i.cycleH/2;r.cssBefore.left=i.cycleW/2;n.extend(r.animIn,{top:0,left:0,width:i.cycleW,height:i.cycleH});n.extend(r.animOut,{width:0,height:0,top:t.cycleH/2,left:t.cycleW/2})});r.cssFirst.top=0;r.cssFirst.left=0;r.cssBefore.width=0;r.cssBefore.height=0};n.fn.cycle.transitions.fadeZoom=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!1);r.cssBefore.left=i.cycleW/2;r.cssBefore.top=i.cycleH/2;n.extend(r.animIn,{top:0,left:0,width:i.cycleW,height:i.cycleH})});r.cssBefore.width=0;r.cssBefore.height=0;r.animOut.opacity=0};n.fn.cycle.transitions.blindX=function(t,i,r){var u=t.css("overflow","hidden").width();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.animIn.width=i.cycleW;r.animOut.left=t.cycleW});r.cssBefore.left=u;r.cssBefore.top=0;r.animIn.left=0;r.animOut.left=u};n.fn.cycle.transitions.blindY=function(t,i,r){var u=t.css("overflow","hidden").height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.animIn.height=i.cycleH;r.animOut.top=t.cycleH});r.cssBefore.top=u;r.cssBefore.left=0;r.animIn.top=0;r.animOut.top=u};n.fn.cycle.transitions.blindZ=function(t,i,r){var u=t.css("overflow","hidden").height(),f=t.width();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.animIn.height=i.cycleH;r.animOut.top=t.cycleH});r.cssBefore.top=u;r.cssBefore.left=f;r.animIn.top=0;r.animIn.left=0;r.animOut.top=u;r.animOut.left=f};n.fn.cycle.transitions.growX=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0);r.cssBefore.left=this.cycleW/2;r.animIn.left=0;r.animIn.width=this.cycleW;r.animOut.left=0});r.cssBefore.top=0;r.cssBefore.width=0};n.fn.cycle.transitions.growY=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1);r.cssBefore.top=this.cycleH/2;r.animIn.top=0;r.animIn.height=this.cycleH;r.animOut.top=0});r.cssBefore.height=0;r.cssBefore.left=0};n.fn.cycle.transitions.curtainX=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0,!0);r.cssBefore.left=i.cycleW/2;r.animIn.left=0;r.animIn.width=this.cycleW;r.animOut.left=t.cycleW/2;r.animOut.width=0});r.cssBefore.top=0;r.cssBefore.width=0};n.fn.cycle.transitions.curtainY=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1,!0);r.cssBefore.top=i.cycleH/2;r.animIn.top=0;r.animIn.height=i.cycleH;r.animOut.top=t.cycleH/2;r.animOut.height=0});r.cssBefore.height=0;r.cssBefore.left=0};n.fn.cycle.transitions.cover=function(t,i,r){var u=r.direction||"left",f=t.css("overflow","hidden").width(),e=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.cssAfter.display="";u=="right"?r.cssBefore.left=-f:u=="up"?r.cssBefore.top=e:u=="down"?r.cssBefore.top=-e:r.cssBefore.left=f});r.animIn.left=0;r.animIn.top=0;r.cssBefore.top=0;r.cssBefore.left=0};n.fn.cycle.transitions.uncover=function(t,i,r){var u=r.direction||"left",f=t.css("overflow","hidden").width(),e=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0);u=="right"?r.animOut.left=f:u=="up"?r.animOut.top=-e:u=="down"?r.animOut.top=e:r.animOut.left=-f});r.animIn.left=0;r.animIn.top=0;r.cssBefore.top=0;r.cssBefore.left=0};n.fn.cycle.transitions.toss=function(t,i,r){var u=t.css("overflow","visible").width(),f=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0);r.animOut.left||r.animOut.top?r.animOut.opacity=0:n.extend(r.animOut,{left:u*2,top:-f/2,opacity:0})});r.cssBefore.left=0;r.cssBefore.top=0;r.animIn.left=0};n.fn.cycle.transitions.wipe=function(t,i,r){var u=t.css("overflow","hidden").width(),f=t.height(),e,s,h;r.cssBefore=r.cssBefore||{};r.clip&&(/l2r/.test(r.clip)?e="rect(0px 0px "+f+"px 0px)":/r2l/.test(r.clip)?e="rect(0px "+u+"px "+f+"px "+u+"px)":/t2b/.test(r.clip)?e="rect(0px "+u+"px 0px 0px)":/b2t/.test(r.clip)?e="rect("+f+"px "+u+"px "+f+"px 0px)":/zoom/.test(r.clip)&&(s=parseInt(f/2,10),h=parseInt(u/2,10),e="rect("+s+"px "+h+"px "+s+"px "+h+"px)"));r.cssBefore.clip=r.cssBefore.clip||e||"rect(0px 0px 0px 0px)";var o=r.cssBefore.clip.match(/(\d+)/g),c=parseInt(o[0],10),l=parseInt(o[1],10),a=parseInt(o[2],10),v=parseInt(o[3],10);r.before.push(function(t,i,r){var s,h,e,o;t!=i&&(s=n(t),h=n(i),n.fn.cycle.commonReset(t,i,r,!0,!0,!1),r.cssAfter.display="block",e=1,o=parseInt(r.speedIn/13,10)-1,function y(){var n=c?c-parseInt(e*(c/o),10):0,t=v?v-parseInt(e*(v/o),10):0,i=a<f?a+parseInt(e*((f-a)/o||1),10):f,r=l<u?l+parseInt(e*((u-l)/o||1),10):u;h.css({clip:"rect("+n+"px "+r+"px "+i+"px "+t+"px)"});e++<=o?setTimeout(y,13):s.css("display","none")}())});n.extend(r.cssBefore,{display:"block",opacity:1,top:0,left:0});r.animIn={left:0};r.animOut={left:0}}}(jQuery),function(n,t){var r=n.getDecodedCookie||function(n){var t=document.cookie.match(new RegExp("(?:^|; )"+n.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):undefined},u=n.setCookie,i;personalizeModel.prototype.shorten=function(){var n=this;return{contentType:n.contentType,contentId:n.contentId,sessionId:n.sessionId,clientNumber:n.clientNumber,isTracked:this.isTracked}};personalizeModel.prototype.mergeDataFromCookie=function(){var n,t;if(r)return n=r(this.cookieKey),n&&(t=JSON.parse(n),this.isTracked=t.isTracked,this.readArticles=t.readArticles),this};personalizeModel.prototype.markAsRead=function(){for(var n=0;n<this.readArticles.length;n++)if(this.readArticles[n]==this.contentId)return this;return this.readArticles.push(this.contentId),this};personalizeModel.prototype.saveDataToCookie=function(){if(u){var n=JSON.stringify(this);u(this.cookieKey,n,this.cookieDuration)}};i=t("#contentStatistic");i&&i.length>0&&(n.personalizeObject=n.personalizeObject||new personalizeModel,n.personalizeObject.contentId=i.attr("data-content-id"),n.personalizeObject.contentType=i.attr("data-content-type"),n.personalizeObject.mergeDataFromCookie())}(window,jQuery),jQuery.cookie=function(n,t,i){var f,r,e,o,u,s;if(typeof t!="undefined"){i=i||{};t===null&&(t="",i.expires=-1);f="";i.expires&&(typeof i.expires=="number"||i.expires.toUTCString)&&(typeof i.expires=="number"?(r=new Date,r.setTime(r.getTime()+i.expires*864e5)):r=i.expires,f="; expires="+r.toUTCString());var h=i.path?"; path="+i.path:"",c=i.domain?"; domain="+i.domain:"",l=i.secure?"; secure":"";document.cookie=[n,"=",encodeURIComponent(t),f,h,c,l].join("")}else{if(e=null,document.cookie&&document.cookie!="")for(o=document.cookie.split(";"),u=0;u<o.length;u++)if(s=jQuery.trim(o[u]),s.substring(0,n.length+1)==n+"="){e=decodeURIComponent(s.substring(n.length+1));break}return e}},jQuery.fn.imageZoom=function(n){var t=jQuery.extend({speed:200,dontFadeIn:1,hideClicked:1,imageMargin:30,className:"jquery-image-zoom",loading:"Loading..."},n);return t.doubleSpeed=t.speed/4,this.click(function(n){var e=jQuery(n.target),i=e.is("a")?e:e.parents("a"),r,f,o,u;return i=i&&i.is("a")&&i.attr("href").search(/(.*)\.(jpg|jpeg|gif|png|bmp|tif|tiff)$/gi)!=-1?i:!1,r=i&&i.find("img").length?i.find("img"):!1,i?(i.oldText=i.text(),i.setLoadingImg=function(){r?r.css({opacity:"0.5"}):i.text(t.loading)},i.setNotLoadingImg=function(){r?r.css({opacity:"1"}):i.text(i.oldText)},f=i.attr("href"),jQuery("div."+t.className+' img[src="'+f+'"]').length)?!1:(o=function(n){var c,l,s,a;i.setNotLoadingImg();var h=r?r:i,p=r?t.hideClicked:0,v=h.offset(),y={width:h.outerWidth(),height:h.outerHeight(),left:v.left,top:v.top},o=jQuery('<div><img src="'+f+'" alt=""/><\/div>').css("position","absolute").appendTo(document.body),u={width:n.width,height:n.height},e={width:jQuery(window).width(),height:jQuery(window).height()};u.width>e.width-t.imageMargin*2&&(c=e.width-t.imageMargin*2,u.height=c/u.width*u.height,u.width=c);u.height>e.height-t.imageMargin*2&&(l=e.height-t.imageMargin*2,u.width=l/u.height*u.width,u.height=l);u.left=(e.width-u.width)/2+jQuery(window).scrollLeft();u.top=(e.height-u.height)/2+jQuery(window).scrollTop();s=jQuery('<a href="#">Close<\/a>').appendTo(o).hide();p&&i.css("visibility","hidden");o.addClass(t.className).css(y).animate(u,t.speed,function(){s.fadeIn(t.doubleSpeed)});a=function(){return s.fadeOut(t.doubleSpeed,function(){o.animate(y,t.speed,function(){i.css("visibility","visible");o.remove()})}),!1};o.click(a);s.click(a)},u=new Image,u.src=f,u.complete?o(u):(i.setLoadingImg(),u.onload=function(){o(u)}),!1):void 0})},$(document).keydown(function(n){n.keyCode==27&&$("div.jquery-image-zoom a").click()}),function(){String.prototype.format===undefined&&(String.prototype.format=function(){var n=arguments;return this.replace(/\{(\d+)\}/g,function(t,i){return n[i]})})}(),GeoLocationSelectorEvents=function(){if(arguments.callee._singletonInstance)return arguments.callee._singletonInstance;arguments.callee._singletonInstance=this;var n=[],t=function(n){return n===""||n===null||n===undefined},i=function(n,i){t(n)||typeof i!="function"||n.push(i)},r=function(n,t){for(var i in n)n[i].apply(this,t||[])};return this.OnLocationSelected=function(t){i(n,t)},this.FireEvents=function(t){r(n,t)},arguments.callee._singletonInstance},GeoLocationSelector=function(n){var t=n.selectButton,i=n.selectorFormUrl,r=n.formTitle,u=n.formWidth||440,f=n.formHeight||140,e=n.cookieKey,o=n.locationSetMessage,s=n.locationNotFoundMessage,h=function(n){$.cookie(e,n,{expires:1825,path:"/"})},c=function(n){var i=n.content.find(".geo-search-btn"),r=n.content.find("#geoLocationName"),u=n.content.find(".geo-search-info-msg"),t=n.content.find(".geo-search-err-msg"),f=n.content.find(".geo-search-fields");r.keypress(function(n){n.which==13&&(n.preventDefault(),i.click())});i.click(function(){var n=$.trim(r.val()),i;if(n=="")return!1;n=n.charAt(0).toUpperCase()+n.slice(1);i=geoLocationsDictionary[n.toLowerCase()];t.css("display","none");i!=undefined?(h(i),f.css("display","none"),u.html(o.format(n)),u.css("display","block"),setTimeout(function(){(new GeoLocationSelectorEvents).FireEvents()},1)):(t.html(s.format(n)),t.css("display","block"))})};t.click(function(){return $.get(i,function(n){(n!=""||n===undefined)&&$.nyroModalManual({content:n,title:r,autoSizable:!0,minWidth:u,minHeight:f,endFillContent:c,endShowContent:function(n){var t=n.content.find("#geoLocationName");t.focus()}})}),!1})},$(document).ready(function(){var r="fontSizeConst",n=["font-step1","font-step2","font-step3"],t=$("#contentBody"),i;$.setcookie=function(n,t){$.cookie(n,t,{path:"/",expires:30})};$.getcookie=function(n){return $.cookie(n)};$.changeContentCssClass=function(n,i){t.addClass(i).removeClass(n);$.setcookie(r,i)};$.decreaseFontSize=function(){for(var i=0;i<n.length;i++)if(t.hasClass(n[i]))return i>=1?$.changeContentCssClass(n[i],n[i-1]):$.changeContentCssClass(n[i],""),!1;return!1};$.increaseFontSize=function(){for(var i=n.length-1;i>=0;i--)if(t.hasClass(n[i]))return n.length>i+1?$.changeContentCssClass(n[i],n[i+1]):$.changeContentCssClass(n[i],""),!1;return $.changeContentCssClass("",n[0]),!1};$.changeFontSize=function(){return t.hasClass("font-step2")?($.changeContentCssClass("font-step2",""),$(this).removeClass("article-large-txt")):($.changeContentCssClass("","font-step2"),$(this).addClass("article-large-txt")),!1};i=$.getcookie(r);i==""&&(t.addClass(i),$(".article-textsize-plus").addClass("article-large-txt"));$("#hookTools a.textsize-minus").click($.decreaseFontSize);$("#hookTools a.article-textsize-plus").click($.changeFontSize);$("#article-tools a.textsize-minus").click($.decreaseFontSize);$("#article-tools a.article-textsize-plus").click($.changeFontSize)}),$().ready(function(){$(".article-print").click(function(){return window.open(this.href,"_blank","width=1024,height=768,status=no,menubar=no,toolbar=no,scrollbars=yes"),!1})}),UrlHandler.prototype={constructor:UrlHandler,getUrlVars:function(){for(var i=[],n,r=this._locationHref.slice(this._locationHref.indexOf("?")+1).split("&"),t=0;t<r.length;t++)n=r[t].split("="),i.push(n[0]),i[n[0]]=n[1];return i},getUrlVar:function(n){return this._urlVars==undefined&&(this._urlVars=this.getUrlVars()),this._urlVars[n]},getCookie:function(n){var t=this._cookie.match(new RegExp("(?:^|; )"+n.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):undefined},replaceUrlStubs:function(){for(var n=this,t=function(t,i){var r=n.getUrlVar(i),u;return r==undefined&&(u=n.getCookie(i),r=u!=undefined?u:""),r};this._url.match(/{(.*?)}/);)this._url=this._url.replace(/{(.*?)}/,t);return this._url}},$(document).ready(function(){SetDefaultNyroModalSettings()}),Validate=function(n){var t=!0,i=!1;return $(".feedback").hide(),$.each(["signatureErrors","textErrors","acceptDisclaimerErrors"],function(r,u){n.getResponseHeader(u)!=null&&n.getResponseHeader(u).length>0?($("#"+u).css("display","block"),t=!1,$("#"+u).parent().children(":input").addClass("user-input-error")):($("#"+u).css("display","none"),$("#"+u).parent().children(":input").removeClass("user-input-error"),i=!0)}),n.getResponseHeader("commentAdded")!=null&&n.getResponseHeader("commentAdded").length>0&&$(".feedback").show(),t},showDisclaimerVar={isShow:!1,onEndRemove:function(){showDisclaimerVar.isShow&&(showDisclaimerVar.isShow=!1,showDisclaimerVar.loadAndShowDisclaimer())},showDisclaimer:function(){showDisclaimerVar.isShow=!0;$.nyroModalRemove()},loadAndShowDisclaimer:function(){$.get(commentServices.disclaimerUrl,function(n){$.nyroModalManual({content:n,title:"Regler för artikelkommentarer"})})}},!jQuery.support.cors&&jQuery.ajaxTransport&&window.XDomainRequest){var httpRegEx=/^https?:\/\//i,getOrPostRegEx=/^get|post$/i,sameSchemeRegEx=new RegExp("^"+location.protocol,"i"),htmlRegEx=/text\/html/i,jsonRegEx=/\/json/i,xmlRegEx=/\/xml/i;jQuery.ajaxTransport("text html xml json",function(n,t){if(n.crossDomain&&n.async&&getOrPostRegEx.test(n.type)&&httpRegEx.test(n.url)&&sameSchemeRegEx.test(n.url)){var i=null,r=(t.dataType||"").toLowerCase();return{send:function(u,f){i=new XDomainRequest;/^\d+$/.test(t.timeout)&&(i.timeout=t.timeout);i.ontimeout=function(){f(500,"timeout")};i.onload=function(){var e="Content-Length: "+i.responseText.length+"\r\nContent-Type: "+i.contentType,t={code:200,message:"success"},u={text:i.responseText},n;try{if(r==="html"||htmlRegEx.test(i.contentType))u.html=i.responseText;else if(r==="json"||r!=="text"&&jsonRegEx.test(i.contentType))try{u.json=jQuery.parseJSON(i.responseText)}catch(s){t.code=500;t.message="parseerror"}else if(r==="xml"||r!=="text"&&xmlRegEx.test(i.contentType)){n=new ActiveXObject("Microsoft.XMLDOM");n.async=!1;try{n.loadXML(i.responseText)}catch(s){n=undefined}if(!n||!n.documentElement||n.getElementsByTagName("parsererror").length){t.code=500;t.message="parseerror";throw"Invalid XML: "+i.responseText;}u.xml=n}}catch(o){throw o;}finally{f(t.code,t.message,u,e)}};i.onprogress=function(){};i.onerror=function(){f(500,"error",{text:i.responseText})};var e="";t.data&&(e=jQuery.type(t.data)==="string"?t.data:jQuery.param(t.data));i.open(n.type,n.url);i.send(e)},abort:function(){i&&i.abort()}}}})}(function(n){function s(n){return typeof n=="string"}function o(n){var t=k.call(arguments,1);return function(){return n.apply(this,t.concat(k.call(arguments)))}}function lt(n){return n.replace(l,"$2")}function at(n){return n.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function ot(r,f,o,h,v){var w,y,p,k,g;return h!==t?(p=o.match(r?l:/^([^#?]*)\??([^#]*)(#?.*)/),g=p[3]||"",v===2&&s(h)?y=h.replace(r?c:ut,""):(k=i(p[2]),h=s(h)?i[r?u:e](h):h,y=v===2?h:v===1?n.extend({},h,k):n.extend({},k,h),y=d(y),r&&(y=y.replace(ft,a))),w=p[1]+(r?b:y||!p[1]?"?":"")+y+g):w=f(o!==t?o:location.href),w}function st(n,r,o){return r===t||typeof r=="boolean"?(o=r,r=f[n?u:e]()):r=s(r)?r.replace(n?c:ut,""):r,i(r,o)}function ht(i,r,u,e){return s(u)||typeof u=="object"||(e=u,u=r,r=t),this.each(function(){var o=n(this),t=r||tt()[(this.nodeName||"").toLowerCase()]||"",s=t&&o.attr(t)||"";o.attr(t,f[i](s,u,e))})}var t,k=Array.prototype.slice,a=decodeURIComponent,f=n.param,d,r,i,v,y=n.bbq=n.bbq||{},g,nt,tt,it=n.event.special,rt="hashchange",e="querystring",u="fragment",p="elemUrlAttr",w="href",h="src",ut=/^.*\?|#.*$/g,c,l,ft,et,b,ct={};f[e]=o(ot,0,at);f[u]=r=o(ot,1,lt);f.sorted=d=function(t,i){var u=[],r={};return n.each(f(t,i).split("&"),function(n,t){var i=t.replace(/(?:%5B|=).*$/,""),f=r[i];f||(f=r[i]=[],u.push(i));f.push(t)}),n.map(u.sort(),function(n){return r[n]}).join("&")};r.noEscape=function(t){t=t||"";var i=n.map(t.split(""),encodeURIComponent);ft=new RegExp(i.join("|"),"g")};r.noEscape(",/");r.ajaxCrawlable=function(n){return n!==t&&(n?(c=/^.*(?:#!|#)/,l=/^([^#]*)(?:#!|#)?(.*)$/,b="#!"):(c=/^.*#/,l=/^([^#]*)#?(.*)$/,b="#"),et=!!n),et};r.ajaxCrawlable(0);n.deparam=i=function(i,r){var u={},f={"true":!0,"false":!1,"null":null};return n.each(i.replace(/\+/g," ").split("&"),function(i,e){var y=e.split("="),h=a(y[0]),o,v=u,l=0,s=h.split("]["),c=s.length-1;if(/\[/.test(s[0])&&/\]$/.test(s[c])?(s[c]=s[c].replace(/\]$/,""),s=s.shift().split("[").concat(s),c=s.length-1):c=0,y.length===2)if(o=a(y[1]),r&&(o=o&&!isNaN(o)?+o:o==="undefined"?t:f[o]!==t?f[o]:o),c)for(;l<=c;l++)h=s[l]===""?v.length:s[l],v=v[h]=l<c?v[h]||(s[l+1]&&isNaN(s[l+1])?{}:[]):o;else n.isArray(u[h])?u[h].push(o):u[h]=u[h]!==t?[u[h],o]:o;else h&&(u[h]=r?t:"")}),u};i[e]=o(st,0);i[u]=v=o(st,1);n[p]||(n[p]=function(t){return n.extend(ct,t)})({a:w,base:w,iframe:h,img:h,input:h,form:"action",link:w,script:h});tt=n[p];n.fn[e]=o(ht,e);n.fn[u]=o(ht,u);y.pushState=g=function(n,i){s(n)&&/^#/.test(n)&&i===t&&(i=2);var u=n!==t,f=r(location.href,u?n:{},u?i:2);location.href=f};y.getState=nt=function(n,i){return n===t||typeof n=="boolean"?v(n):v(i)[n]};y.removeState=function(i){var r={};i!==t&&(r=nt(),n.each(n.isArray(i)?i:arguments,function(n,t){delete r[t]}));g(r,2)};it[rt]=n.extend(it[rt],{add:function(f){function o(n){var f=n[u]=r();n.getState=function(n,r){return n===t||typeof n=="boolean"?i(f,n):i(f,r)[n]};e.apply(this,arguments)}var e;if(n.isFunction(f))return e=f,o;e=f.handler;f.handler=o}})})(jQuery,this),function(n,t,i){function u(n){return n=n||location.href,"#"+n.replace(/^[^#]*#?(.*)$/,"$1")}var r="hashchange",f=document,e,s=n.event.special,h=f.documentMode,o="on"+r in t&&(h===i||h>7);n.fn[r]=function(n){return n?this.bind(r,n):this.trigger(r)};n.fn[r].delay=50;s[r]=n.extend(s[r],{setup:function(){if(o)return!1;n(e.start)},teardown:function(){if(o)return!1;n(e.stop)}});e=function(){function a(){var f=u(),i=v(h);f!==h?(l(h=f,i),n(t).trigger(r)):i!==h&&(location.href=location.href.replace(/#.*/,"")+i);s=setTimeout(a,n.fn[r].delay)}var e={},s,h=u(),c=function(n){return n},l=c,v=c;return e.start=function(){s||a()},e.stop=function(){s&&clearTimeout(s);s=i},n.browser.msie&&!o&&function(){var t,i;e.start=function(){t||(i=n.fn[r].src,i=i&&i+u(),t=n('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){i||l(u());a()}).attr("src",i||"javascript:0").insertAfter("body")[0].contentWindow,f.onpropertychange=function(){try{event.propertyName==="title"&&(t.document.title=f.title)}catch(n){}})};e.stop=c;v=function(){return u(t.location.href)};l=function(i,u){var e=t.document,o=n.fn[r].domain;i!==u&&(e.title=f.title,e.open(),o&&e.write('<script>document.domain="'+o+'"<\/script>'),e.close(),t.location.hash=i)}}(),e}()}(jQuery,this);usingRightNowTeaserJS&&$(function(){var i,r,t=null,n=$(".rnt");n.find(".rnt-teaser").length>1&&($nav=$('<div class="navigation"><a href="#" class="rnt-nav-left">&nbsp;<\/a> <a href="#" class="rnt-nav-right">&nbsp;<\/a><\/div>'),n.append($nav),t=n.find(".navigation"),i=n.find(".rnt-nav-left"),r=n.find(".rnt-nav-right"));n.find(".rnt-wrapper").cycle({fx:"scrollHorz",timeout:0,speed:450,timeout:5e3,pause:1,pauseOnPagerHover:1,startingSlide:0,prev:i,next:r,easing:"easeOutQuart"});t!=null&&t.hover(function(){n.find(".rnt-wrapper").cycle("pause")},function(){n.find(".rnt-wrapper").cycle("resume")})}),function(n,t){function i(n,t){n.height()<t.height&&n.height(t.height);var i=n.find(".caption"),r=n[0].style;r&&r.display=="none"||n.hasClass("hidden")?(n.removeClass("hidden").addClass("hidden-absolute").show(),i.data("height",i.css("height","auto").height()).css({left:0,height:0}),n.removeClass("hidden-absolute").addClass("hidden")):i.data("height",i.css("height","auto").height()).css({left:0,height:0})}function r(n){for(var i=[],t=0;t<n.length;t++)i.push(n[t]);return i}function u(){var n=window.location.href,t=n.indexOf("?")>-1?n.substring(0,n.indexOf("?")):n,i=new RegExp("(http|https)://(www.)?[^/]+/{0,1}$");return i.test(t)}rotationModel.prototype.initDefault=function(n,i,r){this.container=n;var f=t(n),e=f.children('[data-media-type="slide-item"]');return this.slideItems=e,this.height=f.height(),this.random=r,this.timeOut=i||0,this.slideAvailble=e.length>1,this.isOnHomePage=u(),this.setupPersonalize(),this.applyPersonalize&&this.random&&this.isOnHomePage&&this.personalizeIt(),this.random?(this.randomSlide(),this.setupCaptions()):(this.setupNavigation(),this.setupCaptions(),this.setupSlides()),this.initCompleted(),this};rotationModel.prototype.setupCaptions=function(){for(var r,n=0;n<this.slideItems.length;n++)r=t(this.slideItems[n]),i(r,this)};rotationModel.prototype.setupNavigation=function(){if(this.slideAvailble){var n=t('<div class="rt-tser-slide-nav"/>');this.prevEl=t('<a class="rt-tser-slide-previous block left" href="#">&nbsp;<\/a>');this.nextEl=t('<a class="rt-tser-slide-next  block left" href="#">&nbsp;<\/a>');n.append(this.prevEl).append(this.nextEl);t(this.container).after(n)}};rotationModel.prototype.setupSlides=function(){t(this.container).cycle({fx:"scrollHorz",delay:2e3,speed:400,timeout:this.timeOut*1e3,prev:this.prevEl,next:this.nextEl,startingSlide:Math.floor(Math.random()*this.slideItems.length),easing:"easeOutQuart",cleartypeNoBg:!1})};rotationModel.prototype.setupPersonalize=function(){var t=n.personalizeObject||new personalizeModel;this.personalizeData=t.mergeDataFromCookie();this.applyPersonalize=this.personalizeData.isTracked;this.applyPersonalize&&this.personalizeData.markAsRead()};rotationModel.prototype.personalizeIt=function(){var e,i,o,u,s,n,f;if(this.personalizeData&&this.personalizeData.readArticles){for(e=r(this.slideItems),i=[],n=0;n<this.personalizeData.readArticles.length;n++)o=this.personalizeData.readArticles[n],u=this.findSlideByContentId(o),u>-1&&(s=this.slideItems[u],this.slideItems=t.grep(this.slideItems,function(n,t){return t!=u}),i.push(t(s)));if(this.slideAvailble=this.slideItems.length>1,this.slideItems.length>0)for(n=0;n<i.length;n++)i[n].remove();else this.slideItems=e,this.slideAvailble=this.slideItems.length>1;this.slideItems.length>0&&(f=t(this.slideItems[0]),f.hasClass("hidden")&&f.removeClass("hidden"))}};rotationModel.prototype.findSlideByContentId=function(n){for(var u,r,i=0;i<this.slideItems.length;i++)if(u=t(this.slideItems[i]),r=u.find('[data-type="link-heading"]'),r&&r.length>0&&r.attr("data-content-id")==n)return i;return-1};rotationModel.prototype.randomSlide=function(){for(var t=this.slideItems.length,i=Math.floor(Math.random()*t),n=0;n<this.slideItems.length;n++)this.slideItems[n].style.display=n!=i?"none":"block"};t(function(){var u,i,r;for(n.rotations=n.rotations||[],n.rotationsInitCompleted=n.rotationsInitCompleted||function(){},u=t('[data-media-type="rotation"]'),i=0;i<u.length;i++){var f=u[i],o=f.getAttribute("data-random")||"false",s=f.getAttribute("data-options"),e=JSON.parse(s);e||(e={timeOut:0});r=new rotationModel;r.initCompleted=function(){this.container.setAttribute("data-init",!0);t(this.container.parentElement).removeClass("invisible")};r.initDefault(f,e.timeOut,o.toLowerCase()=="true");n.rotations.push(r)}n.rotationsInitCompleted()})}(window,jQuery);$.fn.dnCaption=function(){var n=$(this);n.each(function(){var n=$(this).find(".caption");n.height()>0&&n.data("height",n.height()).css({left:0,height:0})});n.hover(function(){n.find(".caption").each(function(){$(this).animate({height:$(this).data("height")},{queue:!1,duration:300,easing:"easeOutQuart"})})},function(){n.find(".caption").each(function(){$(this).animate({height:0},{queue:!1,duration:300,easing:"easeOutQuart"})})})};$(function(){$("#right .photo").each(function(){$(this).dnCaption()});$('[data-dn-caption="true"]').each(function(){$(this).dnCaption()})});usingRotatingSplitContainerJS&&$(function(){setTimeout(function(){for(var t,n=0;n<_need_apply_rotating_split.length;n++)t=_need_apply_rotating_split[n],ApplyRotatingSplitView(t.clientId)},1e3)});$(document).ready(function(){try{var n=$("input[name='siteUrl']").val();$(".rss-widget").each(function(){var t=n+"/WebServices/RSSService.ashx?rss="+$(this).attr("title"),i=this;$.ajax({url:t,type:"GET",dataType:"html",error:function(n,t,i){console&&console.log&&console.log(i+"\n"+t+"\n"+n.statusText)},success:function(n){n!=null&&$(i).replaceWith(n)}})});$(".rss-widget-lastestnew").each(function(){var t=n+"/WebServices/RSSService.ashx?rss="+$(this).attr("title")+"&view=news",i=this;$.ajax({url:t,type:"GET",dataType:"html",error:function(n,t,i){console&&console.log&&console.log(i+"\n"+t+"\n"+n.statusText)},success:function(n){n!=null&&$(i).replaceWith(n)}})})}catch(t){}});!function(n,t){function v(n,t,r){var e=n.children(),o=!1,u,s,f;for(n.empty(),u=0,s=e.length;s>u;u++){if(f=e.eq(u),n.append(f),r&&n.append(r),i(n,t)){f.remove();o=!0;break}r&&r.detach()}return o}function e(t,r,u,f,o){var s=!1,h="table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style",c="script";return t.contents().detach().each(function(){var a=this,l=n(a);if("undefined"==typeof a||3==a.nodeType&&0==n.trim(a.data).length)return!0;if(l.is(c))t.append(l);else{if(s)return!0;t.append(l);o&&t[t.is(h)?"after":"append"](o);i(u,f)&&(s=3==a.nodeType?y(l,r,u,f,o):e(l,r,u,f,o),s||(l.detach(),s=!0));s||o&&o.detach()}}),s}function y(t,u,e,h,c){var l=t[0],nt,k,d;if(!l)return!1;var y=s(l),tt=-1!==y.indexOf(" ")?" ":"　",p="letter"==h.wrap?"":tt,a=y.split(p),g=-1,w=-1,b=0,v=a.length-1;for(h.fallbackToLetter&&0==b&&0==v&&(p="",a=y.split(p),v=a.length-1);v>=b&&(0!=b||0!=v);){if(nt=Math.floor((b+v)/2),nt==w)break;w=nt;f(l,a.slice(0,w+1).join(p)+h.ellipsis);i(e,h)?(v=w,h.fallbackToLetter&&0==b&&0==v&&(p="",a=a[0].split(p),g=-1,w=-1,b=0,v=a.length-1)):(g=w,b=w)}return-1==g||1==a.length&&0==a[0].length?(k=t.parent(),t.detach(),d=c&&c.closest(k).length?c.length:0,k.contents().length>d?l=r(k.contents().eq(-1-d),u):(l=r(k,u,!0),d||k.detach()),l&&(y=o(s(l),h),f(l,y),d&&c&&n(l).parent().append(c))):(y=o(a.slice(0,g+1).join(p),h),f(l,y)),!0}function i(n,t){return n.innerHeight()>t.maxHeight}function o(t,i){for(;n.inArray(t.slice(-1),i.lastCharacter.remove)>-1;)t=t.slice(0,-1);return n.inArray(t.slice(-1),i.lastCharacter.noEllipsis)<0&&(t+=i.ellipsis),t}function u(n){return{width:n.innerWidth(),height:n.innerHeight()}}function f(n,t){n.innerText?n.innerText=t:n.nodeValue?n.nodeValue=t:n.textContent&&(n.textContent=t)}function s(n){return n.innerText?n.innerText:n.nodeValue?n.nodeValue:n.textContent?n.textContent:""}function h(n){do n=n.previousSibling;while(n&&1!==n.nodeType&&3!==n.nodeType);return n}function r(t,i,u){var f,e=t&&t[0];if(e){if(!u){if(3===e.nodeType)return e;if(n.trim(t.text()))return r(t.contents().last(),i)}for(f=h(e);!f;){if(t=t.parent(),t.is(i)||!t.length)return!1;f=h(t[0])}if(f)return r(n(f),i)}return!1}function p(t,i){return t?"string"==typeof t?(t=n(t,i),t.length?t:!1):t.jquery?t:!1:!1}function w(n){for(var t,r=n.innerHeight(),u=["paddingTop","paddingBottom"],i=0,f=u.length;f>i;i++)t=parseInt(n.css(u[i]),10),isNaN(t)&&(t=0),r-=t;return r}var c,l,a;n.fn.dotdotdot||(n.fn.dotdotdot=function(t){var r;if(0==this.length)return n.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){n(this).dotdotdot(t)});r=this;r.data("dotdotdot")&&r.trigger("destroy.dot");r.data("dotdotdot-style",r.attr("style")||"");r.css("word-wrap","break-word");"nowrap"===r.css("white-space")&&r.css("white-space","normal");r.bind_events=function(){return r.bind("update.dot",function(t,u){t.preventDefault();t.stopPropagation();f.maxHeight="number"==typeof f.height?f.height:w(r);f.maxHeight+=f.tolerance;"undefined"!=typeof u&&(("string"==typeof u||u instanceof HTMLElement)&&(u=n("<div />").append(u).contents()),u instanceof n&&(h=u));s=r.wrapInner('<div class="dotdotdot" />').children();s.contents().detach().end().append(h.clone(!0)).find("br").replaceWith("  <br />  ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var c=!1,l=!1;return o.afterElement&&(c=o.afterElement.clone(!0),c.show(),o.afterElement.detach()),i(s,f)&&(l="children"==f.wrap?v(s,f,c):e(s,r,s,f,c)),s.replaceWith(s.contents()),s=null,n.isFunction(f.callback)&&f.callback.call(r[0],l,h),o.isTruncated=l,l}).bind("isTruncated.dot",function(n,t){return n.preventDefault(),n.stopPropagation(),"function"==typeof t&&t.call(r[0],o.isTruncated),o.isTruncated}).bind("originalContent.dot",function(n,t){return n.preventDefault(),n.stopPropagation(),"function"==typeof t&&t.call(r[0],h),h}).bind("destroy.dot",function(n){n.preventDefault();n.stopPropagation();r.unwatch().unbind_events().contents().detach().end().append(h).attr("style",r.data("dotdotdot-style")||"").data("dotdotdot",!1)}),r};r.unbind_events=function(){return r.unbind(".dot"),r};r.watch=function(){if(r.unwatch(),"window"==f.watch){var t=n(window),i=t.width(),e=t.height();t.bind("resize.dot"+o.dotId,function(){i==t.width()&&e==t.height()&&f.windowResizeFix||(i=t.width(),e=t.height(),l&&clearInterval(l),l=setTimeout(function(){r.trigger("update.dot")},10))})}else a=u(r),l=setInterval(function(){var n=u(r);(a.width!=n.width||a.height!=n.height)&&(r.trigger("update.dot"),a=u(r))},100);return r};r.unwatch=function(){return n(window).unbind("resize.dot"+o.dotId),l&&clearInterval(l),r};var h=r.contents(),f=n.extend(!0,{},n.fn.dotdotdot.defaults,t),o={},a={},l=null,s=null;return f.lastCharacter.remove instanceof Array||(f.lastCharacter.remove=n.fn.dotdotdot.defaultArrays.lastCharacter.remove),f.lastCharacter.noEllipsis instanceof Array||(f.lastCharacter.noEllipsis=n.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),o.afterElement=p(f.after,r),o.isTruncated=!1,o.dotId=c++,r.data("dotdotdot",!0).bind_events().trigger("update.dot"),f.watch&&r.watch(),r},n.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0},n.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" ","　",",",";",".","!","?"],noEllipsis:[]}},n.fn.dotdotdot.debug=function(){},c=1,l=n.fn.html,n.fn.html=function(i){return i!=t&&!n.isFunction(i)&&this.data("dotdotdot")?this.trigger("update",[i]):l.apply(this,arguments)},a=n.fn.text,n.fn.text=function(i){return i!=t&&!n.isFunction(i)&&this.data("dotdotdot")?(i=n("<div />").text(i).html(),this.trigger("update",[i])):a.apply(this,arguments)})}(jQuery);addScript=function(n){var t=document.createElement("script"),i;t.async=!0;t.src=n;i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(t,i)};String.prototype.trim=function(){return this.replace(/^\s*/,"").replace(/\s*$/,"")};minClipHeight=150,function(){function i(){function u(){var t;if(!r&&n.length!=0){var u=n.offset().top,f=$(window).scrollTop(),e=$(window).height();f+e>u&&(r=!0,$("input#showprintads").length>=1&&($(window).unbind("scroll",i),t="/Pages/CachableControlLoaderPage.aspx?controlPath=/UserControls/WidgetViews/PrintAdsWidgetView.ascx&id="+$("input#showprintads").val(),$.get(t,function(t){n.append(t)})))}}t!=undefined&&clearTimeout(t);t=setTimeout(u,100)}var n=$("#printads"),r=!1,t;$(window).scroll(i);i()}();s_global_userid=undefined;$(document).ready(function(){var h,i,r,n,c,l,u,f,a,v,e,y,p,w,b,o,s,t;$.cookie("404redirect",null,{path:"/"});$.cookie("urlremap-original",null,{path:"/"});h=/(\?|&)token=.+/;$("#userLoginInfoHolder").val()!=undefined&&loadUserInfo($("#userLoginInfoHolder"),$("input#CurrentUrl").val(),function(){var y=document.getElementById("HiddenFieldLoggedIn"),n=document.getElementById("promo-notloggedin"),t=document.getElementById("promo-loggedin"),l,f,e,o,i,r,c;if(t!=null&&n!=null&&(y!=null&&y.value.toLowerCase()=="true"?(t.className=t.className.replace(" block","").replace(" hidden","")+" block",n.className=n.className.replace(" block","").replace(" hidden","")+" hidden"):(t.className=t.className.replace(" block","").replace(" hidden","")+" hidden",n.className=n.className.replace(" block","").replace(" hidden","")+" block")),$("#userLoginInfoHolder li").insertAfter("#todays-date"),$(".nav-collapse ul").trigger("fit"),l=$(".plus-buttons>a"),f=$("#userToken"),f&&f.length>0&&(e=f.val().trim(),s_global_userid=e,e!=""))for(o=0;o<l.length;o++)(i=$(l[o]),!i||i.length<=0)||(r=i.attr("href")||"",h.test(r)||(r=r+"&token="+e,i.attr("href",r)));$("input#loginUserUnAuthorized").val()=="True"?($("a#servicePlusUpgradeLink").css("display","inline-block"),$("div#servicePlusDescText").css("display","block")):($("a#servicePlusLoginLink").css("display","inline-block"),$("a#servicePlusBuyLink").css("display","inline-block"),$("div#servicePlusNotLoginDescText").css("display","block"));var w=$("#additionalWebTvData").val()||"",u=$("#premium-content-webtv"),a=$("#webtv-content-area"),s="client-premium-check",p=$.parseJSON($("#HiddenFieldPremiumInformation").val()||"{}"),v=$(".client-premium-check.hidden");if(u&&u.length>0)switch(w){case"unauthenticated":case"unauthorized":u.removeClass(s);a.remove();break;case"authorized":a.removeClass(s);u.remove();break;default:u.removeClass(s);a.remove()}p&&v&&v.length>0&&p.ispremium&&v.removeClass("hidden").removeClass(s);c=$("#splusUserId").val();c!=null&&c!=""&&window.byburt_onServicePlusIdSync&&window.byburt_onServicePlusIdSync(c)},$("input#CurrentPageId").val());$("input.hideColumn").length>0&&$(".wide-column").hide();$("input#DnSearchTextBox").length>0&&(i="Sök DN.se",r=$("input#DnSearchTextBox"),r.focus(function(){$(this).removeClass("inactived");$(this).addClass("actived");$(this).val()==i&&$(this).val("")}),r.blur(function(){$(this).removeClass("actived");$(this).addClass("inactived");$(this).val()==""&&$(this).val(i)}));$("input.autoTeaserShowMore").length>0&&$("input.autoTeaserShowMore").each(function(){var n=JSON.parse($(this).val()),t=new show_more_small_auto_teasers(n.itemsTotal,n.lastIndex,$("#"+n.btn),n.amount,$("#"+n.containerId),$("#"+n.showMoreWrapper),n.pageLinkId,n.url,n.excludeList,n.normalTeaserNumber);t.init()});$("input.storyBoxRight").length>0&&$("input.storyBoxRight").each(function(){var n=JSON.parse($(this).val()),t=new StoryShowMore(n.itemsTotal,n.lastIndex,$("#"+n.btn),n.increaseNumber,n.layout,$("#"+n.containerId),$("#"+n.showMoreWrapper),n.pageRefId,n.pageLinkId,n.url,!0);t.init()});$("input.storyBox").length>0&&$("input.storyBox").each(function(){var n=JSON.parse($(this).val()),t=new StoryShowMore(n.itemsTotal,n.lastIndex,$("#"+n.btn),n.increaseNumber,n.layout,$("#"+n.containerId),$("#"+n.showMoreWrapper),n.pageRefId,n.pageLinkId,n.url,!1);t.init()});$("input.input_showmore_comic").length>0&&(n=JSON.parse($("input.input_showmore_comic").val()),c=new showMoreComics(n.total,n.skip,n.group,$("#media-items"),$(".showmore"),n.url),c.init());$(".dnse-webtvinit").hover(function(){var n=$(this).parent(".dnse-webtvclip");n.addClass("dnse-webtvclip-hover")},function(){var n=$(this).parent(".dnse-webtvclip");n.removeClass("dnse-webtvclip-hover")});l=$(".fh-left-column-wrap, .iframe-span-2").height();u=$("#right").height();u>=l&&$(".fh-left-column-wrap, .iframe-span-2").height(u);$(".fh-control-wrap").length&&($(".fh-left-column-wrap").css("background","#FFFFFF"),$(".fh-left-column-wrap").find(".teaser-divider").hide());$(".wtv-nav-more").click(function(){var i=$(this).find(".wtv-nav-more-ctn"),n=$(this).find(".wtv-nav-more-arrow"),t=$(this).find(".wtv-nav-more-arrow-up");n!=null&&n.length>0&&($(i).css({display:"block"}).slideDown(300),n.removeClass("wtv-nav-more-arrow"),n.addClass("wtv-nav-more-arrow-up"));t!=null&&t.length>0&&($(i).css({display:"none"}).slideUp(300),t.addClass("wtv-nav-more-arrow"),t.removeClass("wtv-nav-more-arrow-up"))});f=$("#ddBrand-motor-search");$(f).length>0&&(a=f.val(),v=$("#"+a),v.change(function(){if($(this).val()!=""){var n=$("input[name='siteUrl']").val();location.href=n+$(this).val()}}));e=$("#ddCountries-travel-search");e.length>0&&(y=e.val(),p=$("#"+y),p.change(function(){if($(this).val()!=""){var n=$("input[name='siteUrl']").val();location.href=n+$(this).val()}}));$("#recipeExpandedList").click(function(){var n=$("#recipeExpandedList"),t=$("#recipeFormExpanded"),i,r,u;return t.length>0?(i=t.val(),r=$("#"+i),$(r).slideToggle(400),$(n).toggleClass("recipe-arrowdown"),u=$(n).text(),$(n).text(u=="Fler alternativ"?"Färre alternativ":"Fler alternativ"),!1):!1});w=/iphone|ipod|android|blackberry|opera|mini|windows\sce|palm|smartphone|iemobile/i.test(navigator.userAgent.toLowerCase());b=/ipad|android|xoom|sch-i800|playbook|tablet|kindle/i.test(navigator.userAgent.toLowerCase());w||b?$("#tlnk").superclick({}):$(".head-vertical-menu .dropdown").hover(function(){$(this).find("ul:first").slideDown(250)},function(){$(this).find("ul:first").slideUp(250)});$.browser.msie&&parseFloat($.browser.version)<8&&(o=getCookie("UpgradeIE7Cookie"),s=document.getElementById("notify-upgrade-ie7"),s!=null&&(s.style.display=o!=null&&o!=""?"none":"block"));t=$(".notify-upgrade-link");t!=null&&t.length>0&&t.click(function(n){var i,r,t;n.preventDefault();i=document.getElementById("DaysCookieUpgradeIE7");i!=null&&(r=JSON.parse(i.value),t=r.daysCookieUpgradeIE7,t!=null&&t!="undefined"&&setCookieUpgradeIE7("UpgradeIE7Cookie",!0,t,this))})});$(".box-advert").prev(".teaser, .mts").find(".non-divider").removeClass("non-divider");errorList=errorList||"";$(window).load(function(){var n,t,i;$("input#articleSocial").length>0&&(n=JSON.parse($("input#articleSocial").val()),t=new FacebookSubscriptor(n.service,n.pageRef),t.init(),i=new TwitterSubscriptor(n.service,n.pageRef),i.init());errorList&&errorList!=""&&(logError(errorList.substring(0,errorList.length-1)),errorList="")});addUrlParameter=function(n,t,i,r){var f,u,s,e,o;if((n==null||n.length==0)&&(n=document.location.href),f=n.split("?"),u="",f.length>1)for(s=f[1].split("&"),e=0;e<s.length;e++)o=s[e].split("="),r&&o[0]==t||(u==""?u="?":u+="&",u+=o[0]+"="+o[1]);return u==""?u="?":u+="&",u+=t+"="+i,f[0]+u};window.onload=function(){$.cookie("autorefresh",null)};var dnsePageRefresh=null,timeoutInterval=0,startTimeRefresh=-1,stopTimeRefresh=-1;resetTimer();$.fn.advancedAjax=function(n,t,i,r,u){var f=$(this);n.hashTag=n.hashTag||"";n.url=n.url||"";n.hashTemplate=n.hashTemplate||"";baseUrl=window.location.href;var e=function(){var n=s();o(n);i(n)},o=function(n){var t="";r&&typeof r=="function"&&(t=r(n));window.location.hash=t},s=function(){return u&&typeof u=="function"?u():{}};return f.bind(t,e),{init:function(){var n={};u&&typeof u=="function"&&(n=u(!0));i(n)}}};$(function(){$(".topnews-day-settings").each(function(){var i=$(this),n=$.parseJSON(i.val()),t,r;n&&(t=$(n.nodeId),t!=null&&(r=t.advancedAjax({hashTag:"#getMoreArticles"},"click",function(n){return!n.id||n.id==""?!1:(n.expectTotal?showMoreDyhetsdygnet(n.id,n.date,n.countingId,n.showmoreId,n.loadingId,n.totalId,n.expectTotal):showMoreDyhetsdygnet(n.id,n.date,n.countingId,n.showmoreId,n.loadingId,n.totalId),!1)},function(n){var t=$("#"+n.id+">li").length;return"#getMoreArticles/"+encodeURI(n.date)+"/"+encodeURI(t)},function(i){var u;if(i){if(u=window.location.hash,u!=""){var r=u.split("/"),f=r.length>1?r[1]:"",e=r.length>2?r[2]:0,o=$("#container-"+f.replace("-",""));if(t.attr("data-source")==f)return{date:n.date,showmoreId:n.showmoreId,countingId:n.countingId,loadingId:n.loadingId,totalId:n.totalId,id:t.find('input[type="hidden"]').eq(0).val(),expectTotal:e}}return{}}return{date:n.date,showmoreId:n.showmoreId,countingId:n.countingId,loadingId:n.loadingId,totalId:n.totalId,id:t.find('input[type="hidden"]').eq(0).val()}}).init()))})}),function(n,t){t.ellipsisedItems=t.ellipsisedItems||[];t.doEllipsis=function(t){var i=n(t),r=i.attr("data-ellipsis-row")||3,u=i.attr("data-ellipsis-height")||18;i.dotdotdot({height:r*u})};n(function(){var i=n('[data-ellipsis="true"]');i.each(function(){t.doEllipsis(this);t.ellipsisedItems.push(this)})})}(jQuery,window),function(n){function t(t,i){var r=n(t),u=r.offset(),o=r.width(),f=n(i,t),e=f.offset(),s=f.width();u&&e&&u.left+o<=e.left+s+12&&r.addClass("break-line")}var i=n(".teaser-link"),r=".teaser-link-icon";i.each(function(){t(this,r)})}(jQuery,window);window.getCookie=window.getCookie||function(n){var t=document.cookie.match(new RegExp("(?:^|; )"+n.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):undefined};try{$.extend($.ui.autocomplete.prototype,{_renderItem:function(n,t){var i=this.element.val(),r=new RegExp("("+i+")","gi");return html=t.label.replace(r,"<em class='suggest-matched'>$&<\/em>"),$("<li><\/li>").data("item.autocomplete",t).append($("<a><\/a>").html(html)).appendTo(n)}})}catch(e){}(function(n,t){var r,i;for(placeHolderTextBox.prototype.addEvent=function(n,t){if(this.textBox)this.textBox.on(n,t.bind(this))},placeHolderTextBox.prototype.removeEvent=function(n,t){this.textBox&&this.textBox.off(n,t)},placeHolderTextBox.prototype.onFocus=function(){this.textBox.val()==this.defaultText&&this.textBox.val("").removeClass("inactived").addClass("actived");this.addEvent("blur",this.onBlur)},placeHolderTextBox.prototype.onBlur=function(){this.textBox.val()==""&&this.textBox.val(this.defaultText).removeClass("actived").addClass("inactived");this.removeEvent("blur",this.onBlur)},placeHolderTextBox.prototype.filter=function(){var r=this.textBox.val(),h=this.textBox.closest(".search-filter"),u=t(".search-filter-item:not(.not-search-filter)",h),e=this.textBox.attr("data-filter-count")||10,o,n,i,f,s;if(r=r.toLowerCase().replace(/\b[a-z]/g,function(n){return n}),r=="")for(n=0;n<e;n++)u[n].style.display="block";else for(o=0,n=0;n<u.length;n++)i=t(u[n]),f=i.find(".search-filter-link"),i.data("search-filter-value")||i.data("search-filter-value",f.length>0?f.text().toLowerCase():""),s=i.data("search-filter-value")||"",s.indexOf(r)>-1&&o++<e?i.show():i.hide()},placeHolderTextBox.prototype.init=function(n){if(this.textBox=t(this.textBox),this.addEvent("focus",this.onFocus),this.onBlur(),n){this.addEvent("keyup",this.filter);var i=this.textBox.closest(".filter-condition"),r=this;r.textBox.on("click",function(){i.addClass("filter-condition-active");t(document).one("click",function(){i.removeClass("filter-condition-active")});return!1})}},r=t('[data-placeholder="true"]'),i=0;i<r.length;i++){var u=r[i],f=u.getAttribute("data-default-text")||"",e=u.getAttribute("data-filter")||!1;new placeHolderTextBox(u,f).init(e)}})(window,jQuery);filterModel.prototype.initFilterItemsByDefault=function(){return this.filterContainer&&(this.filterConditionItems=$('[data-type="filter-item"]',this.filterContainer)),this};filterModel.prototype.selectFilter=function(n){for(var o=$(this.filterContainer),t,u,i=0;i<this.filterConditionItems.length;i++)if(t=this.filterConditionItems[i],u=t.getAttribute("data-filter-count")||0,n!=t&&u<=0)t.setAttribute("class",t.getAttribute("class")+" hidden");else if(n==t){var r=document.createElement("li"),f=document.createElement("a"),e=this;$(r).text("Rensa filter").addClass("search-filter-item clear-filter-item not-search-filter");$(f).addClass("clear-filter-link").attr("href","#").text("x");addEvent("click",e.clearFilter.bind(e),r);r.appendChild(f);t.parentElement.insertBefore(r,this.filterConditionItems[0])}};filterModel.prototype.clearFilter=function(n){n.preventDefault();var t=window.location.href,i="(\\?|&)"+this.filterParam+"=[^&#]+";t=t.replace(new RegExp(i),"").replace(new RegExp("(\\?|&)p=[^&#]+"),"");window.location.href=t};searchFilterModel.prototype.searchForFilterConditionItem=function(n){for(var i,r,t=0;t<n.length;t++)if(i=n[t],r=i.getAttribute("data-filter-value"),r==this.filterCondition)return i;return!1},function(n,t){function f(){for(var u=t('[data-type="filter-container"]'),r,f,n=0;n<u.length;n++)r=u[n],f=r.getAttribute("data-filter-param"),i.push(new filterModel(r,f).initFilterItemsByDefault())}function e(){var i,f,t,n;if(location.search.indexOf("?")!=-1)for(i=location.search.slice(1).split("&"),f=function(n){return decodeURIComponent(n.replace(/\+/g," "))},t=0;t<i.length;++t)n=i[t].split("="),1<n.length&&u.indexOf(n[0].toLowerCase())>-1&&r.push(new searchFilterModel(f(n[0]),f(n[1])))}function o(){for(var s=[],u,e,n=0;n<r.length;n++)for(u=0;u<i.length;u++){var f=i[u],h=f.filterConditionItems,o=r[n];f.filterParam==o.filterType&&(e=o.searchForFilterConditionItem(h),e&&(s.push(e),f.selectFilter(e),t(f.filterContainer).addClass("filter-active")))}}var i=[],r=[],u=["date","av","sec"];f();e();o()}(window,jQuery),function(n){var t=function(){var t={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},a=function(){n(window).load(function(){n("body").children().on("click.superclick",function(){var t=n(".sf-js-enabled");t.superclick("reset")})})}(),r=function(n,i){var r=t.menuClass;i.cssArrows&&(r+=" "+t.menuArrowClass);n.toggleClass(r)},s=function(i,r){return i.find("li."+r.pathClass).slice(0,r.pathLevels).addClass(r.activeClass+" "+t.bcClass).filter(function(){return n(this).children("ul").hide().show().length}).removeClass(r.pathClass)},u=function(n){n.children("a").toggleClass(t.anchorClass)},f=function(n){var t=n.css("ms-touch-action");t=t==="pan-y"?"auto":"pan-y";n.css("ms-touch-action",t)},h=function(){var t=n(this),i=t.siblings("ul"),r;if(i.length)return r=i.is(":hidden")?e:c,n.proxy(r,t.parent("li"))(),!1},e=function(){var t=n(this),r=i(t);t.siblings().superclick("hide").end().superclick("show")},c=function(){var t=n(this),r=i(t);n.proxy(l,t,r)()},l=function(t){t.retainPath=n.inArray(this[0],t.$path)>-1;this.superclick("hide");this.parents("."+t.activeClass).length||(t.onIdle.call(o(this)),t.$path.length&&n.proxy(e,t.$path)())},o=function(n){return n.closest("."+t.menuClass)},i=function(n){return o(n).data("sf-options")};return{hide:function(t){var u,r;if(this.length){if(u=this,r=i(u),!r)return this;var o=r.retainPath===!0?r.$path:"",f=u.find("li."+r.activeClass).add(this).not(o).removeClass(r.activeClass).children("ul"),e=r.speedOut;t&&(f.show(),e=0);r.retainPath=!1;r.onBeforeHide.call(f);f.stop(!0,!0).animate(r.animationOut,e,function(){var t=n(this);r.onHide.call(t)})}return this},show:function(){var n=i(this),r,t;return n?(r=this.addClass(n.activeClass),t=r.children("ul"),n.onBeforeShow.call(t),t.stop(!0,!0).animate(n.animation,n.speed,function(){n.onShow.call(t)}),this):this},destroy:function(){return this.each(function(){var i=n(this),e=i.data("sf-options"),o=i.find("li:has(ul)");if(!e)return!1;r(i,e);u(o);f(i);i.off(".superclick");o.children("ul").attr("style",function(n,t){return t.replace(/display[^;]+;?/g,"")});e.$path.removeClass(e.activeClass+" "+t.bcClass).addClass(e.pathClass);i.find("."+e.activeClass).removeClass(e.activeClass);e.onDestroy.call(i);i.removeData("sf-options")})},reset:function(){return this.each(function(){var t=n(this),r=i(t),u=n(t.find("."+r.activeClass).toArray().reverse());u.children("a").trigger("click")})},init:function(i){return this.each(function(){var e=n(this),o,c;if(e.data("sf-options"))return!1;o=n.extend({},n.fn.superclick.defaults,i);c=e.find("li:has(ul)");o.$path=s(e,o);e.data("sf-options",o);r(e,o);u(c);f(e);e.on("click.superclick","a",h);c.not("."+t.bcClass).superclick("hide",!0);o.onInit.call(this)})}}}();n.fn.superclick=function(i){return t[i]?t[i].apply(this,Array.prototype.slice.call(arguments,1)):typeof i!="object"&&i?n.error("Method "+i+" does not exist on jQuery.fn.superclick"):t.init.apply(this,arguments)};n.fn.superclick.defaults={activeClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,onInit:n.noop,onBeforeShow:n.noop,onShow:n.noop,onBeforeHide:n.noop,onHide:n.noop,onIdle:n.noop,onDestroy:n.noop}}(jQuery),function(){try{var n=$("input[name='siteUrl']").val(),t={selectButton:$(".geo-location-selector.geo-locator"),selectorFormUrl:n+"/Pages/GeoLocationPopup.aspx",formTitle:"Ställ in din hemort.",cookieKey:".homeGeoLocation",locationSetMessage:'Din hemort har angetts till "{0}".',locationNotFoundMessage:'Du har inte angett någon hemort. Kunde inte hitta "{0}".'};new GeoLocationSelector(t)}catch(i){}}(),function(){try{var n=$("input[name='siteUrl']").val(),t={cookieKey:".homeGeoLocation",defaultLocationId:"2673730",weatherServiceUrl:n+"/WebServices/WeatherWebService.ashx",controlId:"",contentElementSelector:"#weather-header-control",footerElementId:"#weatherWidgetContent"};InitWeatherControl(t)}catch(i){}}(),function(n,t){t(function(){var i,u;if(t.fn.nyroModalManual){var f=t.nyroModalManual,n,e=t("#resource-handler-link-Css").attr("data-ts")||"0",r=function(){if(!n){n=document.createElement("link");n.type="text/css";n.id="dialog-style";n.rel="stylesheet";n.href="/ResourceHandler/12."+e+".css";var t=document.getElementsByTagName("head")[0];t.appendChild(n)}};t(t.fn.nyroModal.settings.openSelector).length>0&&r();t.nyroModalManual=function(t){n?f(t):(r(),n.onload=function(){f(t)})};i=t.fn.nyroModal;t.fn.nyroModal=function(t){var u=this;n?i.call(u,t):(r(),n.onload=function(){i.call(u,t)})};for(u in i)t.fn.nyroModal[u]=i[u]}})}(window,jQuery);$(function(){try{$.extend($.fn,{quoteAccordion:function(){return this.each(function(){var o=$(this),f=o.find(".item"),t=f.eq(0),s=0,e=255,i=150;t.eq(0).width(e).addClass("current");o.css("visibility","visible");var n=!0,r=!1,u=!1;f.on({touchstart:function(f){u||(r=!0,u=!1,n=!1,$(this).hasClass("current")&&(n=!0),$(t).removeClass("current").animate({width:s+"px"},{queue:!1,duration:i,easing:"easeOutQuart"}),$(t).find("img").eq(0).css("opacity",.5),$(this).addClass("current").animate({width:e+"px"},{queue:!1,duration:i,easing:"easeOutQuart"}),$(this).find("img").eq(0).css("opacity",1),t=this,n||f.preventDefault())}});f.hover(function(f){if(!r){r=!1;u=!0;n=!1;$(this).hasClass("current")&&(n=!0);var o=/iphone|ipod|android|blackberry|opera|mini|windows\sce|palm|smartphone|iemobile/i.test(navigator.userAgent.toLowerCase()),h=/ipad|android|xoom|sch-i800|playbook|tablet|kindle/i.test(navigator.userAgent.toLowerCase());(o||h)&&!n?f.preventDefault():(n=!0,i=380);$(t).removeClass("current").animate({width:s+"px"},{queue:!1,duration:i,easing:"easeOutQuart"});$(t).find("img").eq(0).css("opacity",.5);$(this).addClass("current").animate({width:e+"px"},{queue:!1,duration:i,easing:"easeOutQuart"});$(this).find("img").eq(0).css("opacity",1);t=this}},function(){});f.click(function(){if($(this).width()!=255||!n)return u=!1,r=!1,!1;n=!1;u=!1;r=!1;var t=$(this).find("a:eq(0)");return window.open(t.attr("href"),t.attr("target")),!1})})}})}catch(n){}$("input#blogSpaceInit").length>0&&$("#blogspace").quoteAccordion()});swfobject=function(){function v(){var i,r,n;if(!c){try{i=t.getElementsByTagName("body")[0].appendChild(h("span"));i.parentNode.removeChild(i)}catch(u){return}for(c=!0,r=w.length,n=0;n<r;n++)w[n]()}}function yt(n){c?n():w[w.length]=n}function pt(n){if(typeof r.addEventListener!=i)r.addEventListener("load",n,!1);else if(typeof t.addEventListener!=i)t.addEventListener("load",n,!1);else if(typeof r.attachEvent!=i)ui(r,"onload",n);else if(typeof r.onload=="function"){var u=r.onload;r.onload=function(){u();n()}}else r.onload=n}function gt(){lt?ni():it()}function ni(){var o=t.getElementsByTagName("body")[0],u=h(f),r,e;u.setAttribute("type",p);r=o.appendChild(u);r?(e=0,function(){if(typeof r.GetVariable!=i){var t=r.GetVariable("$version");t&&(t=t.split(" ")[1].split(","),n.pv=[parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10)])}else if(e<10){e++;setTimeout(arguments.callee,10);return}o.removeChild(u);r=null;it()}()):it()}function it(){var y=s.length,r,t,h,c,v;if(y>0)for(r=0;r<y;r++){var f=s[r].id,e=s[r].callbackFn,o={success:!1,id:f};if(n.pv[0]>0){if(t=u(f),t)if(!g(s[r].swfVersion)||n.wk&&n.wk<312)if(s[r].expressInstall&&ut()){h={};h.data=s[r].expressInstall;h.width=t.getAttribute("width")||"0";h.height=t.getAttribute("height")||"0";t.getAttribute("class")&&(h.styleclass=t.getAttribute("class"));t.getAttribute("align")&&(h.align=t.getAttribute("align"));var p={},a=t.getElementsByTagName("param"),w=a.length;for(c=0;c<w;c++)a[c].getAttribute("name").toLowerCase()!="movie"&&(p[a[c].getAttribute("name")]=a[c].getAttribute("value"));ft(h,p,f,e)}else ti(t),e&&e(o);else l(f,!0),e&&(o.success=!0,o.ref=rt(f),e(o))}else l(f,!0),e&&(v=rt(f),v&&typeof v.SetVariable!=i&&(o.success=!0,o.ref=v),e(o))}}function rt(n){var r=null,t=u(n),e;return t&&t.nodeName=="OBJECT"&&(typeof t.SetVariable!=i?r=t:(e=t.getElementsByTagName(f)[0],e&&(r=e))),r}function ut(){return!d&&g("6.0.65")&&(n.win||n.mac)&&!(n.wk&&n.wk<312)}function ft(f,e,o,s){var c,v,l,a;d=!0;nt=s||null;at={success:!1,id:o};c=u(o);c&&(c.nodeName=="OBJECT"?(y=et(c),k=null):(y=c,k=o),f.id=ht,(typeof f.width==i||!/%$/.test(f.width)&&parseInt(f.width,10)<310)&&(f.width="310"),(typeof f.height==i||!/%$/.test(f.height)&&parseInt(f.height,10)<137)&&(f.height="137"),t.title=t.title.slice(0,47)+" - Flash Player Installation",v=n.ie&&n.win?"ActiveX":"PlugIn",l="MMredirectURL="+encodeURI(r.location).toString().replace(/&/g,"%26")+"&MMplayerType="+v+"&MMdoctitle="+t.title,typeof e.flashvars!=i?e.flashvars+="&"+l:e.flashvars=l,n.ie&&n.win&&c.readyState!=4&&(a=h("div"),o+="SWFObjectNew",a.setAttribute("id",o),c.parentNode.insertBefore(a,c),c.style.display="none",function(){c.readyState==4?c.parentNode.removeChild(c):setTimeout(arguments.callee,10)}()),ot(f,e,o))}function ti(t){if(n.ie&&n.win&&t.readyState!=4){var i=h("div");t.parentNode.insertBefore(i,t);i.parentNode.replaceChild(et(t),i);t.style.display="none",function(){t.readyState==4?t.parentNode.removeChild(t):setTimeout(arguments.callee,10)}()}else t.parentNode.replaceChild(et(t),t)}function et(t){var u=h("div"),e,i,o,r;if(n.win&&n.ie)u.innerHTML=t.innerHTML;else if(e=t.getElementsByTagName(f)[0],e&&(i=e.childNodes,i))for(o=i.length,r=0;r<o;r++)i[r].nodeType==1&&i[r].nodeName=="PARAM"||i[r].nodeType==8||u.appendChild(i[r].cloneNode(!0));return u}function ot(t,r,e){var v,y=u(e),w,o,k,a,c,s,l;if(n.wk&&n.wk<312)return v;if(y)if(typeof t.id==i&&(t.id=e),n.ie&&n.win){w="";for(o in t)t[o]!=Object.prototype[o]&&(o.toLowerCase()=="data"?r.movie=t[o]:o.toLowerCase()=="styleclass"?w+=' class="'+t[o]+'"':o.toLowerCase()!="classid"&&(w+=" "+o+'="'+t[o]+'"'));k="";for(a in r)r[a]!=Object.prototype[a]&&(k+='<param name="'+a+'" value="'+r[a]+'" />');y.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+w+">"+k+"<\/object>";b[b.length]=t.id;v=u(t.id)}else{c=h(f);c.setAttribute("type",p);for(s in t)t[s]!=Object.prototype[s]&&(s.toLowerCase()=="styleclass"?c.setAttribute("class",t[s]):s.toLowerCase()!="classid"&&c.setAttribute(s,t[s]));for(l in r)r[l]!=Object.prototype[l]&&l.toLowerCase()!="movie"&&ii(c,l,r[l]);y.parentNode.replaceChild(c,y);v=c}return v}function ii(n,t,i){var r=h("param");r.setAttribute("name",t);r.setAttribute("value",i);n.appendChild(r)}function wt(t){var i=u(t);i&&i.nodeName=="OBJECT"&&(n.ie&&n.win?(i.style.display="none",function(){i.readyState==4?ri(t):setTimeout(arguments.callee,10)}()):i.parentNode.removeChild(i))}function ri(n){var t=u(n),i;if(t){for(i in t)typeof t[i]=="function"&&(t[i]=null);t.parentNode.removeChild(t)}}function u(n){var i=null;try{i=t.getElementById(n)}catch(r){}return i}function h(n){return t.createElement(n)}function ui(n,t,i){n.attachEvent(t,i);a[a.length]=[n,t,i]}function g(t){var r=n.pv,i=t.split(".");return i[0]=parseInt(i[0],10),i[1]=parseInt(i[1],10)||0,i[2]=parseInt(i[2],10)||0,r[0]>i[0]||r[0]==i[0]&&r[1]>i[1]||r[0]==i[0]&&r[1]==i[1]&&r[2]>=i[2]?!0:!1}function bt(r,u,o,s){var a,c,l;n.ie&&n.mac||(a=t.getElementsByTagName("head")[0],a)&&(c=o&&typeof o=="string"?o:"screen",s&&(e=null,tt=null),e&&tt==c||(l=h("style"),l.setAttribute("type","text/css"),l.setAttribute("media",c),e=a.appendChild(l),n.ie&&n.win&&typeof t.styleSheets!=i&&t.styleSheets.length>0&&(e=t.styleSheets[t.styleSheets.length-1]),tt=c),n.ie&&n.win?e&&typeof e.addRule==f&&e.addRule(r,u):e&&typeof t.createTextNode!=i&&e.appendChild(t.createTextNode(r+" {"+u+"}")))}function l(n,t){if(vt){var i=t?"visible":"hidden";c&&u(n)?u(n).style.visibility=i:bt("#"+n,"visibility:"+i)}}function kt(n){var t=/[\\\"<>\.;]/.exec(n)!=null;return t&&typeof encodeURIComponent!=i?encodeURIComponent(n):n}var i="undefined",f="object",st="Shockwave Flash",dt="ShockwaveFlash.ShockwaveFlash",p="application/x-shockwave-flash",ht="SWFObjectExprInst",ct="onreadystatechange",r=window,t=document,o=navigator,lt=!1,w=[gt],s=[],b=[],a=[],y,k,nt,at,c=!1,d=!1,e,tt,vt=!0,n=function(){var l=typeof t.getElementById!=i&&typeof t.getElementsByTagName!=i&&typeof t.createElement!=i,e=o.userAgent.toLowerCase(),s=o.platform.toLowerCase(),a=s?/win/.test(s):/win/.test(e),v=s?/mac/.test(s):/mac/.test(e),y=/webkit/.test(e)?parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,h=!+"\v1",u=[0,0,0],n=null,c;if(typeof o.plugins!=i&&typeof o.plugins[st]==f)n=o.plugins[st].description,!n||typeof o.mimeTypes!=i&&o.mimeTypes[p]&&!o.mimeTypes[p].enabledPlugin||(lt=!0,h=!1,n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),u[0]=parseInt(n.replace(/^(.*)\..*$/,"$1"),10),u[1]=parseInt(n.replace(/^.*\.(.*)\s.*$/,"$1"),10),u[2]=/[a-zA-Z]/.test(n)?parseInt(n.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof r.ActiveXObject!=i)try{c=new ActiveXObject(dt);c&&(n=c.GetVariable("$version"),n&&(h=!0,n=n.split(" ")[1].split(","),u=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]))}catch(w){}return{w3:l,pv:u,wk:y,ie:h,win:a,mac:v}}(),fi=function(){n.w3&&((typeof t.readyState!=i&&t.readyState=="complete"||typeof t.readyState==i&&(t.getElementsByTagName("body")[0]||t.body))&&v(),c||(typeof t.addEventListener!=i&&t.addEventListener("DOMContentLoaded",v,!1),n.ie&&n.win&&(t.attachEvent(ct,function(){t.readyState=="complete"&&(t.detachEvent(ct,arguments.callee),v())}),r==top&&function(){if(!c){try{t.documentElement.doScroll("left")}catch(n){setTimeout(arguments.callee,0);return}v()}}()),n.wk&&function(){if(!c){if(!/loaded|complete/.test(t.readyState)){setTimeout(arguments.callee,0);return}v()}}(),pt(v)))}(),ei=function(){n.ie&&n.win&&window.attachEvent("onunload",function(){for(var e=a.length,r,i,u,f,t=0;t<e;t++)a[t][0].detachEvent(a[t][1],a[t][2]);for(r=b.length,i=0;i<r;i++)wt(b[i]);for(u in n)n[u]=null;n=null;for(f in swfobject)swfobject[f]=null;swfobject=null})}();return{registerObject:function(t,i,r,u){if(n.w3&&t&&i){var f={};f.id=t;f.swfVersion=i;f.expressInstall=r;f.callbackFn=u;s[s.length]=f;l(t,!1)}else u&&u({success:!1,id:t})},getObjectById:function(t){if(n.w3)return rt(t)},embedSWF:function(t,r,u,e,o,s,h,c,a,v){var y={success:!1,id:r};n.w3&&!(n.wk&&n.wk<312)&&t&&r&&u&&e&&o?(l(r,!1),yt(function(){var n,b,p,k,w,d;if(u+="",e+="",n={},a&&typeof a===f)for(b in a)n[b]=a[b];if(n.data=t,n.width=u,n.height=e,p={},c&&typeof c===f)for(k in c)p[k]=c[k];if(h&&typeof h===f)for(w in h)typeof p.flashvars!=i?p.flashvars+="&"+w+"="+h[w]:p.flashvars=w+"="+h[w];if(g(o))d=ot(n,p,r),n.id==r&&l(r,!0),y.success=!0,y.ref=d;else{if(s&&ut()){n.data=s;ft(n,p,r,v);return}l(r,!0)}v&&v(y)})):v&&v(y)},switchOffAutoHideShow:function(){vt=!1},ua:n,getFlashPlayerVersion:function(){return{major:n.pv[0],minor:n.pv[1],release:n.pv[2]}},hasFlashPlayerVersion:g,createSWF:function(t,i,r){return n.w3?ot(t,i,r):undefined},showExpressInstall:function(t,i,r,u){n.w3&&ut()&&ft(t,i,r,u)},removeSWF:function(t){n.w3&&wt(t)},createCSS:function(t,i,r,u){n.w3&&bt(t,i,r,u)},addDomLoadEvent:yt,addLoadEvent:pt,getQueryParamValue:function(n){var r=t.location.search||t.location.hash,u,i;if(r){if(/\?/.test(r)&&(r=r.split("?")[1]),n==null)return kt(r);for(u=r.split("&"),i=0;i<u.length;i++)if(u[i].substring(0,u[i].indexOf("="))==n)return kt(u[i].substring(u[i].indexOf("=")+1))}return""},expressInstallCallback:function(){if(d){var t=u(ht);t&&y&&(t.parentNode.replaceChild(y,t),k&&(l(k,!0),n.ie&&n.win&&(y.style.display="block")),nt&&nt(at));d=!1}}}}();var mediaObjects=[],ps=null,psInitialized=!1;if(($(".dnse-webtvclip").length>0||$(".webtv-player-content").length>0)&&EmbedS9Library(),function(n,t){t.videos=t.videos||[];n(function(){var i,r;t.setupWebTv=t.setupWebTv||function(t){var i=n(t),u=i.attr("data-media-id"),f=i.attr("data-media-width"),e=i.attr("data-media-height"),c=i.attr("data-auto-play")=="true",o=i.attr("id"),a=i.find("#webtv-content-area"),s=i.find(".wtv-playicon-large"),h=i.find(".wtv-player-img"),l=i.attr("data-media-embedded")||!1,r;h&&h.length>0&&i.addClass("webtv-dark-grey-bg");r=getUrlVar("starttime");c?(s.remove(),setupScreen9Player(o,f,e,u,r)):l?setupScreen9Player(o,f,e,u,r,!1):i.click(function(){i.unbind("click");s.remove();setupScreen9Player("webtv-content-area",f,e,u,r)})};t.setupWebTvSocialShare=t.setupWebTvSocialShare||function(t){var r=n(t),e=r.attr("data-share-via"),f=r.closest(".wtv-social-ctn"),i=n('[data-share-hidden="true"][data-share-via="'+e+'"]',f),u=n(".wtv-social-hidden",f);i&&r.click(function(t){t.preventDefault();i.hasClass("visible")?(u.removeClass("wtv-social-visible"),i.removeClass("visible").addClass("inivisible")):(u.addClass("wtv-social-visible"),n(".visible",u).removeClass("visible").addClass("inivisible"),i.removeClass("inivisible").addClass("visible"))})};i=n('[data-media-type="video"]');i.each(function(){t.setupWebTv(this);t.videos.push(this)});r=n('[data-share-button="true"]');r.each(function(){t.setupWebTvSocialShare(this)})})}(jQuery,window),servicePath="/WebServices/WebTVKlippWidget.ashx",jQuery.fn.WebTvProgram=function(){var n=$(this),t=$(n).find(".wtv-ss-tab"),i;$(t).each(function(){$(this).click(function(){$(t).removeClass("active");$(this).addClass("active");var i=$(this).attr("data-name");$(n).find(".wtv-ss-video").hide();$(n).find(".wtv-ss-video[data-name="+i+"]").each(function(n){$(this).show();$(this).removeClass("no-margin");n%3==0&&$(this).addClass("no-margin");var t=$('[data-ellipsis="true"]',$(this));t.each(function(){window.doEllipsis(this);window.ellipsisedItems.push(this)})})})});n.setActive=function(i){if(t!=undefined){$(t).removeClass("active");$(n).find(".wtv-ss-tab[data-name="+i+"]").addClass("active");$(n).find(".wtv-ss-video").hide();$(n).find(".wtv-ss-video[data-name="+i+"]").each(function(n){$(this).show();$(this).removeClass("no-margin");n%3==0&&$(this).addClass("no-margin")});var r=$('[data-ellipsis="true"]',$(n));r.each(function(){window.doEllipsis(this);window.ellipsisedItems.push(this)})}};$("#hidCurrentSeason").val()!=undefined&&(i=$("#hidCurrentSeason").val(),i!="season"&&n.setActive(i))},Bonnier=Bonnier||{},Bonnier.Expressen=Bonnier.Expressen||{},Bonnier.Expressen.Web=Bonnier.Expressen.Web||{},Bonnier.Expressen.Web.VUI=Bonnier.Expressen.Web.VUI||{},Bonnier.Expressen.Web.VUI.Quiz=Bonnier.Expressen.Web.VUI.Quiz=function(){var i=function(n,t){var r,i,u;if(n)for(r=n.getElementsByTagName("input"),i=0,u=r.length;i!=u;i++)t(r[i])},t=function(n,t){var r=0,u,i,f;if(n)for(u=n.getElementsByTagName("input"),i=0,f=u.length;i!=f;i++)u[i].checked&&(r=r+1);return t==-1?!1:r==t?!0:!1},n=function(n,i,r){var f="b-button_disabled",u=n.className;t(i,r)?u.indexOf(f)>=0&&(u=u.substr(0,u.indexOf(f))):u.indexOf(f)==-1&&(u+=" "+f);n.className=u},r=function(n){for(var i=[],t=0;t<n.length;++t)i.push(n.get(t).parentNode.attributes.uid.value);return i.join(",")},u=function(u){var o=u.link,l=u.linkWaitLabel,e=u.radiosList,a=u.form,s=u.nextQuestion,h=!1,c=u.answerAlternativesNumber;o.onclick=function(){var n,i;if(h)return!1;if(t(e,c)){h=!0;n=window.location.href;typeof s!="undefined"&&s!=null&&s.length>0&&(i="question="+s,n=$.param.querystring(n,i));var o=$(".b-quiz-list input:checked")||[],l=r(o),f=function(t,i){$.ajax({type:"POST",url:t,async:!1,cache:!1,dataType:"json",success:function(t){if(t.QuizFinished){var i=$.deparam.querystring(window.location.href);delete i.question;delete i.d;window.location.href=$.param.querystring($.param.querystring(window.location.href,i,2),"result="+encodeURIComponent(t.QuizUserData))}else n=$.param.querystring(n,"d="+encodeURIComponent(t.QuizUserData)),window.location.href=n},error:function(n){h=!1;n.status=="500"&&(!i||i>0?(i-=1,f(t+(t.indexOf("?")==-1?"?retry=":"&retry=")+i,i)):goTestAgain())},data:{pageRef:u.pageRef,hidQuestionNumber:$(".hidQuestionNumber input").val(),answerUid:l,quizProgress:$.deparam.querystring(window.location.href).d}})};f("/WebServices/NewQuizHandler.ashx",1)}return!1};i(e,function(t){t.addEventListener?t.addEventListener("change",function(){n(o,e,c)},!1):t.attachEvent&&t.attachEvent("onclick",function(){n(o,e,c)});var i=$(t).next();i&&i.click(function(){f(this)})});n(o,e,-1)},f=function(n){n.parentNode&&$(n.parentNode).click()};return{Initialize:u}},bonnierExpressenQuizControl=new Bonnier.Expressen.Web.VUI.Quiz,$(document).ready(function(){if($("input#quizeQuestionValues").length>0){var n=JSON.parse($("input#quizeQuestionValues").val());bonnierExpressenQuizControl.Initialize({link:document.getElementById(n.link),linkWaitLabel:n.linkWaitLabel,radiosList:document.getElementById(n.radiosList),form:document.forms[n.form],nextQuestion:n.nextQuestion,pageRef:n.pageRef,answerAlternativesNumber:n.answerAlternativesNumber})}}),$(document).ready(function(){try{var n=$("input[name='siteUrl']").val();$("#stok-graph-lazyload").each(function(){var t=n+"/WebServices/FinancialHubServices.ashx",i=this;$.ajax({url:t,timeout:7e3,method:"get",dataType:"html"}).done(function(n){$(i).html(n)})})}catch(t){}}),eval(function(n,t,i,r,u,f){if(u=function(n){return(n<t?"":u(parseInt(n/t)))+((n=n%t)>35?String.fromCharCode(n+29):n.toString(36))},!"".replace(/^/,String)){while(i--)f[u(i)]=r[i]||u(i);r=[function(n){return f[n]}];u=function(){return"\\w+"};i=1}while(i--)r[i]&&(n=n.replace(new RegExp("\\b"+u(i)+"\\b","g"),r[i]));return n}("(r($){r 1n(){p.Y=[];p.26=[];p.26['']={1c:B,1d:':',1o:'',Z:['3J','3K'],2C:['3L','3M 2D','3N 2D','3O','3P']};p.1B={2E:'',1C:B,27:[1,1,1],2F:0,2G:L,2H:v,2I:v,2J:v,2K:'3Q.3R',1p:[20,20,8],2L:'',1D:[40,40,16],2M:B,28:[3S,3T],2N:v,2O:v};$.1q(p.1B,p.26[''])}7 m='o';$.1q(1n.2P,{1e:'3U',3V:r(a){1E(p.1B,a||{});u p},2Q:r(b,c){7 d=$(b);q(d.2R(p.1e)){u}7 e={};e.1r=$.1q({},c);e.E=0;e.13=0;e.14=0;e.x=0;e.w=$(b);$.y(b,m,e);7 f=p.t(e,'2K');7 g=p.t(e,'3W');7 h=p.t(e,'1p');7 i=p.t(e,'2E');7 j=(!f?v:$('<15 1F=\"3X\" 2S=\"3Y: 3Z-41; '+'29: 2T(\\''+f+'\\') 0 0 2U-2V; '+'2a: '+h[0]+'O; 2W: '+h[1]+'O;'+($.K.2X&&$.K.42<'1.9'?' 2Y-U: '+h[0]+'O; 2Y-43: '+(h[1]-18)+'O;':'')+'\"><\/15>'));d.44('<15 1F=\"45\"><\/15>').2Z(i?'<15 1F=\"47\">'+i+'<\/15>':'').2Z(j||'');d.49(p.1e).17('2b.o',p.2c).17('4a.o',p.30).17('4b.o',p.31).17('4c.o',p.32).17('4d.o',p.33);q($.K.2X){d.17('w.o',r(a){$.o.1f(e)})}q($.K.2d){d.17('4e.o',r(a){1G(r(){$.o.1f(e)},1)})}q(p.t(e,'2G')&&$.1H.2e){d.2e(p.34)}q(j){j.3a(p.2f).2g(p.1I).4f(p.3b).2h(p.1I).3c(p.2i)}},4g:r(a){p.2j(a,B)},4h:r(a){p.2j(a,L)},2j:r(b,c){7 d=$.y(b,m);q(!d){u}b.3d=c;q(b.2k&&b.2k.1J.1g()=='15'){$.o.1K(d,b.2k,(c?5:-1))}$.o.Y=$.3e($.o.Y,r(a){u(a==b?v:a)});q(c){$.o.Y.4i(b)}},1s:r(a){u $.3f(a,p.Y)>-1},4j:r(a,b,c){7 d=$.y(a,m);q(d){q(1h b=='1L'){7 e=b;b={};b[e]=c}7 f=p.1i(d);1E(d.1r,b||{});q(f){p.19(d,F J(0,0,0,f[0],f[1],f[2]))}}$.y(a,m,d)},4k:r(b){$w=$(b);q(!$w.2R(p.1e)){u}$w.4l(p.1e).4m('.o');q($.1H.2e){$w.4n()}p.Y=$.3e(p.Y,r(a){u(a==b?v:a)});$w.4o().4p($w);$.4q(b,m)},4r:r(a,b){7 c=$.y(a,m);q(c){p.19(c,b?(1h b=='4s'?F J(b.2l()):b):v)}},3g:r(a){7 b=$.y(a,m);7 c=(b?p.1i(b):v);u(!c?v:F J(0,0,0,c[0],c[1],c[2]))},4t:r(a){7 b=$.y(a,m);7 c=(b?p.1i(b):v);u(!c?0:(c[0]*4u+c[1]*2m+c[2])*3h)},2c:r(a){7 b=(a.1J&&a.1J.1g()=='w'?a:p);q($.o.P==b||$.o.1s(b)){$.o.1M=B;u}7 c=$.y(b,m);$.o.1M=L;$.o.P=b;$.o.1j=v;7 d=$.o.t(c,'2N');1E(c.1r,(d?d.1N(b,[b]):{}));$.y(b,m,c);$.o.1f(c);1G(r(){$.o.1a(c)},10)},30:r(a){$.o.1j=$.o.P;$.o.P=v},31:r(b){7 c=b.1k;7 d=$.y(c,m);q(!$.o.1M){7 e=$.o.t(d,'1d').G+2;d.x=0;q(c.3i!=v){1O(7 f=0;f<=I.1l(1,d.V,d.D);f++){7 g=(f!=d.D?(f*e)+2:(d.D*e)+$.o.t(d,'1o').G+$.o.t(d,'Z')[0].G);d.x=f;q(c.3i<g){C}}}N q(c.1P){7 h=$(b.3j);7 i=c.1P();7 j=r(a){u{4v:2,4w:4,4x:6}[a]||a};7 k=b.3k+1t.2n.1u-(h.1Q().U+Q(j(h.1v('4y-U-2a')),10))-i.2o;1O(7 f=0;f<=I.1l(1,d.V,d.D);f++){7 g=(f!=d.D?(f*e)+2:(d.D*e)+$.o.t(d,'1o').G+$.o.t(d,'Z')[0].G);i.4z();i.3l('2p',g);d.x=f;q(k<i.4A){C}}}}$.y(c,m,d);$.o.1a(d);$.o.1M=B},32:r(a){q(a.2q>=48){u L}7 b=$.y(a.1k,m);2r(a.2q){A 9:u(a.4B?$.o.W(b,-1,L):$.o.W(b,+1,L));A 35:q(a.3m){$.o.1R(b,'')}N{b.x=I.1l(1,b.V,b.D);$.o.R(b,0)}C;A 36:q(a.3m){$.o.19(b)}N{b.x=0;$.o.R(b,0)}C;A 37:$.o.W(b,-1,B);C;A 38:$.o.R(b,+1);C;A 39:$.o.W(b,+1,B);C;A 40:$.o.R(b,-1);C;A 46:$.o.1R(b,'');C}u B},33:r(a){7 b=4C.4D(a.3n==4E?a.2q:a.3n);q(b<' '){u L}7 c=$.y(a.1k,m);$.o.3o(c,b);u B},34:r(a,b){q($.o.1s(a.1k)){u}b=($.K.3p?-b/I.1S(b):($.K.2s?b/I.1S(b):b));7 c=$.y(a.1k,m);c.w.2b();q(!c.w.T()){$.o.1f(c)}$.o.R(c,b);a.4F()},3b:r(b){7 c=$.o.1b(b);7 d=$.y($.o.1m(c),m);7 e=$.o.t(d,'2L');q(e){d.1T=L;7 f=$(c).1Q();7 g=v;$(c).3q().2t(r(){7 a=$(p);q(a.1v('1w')=='4G'||a.1v('1w')=='3r'){g=a.1Q()}u!g});7 h=$.o.t(d,'1p');7 i=$.o.t(d,'1D');$('<3s 1F=\"4H\" 2S=\"1w: 3r; U: '+(f.U-(i[0]-h[0])/2-(g?g.U:0))+'O; 1x: '+(f.1x-(i[1]-h[1])/2-(g?g.1x:0))+'O; 2a: '+i[0]+'O; 2W: '+i[1]+'O; 29: 4I 2T('+e+') 2U-2V 2u 2u; z-4J: 10;\"><\/3s>').3a($.o.2f).2g($.o.1I).2h($.o.3t).3c($.o.2i).4K(c)}},1m:r(a){u $(a).4L('.'+$.o.1e)[0]},2i:r(a){7 b=$.o.1b(a);7 c=$.y($.o.1m(b),m);b.4M=$.o.t(c,'2C')[$.o.2v(c,a)]},2f:r(a){7 b=$.o.1b(a);7 c=$.o.1m(b);q($.o.1s(c)){u}q(c==$.o.1j){$.o.P=c;$.o.1j=v}7 d=$.y(c,m);$.o.2c(c);7 e=$.o.2v(d,a);$.o.1K(d,b,e);$.o.2w(d,e);$.o.X=v;$.o.1U=L;7 f=$.o.t(d,'28');q(e>=3&&f[0]){$.o.X=1G(r(){$.o.2x(d,e)},f[0]);$(b).3u('2h',$.o.2y).3u('2g',$.o.2y)}},2w:r(a,b){q(!a.w.T()){$.o.1f(a)}2r(b){A 0:p.19(a);C;A 1:p.W(a,-1,B);C;A 2:p.W(a,+1,B);C;A 3:p.R(a,+1);C;A 4:p.R(a,-1);C}},2x:r(a,b){q(!$.o.X){u}$.o.P=$.o.1j;p.2w(a,b);p.X=1G(r(){$.o.2x(a,b)},p.t(a,'28')[1])},2y:r(a){4N($.o.X);$.o.X=v},3t:r(a){$.o.X=v;7 b=$.o.1b(a);7 c=$.o.1m(b);7 d=$.y(c,m);$(b).4O();d.1T=B},1I:r(a){$.o.X=v;7 b=$.o.1b(a);7 c=$.o.1m(b);7 d=$.y(c,m);q(!$.o.1s(c)){$.o.1K(d,b,-1)}q($.o.1U){$.o.P=$.o.1j}q($.o.P&&$.o.1U){$.o.1a(d)}$.o.1U=B},1b:r(a){u a.1k||a.3j},2v:r(a,b){7 c=p.1b(b);7 d=($.K.3p||$.K.2s?$.o.3v(c):$(c).1Q());7 e=($.K.2s?$.o.3w(c):[1t.2n.1u||1t.3x.1u,1t.2n.1V||1t.3x.1V]);7 f=p.t(a,'2M');7 g=(f?3y:b.3k+e[0]-d.U-($.K.2d?2:0));7 h=b.4P+e[1]-d.1x-($.K.2d?2:0);7 i=p.t(a,(a.1T?'1D':'1p'));7 j=(f?3y:i[0]-1-g);7 k=i[1]-1-h;q(i[2]>0&&I.1S(g-j)<=i[2]&&I.1S(h-k)<=i[2]){u 0}7 l=I.3z(g,h,j,k);u(l==g?1:(l==j?2:(l==h?3:4)))},1K:r(a,b,c){$(b).1v('29-1w','-'+((c+1)*p.t(a,(a.1T?'1D':'1p'))[0])+'O 2u')},3v:r(a){7 b=1W=0;q(a.3A){b=a.2o;1W=a.3B;2z(a=a.3A){7 c=b;b+=a.2o;q(b<0){b=c}1W+=a.3B}}u{U:b,1x:1W}},3w:r(a){7 b=B;$(a).3q().2t(r(){b|=$(p).1v('1w')=='4Q'});q(b){u[0,0]}7 c=a.1u;7 d=a.1V;2z(a=a.4R){c+=a.1u||0;d+=a.1V||0}u[c,d]},t:r(a,b){u(a.1r[b]!=v?a.1r[b]:$.o.1B[b])},1f:r(a){7 b=p.1i(a);7 c=p.t(a,'1C');q(b){a.E=b[0];a.13=b[1];a.14=b[2]}N{7 d=p.1y(a);a.E=d[0];a.13=d[1];a.14=(c?d[2]:0)}a.V=(c?2:-1);a.D=(p.t(a,'1c')?-1:(c?3:2));a.1X='';a.x=I.1l(0,I.3z(I.1l(1,a.V,a.D),p.t(a,'2F')));q(a.w.T()!=''){p.2A(a)}},1i:r(a,b){b=b||a.w.T();7 c=p.t(a,'1d');7 d=b.4S(c);q(c==''&&b!=''){d[0]=b.1z(0,2);d[1]=b.1z(2,4);d[2]=b.1z(4,6)}7 e=p.t(a,'Z');7 f=p.t(a,'1c');q(d.G>=2){7 g=!f&&(b.3C(e[0])>-1);7 h=!f&&(b.3C(e[1])>-1);7 i=Q(d[0],10);i=(2B(i)?0:i);i=((g||h)&&i==12?0:i)+(h?12:0);7 j=Q(d[1],10);j=(2B(j)?0:j);7 k=(d.G>=3?Q(d[2],10):0);k=(2B(k)||!p.t(a,'1C')?0:k);u p.1y(a,[i,j,k])}u v},1y:r(a,b){7 c=(b!=v);q(!c){7 d=p.1A(a,p.t(a,'2H'))||F J();b=[d.1Y(),d.1Z(),d.21()]}7 e=B;7 f=p.t(a,'27');1O(7 i=0;i<f.G;i++){q(e){b[i]=0}N q(f[i]>1){b[i]=I.4T(b[i]/f[i])*f[i];e=L}}u b},2A:r(a){7 b=p.t(a,'1c');7 c=p.t(a,'1d');7 d=(p.22(b?a.E:((a.E+11)%12)+1)+c+p.22(a.13)+(p.t(a,'1C')?c+p.22(a.14):'')+(b?'':p.t(a,'1o')+p.t(a,'Z')[(a.E<12?0:1)]));p.1R(a,d);p.1a(a)},1a:r(a){7 b=a.w[0];q(a.w.4U(':4V')||$.o.P!=b){u}7 c=p.t(a,'1d');7 d=c.G+2;7 e=(a.x!=a.D?(a.x*d):(a.D*d)-c.G+p.t(a,'1o').G);7 f=e+(a.x!=a.D?2:p.t(a,'Z')[0].G);q(b.3D){b.3D(e,f)}N q(b.1P){7 g=b.1P();g.4W('2p',e);g.3l('2p',f-a.w.T().G);g.4X()}q(!b.3d){b.2b()}},22:r(a){u(a<10?'0':'')+a},1R:r(a,b){q(b!=a.w.T()){a.w.T(b).4Y('4Z')}},W:r(a,b,c){7 d=(a.w.T()==''||a.x==(b==-1?0:I.1l(1,a.V,a.D)));q(!d){a.x+=b}p.1a(a);a.1X='';$.y(a.w[0],m,a);u(d&&c)},R:r(a,b){q(a.w.T()==''){b=0}7 c=p.t(a,'27');p.19(a,F J(0,0,0,a.E+(a.x==0?b*c[0]:0)+(a.x==a.D?b*12:0),a.13+(a.x==1?b*c[1]:0),a.14+(a.x==a.V?b*c[2]:0)))},19:r(a,b){b=p.1A(a,b);7 c=p.1y(a,b?[b.1Y(),b.1Z(),b.21()]:v);b=F J(0,0,0,c[0],c[1],c[2]);7 b=p.25(b);7 d=p.25(p.1A(a,p.t(a,'2I')));7 e=p.25(p.1A(a,p.t(a,'2J')));b=(d&&b<d?d:(e&&b>e?e:b));7 f=p.t(a,'2O');q(f){b=f.1N(a.w[0],[p.3g(a.w[0]),b,d,e])}a.E=b.1Y();a.13=b.1Z();a.14=b.21();p.2A(a);$.y(a.w[0],m,a)},25:r(a){q(!a){u v}a.50(51);a.52(0);a.53(0);u a},1A:r(i,j){7 k=r(a){7 b=F J();b.54(b.2l()+a*3h);u b};7 l=r(a){7 b=$.o.1i(i,a);7 c=F J();7 d=(b?b[0]:c.1Y());7 e=(b?b[1]:c.1Z());7 f=(b?b[2]:c.21());q(!b){7 g=/([+-]?[0-9]+)\\s*(s|S|m|M|h|H)?/g;7 h=g.3E(a);2z(h){2r(h[2]||'s'){A's':A'S':f+=Q(h[1],10);C;A'm':A'M':e+=Q(h[1],10);C;A'h':A'H':d+=Q(h[1],10);C}h=g.3E(a)}}c=F J(0,0,10,d,e,f,0);q(/^!/.55(a)){q(c.3F()>10){c=F J(0,0,10,23,59,59)}N q(c.3F()<10){c=F J(0,0,10,0,0,0)}}u c};u(j?(1h j=='1L'?l(j):(1h j=='56'?k(j):j)):v)},3o:r(a,b){q(b==p.t(a,'1d')){p.W(a,+1,B)}N q(b>='0'&&b<='9'){7 c=Q(b,10);7 d=Q(a.1X+b,10);7 e=p.t(a,'1c');7 f=(a.x!=0?a.E:(e?(d<24?d:c):(d>=1&&d<=12?d:(c>0?c:a.E))%12+(a.E>=12?12:0)));7 g=(a.x!=1?a.13:(d<2m?d:c));7 h=(a.x!=a.V?a.14:(d<2m?d:c));7 i=p.1y(a,[f,g,h]);p.19(a,F J(0,0,0,i[0],i[1],i[2]));a.1X=b}N q(!p.t(a,'1c')){b=b.1g();7 j=p.t(a,'Z');q((b==j[0].1z(0,1).1g()&&a.E>=12)||(b==j[1].1z(0,1).1g()&&a.E<12)){7 k=a.x;a.x=a.D;p.R(a,+1);a.x=k;p.1a(a)}}}});r 1E(a,b){$.1q(a,b);1O(7 c 57 b){q(b[c]==v){a[c]=v}}u a}7 n=['58','2l','5a'];$.1H.o=r(c){7 d=5b.2P.5c.5d(5e,1);q(1h c=='1L'&&$.3f(c,n)>-1){u $.o['3G'+c+'1n'].1N($.o,[p[0]].3H(d))}u p.2t(r(){7 a=p.1J.1g();q(a=='w'){q(1h c=='1L'){$.o['3G'+c+'1n'].1N($.o,[p].3H(d))}N{7 b=($.1H.3I?$(p).3I():{});$.o.2Q(p,$.1q(b,c))}}})};$.o=F 1n()})(5f);",62,326,"|||||||var|||||||||||||||||timeEntry|this|if|function||_get|return|null|input|_field|data||case|false|break|_ampmField|_selectedHour|new|length||Math|Date|browser|true||else|px|_lastInput|parseInt|_adjustField||val|left|_secondField|_changeField|_timer|_disabledInputs|ampmNames||||_selectedMinute|_selectedSecond|span||bind||_setTime|_showField|_getSpinnerTarget|show24Hours|separator|markerClassName|_parseTime|toLowerCase|typeof|_extractTime|_blurredInput|target|max|_getInput|TimeEntry|ampmPrefix|spinnerSize|extend|options|_isDisabledTimeEntry|document|scrollLeft|css|position|top|_constrainTime|substring|_determineTime|_defaults|showSeconds|spinnerBigSize|extendRemove|class|setTimeout|fn|_endSpinner|nodeName|_changeSpinner|string|_focussed|apply|for|createTextRange|offset|_setValue|abs|_expanded|_handlingSpinner|scrollTop|curTop|_lastChr|getHours|getMinutes||getSeconds|_formatNumber|||_normaliseTime|regional|timeSteps|spinnerRepeat|background|width|focus|_doFocus|msie|mousewheel|_handleSpinner|mouseup|mouseout|_describeSpinner|_enableDisable|nextSibling|getTime|60|documentElement|offsetLeft|character|keyCode|switch|safari|each|0px|_getSpinnerRegion|_actionSpinner|_repeatSpinner|_releaseSpinner|while|_showTime|isNaN|spinnerTexts|field|appendText|initialField|useMouseWheel|defaultTime|minTime|maxTime|spinnerImage|spinnerBigImage|spinnerIncDecOnly|beforeShow|beforeSetTime|prototype|_connectTimeEntry|hasClass|style|url|no|repeat|height|mozilla|padding|after|_doBlur|_doClick|_doKeyDown|_doKeyPress|_doMouseWheel||||||mousedown|_expandSpinner|mousemove|disabled|map|inArray|_getTimeTimeEntry|1000|selectionStart|srcElement|clientX|moveEnd|ctrlKey|charCode|_handleKeyPress|opera|parents|absolute|div|_endExpand|one|_findPos|_findScroll|body|99|min|offsetParent|offsetTop|indexOf|setSelectionRange|exec|getDate|_|concat|metadata|AM|PM|Now|Previous|Next|Increment|Decrement|spinnerDefault|png|500|250|hasTimeEntry|setDefaults|spinnerText|timeEntry_control|display|inline||block|version|bottom|wrap|timeEntry_wrap||timeEntry_append||addClass|blur|click|keydown|keypress|paste|mouseover|_enableTimeEntry|_disableTimeEntry|push|_changeTimeEntry|_destroyTimeEntry|removeClass|unbind|unmousewheel|parent|replaceWith|removeData|_setTimeTimeEntry|object|_getOffsetTimeEntry|3600|thin|medium|thick|border|collapse|boundingWidth|shiftKey|String|fromCharCode|undefined|preventDefault|relative|timeEntry_expand|transparent|index|insertAfter|siblings|title|clearTimeout|remove|clientY|fixed|parentNode|split|round|is|hidden|moveStart|select|trigger|change|setFullYear|1900|setMonth|setDate|setTime|test|number|in|getOffset||isDisabled|Array|slice|call|arguments|jQuery".split("|"),0,{})),String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")},String.prototype.ltrim=function(){return this.replace(/^\s+/,"")},String.prototype.rtrim=function(){return this.replace(/\s+$/,"")},fhNamespace={},fhNamespace.constructor=function(){function n(){function t(t,i){return n[t]*(1/n[i])}var n;this.Init=function(t){n=t};this.Convert=function(n,i,r){var u=t(n,i);return{BaseCurrency:n,TargetCurrency:i,ExchangeRate:u,Amount:r,Result:r*u}}}this.CurrencyConverter=n},fhNamespace.constructor(),typeof jQuery!="undefined"){dialogOpen=!1;function CreateDialog(n,t){n.dialog({resizable:!1,draggable:!1,autoOpen:!1,close:function(){CloseDialog($(this))},maxWidth:370,buttons:t})}function OpenDialog(n){n.dialog("isOpen")||dialogOpen||(dialogOpen=!0,n.dialog("open"))}function CloseDialog(){dialogOpen=!1}function ExtendNumberFormatter(n,t){var i=t.colModel.formatoptions==undefined,r=!0;return i||t.colModel.formatoptions.colored==undefined||(r=t.colModel.formatoptions.colored),(i||t.colModel.formatoptions.defaultOptions==!0)&&(t.colModel.formatoptions=$.jgrid.formatter.number),t.colModel.formatoptions.colored=r,t}function WrapWithColorSpan(n,t){if(n==0)return t;var i=n>0?"postv":"negtv";return'<span class="'+i+'">'+t+"<\/span>"}function FixJQGridHeadersAlign(n){for(var i=n.jqGrid("getGridParam","colModel"),r,t=0;t<i.length;t++)r="#"+n.attr("id")+"_"+i[t].name,$(r).css("text-align",i[t].align),$(r).mouseout()}function FixJqGridWidth(n,t){var f=$("#gbox_"+n),r=GetJqGridTableOuterWidth(n),u,i;for(t!=undefined&&t>0&&(r=t),f.width(r),u=f.find("div.ui-jqgrid-view, div.ui-jqgrid-hdiv, div.ui-jqgrid-bdiv, div.ui-jqgrid-sdiv"),i=0;i<u.length;i++)$(u[i]).width(r)}function GetJqGridTableOuterWidth(n){return $("#gbox_"+n).find("table:first").outerWidth()}}QuotationIndicesController=function(n,t,i,r,u){var f=this;this.url=n;this.configString=r;this.container=$(t);this.time=i;this.thisYearFormat=u;this.GetQuotationIndices=function(){$.ajax({url:n,type:"get",data:{configString:f.configString},success:function(n){var t,i;if(n!=null&&n!=""&&n.length!=0)for(f.container.html(""),t=0;t<n.length;t++)i=$('<a class="item"><span class="headerItem"><span class="regionName"><\/span><span class="date"><\/span><\/span><span class="contentItem"><span class="indicator"><\/span><span class="dataValue"><span class="value"><\/span><span class="value-year"><\/span><\/span><\/span><\/a>'),i.attr("href",n[t].Url),i.find(".headerItem .regionName").html(n[t].Name),i.find(".headerItem .date").html(n[t].QuoteChangeDateTime),i.find(".contentItem .indicator").addClass(n[t].TrendStyle),i.find(".contentItem .dataValue .value").html(n[t].OneDayDifferencePrc),i.find(".contentItem .dataValue .value-year").html("("+n[t].Diff1yPrc+" "+u+")"),f.container.append(i)},error:function(){}})};this.UpdateQuotationIndices=function(){setInterval(f.GetQuotationIndices,f.time)}};FormatDate=function(n){var r=n.getFullYear().toString(),i=(n.getMonth()+1).toString(),t;return i.length==1&&(i="0"+i),t=n.getDate().toString(),t.length==1&&(t="0"+t),r+"-"+i+"-"+t};ParseDate=function(n){var t=Date.parse(n);return isNaN(t)&&(n=n.replace(/-/g,"/"),t=Date.parse(n)),new Date(t)};StockwatchCompanyChart=function(n){var t=this;this.url=n.url;this.instrumentIds=n.instrumentIds;this.width=n.width;this.height=n.height;this.tabs=n.tabs;this.chart=n.chart;this.dateInput=n.dateInput;this.dateButton=n.dateButton;this.loadText=n.loadText;this.errorText=n.errorText;this.counter=0;this.max=8;this.currentDate=n.currentDate;this.getChart=function(n,i){$.ajax({url:t.url,type:"get",data:{instrumentIds:t.instrumentIds.join(","),timePeriod:"fh30-"+n,startDate:i,width:t.width,height:t.height},success:function(n){n!=null&&n!=""&&(t.counter=0,$(t.chart).show(),$(t.chart).attr("src",n))},error:function(){}})};this.init=function(){var n=ParseDate(t.currentDate),i;n=new Date(n.getFullYear(),0,1);i=FormatDate(n);$(t.tabs).find("li:first").addClass("selected");$(t.dateInput).val(i);t.getChart("date",i);$(t.chart).load(function(){$(t.loadText).hide();$(t.chart).width()<2&&($(t.chart).hide(),$(t.errorText).show())});$(t.tabs).find("a").click(function(){var r;$(t.tabs).find("li.selected").removeClass("selected");$(this).parent().addClass("selected");var u=this.id,f=u.substr(u.lastIndexOf("_")+1),n=ParseDate(t.currentDate),i=ParseDate(t.currentDate);switch(f){case"date":n=new Date(n.getFullYear(),0,1);break;case"1m":n.setMonth(n.getMonth()-1);i.setMonth(i.getMonth(),0);n>i&&(n=i);break;case"3m":n.setMonth(n.getMonth()-3);i.setMonth(i.getMonth()-2,0);n>i&&(n=i);break;case"1y":n.setYear(n.getFullYear()-1)}r=FormatDate(n);$(t.dateInput).val(r);t.getChart(f,r)});$(t.dateInput).keypress(function(n){if(n.keyCode=="13")return t.changeChartDate(),!1});$(t.dateButton).click(function(){t.changeChartDate()})};this.changeChartDate=function(){var r;$(t.tabs).find("li.selected").removeClass("selected");var u="date",i=ParseDate($(t.dateInput).val()),n=ParseDate(t.currentDate);n=new Date(n.getFullYear(),n.getMonth(),n.getDate());(isNaN(i)||i>=n)&&(i=n,u="intraday");r=FormatDate(i);$(t.dateInput).val(r);t.getChart(u,r)}};IndicatorChart=function(n){var t=this;this.url=n.url;this.width=n.width;this.height=n.height;this.chart=n.chart;this.dateInput=n.dateInput;this.dateButton=n.dateButton;this.periodList=n.periodList;this.loadText=n.loadText;this.errorText=n.errorText;this.firstInstrument=n.firstInstrument;this.secondInstrument=n.secondInstrument;this.redirectUrl=n.redirectUrl;this.template=n.template;this.profile=n.profile;this.scaling=n.scaling;this.counter=0;this.max=8;this.timePeriod="";this.startDate="";this.currentDate=n.currentDate;this.getChart=function(){$.ajax({url:t.url,type:"get",data:{instrumentIds:t.getInstrumentsString(),timePeriod:t.template.replace("{0}",t.timePeriod),startDate:t.startDate,width:t.width,height:t.height,profile:t.profile,scaling:t.scaling},success:function(n){n!=null&&n!=""&&(t.counter=0,$(t.chart).show(),$(t.chart).attr("src",n))},error:function(){}})};this.init=function(){$(t.chart).load(function(){$(t.loadText).hide();$(t.chart).width()<2&&($(t.errorText).show(),$(t.chart).hide())});$(t.dateInput).keypress(function(n){if(n.keyCode=="13")return t.changeChartDate(),!1});$(t.dateButton).click(function(){t.changeChartDate()});$(t.firstInstrument).change(function(){var i=$(t.firstInstrument).find("option:selected").val(),n=t.redirectUrl.replace(/insref=(\w*)/g,"insref="+i);n==t.redirectUrl&&n.indexOf("insref=")==-1&&(n=n+(n.indexOf("?")==-1?"?":"&")+"insref="+i);window.location=n});$(t.secondInstrument).change(function(){t.getChart()});$(t.periodList).change(function(){var r=$(t.periodList).find("option:selected").val(),n=ParseDate(t.currentDate),i=ParseDate(t.currentDate),u;switch(r){case"intraday":break;case"5d":n.setDate(n.getDate()-7);break;case"1m":n.setMonth(n.getMonth()-1);i.setMonth(i.getMonth(),0);n>i&&(n=i);break;case"3m":n.setMonth(n.getMonth()-3);i.setMonth(i.getMonth()-2,0);n>i&&(n=i);break;case"1y":n.setYear(n.getFullYear()-1);break;case"5y":n.setYear(n.getFullYear()-5);break;case"yearend":r="date";n=new Date(n.getFullYear(),0,1);break;default:return}u=FormatDate(n);$(t.dateInput).val(u);t.timePeriod=r;t.startDate=u;t.getChart()}).change()};this.changeChartDate=function(){var r;$(t.periodList).find("option:first").attr("selected",!0);var u="date",i=ParseDate($(t.dateInput).val()),n=ParseDate(t.currentDate);n=new Date(n.getFullYear(),n.getMonth(),n.getDate());(isNaN(i)||i>=n)&&(i=n,u="intraday");r=FormatDate(i);$(t.dateInput).val(r);t.timePeriod=u;t.startDate=r;t.getChart()};this.getInstrumentsString=function(){var i=$(t.firstInstrument).find("option:selected").val(),n=$(t.secondInstrument).find("option:selected").val(),r=i;return n!=""&&n!=undefined&&n!="none"&&i!=n&&(r+=","+n),r}};InitCurrencyConverter=function(n){var i,t=this;this.selectBase=n.selectBase;this.selectTarget=n.selectTarget;this.resultContainer=n.resultContainer;this.tbxAmount=n.tbxAmount;this.CurrencyArr=n.CurrencyArr;this.resultStringFormat=n.resultStringFormat;this.delimeter=n.delimeter;this.wrongInputMessage=n.wrongInputMessage;this.init=function(){i=new fhNamespace.CurrencyConverter;i.Init(t.CurrencyArr);$(t.tbxAmount).attr("value",$(t.tbxAmount).attr("title"));$(t.tbxAmount).focus(function(){$(t.tbxAmount).attr("value")==$(t.tbxAmount).attr("title")&&$(t.tbxAmount).attr("value","")});$(t.tbxAmount).blur(function(){$(t.tbxAmount).attr("value")==""&&$(t.tbxAmount).attr("value",$(t.tbxAmount).attr("title"))});$(t.selectBase).change(function(){$(t.tbxAmount).val()!=""&&$(t.tbxAmount).val()!="Skriv in belopp"&&t.Convert()});$(t.selectTarget).change(function(){$(t.tbxAmount).val()!=""&&$(t.tbxAmount).val()!="Skriv in belopp"&&t.Convert()});$(t.tbxAmount).keypress(function(n){var i=n.keyCode?n.keyCode:n.charCode?n.charCode:n.which;return(i==13&&t.Convert(),(i<48||i>57)&&i!=44&&i!=46&&i!=8&&i!=37&&i!=39&&i!=46&&i!=35&&i!=36)?!1:(i==44||i==46)&&($(t.tbxAmount).val().indexOf(",")!=-1||$(t.tbxAmount).val().indexOf(".")!=-1)?!1:void 0});$.fn.pasteEvents=function(n){return n==undefined&&(n=10),$(this).each(function(){var t=$(this);t.on("paste",function(){t.trigger("prepaste");setTimeout(function(){t.trigger("postpaste")},n)})})};$(t.tbxAmount).on("postpaste",function(){var n=$(this).val().replace(" ","").replace(",",".");isNaN(n)?$(this).val(""):$(this).val(n)}).pasteEvents()};this.Convert=function(){if(!isFinite(parseFloat($(t.tbxAmount).val()))){t.ShowError($(t.resultContainer));return}var n=i.Convert(t.GetSelectedValue($(t.selectBase)),t.GetSelectedValue($(t.selectTarget)),parseFloat($(t.tbxAmount).val().replace(",","."))),r=i.Convert(t.GetSelectedValue($(t.selectTarget)),t.GetSelectedValue($(t.selectBase)),parseFloat($(t.tbxAmount).val().replace(",",".")));t.ShowResult(n,r,$(t.resultContainer))};this.ShowError=function(n){n.hasClass("error")||n.addClass("error");n.html(t.wrongInputMessage)};this.GetSelectedValue=function(n){if(n.find("option:selected").val()!=undefined&&n.find("option:selected").val()!=null)return n.find("option:selected").val()};this.ShowResult=function(n,i,r){r.hasClass("error")&&r.removeClass("error");var u=t.resultStringFormat.replace("{0}",t.GetFormatedValue(n.Amount)).replace("{1}",n.BaseCurrency).replace("{2}",t.GetFormatedValue(RoundNumber(n.Result,2))).replace("{3}",n.TargetCurrency);u=u.replace("{4}",t.GetFormatedValue(i.Amount)).replace("{5}",i.BaseCurrency).replace("{6}",t.GetFormatedValue(RoundNumber(i.Result,2))).replace("{7}",i.TargetCurrency);r.html(u)};this.GetFormatedValue=function(n){return n.toString().replace(".",t.delimeter)}};IndicesChart=function(n){var t=this;this.url=n.url;this.width=n.width;this.height=n.height;this.chart=n.chart;this.loadText=n.loadText;this.errorText=n.errorText;this.instruments=n.instruments;this.indicesInfo=n.indicesInfo;this.displaychart=n.displaychart;this.perfomance=n.perfomance;this.changedate=n.changedate;this.changetime=n.changetime;this.lastprice=n.lastprice;this.closedate=n.closedate;this.closeprice=n.closeprice;this.closetext=n.closetext;this.language=n.language;this.counter=0;this.max=8;this.getInfoWithChart=function(){$.ajax({url:t.url,type:"get",data:{instrumentId:t.getInstrumentString(),width:t.width,height:t.height,displaychart:!0,lang:t.language},dataType:"json",success:function(n){n!=null&&n!=""&&(t.counter=0,$(t.chart).show(),$(t.chart).attr("src",n.ChartUrl),t.fillInfoForIndex(n))},error:function(){}})};this.getInfo=function(){$.ajax({url:t.url,type:"get",data:{instrumentId:t.getInstrumentString(),width:t.width,height:t.height,displaychart:!1,lang:t.language},dataType:"json",success:function(n){n!=null&&n!=""&&(t.counter=0,t.fillInfoForIndex(n))},error:function(){}})};this.fillInfoForIndex=function(n){$(t.perfomance).html(n.Perfomance);$(t.perfomance).append("%");n.CloseDateString==""&&n.ClosePrice==""?$(t.closetext).html(""):($(t.closeprice).html(n.ClosePrice),$(t.closedate).html(n.CloseDateString),$(t.closetext).html("<span>Slutnotering<\/span>"));$(t.lastprice).html(n.LastPrice);$(t.changedate).html(n.ChangeDateString);$(t.changetime).html(n.ChangeTimeString);$(t.perfomance).removeClass("postv negtv black");$(t.lastprice).removeClass("postv negtv black");$(t.closeprice).removeClass("postv negtv black");var i=n.Perfomance.replace(",",".");i<0&&($(t.perfomance).addClass("negtv"),$(t.lastprice).addClass("negtv"),$(t.closeprice).addClass("negtv"));i>0&&($(t.perfomance).addClass("postv"),$(t.lastprice).addClass("postv"),$(t.closeprice).addClass("postv"));i==0&&($(t.perfomance).addClass("black"),$(t.lastprice).addClass("black"),$(t.closeprice).addClass("black"))};this.init=function(){t.displaychart==!0?t.getInfoWithChart():t.getInfo();t.bindChartImageEvents();$(t.instruments).change(function(){t.displaychart==!0?t.getInfoWithChart():t.getInfo()})};this.bindChartImageEvents=function(){$(t.loadText).hide();$(t.chart).load(function(){$(t.chart).get(0).width<2&&($(t.errorText).show(),$(t.chart).hide())})};this.getInstrumentString=function(){return $(t.instruments).find("option:selected").val()}};fhTabHelper={GetSelectedTabFromField:function(n){var t=parseInt($(n).val());return isNaN(t)?0:t},GetSelectedTabFromUrl:function(n){var t=parseInt(GetUrlParameter(n));return isNaN(t)?0:t},SelectTab:function(n,t,i){(t>=$(n).children().length||t<0)&&(t=0);$(n).children().each(function(n){n==t&&$(this).addClass(i)})},SetName:function(n,t,i,r){var u=r+" - "+$($(n).children()[t]).find("span").text();$(i)[0].innerHTML=u}};CurrenciesView=function(n){var t=this;this.showreverse=n.showreverse;this.curlist=n.curlist;this.value=n.value;this.updatedate=n.updatedate;this.updatetime=n.updatetime;this.perfomance=n.perfomance;this.revcurlist=n.revcurlist;this.revvalue=n.revvalue;this.currencies=n.currencies;this.init=function(){if(t.currencies!=null&&t.currencies!=undefined){var n=t.getInstrumentString($(t.curlist));n!=null&&n!=undefined&&(t.showreverse==!0&&t.fillReverseCurrencyInfo(t.currencies[n]),t.fillCurrencyInfo(t.currencies[n]),$(t.curlist).change(function(){var n=t.getInstrumentString($(t.curlist)),i;t.showreverse==!0&&(i=$(t.curlist).find("option:selected").index(),$(t.revcurlist).prop("selectedIndex",i),t.fillReverseCurrencyInfo(t.currencies[n]));t.fillCurrencyInfo(t.currencies[n])}),$(t.revcurlist).change(function(){var i=$(t.revcurlist).find("option:selected").index(),n;$(t.curlist).prop("selectedIndex",i);n=t.getInstrumentString($(t.revcurlist));t.fillReverseCurrencyInfo(t.currencies[n]);t.fillCurrencyInfo(t.currencies[n])}))}};this.fillCurrencyInfo=function(n){if(n!=null&&n!=undefined){$(t.value).html(n.Value);$(t.updatedate).html(n.ChangeDateString);$(t.updatetime).html(n.ChangeTimeString);$(t.perfomance).html(n.OneDayDifference);$(t.perfomance).append("%");$(t.value).removeClass("postv negtv black");$(t.perfomance).removeClass("postv negtv black");$(t.revvalue).removeClass("postv negtv black");var i=n.OneDayDifference.replace(",",".");i<0&&($(t.value).addClass("negtv"),$(t.perfomance).addClass("negtv"),$(t.revvalue).addClass("postv"));i>0&&($(t.value).addClass("postv"),$(t.perfomance).addClass("postv"),$(t.revvalue).addClass("negtv"));i==0&&($(t.value).addClass("negtv"),$(t.perfomance).addClass("negtv"),$(t.revvalue).addClass("postv"),$(t.perfomance).html("-0.00%"))}};this.fillReverseCurrencyInfo=function(n){n!=null&&n!=undefined&&$(t.revvalue).html(n.ReverseValue)};this.getInstrumentString=function(n){return n.find("option:selected").val()}};financialhubChart=function(){this.chartImageSelector="";this.loadingMessageSelector="";this.errorMessageSelector="";this.counter=0;this.init=function(){$(this.loadingMessageSelector).show();this.bindEvents()};this.bindEvents=function(){var n=this;$(this.chartImageSelector).load(function(){n.onChartImageLoad()})};this.onChartImageLoad=function(){$(this.loadingMessageSelector).hide();$(this.chartImageSelector).get(0).width<2&&($(this.chartImageSelector).hide(),$(this.errorMessageSelector).show())}};ChartListEditor=function(n){var t=this,i,r;this.saveEvent=null;this.init=function(){var f,u,e;try{f=jQuery17(n.ValueFieldId).val();i=$.altParseJSON(f)}catch(o){i=[]}for(u=0;u<i.length;u++)e=t.addRow(u),t.fillContainer(e,u);jQuery17(n.SettingsId).find("input.date").focus(function(){jQuery17(this).addClass("focus")});jQuery17(n.SettingsId).find("input.date").blur(function(){jQuery17(this).removeClass("focus");jQuery17(this).val().length>0?jQuery17(this).addClass("show"):jQuery17(this).removeClass("show")});jQuery17(n.AddNewButtonId).click(t.addNew);jQuery17(n.SettingsId).find(".btnCancel").click(t.cancel);jQuery17(n.SettingsId).find(".security").bind("dragenter",function(){return!1}).bind("dragleave",function(){return!1}).bind("dragover",function(){return!1}).bind("drop",function(i){var e=i.originalEvent.dataTransfer.getData("Text"),r=t.parse(e),u,f;return r!=null&&r.length!=0&&(u=r[1]+" ("+r[2]+")",jQuery17(n.SettingsId).find("#"+this.id+"_id").val(r[0]+" ("+u+")"),"#"+this.id==n.SettingsId+"_security1"?jQuery17(this).val(u):jQuery17(this).text(u),f=this,setTimeout(function(){jQuery17(f).val(jQuery17(f).val().replace(e,""))},100)),!1});jQuery17(n.SettingsId).find(n.SettingsId+"_security1").autocomplete({source:function(t,i){jQuery17.ajax({url:n.ChartAutoCompleteService,type:"get",data:{searchString:t.term,lang:n.Language},success:function(n){n!=null&&n!=""&&n.length!=0?(r=n,i(jQuery17.map(n,function(n){return{label:n.Name+" ("+n.TradeCurrency+")",value:n.Name+" ("+n.TradeCurrency+")"}}))):i()}})},select:function(i,u){for(var e,o,f=0;f<r.length;f++)if(e=r[f].Name+" ("+r[f].TradeCurrency+")",e==u.item.value){jQuery17(n.SettingsId).find(n.SettingsId+"_security1_id").val(r[f].Id+" ("+e+")");o=t.findSecurity1(r[f].Id);o!=-1&&t.loadSecurity1Data(o);break}}});jQuery17(window).resize(function(){t.moveSettingsBlockToCenter()})};jQuery17.fn.center=function(){return this.css("position","absolute"),this.css("top",(jQuery17(window).height()-this.outerHeight())/2+jQuery17(window).scrollTop()+"px"),this.css("left",(jQuery17(window).width()-this.outerWidth())/2+jQuery17(window).scrollLeft()+"px"),this};this.addNew=function(){return jQuery17(n.SettingsWrapId).show(),t.resetForm(jQuery17(n.SettingsId)),t.showSettingsBlock(),jQuery17(n.SettingsId).find(".btnSave").unbind("click"),jQuery17(n.SettingsId).find(".btnSave").click(function(){return t.saveChart(-1),!1}),!1};this.editRow=function(){var f=this.id.indexOf("_editRow"),u=this.id.substr(0,f),e=u.indexOf("_chart"),r=u.substr(e+6);return r<i.length&&(jQuery17(n.SettingsWrapId).show(),t.fillForm(jQuery17(n.SettingsId),i[r]),t.showSettingsBlock(),jQuery17(n.SettingsId).find(".btnSave").unbind("click"),jQuery17(n.SettingsId).find(".btnSave").click(function(){return t.saveChart(parseInt(r)),!1})),!1};this.addRow=function(i){var r=n.ContainerId.substr(1)+"_chart"+i;return jQuery17(n.ContainerId).append("<div class='chart' id='"+r+"' style='width: 560px; min-height: 50px; border: solid 1px #C4C4C4; background:#FFFFFF; margin: 3px 0px; padding: 3px'><div style='float: right;'><input type='button' id='"+r+"_delRow' class='epi-cmsButton-tools epi-cmsButton-Delete' style='cursor: pointer;' /><\/div><div style='font-weight: bold;'><span id='"+r+"_index' style='margin-right: 10px;'><\/span><span id='"+r+"_scrts'><\/span><\/div><div><div style='float: left; margin-right: 10px;'><input type='button' id='"+r+"_editRow' class='epi-cmsButton-tools epi-cmsButton-Edit' style='cursor: pointer;' /><\/div><span id='"+r+"_opts'><\/span><\/div><\/div>"),jQuery17(n.ContainerId).find("#"+r+"_delRow").click(t.deleteRow),jQuery17(n.ContainerId).find("#"+r+"_editRow").click(t.editRow),r};this.deleteRow=function(){var e=this.id.indexOf("_delRow"),r=this.id.substr(0,e),o=r.indexOf("_chart"),u=r.substr(o+6),f;return u<i.length&&(jQuery17("#"+r).remove(),i.splice(u,1),f=$.altToJSON(i),jQuery17(n.ValueFieldId).val(f)),t.reloadData(),!1};this.saveChart=function(r){var h=jQuery17(n.SettingsId).find(n.SettingsId+"_security1").val(),c=t.parseSecurity(jQuery17(n.SettingsId).find(n.SettingsId+"_security1_id").val()),u,f,l,o,a,s,e,v;if(h==""||h!=c)return jQuery17(n.SettingsId).find(n.SettingsId+"_security1").val(c),!1;for(u={},u.Instruments=[],f=0;f<4;f++)u.Instruments[f]={},u.Instruments[f].Id=t.parseId(jQuery17(n.SettingsId).find(n.SettingsId+"_security"+(f+1)+"_id").val()),u.Instruments[f].Name=t.parseSecurity(jQuery17(n.SettingsId).find(n.SettingsId+"_security"+(f+1)+"_id").val());for(u.TimePeriods=[],l=jQuery17(n.SettingsId).find("#intraday-period option:selected").val(),jQuery17(n.SettingsId).find("#period_1").attr("checked")=="checked"&&u.TimePeriods.push(l),o=jQuery17(n.SettingsId).find("input[name = period]:checked"),f=0;f<o.length;f++)a=jQuery17(n.SettingsId).find(o[f]).val(),u.TimePeriods.push(a);for(u.Scaling=jQuery17(n.SettingsId).find("input[name = scaling]:checked").val(),u.Analyses=0,s=jQuery17(n.SettingsId).find("input[name = analys]:checked"),f=0;f<s.length;f++)u.Analyses+=parseInt(jQuery17(n.SettingsId).find(s[f]).val());if(u.ShowTextLink=jQuery17(n.SettingsId).find("input[name = textlink]").attr("checked")=="checked"||jQuery17(n.SettingsId).find("input[name = textlink]").attr("checked")=="true",u.ShowDescription=jQuery17(n.SettingsId).find("input[name = description]").attr("checked")=="checked"||jQuery17(n.SettingsId).find("input[name = description]").attr("checked")=="true",u.DisplayNames=jQuery17(n.SettingsId).find("input[name = displaynames]").attr("checked")=="checked"||jQuery17(n.SettingsId).find("input[name = displaynames]").attr("checked")=="true",u.IsFrozen=jQuery17(n.SettingsId).find("input[name = frozen]").attr("checked")=="checked"||jQuery17(n.SettingsId).find("input[name = frozen]").attr("checked")=="true",u.FrozenDate=null,u.IsFrozen&&(u.FrozenDate=t.formatFullDate(t.parseDate(n.CurrentDate)),t.addSecuritiesValues(u)),jQuery17.inArray("date",u.TimePeriods)!=-1){if(!t.checkStartEndDate())return!1;u.StartDate=jQuery17(n.SettingsId).find(n.SettingsId+"_start_date").val();u.EndDate=jQuery17(n.SettingsId).find(n.SettingsId+"_end_date").val()}else u.StartDate="",u.EndDate="";return r==-1?(i.push(u),e=t.addRow(i.length-1),t.fillContainer(e,i.length-1)):(i[r]=u,e=n.ContainerId.substr(1)+"_chart"+r,t.fillContainer(e,r)),v=$.altToJSON(i),jQuery17(n.ValueFieldId).val(v),jQuery17(n.SettingsWrapId).hide(),t.hideSettingsBlock(),jQuery17(n.SettingsId).find(n.SettingsId+"_security1").autocomplete("close"),t.saveEvent!=null&&t.saveEvent(u.Instruments[0].Id),!1};this.cancel=function(){return jQuery17(n.SettingsWrapId).hide(),t.hideSettingsBlock(),jQuery17(n.SettingsId).find(n.SettingsId+"_security1").autocomplete("close"),t.saveEvent!=null&&t.saveEvent(-1),!1};this.isSettingsBlockVisible=!1;this.hideSettingsBlock=function(){if(t.isSettingsBlockVisible){var i=jQuery17(n.SettingsId);i.css("position","absolute");i.css("top",0-i.outerHeight()+"px");i.css("left",0-i.outerWidth()+"px");this.isSettingsBlockVisible=!1}};this.showSettingsBlock=function(){t.isSettingsBlockVisible||(jQuery17(n.SettingsId).center(),jQuery17(n.SettingsId).css("display")&&jQuery17(n.SettingsId).css("display")!="none"||jQuery17(n.SettingsId).show(),this.isSettingsBlockVisible=!0)};this.moveSettingsBlockToCenter=function(){t.isSettingsBlockVisible&&jQuery17(n.SettingsId).center()};this.fillContainer=function(t,r){for(var f=i[r],s=[],o,h,e,c,u=0;u<f.Instruments.length;u++)o=f.Instruments[u].Name,o!=""&&s.push(o);for(h=s.join(", "),e=[],u=0;u<f.TimePeriods.length;u++)f.TimePeriods[u]=="intraday"?e.push(jQuery17(n.SettingsId).find("option[value=intraday-1]").text()):f.TimePeriods[u]=="date"?e.push(f.StartDate+" - "+f.EndDate):(e.push(jQuery17(n.SettingsId).find("option[value ="+f.TimePeriods[u]+"]").text()),e.push(jQuery17(n.SettingsId).find(n.SettingsId+"_period_"+f.TimePeriods[u]).text()));for(e.push(jQuery17(n.SettingsId).find(n.SettingsId+"_scaling_"+f.Scaling).text()),(f.Analyses&1)==1&&e.push(jQuery17(n.SettingsId).find(n.SettingsId+"_analys_technical").text()),(f.Analyses&2)==2&&e.push(jQuery17(n.SettingsId).find(n.SettingsId+"_analys_analysis1").text()),(f.Analyses&4)==4&&e.push(jQuery17(n.SettingsId).find(n.SettingsId+"_analys_analysis2").text()),f.ShowTextLink&&e.push(jQuery17(n.SettingsId).find(n.SettingsId+"_textlink").text()),f.ShowDescription&&e.push(jQuery17(n.SettingsId).find(n.SettingsId+"_description").text()),f.DisplayNames&&e.push(jQuery17(n.SettingsId).find(n.SettingsId+"_displaynames").text()),f.IsFrozen&&e.push(jQuery17(n.SettingsId).find(n.SettingsId+"_frozen").text()),u=e.length-1;u>=0;u--)e[u]==""&&e.splice(u,1);c=e.join(", ");jQuery17(n.ContainerId).find("#"+t+"_index").text(r+1+".");jQuery17(n.ContainerId).find("#"+t+"_scrts").text(h);jQuery17(n.ContainerId).find("#"+t+"_opts").text(c)};this.resetForm=function(n){jQuery17(":text",n).val("");jQuery17(":radio",n).removeAttr("checked");jQuery17(":input[type=hidden]",n).val("");jQuery17(":input[type=text]",n).val("");jQuery17(":input",n).attr("checked",!1);jQuery17("[name = scaling]:first",n).attr("checked",!0);jQuery17("span.security",n).text("");jQuery17("select option:first",n).attr("selected","selected")};this.fillForm=function(i,r){t.resetForm(jQuery17(n.SettingsId));jQuery17(n.SettingsId).find(n.SettingsId+"_security1_id").val(r.Instruments[0].Id+" ("+r.Instruments[0].Name+")");jQuery17(n.SettingsId).find(n.SettingsId+"_security1").val(r.Instruments[0].Name);for(var u=1;u<4;u++)jQuery17(n.SettingsId).find(n.SettingsId+"_security"+(u+1)+"_id").val(r.Instruments[u].Id+" ("+r.Instruments[u].Name+")"),jQuery17(n.SettingsId).find(n.SettingsId+"_security"+(u+1)).text(r.Instruments[u].Name);for(u=0;u<r.TimePeriods.length;u++)r.TimePeriods[u].indexOf("intraday",0)!=-1&&jQuery17(n.SettingsId).find("input[id = period_1]").attr("checked",!0),jQuery17(n.SettingsId).find("option[value = "+r.TimePeriods[u]+"]").attr("selected","selected"),jQuery17(n.SettingsId).find("input[name = period][value = "+r.TimePeriods[u]+"]").attr("checked",!0);jQuery17(n.SettingsId).find("input[name = scaling][value = "+r.Scaling+"]").attr("checked",!0);jQuery17(n.SettingsId).find("input[name = analys][value = 1]").attr("checked",(r.Analyses&1)==1);jQuery17(n.SettingsId).find("input[name = analys][value = 2]").attr("checked",(r.Analyses&2)==2);jQuery17(n.SettingsId).find("input[name = analys][value = 4]").attr("checked",(r.Analyses&4)==4);jQuery17(n.SettingsId).find("input[name = textlink]").attr("checked",r.ShowTextLink);jQuery17(n.SettingsId).find("input[name = description]").attr("checked",r.ShowDescription);jQuery17(n.SettingsId).find("input[name = displaynames]").attr("checked",r.DisplayNames);jQuery17(n.SettingsId).find("input[name = frozen]").attr("checked",r.IsFrozen);jQuery17(n.SettingsId).find(n.SettingsId+"_start_date").val(r.StartDate);jQuery17(n.SettingsId).find(n.SettingsId+"_end_date").val(r.EndDate);jQuery17(n.SettingsId).find(n.SettingsId+"_start_date").blur();jQuery17(n.SettingsId).find(n.SettingsId+"_end_date").blur()};this.parse=function(n){if(n.indexOf("stock:")!=-1){n=n.replace("stock:","");n=n.replace("\r","");n=n.replace("\n","");return n.split("|")}return null};this.parseSecurity=function(n){var t=n.indexOf("(")+1,i=n.lastIndexOf(")");return t!=0?n.substr(t,i-t):""};this.parseId=function(n){var t=0,i=n.indexOf("(")-1;return n.substr(t,i-t)};this.findSecurity1=function(n){for(var r,t=0;t<i.length;t++)if(r=i[t].Instruments[0].Id,r==n)return t;return-1};this.findAndFillSecurity1ById=function(n){var i=t.findSecurity1(n);i!=-1?t.loadSecurity1Data(i):t.GetSecurityById(n)};this.GetSecurityById=function(i){jQuery17.ajax({url:n.GetInstrumentValuesService,type:"get",async:!1,data:{ids:i,periods:",",lang:n.Language},success:function(n){t.find(n[0].Name)}})};this.loadSecurity1Data=function(r){return r<i.length&&(jQuery17(n.SettingsWrapId).show(),t.fillForm(jQuery17(n.SettingsId),i[r]),t.showSettingsBlock(),jQuery17(n.SettingsId).find(".btnSave").unbind("click"),jQuery17(n.SettingsId).find(".btnSave").click(function(){return t.saveChart(r),!1})),!1};this.reloadData=function(){var r,u;for(jQuery17(n.ContainerId).html(""),r=0;r<i.length;r++)u=t.addRow(r),t.fillContainer(u,r)};this.find=function(i){t.addNew();jQuery17(n.SettingsId).find("input[name = textlink]").attr("checked",!0);var r=jQuery17(n.SettingsId).find(n.SettingsId+"_security1");r.autocomplete("disable");r.val(i);r.autocomplete("enable");r.autocomplete("search",i);r.focus()};this.getLink=function(t){var i={};return i.Url="",i.NewWindow=!0,jQuery17.ajax({url:n.GetLink,type:"get",async:!1,data:{id:t,lang:n.Language},success:function(n){n!=null&&n!=""&&(i.Url=n,element=document.createElement("a"),element.href=n,(element.hostname==document.domain||element.hostname=="")&&(i.NewWindow=!1))}}),i};this.formatDate=function(n){var r=n.getFullYear().toString(),i=(n.getMonth()+1).toString(),t;return i.length==1&&(i="0"+i),t=n.getDate().toString(),t.length==1&&(t="0"+t),r+"-"+i+"-"+t};this.formatFullDate=function(n){var f=n.getFullYear().toString(),u=(n.getMonth()+1).toString(),t,i,r;return u.length==1&&(u="0"+u),t=n.getDate().toString(),t.length==1&&(t="0"+t),i=n.getHours().toString(),i.length==1&&(i="0"+i),r=n.getMinutes().toString(),r.length==1&&(r="0"+r),f+"-"+u+"-"+t+" "+i+":"+r};this.checkStartEndDate=function(){var f=!1,i=t.parseDate(jQuery17(n.SettingsId).find(n.SettingsId+"_start_date").val()),r=t.parseDate(jQuery17(n.SettingsId).find(n.SettingsId+"_end_date").val()),e=t.parseDate(n.CurrentDate),u,o,s;return(isNaN(r)||r>e)&&(r=e,f=!0),(isNaN(i)||i>=r)&&(i=new Date(r),i.setMonth(i.getMonth()-1),u=new Date(r),u.setMonth(u.getMonth(),0),i>u&&(i=u),f=!0),o=t.formatDate(i),s=t.formatDate(r),jQuery17(n.SettingsId).find(n.SettingsId+"_start_date").val(o),jQuery17(n.SettingsId).find(n.SettingsId+"_end_date").val(s),jQuery17(n.SettingsId).find(n.SettingsId+"_start_date").blur(),jQuery17(n.SettingsId).find(n.SettingsId+"_end_date").blur(),!f};this.clearSecurity=function(t){jQuery17(n.SettingsId).find(n.SettingsId+"_security"+t+"_id").val("");t==1?jQuery17(n.SettingsId).find(n.SettingsId+"_security"+t).val(""):jQuery17(n.SettingsId).find(n.SettingsId+"_security"+t).text("")};this.parseDate=function(n){var t=Date.parse(n);return isNaN(t)&&(n=n.replace(/-/g,"/"),t=Date.parse(n)),new Date(t)};this.addSecuritiesValues=function(t){for(var u=[],r,f,i=0;i<t.Instruments.length;i++)r=t.Instruments[i].Id,r!=""&&u.push(r);f=u.join(",");jQuery17.ajax({url:n.GetInstrumentValuesService,type:"get",async:!1,data:{ids:f,periods:t.TimePeriods.join(","),lang:n.Language},success:function(n){var i,r,u;if(n!=null&&n!=""&&n.length!=0)for(i=0,r=0;i<t.Instruments.length&&r<n.length;i++)if(t.Instruments[i].Id==n[r].Id){for(t.Instruments[i].PeriodDifference=[],t.Instruments[i].PeriodDifferencePrc=[],u=0;u<t.TimePeriods.length;u++)t.Instruments[i].PeriodDifference[u]=n[r].PeriodDifference[u],t.Instruments[i].PeriodDifferencePrc[u]=n[r].PeriodDifferencePrc[u];t.Instruments[i].LastPaidPrice=n[r].LastPaidPrice;t.Instruments[i].PerformanceChangeDateTime=n[r].PerformanceChangeDateTime;r++}}})}};SynonymsListEditor=function(n){var t,u,r=0,i=this;this.init=function(){jQuery(n.AddNewButtonId).click(this.addNew.bind(this));try{t=jQuery.altParseJSON(jQuery(n.ValueFieldId).val())}catch(f){t=[]}for(var i=0;i<t.length;i++)t[i].guid=--r;u=t.slice();this.render()};this.createNewItem=function(){return{guid:--r,Value:""}};this.isEmpty=function(n){return n.Value==""};this.addNew=function(){return t.push(this.createNewItem()),this.render(),this.onChange(),!1};this.delRow=function(n){for(var r,i=0;i<t.length;i++)r=t[i],r.guid==n&&t.splice(i,1);return this.render(),this.onChange(),!1};this.swapRows=function(n,i){for(var u,r=0;r<t.length;r++)if(u=t[r],u.guid==n){r+i>=0&&r+i<t.length&&(t[r]=t.splice(r+i,1,t[r])[0]);break}return this.render(),this.onChange(),!1};this.onAfterEdit=function(n,i,r){for(var f,u=0;u<t.length;u++)f=t[u],f.guid==n&&(f[i]=jQuery.trim(r));this.onChange()};this.onChange=function(){for(var u=[],r,i=0;i<t.length;i++)r=t[i],this.isEmpty(r)||u.push(r);jQuery(n.ValueFieldId).val(jQuery.altToJSON(u))};this.render=function(){var r=jQuery(n.BodyId);r.setTemplate(jQuery(n.TableTemplateId).html());r.processTemplate(t);r.find(".rowUp:first,.rowDown:last").css("visibility","hidden");r.find("input").unbind("change").change(function(){i.onAfterEdit(i.getRowIdBySender(this),jQuery(this).attr("column"),jQuery(this).val())});r.find(".delRow").unbind("click").click(function(){return i.delRow(i.getRowIdBySender(this))});r.find(".rowUp").click(function(){return i.swapRows(i.getRowIdBySender(this),-1)});r.find(".rowDown").click(function(){return i.swapRows(i.getRowIdBySender(this),1)})};this.getRowIdBySender=function(n){var t=jQuery(n).parent().parent(),i=t.attr("class");return i.substr(1)}},function(n){n.jgrid={defaults:{recordtext:"View {0} - {1} of {2}",emptyrecords:"No records to view",loadtext:"Loading...",pgtext:"Page {0} of {1}"},search:{caption:"Search...",Find:"Find",Reset:"Reset",odata:["equal","not equal","less","less or equal","greater","greater or equal","begins with","does not begin with","is in","is not in","ends with","does not end with","contains","does not contain"],groupOps:[{op:"AND",text:"all"},{op:"OR",text:"any"}],matchText:" match",rulesText:" rules"},edit:{addCaption:"Add Record",editCaption:"Edit Record",bSubmit:"Submit",bCancel:"Cancel",bClose:"Close",saveData:"Data has been changed! Save changes?",bYes:"Yes",bNo:"No",bExit:"Cancel",msg:{required:"Field is required",number:"Please, enter valid number",minValue:"value must be greater than or equal to ",maxValue:"value must be less than or equal to",email:"is not a valid e-mail",integer:"Please, enter valid integer value",date:"Please, enter valid date value",url:"is not a valid URL. Prefix required ('http://' or 'https://')",nodefined:" is not defined!",novalue:" return value is required!",customarray:"Custom function should return array!",customfcheck:"Custom function should be present in case of custom checking!"}},view:{caption:"View Record",bClose:"Close"},del:{caption:"Delete",msg:"Delete selected record(s)?",bSubmit:"Delete",bCancel:"Cancel"},nav:{edittext:"",edittitle:"Edit selected row",addtext:"",addtitle:"Add new row",deltext:"",deltitle:"Delete selected row",searchtext:"",searchtitle:"Find records",refreshtext:"",refreshtitle:"Reload Grid",alertcap:"Warning",alerttext:"Please, select row",viewtext:"",viewtitle:"View selected row"},col:{caption:"Select columns",bSubmit:"Ok",bCancel:"Cancel"},errors:{errcap:"Error",nourl:"No url is set",norecords:"No records to process",model:"Length of colNames <> colModel!"},formatter:{integer:{thousandsSeparator:" ",defaultValue:"0"},number:{decimalSeparator:".",thousandsSeparator:",",decimalPlaces:2,defaultValue:"0.00"},currency:{decimalSeparator:".",thousandsSeparator:",",decimalPlaces:2,prefix:"",suffix:" kr",defaultValue:"0.00 kr"},date:{dayNames:["Sun","Mon","Tue","Wed","Thr","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],AmPm:["am","pm","AM","PM"],S:function(n){return n<11||n>13?["st","nd","rd","th"][Math.min((n-1)%10,3)]:"th"},srcformat:"Y-m-d",newformat:"d/m/Y",masks:{ISO8601Long:"Y-m-d H:i:s",ISO8601Short:"Y-m-d",ShortDate:"n/j/Y",LongDate:"l, F d, Y",FullDateTime:"l, F d, Y g:i:s A",MonthDay:"F d",ShortTime:"g:i A",LongTime:"g:i:s A",SortableDateTime:"Y-m-d\\TH:i:s",UniversalSortableDateTime:"Y-m-d H:i:sO",YearMonth:"F, Y"},reformatAfterEdit:!1},baseLinkUrl:"",showAction:"",target:"",checkbox:{disabled:!0},idName:"id"}}}(jQuery),function(n){n.jgrid={defaults:{recordtext:"Visar {0} - {1} av {2}",emptyrecords:"Det finns inga poster att visa",loadtext:"Laddar...",pgtext:"Sida {0} av {1}"},search:{caption:"Sök Poster - Ange sökvillkor",Find:"Sök",Reset:"Nollställ Villkor",odata:["lika","ej lika","mindre","mindre eller lika","större","större eller lika","börjar med","börjar inte med","tillhör","tillhör inte","slutar med","slutar inte med","innehåller","innehåller inte"],groupOps:[{op:"AND",text:"alla"},{op:"OR",text:"eller"}],matchText:" träff",rulesText:" regler"},edit:{addCaption:"Ny Post",editCaption:"Redigera Post",bSubmit:"Spara",bCancel:"Avbryt",bClose:"Stäng",saveData:"Data har ändrats! Spara förändringar?",bYes:"Ja",bNo:"Nej",bExit:"Avbryt",msg:{required:"Fältet är obligatoriskt",number:"Välj korrekt nummer",minValue:"värdet måste vara större än eller lika med",maxValue:"värdet måste vara mindre än eller lika med",email:"är inte korrekt e-post adress",integer:"Var god ange korrekt heltal",date:"Var god ange korrekt datum",url:"är inte en korrekt URL. Prefix måste anges ('http://' or 'https://')",nodefined:" är inte definierad!",novalue:" returvärde måste anges!",customarray:"Custom funktion måste returnera en vektor!",customfcheck:"Custom funktion måste finnas om Custom kontroll sker!"}},view:{caption:"Visa Post",bClose:"Stäng"},del:{caption:"Radera",msg:"Radera markerad(e) post(er)?",bSubmit:"Radera",bCancel:"Avbryt"},nav:{edittext:"",edittitle:"Redigera markerad rad",addtext:"",addtitle:"Skapa ny post",deltext:"",deltitle:"Radera markerad rad",searchtext:"",searchtitle:"Sök poster",refreshtext:"",refreshtitle:"Uppdatera data",alertcap:"Varning",alerttext:"Ingen rad är markerad",viewtext:"",viewtitle:"Visa markerad rad"},col:{caption:"Välj Kolumner",bSubmit:"OK",bCancel:"Avbryt"},errors:{errcap:"Fel",nourl:"URL saknas",norecords:"Det finns inga poster att bearbeta",model:"Antal colNames <> colModel!"},formatter:{integer:{thousandsSeparator:" ",defaultValue:"0"},number:{decimalSeparator:",",thousandsSeparator:" ",decimalPlaces:2,defaultValue:"0,00"},currency:{decimalSeparator:",",thousandsSeparator:" ",decimalPlaces:2,prefix:"",suffix:" kr",defaultValue:"0,00 kr"},date:{dayNames:["Sön","Mån","Tis","Ons","Tor","Fre","Lör","Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],monthNames:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec","Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],AmPm:["fm","em","FM","EM"],S:function(n){return n<11||n>13?["st","nd","rd","th"][Math.min((n-1)%10,3)]:"th"},srcformat:"Y-m-d",newformat:"Y-m-d",masks:{ISO8601Long:"Y-m-d H:i:s",ISO8601Short:"Y-m-d",ShortDate:"n/j/Y",LongDate:"l, F d, Y",FullDateTime:"l, F d, Y g:i:s A",MonthDay:"F d",ShortTime:"g:i A",LongTime:"g:i:s A",SortableDateTime:"Y-m-d\\TH:i:s",UniversalSortableDateTime:"Y-m-d H:i:sO",YearMonth:"F, Y"},reformatAfterEdit:!1},baseLinkUrl:"",showAction:"",target:"",checkbox:{disabled:!0},idName:"id"}}}(jQuery)