(function(c){var p={init:function(b){var d=c.extend({itemClass:".item",itemOpenClass:".item_open",openTriggerClass:".item",closeText:"Close",itemMargin:10,scrollSpeed:500,startItem:"last",easing:"easeOutSine",categories:"January February March April May June July August September October November December".split(" "),nuberOfSegments:[31,29,31,30,31,30,31,31,30,31,30,31],yearsOn:!0,swipeOn:!0,hideTimeline:!1,hideControles:!1,closeItemOnTransition:!1,ajaxFailMessage:"Ajax request has failed."},b),e=
this;c("body");var a=e.find(d.itemClass),f=e.find(d.itemOpenClass),k=a.first().width(),l=f.first().width();e.trigger("init.Timeline");var g=a.length-1;"first"==d.startItem?g=0:"last"==d.startItem?g=a.length-1:a.each(function(a){if(d.startItem==c(this).attr("data-id"))return g=a,!0});a.each(function(a){c(this).attr("data-count",a);c(this).next(d.itemOpenClass).attr("data-count",a);c(this).hasClass(d.openTriggerClass)||c(this).find(d.openTriggerClass).attr("data-count",a)});e.append('\x3cdiv style\x3d"clear:both"\x3e\x3c/div\x3e');
e.css({width:"100%",overflow:"hidden",marginLeft:"auto",marginRight:"auto","text-align":"center",height:0});e.wrapInner('\x3cdiv class\x3d"timeline_items" /\x3e');e.find(".timeline_items").css("text-align","left");"ontouchstart"in window&&e.addClass("timelineTouch");e.wrapInner('\x3cdiv class\x3d"timeline_items_holder" /\x3e');d.hideControles||e.append('\x3cdiv class\x3d"t_controles"\x3e\x3cdiv class\x3d"t_left"\x3e\x3c/div\x3e\x3cdiv class\x3d"t_right"\x3e\x3c/div\x3e\x3c/div\x3e');e.wrapInner('\x3cdiv class\x3d"timeline_items_wrapper" /\x3e');
e.find(".timeline_items_holder").css({width:"300px",marginLeft:"auto",marginRight:"auto"});a.css({paddingLeft:0,paddingRight:0,marginLeft:d.itemMargin/2,marginRight:d.itemMargin/2,"float":"left",position:"relative"});f.each(function(){c(this).prepend('\x3cdiv class\x3d"t_close" data-count\x3d"'+c(this).attr("data-count")+'" data-id\x3d"'+c(this).attr("data-id")+'"\x3e'+d.closeText+"\x3c/div\x3e");c(this).wrapInner('\x3cdiv class\x3d"'+d.itemOpenClass.substr(1)+'_cwrapper"  /\x3e').find("div:first").css({position:"relative"});
c(this).css({width:0,padding:0,margin:0,"float":"left",display:"none",position:"relative",overflow:"hidden"})});b=e.find(".timeline_items:first");e.find(".t_line_wrapper:first");var h=150-(k+d.itemMargin)*(.5+g),m=(k+d.itemMargin)*a.length+(l+d.itemMargin)+660,n=e.data("timeline");b.css({width:m,marginLeft:h});n||e.data("timeline",{currentIndex:g,itemCount:a.length,margin:h,itemWidth:k,itemOpenWidth:l,lineMargin:0,lineViewCount:0,options:d,items:a,iholder:b,open:!1,noAnimation:!1,marginResponse:!1,
mousedown:!1,mousestartpos:0});d.hideTimeline||(e.timeline("createElements"),e.hasClass("timelineClean"));c(document).keydown(function(a){if(37==a.keyCode)return e.timeline("left"),!1;if(39==a.keyCode)return e.timeline("right"),!1});c(document).ready(function(){e.find(d.itemClass).css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"}).find("img").on("dragstart",function(a){c(this).hasClass("timeline_rollover_bottom")||
a.preventDefault()});c(".image_rollover_bottom").on("dragstart",function(a){c(this).addClass("disableClick");a.preventDefault()});c(".image_rollover_bottom").on("mousedown",function(a){c(this).is("hover")||c(this).removeClass("disableClick")});c(".image_rollover_bottom").on("click",function(a){c(this).hasClass("disableClick")&&(a.preventDefault(),a.stopPropagation());c(this).removeClass("disableClick")})});c(window).resize(function(){var b=e.data("timeline"),g=a.eq(b.currentIndex).attr("data-id");
k=a.first().width();l=f.first().find("div:first").width();b.margin+=b.itemCount*(b.itemWidth-k);b.itemWidth=k;b.open&&(b.margin+=(b.itemOpenWidth-l)/2);b.itemOpenWidth=l;767>c("body").width()&&b.open&&!b.marginResponse?(b.margin-=(k+d.itemMargin)/2,b.marginResponse=!0):767<=c("body").width()&&b.marginResponse&&b.open&&(b.margin+=(k+d.itemMargin)/2,b.marginResponse=!1);b.noAnimation=!0;e.timeline("goTo",g)});e.find(".t_left").click(function(){e.timeline("left")});e.find(".t_right").click(function(){e.timeline("right")});
d.swipeOn&&(a.find("*").each(function(){c(this).css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"})}),e.bind("touchstart",function(a){e.timeline("touchStart",a)}),e.find(d.itemClass).mousedown(function(a){e.timeline("mouseDown",a.pageX)}),c(document).bind("touchend",function(a){n=e.data("timeline");e.timeline("touchEnd",n.touchpos)}),c(document).mouseup(function(a){e.data("timeline").mousedown&&
e.timeline("mouseUp",a.pageX)}));e.find(d.openTriggerClass).click(function(){e.timeline("goTo",c(this).attr("data-id"),c(this).attr("data-count"),!0)});e.find(".t_close").click(function(){e.timeline("close",c(this).attr("data-id"),c(this).attr("data-count"))});e.css({height:"auto"}).show();e.prev(".timelineLoader").hide();e.find(".t_line_node").each(function(){10>c(this).width()&&c(this).width(12);c(this).css({marginLeft:-c(this).width()/2})});return e},destroy:function(){c(document).unbind("mouseup");
c(window).unbind("resize");this.data("timeline");this.removeData("timeline")},touchStart:function(b){var d=this.data("timeline"),c=0;d.xpos=b.originalEvent.touches[0].pageX;d.ypos=b.originalEvent.touches[0].pageY;d.mousedown=!0;d.touchHorizontal=!1;d.mousestartpos=d.xpos;this.unbind("touchmove");this.bind("touchmove",function(a){var b=a.originalEvent.touches[0].pageX,k=a.originalEvent.touches[0].pageY;d.mousedown&&!d.touchHorizontal?Math.abs(b-d.xpos)>Math.abs(k-d.ypos)&&(d.touchHorizontal=!0):d.touchHorizontal&&
(a.preventDefault(),d.touchpos=a.originalEvent.touches[0].pageX,c=d.margin-d.xpos+a.originalEvent.touches[0].pageX,d.iholder.css("marginLeft",c+"px"));d.mousedown=!1})},mouseDown:function(b){var d=this.data("timeline"),e=0;d.mousedown=!0;d.mousestartpos=b;c("body").css("cursor","move");c(document).mousemove(function(a){e=d.margin-b+a.pageX;d.iholder.css("marginLeft",e+"px")})},touchEnd:function(b){var d=this.data("timeline"),c=d.itemWidth+d.options.itemMargin,a=d.currentIndex,f=0;b-=d.mousestartpos;
"undefined"!=typeof d.touchHorizontal&&d.touchHorizontal&&(d.touchHorizontal=!1,a-=parseInt(b/c),f=b%c,0>b&&f<-c/2&&a++,0<b&&f>c/2&&a--,0>a&&(a=0),a>=d.itemCount&&(a=d.itemCount-1),this.timeline("goTo",d.items.eq(a).attr("data-id"),d.items.eq(a).attr("data-count")),d.options.closeItemOnTransition&&this.timeline("close",d.items.eq(a).attr("data-id")))},mouseUp:function(b){var d=this.data("timeline"),e=d.itemWidth+d.options.itemMargin,a=d.currentIndex,f=0;b-=d.mousestartpos;d.mousedown=!1;c(document).unbind("mousemove");
c("body").css("cursor","auto");a-=parseInt(b/e);f=b%e;0>b&&f<-e/2&&a++;0<b&&f>e/2&&a--;0>a&&(a=0);a>=d.itemCount&&(a=d.itemCount-1);this.timeline("goTo",d.items.eq(a).attr("data-id"),d.items.eq(a).attr("data-count"));d.options.closeItemOnTransition&&this.timeline("close",d.items.eq(a).attr("data-id"))},open:function(b,d){var e=this,a=e.data("timeline"),f=e.find(a.options.itemOpenClass),k=a.options.scrollSpeed,l=a.itemOpenWidth,g=a.options.easin,h=a.options.itemMargin;f.each(function(){if(c(this).attr("data-id")==
b&&(!d||d==c(this).attr("data-count"))){var f=c(this);e.trigger("itemOpen.Timeline");c(this).stop(!0).show().animate({width:l,marginLeft:h/2,marginRight:h/2},k,g);if("undefined"!=typeof c(this).attr("data-access")&&""!=c(this).attr("data-access")){var n=c(this).attr("data-access");c.get(n,function(a){c("body").append('\x3cdiv class\x3d"ajax_preloading_holder" style\x3d"display:none"\x3e\x3c/div\x3e');c(".ajax_preloading_holder").html(a);if(0<c(".ajax_preloading_holder img").length)c(".ajax_preloading_holder img").load(function(){f.find(".item_open_content").html(a);
c(".ajax_preloading_holder").remove();c(this).attr("data-access","");var b=jQuery.Event("ajaxLoaded.timeline");b.element=f.find(".item_open_content");c("body").trigger(b);e.trigger(b)});else{f.find(".item_open_content").html(a);c(".ajax_preloading_holder").remove();c(this).attr("data-access","");var b=jQuery.Event("ajaxLoaded.timeline");b.element=f.find(".item_open_content");c("body").trigger(b);e.trigger(b)}},"text").fail(function(){a='\x3cdiv class\x3d"timeline_open_content"\x3e\x3ch2 class\x3d"no-marg-top"\x3e'+
a.options.ajaxFailMessage+"\x3c/h2\x3e\x3c/div\x3e";f.find(".item_open_content").html(a);c(".ajax_preloading_holder").remove();var b=jQuery.Event("ajaxLoaded.timeline");b.element=f.find(".item_open_content");c("body").trigger(b);e.trigger(b)})}767>c("body").width()?(a.margin-=(a.itemWidth+a.options.itemMargin)/2,a.marginResponse=!0):a.marginResponse=!1;a.margin-=(l+a.options.itemMargin+a.itemWidth)/2-a.itemWidth/2;a.iholder.stop(!0).animate({marginLeft:a.margin},k,g);a.open=b}});return e},close:function(b,
d,e){var a=this,f=a.data("timeline"),k=a.find(f.options.itemOpenClass),l=f.options.scrollSpeed,g=f.itemOpenWidth,h=f.options.easing;k.each(function(){c(this).attr("data-id")==b&&c(this).is(":visible")&&(a.trigger("itemClose.Timeline"),c(this).stop(!0).animate({width:0,margin:0},l,h,function(){c(this).hide()}),f.marginResponse&&(f.margin+=(f.itemWidth+f.options.itemMargin)/2),f.margin+=(g+f.options.itemMargin)/2,f.iholder.stop(!0).animate({marginLeft:f.margin},l,h),f.open=!1)});d&&a.timeline("open",
d,e);return a},right:function(){var b=this.data("timeline"),d=b.options.scrollSpeed,c=b.options.easing;b.currentIndex<b.itemCount-1?(d=b.items.eq(b.currentIndex+1).attr("data-id"),c=b.items.eq(b.currentIndex+1).attr("data-count"),this.timeline("goTo",d,c),b.options.closeItemOnTransition&&this.timeline("close",d)):b.iholder.stop(!0).animate({marginLeft:b.margin-50},d/2,c).animate({marginLeft:b.margin},d/2,c);return this},left:function(){var b=this.data("timeline"),d=b.options.scrollSpeed,c=b.options.easing;
0<b.currentIndex?(d=b.items.eq(b.currentIndex-1).attr("data-id"),c=b.items.eq(b.currentIndex-1).attr("data-count"),this.timeline("goTo",d,c),b.options.closeItemOnTransition&&this.timeline("close",d)):b.iholder.stop(!0).animate({marginLeft:b.margin+50},d/2,c).animate({marginLeft:b.margin},d/2,c);return this},goTo:function(b,d,e){var a=this,f=a.data("timeline"),k=f.options.scrollSpeed,l=f.options.easing,g=f.items;a.find(".timeline_line").width();var h=-1,m=!1;g.each(function(a){if(b==c(this).attr("data-id")&&
(!d||d==c(this).attr("data-count")))return m=!0,h=a,!1});m&&(g=a.find(".t_line_node"),g.removeClass("active"),g=g.parent().parent().find('[href\x3d"#'+b+'"]').addClass("active"),f.lineMargin=100*-parseInt(g.parent().parent().attr("data-id"),10),a.find(".t_line_view:first").width()>a.find(".timeline_line").width()&&(f.lineMargin*=2,g.parent().hasClass("right")&&(f.lineMargin-=100)),f.noAnimation?(f.noAnimation=!1,a.find(".t_line_wrapper").stop(!0).css({marginLeft:f.lineMargin+"%"})):a.find(".t_line_wrapper").stop(!0).animate({marginLeft:f.lineMargin+
"%"},k,l),f.open?a.timeline("close",f.open,b,d):e&&a.timeline("open",b,d),a.trigger("scrollStart.Timeline"),f.margin+=(f.itemWidth+f.options.itemMargin)*(f.currentIndex-h),f.currentIndex=h,e=(parseInt(f.iholder.css("margin-left"))-f.margin)/f.itemWidth,f.iholder.stop(!0).animate({marginLeft:f.margin},k+k/5*(Math.abs(e)-1),l,function(){a.trigger("scrollStop.Timeline")}));return a},lineLeft:function(){var b=this.data("timeline"),d=b.options.scrollSpeed,c=b.options.easing;0!=b.lineMargin&&b.options.categories&&
(b.lineMargin+=100,this.find(".t_line_wrapper").stop(!0).animate({marginLeft:b.lineMargin+"%"},d,c))},lineRight:function(){var b=this.data("timeline"),d=b.options.scrollSpeed,c=b.options.easing,a=this.find(".t_line_view:first").width()>this.find(".timeline_line").width()?2*b.lineViewCount:b.lineViewCount;b.lineMargin!=100*-(a-1)&&b.options.categories&&(b.lineMargin-=100,this.find(".t_line_wrapper").stop(!0).animate({marginLeft:b.lineMargin+"%"},d,c))},createElements:function(){var b=this,d=b.data("timeline"),
e=d.items,a;b.prepend('\n    \x3cdiv class\x3d"timeline_line" style\x3d"text-align: left; position:relative; margin-left:auto; margin-right:auto;"\x3e\n\t \x3c/div\x3e\n');b.find(".timeline_line").width();var f=[],k=[""].concat(d.options.categories);monthsDays=[0].concat(d.options.nuberOfSegments);minM=k.length;minY=99999;maxY=maxM=0;d.options.yearsOn||(maxY=99999);var l={};d.options.categories||(e.each(function(){var a=c(this).attr("data-id").split("/"),b=parseInt(a[0],10);-1!=c.inArray(a[1],k)?
c.inArray(a[1],k):parseInt(a[1],10);parseInt(a[2],10);b<minY&&(minY=b);b>maxY&&(maxY=b)}),minY-=10,maxY+=10);e.each(function(a){var b=c(this).attr("data-id"),e=c(this).attr("data-name"),g=c(this).attr("data-description"),h=b.split("/"),m=parseInt(h[0],10),n=-1!=c.inArray(h[1],k)?c.inArray(h[1],k):parseInt(h[1],10),h=parseInt(h[2],10);"undefined"==typeof l[h]&&(l[h]={});"undefined"==typeof l[h][n]&&(l[h][n]={});l[h][n][m]=b;f[b]='\x3ca href\x3d"#'+b+'" class\x3d"t_line_node'+(a==d.currentIndex?" active":
"")+'" style\x3d"left: '+(d.options.categories?100/monthsDays[n]*m:100/(maxY-minY)*(m-minY))+'%; position:absolute; text-align:center;"\x3e'+("undefined"!=typeof e?e:m);"undefined"!=typeof g&&(f[b]+='\x3cspan class\x3d"t_node_desc" style\x3d"white-space:nowrap; position:absolute; z-index: 1;"\x3e\x3cspan\x3e'+g+"\x3c/span\x3e\x3c/span\x3e");f[b]+="\x3c/a\x3e\n"});a='\n\t\t\x3cdiv id\x3d"t_line_left" style\x3d"position: absolute;"\x3e\x3c/div\x3e\x3cdiv id\x3d"t_line_right" style\x3d"position: absolute;"\x3e\x3c/div\x3e\n\t\t\x3cdiv class\x3d"t_line_holder" style\x3d"position:relative; overflow: hidden; width:100%;"\x3e\n\t\t\t\x3cdiv class\x3d"t_line_wrapper" style\x3d"white-space:nowrap;"\x3e\n';
if(d.options.categories){var g=!0,h=0,m;for(m in l)for(var n in l[m])if(g){g=!g;a+='\x3cdiv class\x3d"t_line_view" data-id\x3d"'+h+'" style\x3d"position:relative; display:inline-block;"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"t_line_m" style\x3d"position:absolute; top:0;"\x3e\n\t\t\t\t\t\t\x3ch4 class\x3d"t_line_month" style\x3d"position:abolute; width:100% top:0; text-align:center;"\x3e'+k[n]+(d.options.yearsOn?'\x3cspan class\x3d"t_line_month_year"\x3e '+(0>m?-m+" B.C.":m)+"\x3c/span\x3e":"")+"\x3c/h4\x3e\n";
for(dy in l[m][n])a+=f[l[m][n][dy]];a+="\t\t\t\t\t\x3c/div\x3e \x3c!-- KRAJ PRVOG --\x3e\n"}else{g=!g;a+='\t\t\t\t\t\x3cdiv class\x3d"t_line_m right" style\x3d"position:absolute; top:0;"\x3e\n\t\t\t\t\t\t\x3ch4 class\x3d"t_line_month" style\x3d"position:abolute; width:100% top:0; text-align:center;"\x3e'+("undefined"!==typeof k[n]?k[n]:"")+(d.options.yearsOn?'\x3cspan class\x3d"t_line_month_year"\x3e '+m+"\x3c/span\x3e":"")+"\x3c/h4\x3e\n";for(dy in l[m][n])a+=f[l[m][n][dy]];a+='\t\t\t\t\t\x3c/div\x3e\x3c!-- KRAJ DRUGOG --\x3e\n\t\t\t\t\t\x3cdiv style\x3d"clear:both"\x3e\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e';
h++}g||(a+='\t\t\t\t\t\x3cdiv class\x3d"t_line_m right" style\x3d"position:absolute; top:0;"\x3e\n\t\t\t\t\t\t\x3ch4 class\x3d"t_line_month" style\x3d"position:abolute; width:100% top:0; text-align:center;"\x3e\x3c/h4\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3cdiv style\x3d"clear:both"\x3e\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e',h++)}else{a+='\x3cdiv class\x3d"t_line_view" data-id\x3d"'+h+'" style\x3d"position:relative; display:inline-block; width:100%;"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"t_line_m" style\x3d"width:100%; border:0; position:absolute; top:0;"\x3e\n';
for(g in f)a+=f[g];a+="\x3c/div\x3e\n\x3c/div\x3e"}a+='\n\t\t\t\t\x3cdiv style\x3d"clear:both"\x3e\x3c/div\x3e\n\t\t\t\x3c/div\x3e\n\t\t\x3c/div\x3e\n';d.lineViewCount=h;b.find(".timeline_line:first").html(a);b.find(".t_line_node").each(function(){var a=c(this);c(this).find("span").hide();c(this).hover(function(){e.each(function(){c(this).attr("data-id")==a.attr("href").substr(1)&&c(this).addClass("item_node_hover")});c(this).find("span").css("display","block")},function(){c(this).find("span").css("display",
"none");c(".item_node_hover").removeClass("item_node_hover")});c(this).hasClass("active")&&(d.lineMargin=100*-parseInt(c(this).parent().parent(".t_line_view").attr("data-id"),10),b.find(".t_line_wrapper").css("margin-left",d.lineMargin+"%"));c(this).click(function(a){a.preventDefault();b.find(".t_line_node").removeClass("active");c(this).addClass("active");b.timeline("goTo",c(this).attr("href").substr(1))})});b.find("#t_line_left").click(function(){b.timeline("lineLeft")});b.find("#t_line_right").click(function(){b.timeline("lineRight")})}};
c.fn.timeline=function(b){if(p[b])return p[b].apply(this,Array.prototype.slice.call(arguments,1));if("object"!==typeof b&&b)c.error("Method "+b+" does not exist on jQuery.timeline");else return p.init.apply(this,arguments)}})(jQuery);
jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,a,c,b,d){return jQuery.easing[jQuery.easing.def](e,a,c,b,d)},easeInQuad:function(e,a,c,b,d){return b*(a/=d)*a+c},easeOutQuad:function(e,a,c,b,d){return-b*(a/=d)*(a-2)+c},easeInOutQuad:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a+c:-b/2*(--a*(a-2)-1)+c},easeInCubic:function(e,a,c,b,d){return b*(a/=d)*a*a+c},easeOutCubic:function(e,a,c,b,d){return b*((a=a/d-1)*a*a+1)+c},easeInOutCubic:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a+c:
b/2*((a-=2)*a*a+2)+c},easeInQuart:function(e,a,c,b,d){return b*(a/=d)*a*a*a+c},easeOutQuart:function(e,a,c,b,d){return-b*((a=a/d-1)*a*a*a-1)+c},easeInOutQuart:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a*a+c:-b/2*((a-=2)*a*a*a-2)+c},easeInQuint:function(e,a,c,b,d){return b*(a/=d)*a*a*a*a+c},easeOutQuint:function(e,a,c,b,d){return b*((a=a/d-1)*a*a*a*a+1)+c},easeInOutQuint:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a*a*a+c:b/2*((a-=2)*a*a*a*a+2)+c},easeInSine:function(e,a,c,b,d){return-b*Math.cos(a/
d*(Math.PI/2))+b+c},easeOutSine:function(e,a,c,b,d){return b*Math.sin(a/d*(Math.PI/2))+c},easeInOutSine:function(e,a,c,b,d){return-b/2*(Math.cos(Math.PI*a/d)-1)+c},easeInExpo:function(e,a,c,b,d){return 0==a?c:b*Math.pow(2,10*(a/d-1))+c},easeOutExpo:function(e,a,c,b,d){return a==d?c+b:b*(-Math.pow(2,-10*a/d)+1)+c},easeInOutExpo:function(e,a,c,b,d){return 0==a?c:a==d?c+b:1>(a/=d/2)?b/2*Math.pow(2,10*(a-1))+c:b/2*(-Math.pow(2,-10*--a)+2)+c},easeInCirc:function(e,a,c,b,d){return-b*(Math.sqrt(1-(a/=d)*
a)-1)+c},easeOutCirc:function(e,a,c,b,d){return b*Math.sqrt(1-(a=a/d-1)*a)+c},easeInOutCirc:function(e,a,c,b,d){return 1>(a/=d/2)?-b/2*(Math.sqrt(1-a*a)-1)+c:b/2*(Math.sqrt(1-(a-=2)*a)+1)+c},easeInElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0==a)return c;if(1==(a/=d))return c+b;f||(f=.3*d);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return-(g*Math.pow(2,10*--a)*Math.sin(2*(a*d-e)*Math.PI/f))+c},easeOutElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0==a)return c;if(1==(a/=
d))return c+b;f||(f=.3*d);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return g*Math.pow(2,-10*a)*Math.sin(2*(a*d-e)*Math.PI/f)+b+c},easeInOutElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0==a)return c;if(2==(a/=d/2))return c+b;f||(f=.3*d*1.5);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return 1>a?-.5*g*Math.pow(2,10*--a)*Math.sin(2*(a*d-e)*Math.PI/f)+c:g*Math.pow(2,-10*--a)*Math.sin(2*(a*d-e)*Math.PI/f)*.5+b+c},easeInBack:function(e,a,c,b,d,f){void 0==f&&(f=1.70158);
return b*(a/=d)*a*((f+1)*a-f)+c},easeOutBack:function(e,a,c,b,d,f){void 0==f&&(f=1.70158);return b*((a=a/d-1)*a*((f+1)*a+f)+1)+c},easeInOutBack:function(e,a,c,b,d,f){void 0==f&&(f=1.70158);return 1>(a/=d/2)?b/2*a*a*(((f*=1.525)+1)*a-f)+c:b/2*((a-=2)*a*(((f*=1.525)+1)*a+f)+2)+c},easeInBounce:function(e,a,c,b,d){return b-jQuery.easing.easeOutBounce(e,d-a,0,b,d)+c},easeOutBounce:function(e,a,c,b,d){return(a/=d)<1/2.75?7.5625*b*a*a+c:a<2/2.75?b*(7.5625*(a-=1.5/2.75)*a+.75)+c:a<2.5/2.75?b*(7.5625*(a-=
2.25/2.75)*a+.9375)+c:b*(7.5625*(a-=2.625/2.75)*a+.984375)+c},easeInOutBounce:function(e,a,c,b,d){return a<d/2?.5*jQuery.easing.easeInBounce(e,2*a,0,b,d)+c:.5*jQuery.easing.easeOutBounce(e,2*a-d,0,b,d)+.5*b+c}});
(function(c){var p={init:function(b){var d=c.extend({itemClass:".item",itemOpenClass:".item_open",openTriggerClass:".item",closeText:"Close",itemMargin:10,scrollSpeed:500,startItem:"last",easing:"easeOutSine",categories:"January February March April May June July August September October November December".split(" "),nuberOfSegments:[31,29,31,30,31,30,31,31,30,31,30,31],yearsOn:!0,swipeOn:!0,hideTimeline:!1,hideControles:!1,closeItemOnTransition:!1,ajaxFailMessage:"Ajax request has failed."},b),e=
this;c("body");var a=e.find(d.itemClass),f=e.find(d.itemOpenClass),k=a.first().width(),l=f.first().width();e.trigger("init.Timeline");var g=a.length-1;"first"==d.startItem?g=0:"last"==d.startItem?g=a.length-1:a.each(function(a){if(d.startItem==c(this).attr("data-id"))return g=a,!0});a.each(function(a){c(this).attr("data-count",a);c(this).next(d.itemOpenClass).attr("data-count",a);c(this).hasClass(d.openTriggerClass)||c(this).find(d.openTriggerClass).attr("data-count",a)});e.append('\x3cdiv style\x3d"clear:both"\x3e\x3c/div\x3e');
e.css({width:"100%",overflow:"hidden",marginLeft:"auto",marginRight:"auto","text-align":"center",height:0});e.wrapInner('\x3cdiv class\x3d"timeline_items" /\x3e');e.find(".timeline_items").css("text-align","left");"ontouchstart"in window&&e.addClass("timelineTouch");e.wrapInner('\x3cdiv class\x3d"timeline_items_holder" /\x3e');d.hideControles||e.append('\x3cdiv class\x3d"t_controles"\x3e\x3cdiv class\x3d"t_left"\x3e\x3c/div\x3e\x3cdiv class\x3d"t_right"\x3e\x3c/div\x3e\x3c/div\x3e');e.wrapInner('\x3cdiv class\x3d"timeline_items_wrapper" /\x3e');
e.find(".timeline_items_holder").css({width:"300px",marginLeft:"auto",marginRight:"auto"});a.css({paddingLeft:0,paddingRight:0,marginLeft:d.itemMargin/2,marginRight:d.itemMargin/2,"float":"left",position:"relative"});f.each(function(){c(this).prepend('\x3cdiv class\x3d"t_close" data-count\x3d"'+c(this).attr("data-count")+'" data-id\x3d"'+c(this).attr("data-id")+'"\x3e'+d.closeText+"\x3c/div\x3e");c(this).wrapInner('\x3cdiv class\x3d"'+d.itemOpenClass.substr(1)+'_cwrapper"  /\x3e').find("div:first").css({position:"relative"});
c(this).css({width:0,padding:0,margin:0,"float":"left",display:"none",position:"relative",overflow:"hidden"})});b=e.find(".timeline_items:first");e.find(".t_line_wrapper:first");var h=150-(k+d.itemMargin)*(.5+g),m=(k+d.itemMargin)*a.length+(l+d.itemMargin)+660,n=e.data("timeline");b.css({width:m,marginLeft:h});n||e.data("timeline",{currentIndex:g,itemCount:a.length,margin:h,itemWidth:k,itemOpenWidth:l,lineMargin:0,lineViewCount:0,options:d,items:a,iholder:b,open:!1,noAnimation:!1,marginResponse:!1,
mousedown:!1,mousestartpos:0});d.hideTimeline||(e.timeline("createElements"),e.hasClass("timelineClean"));c(document).keydown(function(a){if(37==a.keyCode)return e.timeline("left"),!1;if(39==a.keyCode)return e.timeline("right"),!1});c(document).ready(function(){e.find(d.itemClass).css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"}).find("img").on("dragstart",function(a){c(this).hasClass("timeline_rollover_bottom")||
a.preventDefault()});c(".image_rollover_bottom").on("dragstart",function(a){c(this).addClass("disableClick");a.preventDefault()});c(".image_rollover_bottom").on("mousedown",function(a){c(this).is("hover")||c(this).removeClass("disableClick")});c(".image_rollover_bottom").on("click",function(a){c(this).hasClass("disableClick")&&(a.preventDefault(),a.stopPropagation());c(this).removeClass("disableClick")})});c(window).resize(function(){var b=e.data("timeline"),g=a.eq(b.currentIndex).attr("data-id");
k=a.first().width();l=f.first().find("div:first").width();b.margin+=b.itemCount*(b.itemWidth-k);b.itemWidth=k;b.open&&(b.margin+=(b.itemOpenWidth-l)/2);b.itemOpenWidth=l;767>c("body").width()&&b.open&&!b.marginResponse?(b.margin-=(k+d.itemMargin)/2,b.marginResponse=!0):767<=c("body").width()&&b.marginResponse&&b.open&&(b.margin+=(k+d.itemMargin)/2,b.marginResponse=!1);b.noAnimation=!0;e.timeline("goTo",g)});e.find(".t_left").click(function(){e.timeline("left")});e.find(".t_right").click(function(){e.timeline("right")});
d.swipeOn&&(a.find("*").each(function(){c(this).css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"})}),e.bind("touchstart",function(a){e.timeline("touchStart",a)}),e.find(d.itemClass).mousedown(function(a){e.timeline("mouseDown",a.pageX)}),c(document).bind("touchend",function(a){n=e.data("timeline");e.timeline("touchEnd",n.touchpos)}),c(document).mouseup(function(a){e.data("timeline").mousedown&&
e.timeline("mouseUp",a.pageX)}));e.find(d.openTriggerClass).click(function(){e.timeline("goTo",c(this).attr("data-id"),c(this).attr("data-count"),!0)});e.find(".t_close").click(function(){e.timeline("close",c(this).attr("data-id"),c(this).attr("data-count"))});e.css({height:"auto"}).show();e.prev(".timelineLoader").hide();e.find(".t_line_node").each(function(){10>c(this).width()&&c(this).width(12);c(this).css({marginLeft:-c(this).width()/2})});return e},destroy:function(){c(document).unbind("mouseup");
c(window).unbind("resize");this.data("timeline");this.removeData("timeline")},touchStart:function(b){var d=this.data("timeline"),c=0;d.xpos=b.originalEvent.touches[0].pageX;d.ypos=b.originalEvent.touches[0].pageY;d.mousedown=!0;d.touchHorizontal=!1;d.mousestartpos=d.xpos;this.unbind("touchmove");this.bind("touchmove",function(a){var b=a.originalEvent.touches[0].pageX,k=a.originalEvent.touches[0].pageY;d.mousedown&&!d.touchHorizontal?Math.abs(b-d.xpos)>Math.abs(k-d.ypos)&&(d.touchHorizontal=!0):d.touchHorizontal&&
(a.preventDefault(),d.touchpos=a.originalEvent.touches[0].pageX,c=d.margin-d.xpos+a.originalEvent.touches[0].pageX,d.iholder.css("marginLeft",c+"px"));d.mousedown=!1})},mouseDown:function(b){var d=this.data("timeline"),e=0;d.mousedown=!0;d.mousestartpos=b;c("body").css("cursor","move");c(document).mousemove(function(a){e=d.margin-b+a.pageX;d.iholder.css("marginLeft",e+"px")})},touchEnd:function(b){var d=this.data("timeline"),c=d.itemWidth+d.options.itemMargin,a=d.currentIndex,f=0;b-=d.mousestartpos;
"undefined"!=typeof d.touchHorizontal&&d.touchHorizontal&&(d.touchHorizontal=!1,a-=parseInt(b/c),f=b%c,0>b&&f<-c/2&&a++,0<b&&f>c/2&&a--,0>a&&(a=0),a>=d.itemCount&&(a=d.itemCount-1),this.timeline("goTo",d.items.eq(a).attr("data-id"),d.items.eq(a).attr("data-count")),d.options.closeItemOnTransition&&this.timeline("close",d.items.eq(a).attr("data-id")))},mouseUp:function(b){var d=this.data("timeline"),e=d.itemWidth+d.options.itemMargin,a=d.currentIndex,f=0;b-=d.mousestartpos;d.mousedown=!1;c(document).unbind("mousemove");
c("body").css("cursor","auto");a-=parseInt(b/e);f=b%e;0>b&&f<-e/2&&a++;0<b&&f>e/2&&a--;0>a&&(a=0);a>=d.itemCount&&(a=d.itemCount-1);this.timeline("goTo",d.items.eq(a).attr("data-id"),d.items.eq(a).attr("data-count"));d.options.closeItemOnTransition&&this.timeline("close",d.items.eq(a).attr("data-id"))},open:function(b,d){var e=this,a=e.data("timeline"),f=e.find(a.options.itemOpenClass),k=a.options.scrollSpeed,l=a.itemOpenWidth,g=a.options.easin,h=a.options.itemMargin;f.each(function(){if(c(this).attr("data-id")==
b&&(!d||d==c(this).attr("data-count"))){var f=c(this);e.trigger("itemOpen.Timeline");c(this).stop(!0).show().animate({width:l,marginLeft:h/2,marginRight:h/2},k,g);if("undefined"!=typeof c(this).attr("data-access")&&""!=c(this).attr("data-access")){var n=c(this).attr("data-access");c.get(n,function(a){c("body").append('\x3cdiv class\x3d"ajax_preloading_holder" style\x3d"display:none"\x3e\x3c/div\x3e');c(".ajax_preloading_holder").html(a);if(0<c(".ajax_preloading_holder img").length)c(".ajax_preloading_holder img").load(function(){f.find(".item_open_content").html(a);
c(".ajax_preloading_holder").remove();c(this).attr("data-access","");var b=jQuery.Event("ajaxLoaded.timeline");b.element=f.find(".item_open_content");c("body").trigger(b);e.trigger(b)});else{f.find(".item_open_content").html(a);c(".ajax_preloading_holder").remove();c(this).attr("data-access","");var b=jQuery.Event("ajaxLoaded.timeline");b.element=f.find(".item_open_content");c("body").trigger(b);e.trigger(b)}},"text").fail(function(){a='\x3cdiv class\x3d"timeline_open_content"\x3e\x3ch2 class\x3d"no-marg-top"\x3e'+
a.options.ajaxFailMessage+"\x3c/h2\x3e\x3c/div\x3e";f.find(".item_open_content").html(a);c(".ajax_preloading_holder").remove();var b=jQuery.Event("ajaxLoaded.timeline");b.element=f.find(".item_open_content");c("body").trigger(b);e.trigger(b)})}767>c("body").width()?(a.margin-=(a.itemWidth+a.options.itemMargin)/2,a.marginResponse=!0):a.marginResponse=!1;a.margin-=(l+a.options.itemMargin+a.itemWidth)/2-a.itemWidth/2;a.iholder.stop(!0).animate({marginLeft:a.margin},k,g);a.open=b}});return e},close:function(b,
d,e){var a=this,f=a.data("timeline"),k=a.find(f.options.itemOpenClass),l=f.options.scrollSpeed,g=f.itemOpenWidth,h=f.options.easing;k.each(function(){c(this).attr("data-id")==b&&c(this).is(":visible")&&(a.trigger("itemClose.Timeline"),c(this).stop(!0).animate({width:0,margin:0},l,h,function(){c(this).hide()}),f.marginResponse&&(f.margin+=(f.itemWidth+f.options.itemMargin)/2),f.margin+=(g+f.options.itemMargin)/2,f.iholder.stop(!0).animate({marginLeft:f.margin},l,h),f.open=!1)});d&&a.timeline("open",
d,e);return a},right:function(){var b=this.data("timeline"),d=b.options.scrollSpeed,c=b.options.easing;b.currentIndex<b.itemCount-1?(d=b.items.eq(b.currentIndex+1).attr("data-id"),c=b.items.eq(b.currentIndex+1).attr("data-count"),this.timeline("goTo",d,c),b.options.closeItemOnTransition&&this.timeline("close",d)):b.iholder.stop(!0).animate({marginLeft:b.margin-50},d/2,c).animate({marginLeft:b.margin},d/2,c);return this},left:function(){var b=this.data("timeline"),d=b.options.scrollSpeed,c=b.options.easing;
0<b.currentIndex?(d=b.items.eq(b.currentIndex-1).attr("data-id"),c=b.items.eq(b.currentIndex-1).attr("data-count"),this.timeline("goTo",d,c),b.options.closeItemOnTransition&&this.timeline("close",d)):b.iholder.stop(!0).animate({marginLeft:b.margin+50},d/2,c).animate({marginLeft:b.margin},d/2,c);return this},goTo:function(b,d,e){var a=this,f=a.data("timeline"),k=f.options.scrollSpeed,l=f.options.easing,g=f.items;a.find(".timeline_line").width();var h=-1,m=!1;g.each(function(a){if(b==c(this).attr("data-id")&&
(!d||d==c(this).attr("data-count")))return m=!0,h=a,!1});m&&(g=a.find(".t_line_node"),g.removeClass("active"),g=g.parent().parent().find('[href\x3d"#'+b+'"]').addClass("active"),f.lineMargin=100*-parseInt(g.parent().parent().attr("data-id"),10),a.find(".t_line_view:first").width()>a.find(".timeline_line").width()&&(f.lineMargin*=2,g.parent().hasClass("right")&&(f.lineMargin-=100)),f.noAnimation?(f.noAnimation=!1,a.find(".t_line_wrapper").stop(!0).css({marginLeft:f.lineMargin+"%"})):a.find(".t_line_wrapper").stop(!0).animate({marginLeft:f.lineMargin+
"%"},k,l),f.open?a.timeline("close",f.open,b,d):e&&a.timeline("open",b,d),a.trigger("scrollStart.Timeline"),f.margin+=(f.itemWidth+f.options.itemMargin)*(f.currentIndex-h),f.currentIndex=h,e=(parseInt(f.iholder.css("margin-left"))-f.margin)/f.itemWidth,f.iholder.stop(!0).animate({marginLeft:f.margin},k+k/5*(Math.abs(e)-1),l,function(){a.trigger("scrollStop.Timeline")}));return a},lineLeft:function(){var b=this.data("timeline"),d=b.options.scrollSpeed,c=b.options.easing;0!=b.lineMargin&&b.options.categories&&
(b.lineMargin+=100,this.find(".t_line_wrapper").stop(!0).animate({marginLeft:b.lineMargin+"%"},d,c))},lineRight:function(){var b=this.data("timeline"),d=b.options.scrollSpeed,c=b.options.easing,a=this.find(".t_line_view:first").width()>this.find(".timeline_line").width()?2*b.lineViewCount:b.lineViewCount;b.lineMargin!=100*-(a-1)&&b.options.categories&&(b.lineMargin-=100,this.find(".t_line_wrapper").stop(!0).animate({marginLeft:b.lineMargin+"%"},d,c))},createElements:function(){var b=this,d=b.data("timeline"),
e=d.items,a;b.prepend('\n    \x3cdiv class\x3d"timeline_line" style\x3d"text-align: left; position:relative; margin-left:auto; margin-right:auto;"\x3e\n\t \x3c/div\x3e\n');b.find(".timeline_line").width();var f=[],k=[""].concat(d.options.categories);monthsDays=[0].concat(d.options.nuberOfSegments);minM=k.length;minY=99999;maxY=maxM=0;d.options.yearsOn||(maxY=99999);var l={};d.options.categories||(e.each(function(){var a=c(this).attr("data-id").split("/"),b=parseInt(a[0],10);-1!=c.inArray(a[1],k)?
c.inArray(a[1],k):parseInt(a[1],10);parseInt(a[2],10);b<minY&&(minY=b);b>maxY&&(maxY=b)}),minY-=10,maxY+=10);e.each(function(a){var b=c(this).attr("data-id"),e=c(this).attr("data-name"),g=c(this).attr("data-description"),h=b.split("/"),m=parseInt(h[0],10),n=-1!=c.inArray(h[1],k)?c.inArray(h[1],k):parseInt(h[1],10),h=parseInt(h[2],10);"undefined"==typeof l[h]&&(l[h]={});"undefined"==typeof l[h][n]&&(l[h][n]={});l[h][n][m]=b;f[b]='\x3ca href\x3d"#'+b+'" class\x3d"t_line_node'+(a==d.currentIndex?" active":
"")+'" style\x3d"left: '+(d.options.categories?100/monthsDays[n]*m:100/(maxY-minY)*(m-minY))+'%; position:absolute; text-align:center;"\x3e'+("undefined"!=typeof e?e:m);"undefined"!=typeof g&&(f[b]+='\x3cspan class\x3d"t_node_desc" style\x3d"white-space:nowrap; position:absolute; z-index: 1;"\x3e\x3cspan\x3e'+g+"\x3c/span\x3e\x3c/span\x3e");f[b]+="\x3c/a\x3e\n"});a='\n\t\t\x3cdiv id\x3d"t_line_left" style\x3d"position: absolute;"\x3e\x3c/div\x3e\x3cdiv id\x3d"t_line_right" style\x3d"position: absolute;"\x3e\x3c/div\x3e\n\t\t\x3cdiv class\x3d"t_line_holder" style\x3d"position:relative; overflow: hidden; width:100%;"\x3e\n\t\t\t\x3cdiv class\x3d"t_line_wrapper" style\x3d"white-space:nowrap;"\x3e\n';
if(d.options.categories){var g=!0,h=0,m;for(m in l)for(var n in l[m])if(g){g=!g;a+='\x3cdiv class\x3d"t_line_view" data-id\x3d"'+h+'" style\x3d"position:relative; display:inline-block;"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"t_line_m" style\x3d"position:absolute; top:0;"\x3e\n\t\t\t\t\t\t\x3ch4 class\x3d"t_line_month" style\x3d"position:abolute; width:100% top:0; text-align:center;"\x3e'+k[n]+(d.options.yearsOn?'\x3cspan class\x3d"t_line_month_year"\x3e '+(0>m?-m+" B.C.":m)+"\x3c/span\x3e":"")+"\x3c/h4\x3e\n";
for(dy in l[m][n])a+=f[l[m][n][dy]];a+="\t\t\t\t\t\x3c/div\x3e \x3c!-- KRAJ PRVOG --\x3e\n"}else{g=!g;a+='\t\t\t\t\t\x3cdiv class\x3d"t_line_m right" style\x3d"position:absolute; top:0;"\x3e\n\t\t\t\t\t\t\x3ch4 class\x3d"t_line_month" style\x3d"position:abolute; width:100% top:0; text-align:center;"\x3e'+("undefined"!==typeof k[n]?k[n]:"")+(d.options.yearsOn?'\x3cspan class\x3d"t_line_month_year"\x3e '+m+"\x3c/span\x3e":"")+"\x3c/h4\x3e\n";for(dy in l[m][n])a+=f[l[m][n][dy]];a+='\t\t\t\t\t\x3c/div\x3e\x3c!-- KRAJ DRUGOG --\x3e\n\t\t\t\t\t\x3cdiv style\x3d"clear:both"\x3e\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e';
h++}g||(a+='\t\t\t\t\t\x3cdiv class\x3d"t_line_m right" style\x3d"position:absolute; top:0;"\x3e\n\t\t\t\t\t\t\x3ch4 class\x3d"t_line_month" style\x3d"position:abolute; width:100% top:0; text-align:center;"\x3e\x3c/h4\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3cdiv style\x3d"clear:both"\x3e\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e',h++)}else{a+='\x3cdiv class\x3d"t_line_view" data-id\x3d"'+h+'" style\x3d"position:relative; display:inline-block; width:100%;"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"t_line_m" style\x3d"width:100%; border:0; position:absolute; top:0;"\x3e\n';
for(g in f)a+=f[g];a+="\x3c/div\x3e\n\x3c/div\x3e"}a+='\n\t\t\t\t\x3cdiv style\x3d"clear:both"\x3e\x3c/div\x3e\n\t\t\t\x3c/div\x3e\n\t\t\x3c/div\x3e\n';d.lineViewCount=h;b.find(".timeline_line:first").html(a);b.find(".t_line_node").each(function(){var a=c(this);c(this).find("span").hide();c(this).hover(function(){e.each(function(){c(this).attr("data-id")==a.attr("href").substr(1)&&c(this).addClass("item_node_hover")});c(this).find("span").css("display","block")},function(){c(this).find("span").css("display",
"none");c(".item_node_hover").removeClass("item_node_hover")});c(this).hasClass("active")&&(d.lineMargin=100*-parseInt(c(this).parent().parent(".t_line_view").attr("data-id"),10),b.find(".t_line_wrapper").css("margin-left",d.lineMargin+"%"));c(this).click(function(a){a.preventDefault();b.find(".t_line_node").removeClass("active");c(this).addClass("active");b.timeline("goTo",c(this).attr("href").substr(1))})});b.find("#t_line_left").click(function(){b.timeline("lineLeft")});b.find("#t_line_right").click(function(){b.timeline("lineRight")})}};
c.fn.timeline=function(b){if(p[b])return p[b].apply(this,Array.prototype.slice.call(arguments,1));if("object"!==typeof b&&b)c.error("Method "+b+" does not exist on jQuery.timeline");else return p.init.apply(this,arguments)}})(jQuery);
$(window).load(function(){connectImage()});function connectImage(){$(".image_rollover_top").unbind("hover").conRollover("top");$(".image_rollover_right").unbind("hover").conRollover("right");$(".image_rollover_bottom").unbind("hover").conRollover("bottom");$(".image_rollover_left").unbind("hover").conRollover("left")}
$.fn.conRollover=function(e){var a,c,b,d;$(this).append('\n\x3cdiv class\x3d"image_roll_glass"\x3e\x3c/div\x3e\x3cdiv class\x3d"image_roll_zoom"\x3e\x3c/div\x3e');switch(e){case "top":c=a="0";b="-100%";d="0";break;case "right":a="100%";d=b=c="0";break;case "bottom":c=a="0";b="100%";d="0";break;case "left":a="-100%",d=b=c="0"}$(this).find(".image_roll_zoom").css({left:a,top:b});$(this).hover(function(){$(this).find(".image_roll_zoom").stop(!0,!0).animate({left:c,top:d},200);$(this).find(".image_roll_glass").stop(!0,
!0).fadeIn(200)},function(){$(this).find(".image_roll_zoom").stop(!0).animate({left:a,top:b},200);$(this).find(".image_roll_glass").stop(!0,!0).fadeOut(200)})};
(function(){var a,k,l;a=jQuery;l=function(){function a(){this.fadeDuration=500;this.fitImagesInViewport=!0;this.resizeDuration=700;this.showImageNumberLabel=!0;this.wrapAround=!1}a.prototype.albumLabel=function(b,c){return"Image "+b+" of "+c};return a}();k=function(){function d(b){this.options=b;this.album=[];this.currentImageIndex=void 0;this.init()}d.prototype.init=function(){this.enable();return this.build()};d.prototype.enable=function(){var b=this;return a("body").on("click","a[rel^\x3dlightbox], area[rel^\x3dlightbox], a[data-lightbox], area[data-lightbox]",
function(c){b.start(a(c.currentTarget));return!1})};d.prototype.build=function(){var b=this;a("\x3cdiv id\x3d'lightboxOverlay' class\x3d'lightboxOverlay'\x3e\x3c/div\x3e\x3cdiv id\x3d'lightbox' class\x3d'lightbox'\x3e\x3cdiv class\x3d'lb-outerContainer'\x3e\x3cdiv class\x3d'lb-container'\x3e\x3cimg class\x3d'lb-image' src\x3d'' /\x3e\x3cdiv class\x3d'lb-nav'\x3e\x3ca class\x3d'lb-prev' href\x3d'' \x3e\x3c/a\x3e\x3ca class\x3d'lb-next' href\x3d'' \x3e\x3c/a\x3e\x3c/div\x3e\x3cdiv class\x3d'lb-loader'\x3e\x3ca class\x3d'lb-cancel'\x3e\x3c/a\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'lb-dataContainer'\x3e\x3cdiv class\x3d'lb-data'\x3e\x3cdiv class\x3d'lb-details'\x3e\x3cspan class\x3d'lb-caption'\x3e\x3c/span\x3e\x3cspan class\x3d'lb-number'\x3e\x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d'lb-closeContainer'\x3e\x3ca class\x3d'lb-close'\x3e\x3c/a\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e").appendTo(a("body"));
this.$lightbox=a("#lightbox");this.$overlay=a("#lightboxOverlay");this.$outerContainer=this.$lightbox.find(".lb-outerContainer");this.$container=this.$lightbox.find(".lb-container");this.containerTopPadding=parseInt(this.$container.css("padding-top"),10);this.containerRightPadding=parseInt(this.$container.css("padding-right"),10);this.containerBottomPadding=parseInt(this.$container.css("padding-bottom"),10);this.containerLeftPadding=parseInt(this.$container.css("padding-left"),10);this.$overlay.hide().on("click",
function(){b.end();return!1});this.$lightbox.hide().on("click",function(c){"lightbox"===a(c.target).attr("id")&&b.end();return!1});this.$outerContainer.on("click",function(c){"lightbox"===a(c.target).attr("id")&&b.end();return!1});this.$lightbox.find(".lb-prev").on("click",function(){0===b.currentImageIndex?b.changeImage(b.album.length-1):b.changeImage(b.currentImageIndex-1);return!1});this.$lightbox.find(".lb-next").on("click",function(){b.currentImageIndex===b.album.length-1?b.changeImage(0):b.changeImage(b.currentImageIndex+
1);return!1});return this.$lightbox.find(".lb-loader, .lb-close").on("click",function(){b.end();return!1})};d.prototype.start=function(b){var c,e,d,f,g,h;a(window).on("resize",this.sizeOverlay);a("select, object, embed").css({visibility:"hidden"});this.$overlay.width(a(document).width()).height(a(document).height()).fadeIn(this.options.fadeDuration);this.album=[];d=0;if(c=b.attr("data-lightbox"))for(h=a(b.prop("tagName")+'[data-lightbox\x3d"'+c+'"]'),e=f=0,g=h.length;f<g;e=++f)c=h[e],this.album.push({link:a(c).attr("href"),
title:a(c).attr("title")}),a(c).attr("href")===b.attr("href")&&(d=e);else if("lightbox"===b.attr("rel"))this.album.push({link:b.attr("href"),title:b.attr("title")});else for(h=a(b.prop("tagName")+'[rel\x3d"'+b.attr("rel")+'"]'),e=f=0,g=h.length;f<g;e=++f)c=h[e],this.album.push({link:a(c).attr("href"),title:a(c).attr("title")}),a(c).attr("href")===b.attr("href")&&(d=e);c=a(window);b=c.scrollTop()+c.height()/10;c=c.scrollLeft();this.$lightbox.css({top:b+"px",left:c+"px"}).fadeIn(this.options.fadeDuration);
this.changeImage(d)};d.prototype.changeImage=function(b){var c,e,d=this;this.disableKeyboardNav();c=this.$lightbox.find(".lb-image");this.sizeOverlay();this.$overlay.fadeIn(this.options.fadeDuration);a(".lb-loader").fadeIn("slow");this.$lightbox.find(".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption").hide();this.$outerContainer.addClass("animating");e=new Image;e.onload=function(){var f,g;c.attr("src",d.album[b].link);a(e);c.width(e.width);c.height(e.height);d.options.fitImagesInViewport&&
(f=a(window).width(),g=a(window).height(),f=f-d.containerLeftPadding-d.containerRightPadding-20,g=g-d.containerTopPadding-d.containerBottomPadding-110,e.width>f||e.height>g)&&(e.width/f>e.height/g?(g=f,f=parseInt(e.height/(e.width/g),10)):(f=g,g=parseInt(e.width/(e.height/f),10)),c.width(g),c.height(f));return d.sizeContainer(c.width(),c.height())};e.src=this.album[b].link;this.currentImageIndex=b};d.prototype.sizeOverlay=function(){return a("#lightboxOverlay").width(a(document).width()).height(a(document).height())};
d.prototype.sizeContainer=function(b,c){var a,d,f=this;this.$outerContainer.outerWidth();this.$outerContainer.outerHeight();d=b+this.containerLeftPadding+this.containerRightPadding;a=c+this.containerTopPadding+this.containerBottomPadding;this.$outerContainer.animate({width:d,height:a},this.options.resizeDuration,"swing");setTimeout(function(){f.$lightbox.find(".lb-dataContainer").width(d);f.$lightbox.find(".lb-prevLink").height(a);f.$lightbox.find(".lb-nextLink").height(a);f.showImage()},this.options.resizeDuration)};
d.prototype.showImage=function(){this.$lightbox.find(".lb-loader").hide();this.$lightbox.find(".lb-image").fadeIn("slow");this.updateNav();this.updateDetails();this.preloadNeighboringImages();this.enableKeyboardNav()};d.prototype.updateNav=function(){this.$lightbox.find(".lb-nav").show();1<this.album.length&&(this.options.wrapAround?this.$lightbox.find(".lb-prev, .lb-next").show():(0<this.currentImageIndex&&this.$lightbox.find(".lb-prev").show(),this.currentImageIndex<this.album.length-1&&this.$lightbox.find(".lb-next").show()))};
d.prototype.updateDetails=function(){var b=this;"undefined"!==typeof this.album[this.currentImageIndex].title&&""!==this.album[this.currentImageIndex].title&&this.$lightbox.find(".lb-caption").html(this.album[this.currentImageIndex].title).fadeIn("fast");1<this.album.length&&this.options.showImageNumberLabel?this.$lightbox.find(".lb-number").text(this.options.albumLabel(this.currentImageIndex+1,this.album.length)).fadeIn("fast"):this.$lightbox.find(".lb-number").hide();this.$outerContainer.removeClass("animating");
this.$lightbox.find(".lb-dataContainer").fadeIn(this.resizeDuration,function(){return b.sizeOverlay()})};d.prototype.preloadNeighboringImages=function(){var b;this.album.length>this.currentImageIndex+1&&(b=new Image,b.src=this.album[this.currentImageIndex+1].link);0<this.currentImageIndex&&(b=new Image,b.src=this.album[this.currentImageIndex-1].link)};d.prototype.enableKeyboardNav=function(){a(document).on("keyup.keyboard",a.proxy(this.keyboardAction,this))};d.prototype.disableKeyboardNav=function(){a(document).off(".keyboard")};
d.prototype.keyboardAction=function(b){var a;a=b.keyCode;b=String.fromCharCode(a).toLowerCase();27===a||b.match(/x|o|c/)?this.end():"p"===b||37===a?0!==this.currentImageIndex&&this.changeImage(this.currentImageIndex-1):"n"!==b&&39!==a||this.currentImageIndex===this.album.length-1||this.changeImage(this.currentImageIndex+1)};d.prototype.end=function(){this.disableKeyboardNav();a(window).off("resize",this.sizeOverlay);this.$lightbox.fadeOut(this.options.fadeDuration);this.$overlay.fadeOut(this.options.fadeDuration);
return a("select, object, embed").css({visibility:"visible"})};return d}();a(function(){var a;a=new l;return new k(a)})}).call(this);
(function(n,t,p){"function"==typeof define&&define.amd?define(["jquery"],function(A){return p(A,n,t),A.mobile}):p(n.jQuery,n,t)})(this,document,function(n,t,p,A){(function(a,l,c){var d={};a.mobile=a.extend({},{version:"1.2.0",ns:"",subPageUrlKey:"ui-page",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",focusClass:"ui-focus",ajaxEnabled:!0,hashListeningEnabled:!0,linkBindingEnabled:!0,defaultPageTransition:"fade",maxTransitionWidth:!1,minScrollBack:250,touchOverflowEnabled:!1,defaultDialogTransition:"pop",
pageLoadErrorMessage:"Error Loading Page",pageLoadErrorMessageTheme:"e",phonegapNavigationEnabled:!1,autoInitializePage:!0,pushStateEnabled:!0,ignoreContentEnabled:!1,orientationChangeEnabled:!0,buttonMarkup:{hoverDelay:200},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,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,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91},silentScroll:function(b){"number"!==a.type(b)&&(b=a.mobile.defaultHomeScroll);a.event.special.scrollstart.enabled=!1;setTimeout(function(){l.scrollTo(0,b);a(p).trigger("silentscroll",{x:0,y:b})},20);setTimeout(function(){a.event.special.scrollstart.enabled=!0},150)},nsNormalizeDict:d,nsNormalize:function(b){if(b)return d[b]||(d[b]=a.camelCase(a.mobile.ns+b))},getInheritedTheme:function(a,b){for(var e=a[0],c="",d=
/ui-(bar|body|overlay)-([a-z])\b/,m,v;e&&!((m=e.className||"")&&(v=d.exec(m))&&(c=v[2]));)e=e.parentNode;return c||b||"a"},closestPageData:function(a){return a.closest(':jqmData(role\x3d"page"), :jqmData(role\x3d"dialog")').data("page")},enhanceable:function(a){return this.haveParents(a,"enhance")},hijackable:function(a){return this.haveParents(a,"ajax")},haveParents:function(b,e){if(!a.mobile.ignoreContentEnabled)return b;for(var c=b.length,d=a(),q,m,v,r=0;r<c;r++){m=b.eq(r);v=!1;for(q=b[r];q;){if("false"===
(q.getAttribute?q.getAttribute("data-"+a.mobile.ns+e):"")){v=!0;break}q=q.parentNode}v||(d=d.add(m))}return d},getScreenHeight:function(){return l.innerHeight||a(l).height()}},a.mobile);a.fn.jqmData=function(b,e){var d;return"undefined"!=typeof b&&(b&&(b=a.mobile.nsNormalize(b)),2>arguments.length||e===c?d=this.data(b):d=this.data(b,e)),d};a.jqmData=function(b,e,c){var d;return"undefined"!=typeof e&&(d=a.data(b,e?a.mobile.nsNormalize(e):e,c)),d};a.fn.jqmRemoveData=function(b){return this.removeData(a.mobile.nsNormalize(b))};
a.jqmRemoveData=function(b,e){return a.removeData(b,a.mobile.nsNormalize(e))};a.fn.removeWithDependents=function(){a.removeWithDependents(this)};a.removeWithDependents=function(b){b=a(b);(b.jqmData("dependents")||a()).remove();b.remove()};a.fn.addDependents=function(b){a.addDependents(a(this),b)};a.addDependents=function(b,e){var c=a(b).jqmData("dependents")||a();a(b).jqmData("dependents",a.merge(c,e))};a.fn.getEncodedText=function(){return a("\x3cdiv/\x3e").text(a(this).text()).html()};a.fn.jqmEnhanceable=
function(){return a.mobile.enhanceable(this)};a.fn.jqmHijackable=function(){return a.mobile.hijackable(this)};var b=a.find,e=/:jqmData\(([^)]*)\)/g;a.find=function(c,d,f,h){return c=c.replace(e,"[data-"+(a.mobile.ns||"")+"$1]"),b.call(this,c,d,f,h)};a.extend(a.find,b);a.find.matches=function(b,e){return a.find(b,null,null,e)};a.find.matchesSelector=function(b,e){return 0<a.find(e,null,null,[b]).length}})(n,this);(function(a,l){var c=0,d=Array.prototype.slice,b=a.cleanData;a.cleanData=function(e){for(var c=
0,d;null!=(d=e[c]);c++)try{a(d).triggerHandler("remove")}catch(f){}b(e)};a.widget=function(b,c,d){var f,h,q,m,v=b.split(".")[0];b=b.split(".")[1];f=v+"-"+b;d||(d=c,c=a.Widget);a.expr[":"][f]=function(b){return!!a.data(b,f)};a[v]=a[v]||{};h=a[v][b];q=a[v][b]=function(a,b){if(!this._createWidget)return new q(a,b);arguments.length&&this._createWidget(a,b)};a.extend(q,h,{version:d.version,_proto:a.extend({},d),_childConstructors:[]});m=new c;m.options=a.widget.extend({},m.options);a.each(d,function(b,
e){a.isFunction(e)&&(d[b]=function(){var a=function(){return c.prototype[b].apply(this,arguments)},d=function(a){return c.prototype[b].apply(this,a)};return function(){var b=this._super,c=this._superApply,g;return this._super=a,this._superApply=d,g=e.apply(this,arguments),this._super=b,this._superApply=c,g}}())});q.prototype=a.widget.extend(m,{widgetEventPrefix:b},d,{constructor:q,namespace:v,widgetName:b,widgetBaseClass:f,widgetFullName:f});h?(a.each(h._childConstructors,function(b,e){var c=e.prototype;
a.widget(c.namespace+"."+c.widgetName,q,e._proto)}),delete h._childConstructors):c._childConstructors.push(q);a.widget.bridge(b,q)};a.widget.extend=function(b){for(var c=d.call(arguments,1),g=0,f=c.length,h,q;g<f;g++)for(h in c[g])q=c[g][h],c[g].hasOwnProperty(h)&&q!==l&&(b[h]=a.isPlainObject(q)?a.widget.extend({},b[h],q):q);return b};a.widget.bridge=function(b,c){var g=c.prototype.widgetFullName;a.fn[b]=function(f){var h="string"==typeof f,q=d.call(arguments,1),m=this;return f=!h&&q.length?a.widget.extend.apply(null,
[f].concat(q)):f,h?this.each(function(){var c,d=a.data(this,g);if(!d)return a.error("cannot call methods on "+b+" prior to initialization; attempted to call method '"+f+"'");if(!a.isFunction(d[f])||"_"===f.charAt(0))return a.error("no such method '"+f+"' for "+b+" widget instance");c=d[f].apply(d,q);if(c!==d&&c!==l)return m=c&&c.jquery?m.pushStack(c.get()):c,!1}):this.each(function(){var b=a.data(this,g);b?b.option(f||{})._init():new c(f,this)}),m}};a.Widget=function(a,b){};a.Widget._childConstructors=
[];a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"\x3cdiv\x3e",options:{disabled:!1,create:null},_createWidget:function(b,d){d=a(d||this.defaultElement||this)[0];this.element=a(d);this.uuid=c++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=a.widget.extend({},this.options,this._getCreateOptions(),b);this.bindings=a();this.hoverable=a();this.focusable=a();d!==this&&(a.data(d,this.widgetName,this),a.data(d,this.widgetFullName,this),this._on({remove:"destroy"}),
this.document=a(d.style?d.ownerDocument:d.document||d),this.window=a(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:a.noop,_getCreateEventData:a.noop,_create:a.noop,_init:a.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(a.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:a.noop,widget:function(){return this.element},option:function(b,c){var d=b,f,h,q;if(0===arguments.length)return a.widget.extend({},this.options);if("string"==typeof b)if(d={},f=b.split("."),b=f.shift(),f.length){h=d[b]=a.widget.extend({},this.options[b]);for(q=0;q<f.length-1;q++)h[f[q]]=h[f[q]]||{},h=h[f[q]];b=f.pop();if(c===l)return h[b]===
l?null:h[b];h[b]=c}else{if(c===l)return this.options[b]===l?null:this.options[b];d[b]=c}return this._setOptions(d),this},_setOptions:function(a){for(var b in a)this._setOption(b,a[b]);return this},_setOption:function(a,b){return this.options[a]=b,"disabled"===a&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!b).attr("aria-disabled",b),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(b,c){c?(b=a(b),this.bindings=this.bindings.add(b)):(c=b,b=this.element);var d=this;a.each(c,function(c,k){function q(){if(!0!==d.options.disabled&&!a(this).hasClass("ui-state-disabled"))return("string"==typeof k?d[k]:k).apply(d,arguments)}"string"!=typeof k&&(q.guid=k.guid=k.guid||q.guid||a.guid++);var m=c.match(/^(\w+)\s*(.*)$/),l=m[1]+d.eventNamespace;(m=m[2])?d.widget().delegate(m,l,q):b.bind(l,q)})},_off:function(a,b){b=
(b||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;a.unbind(b).undelegate(b)},_delay:function(a,b){var c=this;return setTimeout(function(){return("string"==typeof a?c[a]:a).apply(c,arguments)},b||0)},_hoverable:function(b){this.hoverable=this.hoverable.add(b);this._on(b,{mouseenter:function(b){a(b.currentTarget).addClass("ui-state-hover")},mouseleave:function(b){a(b.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(b){this.focusable=this.focusable.add(b);this._on(b,
{focusin:function(b){a(b.currentTarget).addClass("ui-state-focus")},focusout:function(b){a(b.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(b,c,d){var f,h=this.options[b];d=d||{};c=a.Event(c);c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();c.target=this.element[0];if(b=c.originalEvent)for(f in b)f in c||(c[f]=b[f]);return this.element.trigger(c,d),!(a.isFunction(h)&&!1===h.apply(this.element[0],[c].concat(d))||c.isDefaultPrevented())}};a.each({show:"fadeIn",
hide:"fadeOut"},function(b,c){a.Widget.prototype["_"+b]=function(d,f,h){"string"==typeof f&&(f={effect:f});var q,m=f?!0===f||"number"==typeof f?c:f.effect||c:b;f=f||{};"number"==typeof f&&(f={duration:f});q=!a.isEmptyObject(f);f.complete=h;f.delay&&d.delay(f.delay);q&&a.effects&&(a.effects.effect[m]||!1!==a.uiBackCompat&&a.effects[m])?d[b](f):m!==b&&d[m]?d[m](f.duration,f.easing,h):d.queue(function(c){a(this)[b]();h&&h.call(d[0]);c()})}});!1!==a.uiBackCompat&&(a.Widget.prototype._getCreateOptions=
function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]})})(n);(function(a,l){a.widget("mobile.widget",{_createWidget:function(){a.Widget.prototype._createWidget.apply(this,arguments);this._trigger("init")},_getCreateOptions:function(){var c=this.element,d={};return a.each(this.options,function(a){var e=c.jqmData(a.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}));e!==l&&(d[a]=e)}),d},enhanceWithin:function(c,d){this.enhance(a(this.options.initSelector,a(c)),d)},enhance:function(c,
d){var b,e,k=a(c),k=a.mobile.enhanceable(k);d&&k.length&&(b=a.mobile.closestPageData(k),e=b&&b.keepNativeSelector()||"",k=k.not(e));k[this.widgetName]()},raise:function(a){throw"Widget ["+this.widgetName+"]: "+a;}})})(n);(function(a,l){a.extend(a.mobile,{loadingMessageTextVisible:A,loadingMessageTheme:A,loadingMessage:A,showPageLoadingMsg:function(b,c,d){a.mobile.loading("show",b,c,d)},hidePageLoadingMsg:function(){a.mobile.loading("hide")},loading:function(){this.loaderWidget.loader.apply(this.loaderWidget,
arguments)}});var c=a("html"),d=a(l);a.widget("mobile.loader",{options:{theme:"a",textVisible:!1,html:"",text:"loading"},defaultHtml:"\x3cdiv class\x3d'ui-loader'\x3e\x3cspan class\x3d'ui-icon ui-icon-loading'\x3e\x3c/span\x3e\x3ch1\x3e\x3c/h1\x3e\x3c/div\x3e",fakeFixLoader:function(){var b=a("."+a.mobile.activeBtnClass).first();this.element.css({top:a.support.scrollTop&&d.scrollTop()+d.height()/2||b.length&&b.offset().top||100})},checkLoaderPosition:function(){var b=this.element.offset(),c=d.scrollTop(),
k=a.mobile.getScreenHeight();if(b.top<c||b.top-c>k)this.element.addClass("ui-loader-fakefix"),this.fakeFixLoader(),d.unbind("scroll",this.checkLoaderPosition).bind("scroll",this.fakeFixLoader)},resetHtml:function(){this.element.html(a(this.defaultHtml).html())},show:function(b,e,k){var g,f,h;this.resetHtml();"object"===a.type(b)?(h=a.extend({},this.options,b),b=h.theme||a.mobile.loadingMessageTheme):(h=this.options,b=b||a.mobile.loadingMessageTheme||h.theme);f=e||a.mobile.loadingMessage||h.text;c.addClass("ui-loading");
if(!1!==a.mobile.loadingMessage||h.html)a.mobile.loadingMessageTextVisible!==A?g=a.mobile.loadingMessageTextVisible:g=h.textVisible,this.element.attr("class","ui-loader ui-corner-all ui-body-"+b+" ui-loader-"+(g||e||b.text?"verbose":"default")+(h.textonly||k?" ui-loader-textonly":"")),h.html?this.element.html(h.html):this.element.find("h1").text(f),this.element.appendTo(a.mobile.pageContainer),this.checkLoaderPosition(),d.bind("scroll",a.proxy(this.checkLoaderPosition,this))},hide:function(){c.removeClass("ui-loading");
a.mobile.loadingMessage&&this.element.removeClass("ui-loader-fakefix");a(l).unbind("scroll",a.proxy(this.fakeFixLoader,this));a(l).unbind("scroll",a.proxy(this.checkLoaderPosition,this))}});d.bind("pagecontainercreate",function(){a.mobile.loaderWidget=a.mobile.loaderWidget||a(a.mobile.loader.prototype.defaultHtml).loader()})})(n,this);(function(a,l,c,d){function b(a){for(;a&&"undefined"!=typeof a.originalEvent;)a=a.originalEvent;return a}function e(b){for(var c={},d,e;b;){d=a.data(b,u);for(e in d)d[e]&&
(c[e]=c.hasVirtualBinding=!0);b=b.parentNode}return c}function k(){B&&(clearTimeout(B),B=0);B=setTimeout(function(){I=B=0;D.length=0;O=!1;H=!0},a.vmouse.resetTimerDuration)}function g(c,e,f){var g,k;if(!(k=f&&f[c])){if(f=!f)a:{for(f=e.target;f;){if((k=a.data(f,u))&&(!c||k[c]))break a;f=f.parentNode}f=null}k=f}if(k){g=e;f=g.type;var h,m;g=a.Event(g);g.type=c;c=g.originalEvent;k=a.event.props;-1<f.search(/^(mouse|click)/)&&(k=y);if(c)for(m=k.length,h;m;)h=k[--m],g[h]=c[h];-1<f.search(/mouse(down|up)|click/)&&
!g.which&&(g.which=1);if(-1!==f.search(/^touch/)&&(h=b(c),f=h.touches,h=h.changedTouches,c=f&&f.length?f[0]:h&&h.length?h[0]:d))for(f=0,k=z.length;f<k;f++)h=z[f],g[h]=c[h];a(e.target).trigger(g)}return g}function f(b){var c=a.data(b.target,x);O||I&&I===c||(c=g("v"+b.type,b))&&(c.isDefaultPrevented()&&b.preventDefault(),c.isPropagationStopped()&&b.stopPropagation(),c.isImmediatePropagationStopped()&&b.stopImmediatePropagation())}function h(c){var d=b(c).touches,f;d&&1===d.length&&(f=c.target,d=e(f),
d.hasVirtualBinding&&(I=S++,a.data(f,x,I),B&&(clearTimeout(B),B=0),E=H=!1,f=b(c).touches[0],t=f.pageX,G=f.pageY,g("vmouseover",c,d),g("vmousedown",c,d)))}function q(a){H||(E||g("vmousecancel",a,e(a.target)),E=!0,k())}function m(c){if(!H){var d=b(c).touches[0],f=E,h=a.vmouse.moveDistanceThreshold,m=e(c.target);(E=E||Math.abs(d.pageX-t)>h||Math.abs(d.pageY-G)>h)&&!f&&g("vmousecancel",c,m);g("vmousemove",c,m);k()}}function v(a){if(!H){H=!0;var c=e(a.target),d;g("vmouseup",a,c);if(!E){var f=g("vclick",
a,c);f&&f.isDefaultPrevented()&&(d=b(a).changedTouches[0],D.push({touchID:I,x:d.clientX,y:d.clientY}),O=!0)}g("vmouseout",a,c);E=!1;k()}}function r(b){b=a.data(b,u);var c;if(b)for(c in b)if(b[c])return!0;return!1}function p(){}function w(b){var c=b.substr(1);return{setup:function(d,e){r(this)||a.data(this,u,{});a.data(this,u)[b]=!0;n[b]=(n[b]||0)+1;1===n[b]&&K.bind(c,f);a(this).bind(c,p);P&&(n.touchstart=(n.touchstart||0)+1,1===n.touchstart&&K.bind("touchstart",h).bind("touchend",v).bind("touchmove",
m).bind("scroll",q))},teardown:function(d,e){--n[b];n[b]||K.unbind(c,f);P&&(--n.touchstart,n.touchstart||K.unbind("touchstart",h).unbind("touchmove",m).unbind("touchend",v).unbind("scroll",q));var g=a(this),k=a.data(this,u);k&&(k[b]=!1);g.unbind(c,p);r(this)||g.removeData(u)}}}var u="virtualMouseBindings",x="virtualTouchID";l="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" ");var z="clientX clientY pageX pageY screenX screenY".split(" "),y=a.event.props.concat(a.event.mouseHooks?
a.event.mouseHooks.props:[]),n={},B=0,t=0,G=0,E=!1,D=[],O=!1,H=!1,P="addEventListener"in c,K=a(c),S=1,I=0,Q;a.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(var L=0;L<l.length;L++)a.event.special[l[L]]=w(l[L]);P&&c.addEventListener("click",function(b){var c=D.length,d=b.target,e,f,g,k,h;if(c)for(e=b.clientX,f=b.clientY,Q=a.vmouse.clickDistanceThreshold,g=d;g;){for(k=0;k<c;k++)if(h=D[k],g===d&&Math.abs(h.x-e)<Q&&Math.abs(h.y-f)<Q||a.data(g,x)===h.touchID){b.preventDefault();
b.stopPropagation();return}g=g.parentNode}},!0)})(n,t,p);(function(a,l){var c={touch:"ontouchend"in p};a.mobile=a.mobile||{};a.mobile.support=a.mobile.support||{};a.extend(a.support,c);a.extend(a.mobile.support,c)})(n);(function(a,l,c){function d(b,c,d){var e=d.type;d.type=c;a.event.handle.call(b,d);d.type=e}a.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(b,c){a.fn[c]=function(a){return a?this.bind(c,a):this.trigger(c)};a.attrFn&&
(a.attrFn[c]=!0)});var b=(l=a.mobile.support.touch)?"touchstart":"mousedown",e=l?"touchend":"mouseup",k=l?"touchmove":"mousemove";a.event.special.scrollstart={enabled:!0,setup:function(){function b(a,g){e=g;d(c,e?"scrollstart":"scrollstop",a)}var c=this,e,k;a(c).bind("touchmove scroll",function(c){a.event.special.scrollstart.enabled&&(e||b(c,!0),clearTimeout(k),k=setTimeout(function(){b(c,!1)},50))})}};a.event.special.tap={tapholdThreshold:750,setup:function(){var b=this,c=a(b);c.bind("vmousedown",
function(e){function k(){clearTimeout(R)}function m(){k();c.unbind("vclick",l).unbind("vmouseup",k);a(p).unbind("vmousecancel",m)}function l(a){m();r===a.target&&d(b,"tap",a)}if(e.which&&1!==e.which)return!1;var r=e.target,R;c.bind("vmouseup",k).bind("vclick",l);a(p).bind("vmousecancel",m);R=setTimeout(function(){d(b,"taphold",a.Event("taphold",{target:r}))},a.event.special.tap.tapholdThreshold)})}};a.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1E3,horizontalDistanceThreshold:30,
verticalDistanceThreshold:75,setup:function(){var d=a(this);d.bind(b,function(b){function h(b){if(m){var c=b.originalEvent.touches?b.originalEvent.touches[0]:b;l={time:(new Date).getTime(),coords:[c.pageX,c.pageY]};Math.abs(m.coords[0]-l.coords[0])>a.event.special.swipe.scrollSupressionThreshold&&b.preventDefault()}}var q=b.originalEvent.touches?b.originalEvent.touches[0]:b,m={time:(new Date).getTime(),coords:[q.pageX,q.pageY],origin:a(b.target)},l;d.bind(k,h).one(e,function(b){d.unbind(k,h);m&&l&&
l.time-m.time<a.event.special.swipe.durationThreshold&&Math.abs(m.coords[0]-l.coords[0])>a.event.special.swipe.horizontalDistanceThreshold&&Math.abs(m.coords[1]-l.coords[1])<a.event.special.swipe.verticalDistanceThreshold&&m.origin.trigger("swipe").trigger(m.coords[0]>l.coords[0]?"swipeleft":"swiperight");m=l=c})})}};a.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(b,c){a.event.special[b]={setup:function(){a(this).bind(c,a.noop)}}})})(n,this);n.extend(n.support,
{orientation:"orientation"in t&&"onorientationchange"in t});(function(a){a.event.special.throttledresize={setup:function(){a(this).bind("resize",l)},teardown:function(){a(this).unbind("resize",l)}};var l=function(){b=(new Date).getTime();e=b-c;250<=e?(c=b,a(this).trigger("throttledresize")):(d&&clearTimeout(d),d=setTimeout(l,250-e))},c=0,d,b,e})(n);(function(a,l){function c(){var a=e();a!==k&&(k=a,d.trigger(b))}var d=a(l),b="orientationchange",e,k,g,f,h={0:!0,180:!0};a.support.orientation&&(g=l.innerWidth||
a(l).width(),f=l.innerHeight||a(l).height(),g=g>f&&50<g-f,f=h[l.orientation],g&&f||!g&&!f)&&(h={"-90":!0,90:!0});a.event.special.orientationchange=a.extend({},a.event.special.orientationchange,{setup:function(){if(a.support.orientation&&!a.event.special.orientationchange.disabled)return!1;k=e();d.bind("throttledresize",c)},teardown:function(){if(a.support.orientation&&!a.event.special.orientationchange.disabled)return!1;d.unbind("throttledresize",c)},add:function(a){var b=a.handler;a.handler=function(a){return a.orientation=
e(),b.apply(this,arguments)}}});a.event.special.orientationchange.orientation=e=function(){var b=!0,c=p.documentElement;return a.support.orientation?b=h[l.orientation]:b=c&&1.1>c.clientWidth/c.clientHeight,b?"portrait":"landscape"};a.fn[b]=function(a){return a?this.bind(b,a):this.trigger(b)};a.attrFn&&(a.attrFn[b]=!0)})(n,this);(function(a,l){a(t);var c=a("html");a.mobile.media=function(){var d={},b=a("\x3cdiv id\x3d'jquery-mediatest'\x3e\x3c/div\x3e"),e=a("\x3cbody\x3e").append(b);return function(a){if(!(a in
d)){var g=p.createElement("style"),f="@media "+a+" { #jquery-mediatest { position:absolute; } }";g.type="text/css";g.styleSheet?g.styleSheet.cssText=f:g.appendChild(p.createTextNode(f));c.prepend(e).prepend(g);d[a]="absolute"===b.css("position");e.add(g).remove()}return d[a]}}()})(n);(function(a,l){function c(a){var b=a.charAt(0).toUpperCase()+a.substr(1);a=(a+" "+k.join(b+" ")+b).split(" ");for(var c in a)if(e[a[c]]!==l)return!0}function d(a,b,c){var d=p.createElement("div"),e=function(a){return a.charAt(0).toUpperCase()+
a.substr(1)},f=function(c){var f="-"+c.charAt(0).toLowerCase()+c.substr(1)+"-"+a+": "+b+";";c=e(c)+e(a);d.setAttribute("style",f);!d.style[c]||(g=!0)};c=c?[c]:k;for(var g,h=0;h<c.length;h++)f(c[h]);return!!g}var b=a("\x3cbody\x3e").prependTo("html"),e=b[0].style,k=["Webkit","Moz","O"],g="palmGetResource"in t,f=t.opera,h=t.operamini&&"[object OperaMini]"==={}.toString.call(t.operamini),q=t.blackberry&&!c("-webkit-transform");a.extend(a.mobile,{browser:{}});a.mobile.browser.ie=function(){var a=3,b=
p.createElement("div"),c=b.all||[];do b.innerHTML="\x3c!--[if gt IE "+ ++a+"]\x3e\x3cbr\x3e\x3c![endif]--\x3e";while(c[0]);return 4<a?a:!a}();a.extend(a.support,{cssTransitions:"WebKitTransitionEvent"in t||d("transition","height 100ms linear")&&!f,pushState:"pushState"in history&&"replaceState"in history,mediaquery:a.mobile.media("only all"),cssPseudoElement:!!c("content"),touchOverflow:!!c("overflowScrolling"),cssTransform3d:d("perspective","10px","moz")||a.mobile.media("(-"+k.join("-transform-3d),(-")+
"-transform-3d),(transform-3d)"),boxShadow:!!c("boxShadow")&&!q,scrollTop:("pageXOffset"in t||"scrollTop"in p.documentElement||"scrollTop"in b[0])&&!g&&!h,dynamicBaseTag:function(){var c=location.protocol+"//"+location.host+location.pathname+"ui-dir/",d=a("head base"),e=null,f="",g,k;return d.length?f=d.attr("href"):d=e=a("\x3cbase\x3e",{href:c}).appendTo("head"),g=a("\x3ca href\x3d'testurl' /\x3e").prependTo(b),k=g[0].href,d[0].href=f||location.pathname,e&&e.remove(),0===k.indexOf(c)}(),cssPointerEvents:function(){var a=
p.createElement("x"),b=p.documentElement,c=t.getComputedStyle,d;return"pointerEvents"in a.style?(a.style.pointerEvents="auto",a.style.pointerEvents="x",b.appendChild(a),d=c&&"auto"===c(a,"").pointerEvents,b.removeChild(a),!!d):!1}(),boundingRect:"undefined"!=typeof p.createElement("div").getBoundingClientRect});b.remove();g=function(){var a=t.navigator.userAgent;return-1<a.indexOf("Nokia")&&(-1<a.indexOf("Symbian/3")||-1<a.indexOf("Series60/5"))&&-1<a.indexOf("AppleWebKit")&&a.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/)}();
a.mobile.gradeA=function(){return(a.support.mediaquery||a.mobile.browser.ie&&7<=a.mobile.browser.ie)&&(a.support.boundingRect||null!==a.fn.jquery.match(/1\.[0-7+]\.[0-9+]?/))};a.mobile.ajaxBlacklist=t.blackberry&&!t.WebKitPoint||h||g;g&&a(function(){a("head link[rel\x3d'stylesheet']").attr("rel","alternate stylesheet").attr("rel","stylesheet")});a.support.boxShadow||a("html").addClass("ui-mobile-nosupport-boxshadow")})(n);(function(a,l){a.widget("mobile.page",a.mobile.widget,{options:{theme:"c",domCache:!1,
keepNativeDefault:":jqmData(role\x3d'none'), :jqmData(role\x3d'nojs')"},_create:function(){var a=this;if(!1===a._trigger("beforecreate"))return!1;a.element.attr("tabindex","0").addClass("ui-page ui-body-"+a.options.theme).bind("pagebeforehide",function(){a.removeContainerBackground()}).bind("pagebeforeshow",function(){a.setContainerBackground()})},removeContainerBackground:function(){a.mobile.pageContainer.removeClass("ui-overlay-"+a.mobile.getInheritedTheme(this.element.parent()))},setContainerBackground:function(c){this.options.theme&&
a.mobile.pageContainer.addClass("ui-overlay-"+(c||this.options.theme))},keepNativeSelector:function(){var c=this.options;return c.keepNative&&a.trim(c.keepNative)&&c.keepNative!==c.keepNativeDefault?[c.keepNative,c.keepNativeDefault].join(", "):c.keepNativeDefault}})})(n);(function(a,l,c){function d(a){return a=a||location.href,"#"+a.replace(/^[^#]*#?(.*)$/,"$1")}var b,e=a.event.special,k=p.documentMode,g="onhashchange"in l&&(k===c||7<k);a.fn.hashchange=function(a){return a?this.bind("hashchange",
a):this.trigger("hashchange")};a.fn.hashchange.delay=50;e.hashchange=a.extend(e.hashchange,{setup:function(){if(g)return!1;a(b.start)},teardown:function(){if(g)return!1;a(b.stop)}});b=function(){function b(){var c=d(),e=n(m);c!==m?(r(m=c,e),a(l).trigger("hashchange")):e!==m&&(location.href=location.href.replace(/#.*/,"")+e);k=setTimeout(b,a.fn.hashchange.delay)}var e={},k,m=d(),v=function(a){return a},r=v,n=v;return e.start=function(){k||b()},e.stop=function(){k&&clearTimeout(k);k=c},a.browser.msie&&
!g&&function(){var c,g;e.start=function(){c||(g=a.fn.hashchange.src,g=g&&g+d(),c=a('\x3ciframe tabindex\x3d"-1" title\x3d"empty"/\x3e').hide().one("load",function(){g||r(d());b()}).attr("src",g||"javascript:0").insertAfter("body")[0].contentWindow,p.onpropertychange=function(){try{"title"===event.propertyName&&(c.document.title=p.title)}catch(a){}})};e.stop=v;n=function(){return d(c.location.href)};r=function(b,d){var e=c.document,g=a.fn.hashchange.domain;b!==d&&(e.title=p.title,e.open(),g&&e.write('\x3cscript\x3edocument.domain\x3d"'+
g+'"\x3c/script\x3e'),e.close(),c.location.hash=b)}}(),e}()})(n,this);(function(a,l,c){var d=function(b){return b===c&&(b=!0),function(c,d,f,h){var q=new a.Deferred,m=d?" reverse":"",p=a.mobile.urlHistory.getActive().lastScroll||a.mobile.defaultHomeScroll,r=a.mobile.getScreenHeight(),n=!1!==a.mobile.maxTransitionWidth&&a(l).width()>a.mobile.maxTransitionWidth,w=!a.support.cssTransitions||n||!c||"none"===c||Math.max(a(l).scrollTop(),p)>a.mobile.getMaxScrollForTransition(),u=function(){a.mobile.pageContainer.toggleClass("ui-mobile-viewport-transitioning viewport-"+
c)},x=function(){a.event.special.scrollstart.enabled=!1;l.scrollTo(0,p);setTimeout(function(){a.event.special.scrollstart.enabled=!0},150)},z=function(){h.removeClass(a.mobile.activePageClass+" out in reverse "+c).height("")},n=function(){h&&b&&z();f.css("z-index",-10);f.addClass(a.mobile.activePageClass+" ui-page-pre-in");a.mobile.focusPage(f);f.height(r+p);x();f.css("z-index","");w||f.animationComplete(y);f.removeClass(" ui-page-pre-in").addClass(c+" in"+m);w&&y()},y=function(){b||h&&z();f.removeClass("out in reverse "+
c).height("");u();a(l).scrollTop()!==p&&x();q.resolve(c,d,f,h,!0)};u();h&&!w?(b?h.animationComplete(n):n(),h.height(r+a(l).scrollTop()).addClass(c+" out"+m)):n();return q.promise()}},b=d(),d=d(!1);a.mobile.defaultTransitionHandler=b;a.mobile.transitionHandlers={"default":a.mobile.defaultTransitionHandler,sequential:b,simultaneous:d};a.mobile.transitionFallbacks={};a.mobile._maybeDegradeTransition=function(b){return b&&!a.support.cssTransform3d&&a.mobile.transitionFallbacks[b]&&(b=a.mobile.transitionFallbacks[b]),
b};a.mobile.getMaxScrollForTransition=a.mobile.getMaxScrollForTransition||function(){return 3*a.mobile.getScreenHeight()}})(n,this);(function(a,l){function c(b){v&&(!v.closest("."+a.mobile.activePageClass).length||b)&&v.removeClass(a.mobile.activeBtnClass);v=null}function d(){w=!1;0<n.length&&a.mobile.changePage.apply(null,n.pop())}function b(b,c,d,e){c&&c.data("page")._trigger("beforehide",null,{nextPage:b});b.data("page")._trigger("beforeshow",null,{prevPage:c||a("")});a.mobile.hidePageLoadingMsg();
d=a.mobile._maybeDegradeTransition(d);d=(a.mobile.transitionHandlers[d||"default"]||a.mobile.defaultTransitionHandler)(d,e,b,c);return d.done(function(){c&&c.data("page")._trigger("hide",null,{nextPage:b});b.data("page")._trigger("show",null,{prevPage:c||a("")})}),d}function e(){var b=a("."+a.mobile.activePageClass),c=parseFloat(b.css("padding-top")),d=parseFloat(b.css("padding-bottom")),e=parseFloat(b.css("border-top-width")),g=parseFloat(b.css("border-bottom-width"));b.css("min-height",B()-c-d-
e-g)}function k(b,c){c&&b.attr("data-"+a.mobile.ns+"role",c);b.page()}function g(a){for(;a&&("string"!=typeof a.nodeName||"a"!==a.nodeName.toLowerCase());)a=a.parentNode;return a}function f(b){b=a(b).closest(".ui-page").jqmData("url");var c=y.hrefNoHash;b&&m.isPath(b)||(b=c);return m.makeUrlAbsolute(b,c)}var h=a(t);a("html");var q=a("head"),m={urlParseRE:/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,
getLocation:function(a){var b=a?this.parseUrl(a):location;a=this.parseUrl(a||location.href).hash;return a="#"===a?"":a,b.protocol+"//"+b.host+b.pathname+b.search+a},parseLocation:function(){return this.parseUrl(this.getLocation())},parseUrl:function(b){if("object"===a.type(b))return b;b=m.urlParseRE.exec(b||"")||[];return{href:b[0]||"",hrefNoHash:b[1]||"",hrefNoSearch:b[2]||"",domain:b[3]||"",protocol:b[4]||"",doubleSlash:b[5]||"",authority:b[6]||"",username:b[8]||"",password:b[9]||"",host:b[10]||
"",hostname:b[11]||"",port:b[12]||"",pathname:b[13]||"",directory:b[14]||"",filename:b[15]||"",search:b[16]||"",hash:b[17]||""}},makePathAbsolute:function(a,b){if(a&&"/"===a.charAt(0))return a;a=a||"";for(var c=(b=b?b.replace(/^\/|(\/[^\/]*|[^\/]+)$/g,""):"")?b.split("/"):[],d=a.split("/"),e=0;e<d.length;e++){var g=d[e];switch(g){case ".":break;case "..":c.length&&c.pop();break;default:c.push(g)}}return"/"+c.join("/")},isSameDomain:function(a,b){return m.parseUrl(a).domain===m.parseUrl(b).domain},
isRelativeUrl:function(a){return""===m.parseUrl(a).protocol},isAbsoluteUrl:function(a){return""!==m.parseUrl(a).protocol},makeUrlAbsolute:function(a,b){if(!m.isRelativeUrl(a))return a;b===l&&(b=y);var c=m.parseUrl(a),d=m.parseUrl(b),e=c.protocol||d.protocol,g=c.protocol?c.doubleSlash:c.doubleSlash||d.doubleSlash,f=c.authority||d.authority,k=""!==c.pathname,h=m.makePathAbsolute(c.pathname||d.filename,d.pathname);return e+g+f+h+(c.search||!k&&d.search||"")+c.hash},addSearchParams:function(b,c){var d=
m.parseUrl(b),e="object"==typeof c?a.param(c):c,g=d.search||"?";return d.hrefNoSearch+g+("?"!==g.charAt(g.length-1)?"\x26":"")+e+(d.hash||"")},convertUrlToDataUrl:function(a){var b=m.parseUrl(a);return m.isEmbeddedPage(b)?b.hash.split(u)[0].replace(/^#/,""):m.isSameDomain(b,y)?b.hrefNoHash.replace(y.domain,"").split(u)[0]:t.decodeURIComponent(a)},get:function(a){return a===l&&(a=m.parseLocation().hash),m.stripHash(a).replace(/[^\/]*\.[^\/*]+$/,"")},getFilePath:function(b){var c="\x26"+a.mobile.subPageUrlKey;
return b&&b.split(c)[0].split(u)[0]},set:function(a){location.hash=a},isPath:function(a){return/\//.test(a)},clean:function(a){return a.replace(y.domain,"")},stripHash:function(a){return a.replace(/^#/,"")},cleanHash:function(a){return m.stripHash(a.replace(/\?.*$/,"").replace(u,""))},isHashValid:function(a){return/^#[^#]+$/.test(a)},isExternal:function(a){a=m.parseUrl(a);return a.protocol&&a.domain!==z.domain?!0:!1},hasProtocol:function(a){return/^(:?\w+:)/.test(a)},isFirstPageUrl:function(b){b=
m.parseUrl(m.makeUrlAbsolute(b,y));var c=a.mobile.firstPage,c=c&&c[0]?c[0].id:l;return(b.hrefNoHash===z.hrefNoHash||F&&b.hrefNoHash===y.hrefNoHash)&&(!b.hash||"#"===b.hash||c&&b.hash.replace(/^#/,"")===c)},isEmbeddedPage:function(a){a=m.parseUrl(a);return""!==a.protocol?a.hash&&(a.hrefNoHash===z.hrefNoHash||F&&a.hrefNoHash===y.hrefNoHash):/^#/.test(a.href)},isPermittedCrossDomainRequest:function(b,c){return a.mobile.allowCrossDomainPages&&"file:"===b.protocol&&-1!==c.search(/^https?:/)}},v=null,r=
{stack:[],activeIndex:0,getActive:function(){return r.stack[r.activeIndex]},getPrev:function(){return r.stack[r.activeIndex-1]},getNext:function(){return r.stack[r.activeIndex+1]},addNew:function(a,b,c,d,e){r.getNext()&&r.clearForward();r.stack.push({url:a,transition:b,title:c,pageUrl:d,role:e});r.activeIndex=r.stack.length-1},clearForward:function(){r.stack=r.stack.slice(0,r.activeIndex+1)},directHashChange:function(b){var c,d,e;this.getActive();a.each(r.stack,function(a,g){decodeURIComponent(b.currentUrl)===
decodeURIComponent(g.url)&&(c=a<r.activeIndex,d=!c,e=a)});this.activeIndex=e!==l?e:this.activeIndex;c?(b.either||b.isBack)(!0):d&&(b.either||b.isForward)(!1)},ignoreNextHashChange:!1},n=[],w=!1,u="\x26ui-state\x3ddialog",x=q.children("base"),z=m.parseLocation(),y=x.length?m.parseUrl(m.makeUrlAbsolute(x.attr("href"),z.href)):z,F=z.hrefNoHash!==y.hrefNoHash,B=a.mobile.getScreenHeight,C=a.support.dynamicBaseTag?{element:x.length?x:a("\x3cbase\x3e",{href:y.hrefNoHash}).prependTo(q),set:function(a){C.element.attr("href",
m.makeUrlAbsolute(a,y))},reset:function(){C.element.attr("href",y.hrefNoHash)}}:l;a.mobile.back=function(){var a=t.navigator;this.phonegapNavigationEnabled&&a&&a.app&&a.app.backHistory?a.app.backHistory():t.history.back()};a.mobile.focusPage=function(a){var b=a.find("[autofocus]"),c=a.find(".ui-title:eq(0)");b.length?b.focus():c.length?c.focus():a.focus()};var G=!0,E,D;E=function(){if(G){var b=a.mobile.urlHistory.getActive();if(b){var c=h.scrollTop();b.lastScroll=c<a.mobile.minScrollBack?a.mobile.defaultHomeScroll:
c}}};D=function(){setTimeout(E,100)};h.bind(a.support.pushState?"popstate":"hashchange",function(){G=!1});h.one(a.support.pushState?"popstate":"hashchange",function(){G=!0});h.one("pagecontainercreate",function(){a.mobile.pageContainer.bind("pagechange",function(){G=!0;h.unbind("scrollstop",D);h.bind("scrollstop",D)})});h.bind("scrollstop",D);a.mobile._maybeDegradeTransition=a.mobile._maybeDegradeTransition||function(a){return a};a.fn.animationComplete=function(b){return a.support.cssTransitions?
a(this).one("webkitAnimationEnd animationend",b):(setTimeout(b,0),a(this))};a.mobile.path=m;a.mobile.base=C;a.mobile.urlHistory=r;a.mobile.dialogHashKey=u;a.mobile.allowCrossDomainPages=!1;a.mobile.getDocumentUrl=function(b){return b?a.extend({},z):z.href};a.mobile.getDocumentBase=function(b){return b?a.extend({},y):y.href};a.mobile._bindPageRemove=function(){var b=a(this);!b.data("page").options.domCache&&b.is(":jqmData(external-page\x3d'true')")&&b.bind("pagehide.remove",function(){var b=a(this),
c=new a.Event("pageremove");b.trigger(c);c.isDefaultPrevented()||b.removeWithDependents()})};a.mobile.loadPage=function(b,c){var d=a.Deferred(),e=a.extend({},a.mobile.loadPage.defaults,c),g=null,h=null,q=m.makeUrlAbsolute(b,a.mobile.activePage&&f(a.mobile.activePage)||y.hrefNoHash);e.data&&"get"===e.type&&(q=m.addSearchParams(q,e.data),e.data=l);e.data&&"post"===e.type&&(e.reloadPage=!0);var r=m.getFilePath(q),p=m.convertUrlToDataUrl(q);e.pageContainer=e.pageContainer||a.mobile.pageContainer;g=e.pageContainer.children("[data-"+
a.mobile.ns+"url\x3d'"+p+"']");0===g.length&&p&&!m.isPath(p)&&(g=e.pageContainer.children("#"+p).attr("data-"+a.mobile.ns+"url",p).jqmData("url",p));if(0===g.length)if(a.mobile.firstPage&&m.isFirstPageUrl(r))a.mobile.firstPage.parent().length&&(g=a(a.mobile.firstPage));else if(m.isEmbeddedPage(r))return d.reject(q,c),d.promise();if(g.length){if(!e.reloadPage)return k(g,e.role),d.resolve(q,c,g),d.promise();h=g}var v=e.pageContainer,n=new a.Event("pagebeforeload"),x={url:b,absUrl:q,dataUrl:p,deferred:d,
options:e};v.trigger(n,x);if(n.isDefaultPrevented())return d.promise();if(e.showLoadMsg)var u=setTimeout(function(){a.mobile.showPageLoadingMsg()},e.loadMsgDelay);return C&&C.reset(),a.mobile.allowCrossDomainPages||m.isSameDomain(z,q)?a.ajax({url:r,type:e.type,data:e.data,dataType:"html",success:function(f,l,v){var z=a("\x3cdiv\x3e\x3c/div\x3e"),n=f.match(/<title[^>]*>([^<]*)/)&&RegExp.$1,y=new RegExp("\\bdata-"+a.mobile.ns+"url\x3d[\"']?([^\"'\x3e]*)[\"']?");(new RegExp("(\x3c[^\x3e]+\\bdata-"+a.mobile.ns+
"role\x3d[\"']?page[\"']?[^\x3e]*\x3e)")).test(f)&&RegExp.$1&&y.test(RegExp.$1)&&RegExp.$1&&(b=r=m.getFilePath(a("\x3cdiv\x3e"+RegExp.$1+"\x3c/div\x3e").text()));C&&C.set(r);z.get(0).innerHTML=f;g=z.find(":jqmData(role\x3d'page'), :jqmData(role\x3d'dialog')").first();g.length||(g=a("\x3cdiv data-"+a.mobile.ns+"role\x3d'page'\x3e"+f.split(/<\/?body[^>]*>/gmi)[1]+"\x3c/div\x3e"));n&&!g.jqmData("title")&&(~n.indexOf("\x26")&&(n=a("\x3cdiv\x3e"+n+"\x3c/div\x3e").text()),g.jqmData("title",n));if(!a.support.dynamicBaseTag){var w=
m.get(r);g.find("[src], link[href], a[rel\x3d'external'], :jqmData(ajax\x3d'false'), a[target]").each(function(){var b=a(this).is("[href]")?"href":a(this).is("[src]")?"src":"action",c=a(this).attr(b),c=c.replace(location.protocol+"//"+location.host+location.pathname,"");/^(\w+:|#|\/)/.test(c)||a(this).attr(b,w+c)})}g.attr("data-"+a.mobile.ns+"url",m.convertUrlToDataUrl(r)).attr("data-"+a.mobile.ns+"external-page",!0).appendTo(e.pageContainer);g.one("pagecreate",a.mobile._bindPageRemove);k(g,e.role);
-1<q.indexOf("\x26"+a.mobile.subPageUrlKey)&&(g=e.pageContainer.children("[data-"+a.mobile.ns+"url\x3d'"+p+"']"));e.showLoadMsg&&(clearTimeout(u),a.mobile.hidePageLoadingMsg());x.xhr=v;x.textStatus=l;x.page=g;e.pageContainer.trigger("pageload",x);d.resolve(q,c,g,h)},error:function(b,g,f){C&&C.set(m.get());x.xhr=b;x.textStatus=g;x.errorThrown=f;b=new a.Event("pageloadfailed");e.pageContainer.trigger(b,x);b.isDefaultPrevented()||(e.showLoadMsg&&(clearTimeout(u),a.mobile.hidePageLoadingMsg(),a.mobile.showPageLoadingMsg(a.mobile.pageLoadErrorMessageTheme,
a.mobile.pageLoadErrorMessage,!0),setTimeout(a.mobile.hidePageLoadingMsg,1500)),d.reject(q,c))}}):d.reject(q,c),d.promise()};a.mobile.loadPage.defaults={type:"get",data:l,reloadPage:!1,role:l,showLoadMsg:!1,pageContainer:l,loadMsgDelay:50};a.mobile.changePage=function(e,g){if(w)n.unshift(arguments);else{var f=a.extend({},a.mobile.changePage.defaults,g);f.pageContainer=f.pageContainer||a.mobile.pageContainer;f.fromPage=f.fromPage||a.mobile.activePage;var h=f.pageContainer,q=new a.Event("pagebeforechange"),
v={toPage:e,options:f};h.trigger(q,v);if(!q.isDefaultPrevented())if(e=v.toPage,w=!0,"string"==typeof e)a.mobile.loadPage(e,f).done(function(b,c,d,e){w=!1;c.duplicateCachedPage=e;a.mobile.changePage(d,c)}).fail(function(a,b){w=!1;c(!0);d();f.pageContainer.trigger("pagechangefailed",v)});else{e[0]===a.mobile.firstPage[0]&&!f.dataUrl&&(f.dataUrl=z.hrefNoHash);var q=f.fromPage,x=f.dataUrl&&m.convertUrlToDataUrl(f.dataUrl)||e.jqmData("url"),y=x;m.getFilePath(x);var B=r.getActive(),t=0===r.activeIndex,
C=0,F=p.title,E="dialog"===f.role||"dialog"===e.jqmData("role");if(q&&q[0]===e[0]&&!f.allowSamePageTransition)w=!1,h.trigger("pagechange",v),f.fromHashChange&&r.directHashChange({currentUrl:x,isBack:function(){},isForward:function(){}});else{k(e,f.role);f.fromHashChange&&r.directHashChange({currentUrl:x,isBack:function(){C=-1},isForward:function(){C=1}});try{p.activeElement&&"body"!==p.activeElement.nodeName.toLowerCase()?a(p.activeElement).blur():a("input:focus, textarea:focus, select:focus").blur()}catch(G){}var D=
!1;E&&B&&(-1<B.url.indexOf(u)&&!a.mobile.activePage.is(".ui-dialog")&&(f.changeHash=!1,D=!0),x=(B.url||"")+(D?"":u),0===r.activeIndex&&x===r.initialDst&&(x+=u));!1!==f.changeHash&&x&&(r.ignoreNextHashChange=!0,m.set(x));var A=B?e.jqmData("title")||e.children(":jqmData(role\x3d'header')").find(".ui-title").getEncodedText():F;A&&F===p.title&&(F=A);e.jqmData("title")||e.jqmData("title",F);f.transition=f.transition||(C&&!t?B.transition:l)||(E?a.mobile.defaultDialogTransition:a.mobile.defaultPageTransition);
C||(D&&(r.activeIndex=Math.max(0,r.activeIndex-1)),r.addNew(x,f.transition,F,y,f.role));p.title=r.getActive().title;a.mobile.activePage=e;f.reverse=f.reverse||0>C;b(e,q,f.transition,f.reverse).done(function(b,g,k,m,l){c();f.duplicateCachedPage&&f.duplicateCachedPage.remove();l||a.mobile.focusPage(e);d();h.trigger("pagechange",v)})}}}};a.mobile.changePage.defaults={transition:l,reverse:!1,changeHash:!0,fromHashChange:!1,role:l,duplicateCachedPage:l,pageContainer:l,showLoadMsg:!0,dataUrl:l,fromPage:l,
allowSamePageTransition:!1};a.mobile.navreadyDeferred=a.Deferred();a.mobile.navreadyDeferred.done(function(){a(p).delegate("form","submit",function(b){var c=a(this);if(a.mobile.ajaxEnabled&&!c.is(":jqmData(ajax\x3d'false')")&&c.jqmHijackable().length){var d=c.attr("method"),e=c.attr("target"),g=c.attr("action");g||(g=f(c),g===y.hrefNoHash&&(g=z.hrefNoSearch));g=m.makeUrlAbsolute(g,f(c));m.isExternal(g)&&!m.isPermittedCrossDomainRequest(z,g)||e||(a.mobile.changePage(g,{type:d&&d.length&&d.toLowerCase()||
"get",data:c.serialize(),transition:c.jqmData("transition"),reverse:"reverse"===c.jqmData("direction"),reloadPage:!0}),b.preventDefault())}});a(p).bind("vclick",function(b){1<b.which||!a.mobile.linkBindingEnabled||(b=g(b.target),a(b).jqmHijackable().length&&b&&"#"!==m.parseUrl(b.getAttribute("href")||"#").hash&&(c(!0),v=a(b).closest(".ui-btn").not(".ui-disabled"),v.addClass(a.mobile.activeBtnClass)))});a(p).bind("click",function(b){if(a.mobile.linkBindingEnabled){var d=g(b.target),e=a(d),k;if(d&&
!(1<b.which)&&e.jqmHijackable().length){k=function(){t.setTimeout(function(){c(!0)},200)};if(e.is(":jqmData(rel\x3d'back')"))return a.mobile.back(),!1;var h=f(e),d=m.makeUrlAbsolute(e.attr("href")||"#",h);if(a.mobile.ajaxEnabled||m.isEmbeddedPage(d)){if(-1!==d.search("#")){d=d.replace(/[^#]*#/,"");if(!d){b.preventDefault();return}m.isPath(d)?d=m.makeUrlAbsolute(d,h):d=m.makeUrlAbsolute("#"+d,z.hrefNoHash)}if(e.is("[rel\x3d'external']")||e.is(":jqmData(ajax\x3d'false')")||e.is("[target]")||m.isExternal(d)&&
!m.isPermittedCrossDomainRequest(z,d))k();else{k=e.jqmData("transition");var h="reverse"===e.jqmData("direction")||e.jqmData("back"),q=e.attr("data-"+a.mobile.ns+"rel")||l;a.mobile.changePage(d,{transition:k,reverse:h,role:q,link:e});b.preventDefault()}}else k()}}});a(p).delegate(".ui-page","pageshow.prefetch",function(){var b=[];a(this).find("a:jqmData(prefetch)").each(function(){var c=a(this),d=c.attr("href");d&&-1===a.inArray(d,b)&&(b.push(d),a.mobile.loadPage(d,{role:c.attr("data-"+a.mobile.ns+
"rel")}))})});a.mobile._handleHashChange=function(b){var c=m.stripHash(b);b=0===a.mobile.urlHistory.stack.length?"none":l;var d=new a.Event("navigate"),e={transition:b,changeHash:!1,fromHashChange:!0};0===r.stack.length&&(r.initialDst=c);a.mobile.pageContainer.trigger(d);if(!d.isDefaultPrevented())if(!a.mobile.hashListeningEnabled||r.ignoreNextHashChange)r.ignoreNextHashChange=!1;else{if(1<r.stack.length&&-1<c.indexOf(u)&&r.initialDst!==c){if(!a.mobile.activePage.is(".ui-dialog")){r.directHashChange({currentUrl:c,
isBack:function(){a.mobile.back()},isForward:function(){t.history.forward()}});return}r.directHashChange({currentUrl:c,either:function(b){var d=a.mobile.urlHistory.getActive();c=d.pageUrl;a.extend(e,{role:d.role,transition:d.transition,reverse:b})}})}c?(c="string"!=typeof c||m.isPath(c)?c:m.makeUrlAbsolute("#"+c,y),c===m.makeUrlAbsolute("#"+r.initialDst,y)&&r.stack.length&&r.stack[0].url!==r.initialDst.replace(u,"")&&(c=a.mobile.firstPage),a.mobile.changePage(c,e)):a.mobile.changePage(a.mobile.firstPage,
e)}};h.bind("hashchange",function(b,c){a.mobile._handleHashChange(m.parseLocation().hash)});a(p).bind("pageshow",e);a(t).bind("throttledresize",e)})})(n);(function(a,l){var c={},d=a(l),b=a.mobile.path.parseLocation(),e=a.Deferred(),k=a.Deferred();a(p).ready(a.proxy(k,"resolve"));a(p).one("mobileinit",a.proxy(e,"resolve"));a.extend(c,{initialFilePath:b.pathname+b.search,hashChangeTimeout:200,hashChangeEnableTimer:A,initialHref:b.hrefNoHash,state:function(){return{hash:a.mobile.path.parseLocation().hash||
"#"+c.initialFilePath,title:p.title,initialHref:c.initialHref}},resetUIKeys:function(b){var c="\x26"+a.mobile.subPageUrlKey,d=b.indexOf(a.mobile.dialogHashKey);return-1<d?b=b.slice(0,d)+"#"+b.slice(d):-1<b.indexOf(c)&&(b=b.split(c).join("#"+c)),b},nextHashChangePrevented:function(b){a.mobile.urlHistory.ignoreNextHashChange=b;c.onHashChangeDisabled=b},onHashChange:function(b){if(!c.onHashChangeDisabled){var d;d=a.mobile.path.parseLocation().hash;var e=a.mobile.path.isPath(d),k=e?a.mobile.path.getLocation():
a.mobile.getDocumentUrl();d=e?d.replace("#",""):d;b=c.state();d=a.mobile.path.makeUrlAbsolute(d,k);e&&(d=c.resetUIKeys(d));history.replaceState(b,p.title,d)}},onPopState:function(b){(b=b.originalEvent.state)&&(clearTimeout(c.hashChangeEnableTimer),c.nextHashChangePrevented(!1),a.mobile._handleHashChange(b.hash),c.nextHashChangePrevented(!0),c.hashChangeEnableTimer=setTimeout(function(){c.nextHashChangePrevented(!1)},c.hashChangeTimeout))},init:function(){d.bind("hashchange",c.onHashChange);d.bind("popstate",
c.onPopState);""===location.hash&&history.replaceState(c.state(),p.title,a.mobile.path.getLocation())}});a.when(k,e,a.mobile.navreadyDeferred).done(function(){a.mobile.pushStateEnabled&&a.support.pushState&&c.init()})})(n,this);n.mobile.transitionFallbacks.flip="fade";n.mobile.transitionFallbacks.flow="fade";n.mobile.transitionFallbacks.pop="fade";(function(a,l,c){a.mobile.transitionHandlers.slide=a.mobile.transitionHandlers.simultaneous;a.mobile.transitionFallbacks.slide="fade"})(n,this);n.mobile.transitionFallbacks.slidedown=
"fade";n.mobile.transitionFallbacks.slidefade="fade";n.mobile.transitionFallbacks.slideup="fade";n.mobile.transitionFallbacks.turn="fade";(function(a,l){a.mobile.page.prototype.options.degradeInputs={color:!1,date:!1,datetime:!1,"datetime-local":!1,email:!1,month:!1,number:!1,range:"number",search:"text",tel:!1,time:!1,url:!1,week:!1};a(p).bind("pagecreate create",function(c){var d=a.mobile.closestPageData(a(c.target)),b;d&&(b=d.options,a(c.target).find("input").not(d.keepNativeSelector()).each(function(){var c=
a(this),d=this.getAttribute("type"),g=b.degradeInputs[d]||"text";if(b.degradeInputs[d]){var f=a("\x3cdiv\x3e").html(c.clone()).html(),h=-1<f.indexOf(" type\x3d");c.replaceWith(f.replace(h?/\s+type=["']?\w+['"]?/:/\/?>/,' type\x3d"'+g+'" data-'+a.mobile.ns+'type\x3d"'+d+'"'+(h?"":"\x3e")))}}))})})(n);(function(a,l,c){a.widget("mobile.dialog",a.mobile.widget,{options:{closeBtnText:"Close",overlayTheme:"a",initSelector:":jqmData(role\x3d'dialog')"},_create:function(){var c=this,b=this.element,e=a("\x3ca href\x3d'#' data-"+
a.mobile.ns+"icon\x3d'delete' data-"+a.mobile.ns+"iconpos\x3d'notext'\x3e"+this.options.closeBtnText+"\x3c/a\x3e"),k=a("\x3cdiv/\x3e",{role:"dialog","class":"ui-dialog-contain ui-corner-all ui-overlay-shadow"});b.addClass("ui-dialog ui-overlay-"+this.options.overlayTheme);b.wrapInner(k).children().find(":jqmData(role\x3d'header')").prepend(e).end().children(":first-child").addClass("ui-corner-top").end().children(":last-child").addClass("ui-corner-bottom");e.bind("click",function(){c.close()});b.bind("vclick submit",
function(b){b=a(b.target).closest("vclick"===b.type?"a":"form");var c;b.length&&!b.jqmData("transition")&&(c=a.mobile.urlHistory.getActive()||{},b.attr("data-"+a.mobile.ns+"transition",c.transition||a.mobile.defaultDialogTransition).attr("data-"+a.mobile.ns+"direction","reverse"))}).bind("pagehide",function(b,c){a(this).find("."+a.mobile.activeBtnClass).not(".ui-slider-bg").removeClass(a.mobile.activeBtnClass)}).bind("pagebeforeshow",function(){c._isCloseable=!0;c.options.overlayTheme&&c.element.page("removeContainerBackground").page("setContainerBackground",
c.options.overlayTheme)})},close:function(){var c;this._isCloseable&&(this._isCloseable=!1,a.mobile.hashListeningEnabled?a.mobile.back():(c=a.mobile.urlHistory.getPrev().url,a.mobile.path.isPath(c)||(c=a.mobile.path.makeUrlAbsolute("#"+c)),a.mobile.changePage(c,{changeHash:!1,fromHashChange:!0})))}});a(p).delegate(a.mobile.dialog.prototype.options.initSelector,"pagecreate",function(){a.mobile.dialog.prototype.enhance(this)})})(n,this);(function(a,l){a.mobile.page.prototype.options.backBtnText="Back";
a.mobile.page.prototype.options.addBackBtn=!1;a.mobile.page.prototype.options.backBtnTheme=null;a.mobile.page.prototype.options.headerTheme="a";a.mobile.page.prototype.options.footerTheme="a";a.mobile.page.prototype.options.contentTheme=null;a(p).bind("pagecreate",function(c){var d=a(c.target),b=d.data("page").options,e=d.jqmData("role"),k=b.theme;a(":jqmData(role\x3d'header'), :jqmData(role\x3d'footer'), :jqmData(role\x3d'content')",d).jqmEnhanceable().each(function(){var c=a(this),f=c.jqmData("role"),
h=c.jqmData("theme"),l=h||b.contentTheme||"dialog"===e&&k,m,p,r;c.addClass("ui-"+f);"header"===f||"footer"===f?(h=h||("header"===f?b.headerTheme:b.footerTheme)||k,c.addClass("ui-bar-"+h).attr("role","header"===f?"banner":"contentinfo"),"header"===f&&(m=c.children("a, button"),p=m.hasClass("ui-btn-left"),r=m.hasClass("ui-btn-right"),p=p||m.eq(0).not(".ui-btn-right").addClass("ui-btn-left").length,r||m.eq(1).addClass("ui-btn-right")),b.addBackBtn&&"header"===f&&1<a(".ui-page").length&&d.jqmData("url")!==
a.mobile.path.stripHash(location.hash)&&!p&&a("\x3ca href\x3d'javascript:void(0);' class\x3d'ui-btn-left' data-"+a.mobile.ns+"rel\x3d'back' data-"+a.mobile.ns+"icon\x3d'arrow-l'\x3e"+b.backBtnText+"\x3c/a\x3e").attr("data-"+a.mobile.ns+"theme",b.backBtnTheme||h).prependTo(c),c.children("h1, h2, h3, h4, h5, h6").addClass("ui-title").attr({role:"heading","aria-level":"1"})):"content"===f&&(l&&c.addClass("ui-body-"+l),c.attr("role","main"))})})})(n);(function(a,l){a.fn.fieldcontain=function(a){return this.addClass("ui-field-contain ui-body ui-br").contents().filter(function(){return 3===
this.nodeType&&!/\S/.test(this.nodeValue)}).remove()};a(p).bind("pagecreate create",function(c){a(":jqmData(role\x3d'fieldcontain')",c.target).jqmEnhanceable().fieldcontain()})})(n);(function(a,l){a.fn.grid=function(c){return this.each(function(){var d=a(this),b=a.extend({grid:null},c),e=d.children(),k={solo:1,a:2,b:3,c:4,d:5},b=b.grid;if(!b)if(5>=e.length)for(var g in k)k[g]===e.length&&(b=g);else b="a",d.addClass("ui-grid-duo");k=k[b];d.addClass("ui-grid-"+b);e.filter(":nth-child("+k+"n+1)").addClass("ui-block-a");
1<k&&e.filter(":nth-child("+k+"n+2)").addClass("ui-block-b");2<k&&e.filter(":nth-child("+k+"n+3)").addClass("ui-block-c");3<k&&e.filter(":nth-child("+k+"n+4)").addClass("ui-block-d");4<k&&e.filter(":nth-child("+k+"n+5)").addClass("ui-block-e")})}})(n);(function(a,l){a(p).bind("pagecreate create",function(c){a(":jqmData(role\x3d'nojs')",c.target).addClass("ui-nojs")})})(n);(function(a,l){function c(a){for(var c;a&&!((c="string"==typeof a.className&&a.className+" ")&&-1<c.indexOf("ui-btn ")&&0>c.indexOf("ui-disabled "));)a=
a.parentNode;return a}a.fn.buttonMarkup=function(b){var c=function(b,c){f.setAttribute("data-"+a.mobile.ns+b,c);g.jqmData(b,c)};b=b&&"object"===a.type(b)?b:{};for(var k=0;k<this.length;k++){var g=this.eq(k),f=g[0],h=a.extend({},a.fn.buttonMarkup.defaults,{icon:b.icon!==l?b.icon:g.jqmData("icon"),iconpos:b.iconpos!==l?b.iconpos:g.jqmData("iconpos"),theme:b.theme!==l?b.theme:g.jqmData("theme")||a.mobile.getInheritedTheme(g,"c"),inline:b.inline!==l?b.inline:g.jqmData("inline"),shadow:b.shadow!==l?b.shadow:
g.jqmData("shadow"),corners:b.corners!==l?b.corners:g.jqmData("corners"),iconshadow:b.iconshadow!==l?b.iconshadow:g.jqmData("iconshadow"),mini:b.mini!==l?b.mini:g.jqmData("mini")},b),q="ui-btn-inner",m,v,r,n,w,u;a.each(h,c);"popup"===g.jqmData("rel")&&g.attr("href")&&(f.setAttribute("aria-haspopup",!0),f.setAttribute("aria-owns",f.getAttribute("href")));(u=a.data("INPUT"===f.tagName||"BUTTON"===f.tagName?f.parentNode:f,"buttonElements"))?(f=u.outer,g=a(f),r=u.inner,n=u.text,a(u.icon).remove(),u.icon=
null):(r=p.createElement(h.wrapperEls),n=p.createElement(h.wrapperEls));w=h.icon?p.createElement("span"):null;d&&!u&&d();h.theme||(h.theme=a.mobile.getInheritedTheme(g,"c"));m="ui-btn ui-btn-up-"+h.theme;m+=h.shadow?" ui-shadow":"";m+=h.corners?" ui-btn-corner-all":"";h.mini!==l&&(m+=!0===h.mini?" ui-mini":" ui-fullsize");h.inline!==l&&(m+=!0===h.inline?" ui-btn-inline":" ui-btn-block");h.icon&&(h.icon="ui-icon-"+h.icon,h.iconpos=h.iconpos||"left",v="ui-icon "+h.icon,h.iconshadow&&(v+=" ui-icon-shadow"));
h.iconpos&&(m+=" ui-btn-icon-"+h.iconpos,"notext"===h.iconpos&&!g.attr("title")&&g.attr("title",g.getEncodedText()));q+=h.corners?" ui-btn-corner-all":"";h.iconpos&&"notext"===h.iconpos&&!g.attr("title")&&g.attr("title",g.getEncodedText());u&&g.removeClass(u.bcls||"");g.removeClass("ui-link").addClass(m);r.className=q;n.className="ui-btn-text";u||r.appendChild(n);w&&(w.className=v,u&&u.icon||(w.innerHTML="\x26#160;",r.appendChild(w)));for(;f.firstChild&&!u;)n.appendChild(f.firstChild);u||f.appendChild(r);
u={bcls:m,outer:f,inner:r,text:n,icon:w};a.data(f,"buttonElements",u);a.data(r,"buttonElements",u);a.data(n,"buttonElements",u);w&&a.data(w,"buttonElements",u)}return this};a.fn.buttonMarkup.defaults={corners:!0,shadow:!0,iconshadow:!0,wrapperEls:"span"};var d=function(){var b=a.mobile.buttonMarkup.hoverDelay,e,k;a(p).bind({"vmousedown vmousecancel vmouseup vmouseover vmouseout focus blur scrollstart":function(d){var f,h=a(c(d.target)),l=d.originalEvent&&/^touch/.test(d.originalEvent.type);d=d.type;
if(h.length)if(f=h.attr("data-"+a.mobile.ns+"theme"),"vmousedown"===d)l?e=setTimeout(function(){h.removeClass("ui-btn-up-"+f).addClass("ui-btn-down-"+f)},b):h.removeClass("ui-btn-up-"+f).addClass("ui-btn-down-"+f);else if("vmousecancel"===d||"vmouseup"===d)h.removeClass("ui-btn-down-"+f).addClass("ui-btn-up-"+f);else if("vmouseover"===d||"focus"===d)l?k=setTimeout(function(){h.removeClass("ui-btn-up-"+f).addClass("ui-btn-hover-"+f)},b):h.removeClass("ui-btn-up-"+f).addClass("ui-btn-hover-"+f);else if("vmouseout"===
d||"blur"===d||"scrollstart"===d)h.removeClass("ui-btn-hover-"+f+" ui-btn-down-"+f).addClass("ui-btn-up-"+f),e&&clearTimeout(e),k&&clearTimeout(k)},"focusin focus":function(b){a(c(b.target)).addClass(a.mobile.focusClass)},"focusout blur":function(b){a(c(b.target)).removeClass(a.mobile.focusClass)}});d=null};a(p).bind("pagecreate create",function(b){a(":jqmData(role\x3d'button'), .ui-bar \x3e a, .ui-header \x3e a, .ui-footer \x3e a, .ui-bar \x3e :jqmData(role\x3d'controlgroup') \x3e a",b.target).jqmEnhanceable().not("button, input, .ui-btn, :jqmData(role\x3d'none'), :jqmData(role\x3d'nojs')").buttonMarkup()})})(n);
(function(a,l){a.widget("mobile.collapsible",a.mobile.widget,{options:{expandCueText:" click to expand contents",collapseCueText:" click to collapse contents",collapsed:!0,heading:"h1,h2,h3,h4,h5,h6,legend",theme:null,contentTheme:null,inset:!0,mini:!1,initSelector:":jqmData(role\x3d'collapsible')"},_create:function(){var c=this.element,d=this.options,b=c.addClass("ui-collapsible"),e=c.children(d.heading).first(),k=c.jqmData("collapsed-icon")||d.collapsedIcon,g=c.jqmData("expanded-icon")||d.expandedIcon,
f=b.wrapInner("\x3cdiv class\x3d'ui-collapsible-content'\x3e\x3c/div\x3e").children(".ui-collapsible-content"),h=c.closest(":jqmData(role\x3d'collapsible-set')").addClass("ui-collapsible-set");e.is("legend")&&(e=a("\x3cdiv role\x3d'heading'\x3e"+e.html()+"\x3c/div\x3e").insertBefore(e),e.next().remove());h.length?(d.theme||(d.theme=h.jqmData("theme")||a.mobile.getInheritedTheme(h,"c")),d.contentTheme||(d.contentTheme=h.jqmData("content-theme")),d.collapsedIcon||(d.collapsedIcon=h.jqmData("collapsed-icon")),
d.expandedIcon||(d.expandedIcon=h.jqmData("expanded-icon")),d.iconPos||(d.iconPos=h.jqmData("iconpos")),h.jqmData("inset")!==l?d.inset=h.jqmData("inset"):d.inset=!0,d.mini||(d.mini=h.jqmData("mini"))):d.theme||(d.theme=a.mobile.getInheritedTheme(c,"c"));!d.inset||b.addClass("ui-collapsible-inset");f.addClass(d.contentTheme?"ui-body-"+d.contentTheme:"");k=c.jqmData("collapsed-icon")||d.collapsedIcon||"plus";g=c.jqmData("expanded-icon")||d.expandedIcon||"minus";e.insertBefore(f).addClass("ui-collapsible-heading").append("\x3cspan class\x3d'ui-collapsible-heading-status'\x3e\x3c/span\x3e").wrapInner("\x3ca href\x3d'#' class\x3d'ui-collapsible-heading-toggle'\x3e\x3c/a\x3e").find("a").first().buttonMarkup({shadow:!1,
corners:!1,iconpos:c.jqmData("iconpos")||d.iconPos||"left",icon:k,mini:d.mini,theme:d.theme});!d.inset||e.find("a").first().add(".ui-btn-inner",c).addClass("ui-corner-top ui-corner-bottom");b.bind("expand collapse",function(c){if(!c.isDefaultPrevented()){var m=a(this),l="collapse"===c.type,p=d.contentTheme;c.preventDefault();e.toggleClass("ui-collapsible-heading-collapsed",l).find(".ui-collapsible-heading-status").text(l?d.expandCueText:d.collapseCueText).end().find(".ui-icon").toggleClass("ui-icon-"+
g,!l).toggleClass("ui-icon-"+k,l||g===k).end().find("a").first().removeClass(a.mobile.activeBtnClass);m.toggleClass("ui-collapsible-collapsed",l);f.toggleClass("ui-collapsible-content-collapsed",l).attr("aria-hidden",l);p&&d.inset&&(!h.length||b.jqmData("collapsible-last"))&&(e.find("a").first().add(e.find(".ui-btn-inner")).toggleClass("ui-corner-bottom",l),f.toggleClass("ui-corner-bottom",!l));f.trigger("updatelayout")}}).trigger(d.collapsed?"collapse":"expand");e.bind("tap",function(b){e.find("a").first().addClass(a.mobile.activeBtnClass)}).bind("click",
function(a){var c=e.is(".ui-collapsible-heading-collapsed")?"expand":"collapse";b.trigger(c);a.preventDefault();a.stopPropagation()})}});a(p).bind("pagecreate create",function(c){a.mobile.collapsible.prototype.enhanceWithin(c.target)})})(n);(function(a,l){a.widget("mobile.collapsibleset",a.mobile.widget,{options:{initSelector:":jqmData(role\x3d'collapsible-set')"},_create:function(){var c=this.element.addClass("ui-collapsible-set"),d=this.options;d.theme||(d.theme=a.mobile.getInheritedTheme(c,"c"));
d.contentTheme||(d.contentTheme=c.jqmData("content-theme"));c.jqmData("inset")!==l&&(d.inset=c.jqmData("inset"));d.inset=d.inset!==l?d.inset:!0;c.jqmData("collapsiblebound")||c.jqmData("collapsiblebound",!0).bind("expand collapse",function(b){var c="collapse"===b.type;b=a(b.target).closest(".ui-collapsible");b.data("collapsible");b.jqmData("collapsible-last")&&d.inset&&(b.find(".ui-collapsible-heading").first().find("a").first().toggleClass("ui-corner-bottom",c).find(".ui-btn-inner").toggleClass("ui-corner-bottom",
c),b.find(".ui-collapsible-content").toggleClass("ui-corner-bottom",!c))}).bind("expand",function(b){b=a(b.target).closest(".ui-collapsible");b.parent().is(":jqmData(role\x3d'collapsible-set')")&&b.siblings(".ui-collapsible").trigger("collapse")})},_init:function(){var a=this.element.children(":jqmData(role\x3d'collapsible')").filter(":jqmData(collapsed\x3d'false')");this.refresh();a.trigger("expand")},refresh:function(){var c=this.options,d=this.element.children(":jqmData(role\x3d'collapsible')");
a.mobile.collapsible.prototype.enhance(d.not(".ui-collapsible"));!c.inset||(d.each(function(){a(this).jqmRemoveData("collapsible-last").find(".ui-collapsible-heading").find("a").first().removeClass("ui-corner-top ui-corner-bottom").find(".ui-btn-inner").removeClass("ui-corner-top ui-corner-bottom")}),d.first().find("a").first().addClass("ui-corner-top").find(".ui-btn-inner").addClass("ui-corner-top"),d.last().jqmData("collapsible-last",!0).find("a").first().addClass("ui-corner-bottom").find(".ui-btn-inner").addClass("ui-corner-bottom"))}});
a(p).bind("pagecreate create",function(c){a.mobile.collapsibleset.prototype.enhanceWithin(c.target)})})(n);(function(a,l){a.widget("mobile.navbar",a.mobile.widget,{options:{iconpos:"top",grid:null,initSelector:":jqmData(role\x3d'navbar')"},_create:function(){var c=this.element,d=c.find("a"),b=d.filter(":jqmData(icon)").length?this.options.iconpos:l;c.addClass("ui-navbar ui-mini").attr("role","navigation").find("ul").jqmEnhanceable().grid({grid:this.options.grid});d.buttonMarkup({corners:!1,shadow:!1,
inline:!0,iconpos:b});c.delegate("a","vclick",function(b){a(b.target).hasClass("ui-disabled")||(d.removeClass(a.mobile.activeBtnClass),a(this).addClass(a.mobile.activeBtnClass))});c.closest(".ui-page").bind("pagebeforeshow",function(){d.filter(".ui-state-persist").addClass(a.mobile.activeBtnClass)})}});a(p).bind("pagecreate create",function(c){a.mobile.navbar.prototype.enhanceWithin(c.target)})})(n);(function(a,l){var c={};a.widget("mobile.listview",a.mobile.widget,{options:{theme:null,countTheme:"c",
headerTheme:"b",dividerTheme:"b",splitIcon:"arrow-r",splitTheme:"b",inset:!1,initSelector:":jqmData(role\x3d'listview')"},_create:function(){var a="",a=a+(this.options.inset?" ui-listview-inset ui-corner-all ui-shadow ":"");this.element.addClass(function(b,c){return c+" ui-listview "+a});this.refresh(!0)},_removeCorners:function(a,b){a=a.add(a.find(".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb"));"top"===b?a.removeClass("ui-corner-top ui-corner-tr ui-corner-tl"):"bottom"===b?a.removeClass("ui-corner-bottom ui-corner-br ui-corner-bl"):
a.removeClass("ui-corner-top ui-corner-tr ui-corner-tl ui-corner-bottom ui-corner-br ui-corner-bl")},_refreshCorners:function(a){var b,c,k,g;b=this.element.children("li");c=a||0===b.filter(":visible").length?b.not(".ui-screen-hidden"):b.filter(":visible");b.filter(".ui-li-last").removeClass("ui-li-last");this.options.inset?(this._removeCorners(b),k=c.first().addClass("ui-corner-top"),k.add(k.find(".ui-btn-inner").not(".ui-li-link-alt span:first-child")).addClass("ui-corner-top").end().find(".ui-li-link-alt, .ui-li-link-alt span:first-child").addClass("ui-corner-tr").end().find(".ui-li-thumb").not(".ui-li-icon").addClass("ui-corner-tl"),
g=c.last().addClass("ui-corner-bottom ui-li-last"),g.add(g.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-br").end().find(".ui-li-thumb").not(".ui-li-icon").addClass("ui-corner-bl")):c.last().addClass("ui-li-last");a||this.element.trigger("updatelayout")},_findFirstElementByTagName:function(a,b,c,k){var g={};for(g[c]=g[k]=!0;a;){if(g[a.nodeName])return a;a=a[b]}return null},_getChildrenByTagName:function(c,b,e){var k=[],g={};g[b]=g[e]=!0;for(c=c.firstChild;c;)g[c.nodeName]&&k.push(c),
c=c.nextSibling;return a(k)},_addThumbClasses:function(c){var b,e,k=c.length;for(b=0;b<k;b++)e=a(this._findFirstElementByTagName(c[b].firstChild,"nextSibling","img","IMG")),e.length&&(e.addClass("ui-li-thumb"),a(this._findFirstElementByTagName(e[0].parentNode,"parentNode","li","LI")).addClass(e.is(".ui-li-icon")?"ui-li-has-icon":"ui-li-has-thumb"))},refresh:function(c){this.parentPage=this.element.closest(".ui-page");this._createSubPages();var b=this.options,e=this.element,k=e.jqmData("dividertheme")||
b.dividerTheme,g=e.jqmData("splittheme"),f=e.jqmData("spliticon"),h=this._getChildrenByTagName(e[0],"li","LI"),l=!!a.nodeName(e[0],"ol"),m=!a.support.cssPseudoElement,n=e.attr("start"),r={},t,w,u,x,z,y,F,B,C,G,E;l&&m&&e.find(".ui-li-dec").remove();l&&(n||0===n?m?F=parseFloat(n):(t=parseFloat(n)-1,e.css("counter-reset","listnumbering "+t)):m&&(F=1));b.theme||(b.theme=a.mobile.getInheritedTheme(this.element,"c"));for(var D=0,A=h.length;D<A;D++){t=h.eq(D);w="ui-li";if(c||!t.hasClass("ui-li")){u=t.jqmData("theme")||
b.theme;x=this._getChildrenByTagName(t[0],"a","A");var H="list-divider"===t.jqmData("role");x.length&&!H?(G=t.jqmData("icon"),t.buttonMarkup({wrapperEls:"div",shadow:!1,corners:!1,iconpos:"right",icon:1<x.length||!1===G?!1:G||"arrow-r",theme:u}),!1!==G&&1===x.length&&t.addClass("ui-li-has-arrow"),x.first().removeClass("ui-link").addClass("ui-link-inherit"),1<x.length&&(w+=" ui-li-has-alt",z=x.last(),y=g||z.jqmData("theme")||b.splitTheme,E=z.jqmData("icon"),z.appendTo(t).attr("title",z.getEncodedText()).addClass("ui-li-link-alt").empty().buttonMarkup({shadow:!1,
corners:!1,theme:u,icon:!1,iconpos:"notext"}).find(".ui-btn-inner").append(a(p.createElement("span")).buttonMarkup({shadow:!0,corners:!0,theme:y,iconpos:"notext",icon:E||G||f||b.splitIcon})))):H?(w+=" ui-li-divider ui-bar-"+k,t.attr("role","heading"),l&&(n||0===n?m?F=parseFloat(n):(B=parseFloat(n)-1,t.css("counter-reset","listnumbering "+B)):m&&(F=1))):w+=" ui-li-static ui-btn-up-"+u}l&&m&&0>w.indexOf("ui-li-divider")&&(C=0<w.indexOf("ui-li-static")?t:t.find(".ui-link-inherit"),C.addClass("ui-li-jsnumbering").prepend("\x3cspan class\x3d'ui-li-dec'\x3e"+
F++ +". \x3c/span\x3e"));r[w]||(r[w]=[]);r[w].push(t[0])}for(w in r)a(r[w]).addClass(w).children(".ui-btn-inner").addClass(w);e.find("h1, h2, h3, h4, h5, h6").addClass("ui-li-heading").end().find("p, dl").addClass("ui-li-desc").end().find(".ui-li-aside").each(function(){var b=a(this);b.prependTo(b.parent())}).end().find(".ui-li-count").each(function(){a(this).closest("li").addClass("ui-li-has-count")}).addClass("ui-btn-up-"+(e.jqmData("counttheme")||this.options.countTheme)+" ui-btn-corner-all");
this._addThumbClasses(h);this._addThumbClasses(e.find(".ui-link-inherit"));this._refreshCorners(c);this._trigger("afterrefresh")},_idStringEscape:function(a){return a.replace(/[^a-zA-Z0-9]/g,"-")},_createSubPages:function(){var d=this.element,b=d.closest(".ui-page"),e=b.jqmData("url"),k=e||b[0][a.expando],g=d.attr("id"),f=this.options,h="data-"+a.mobile.ns,l=this,m=b.find(":jqmData(role\x3d'footer')").jqmData("id"),p;"undefined"==typeof c[k]&&(c[k]=-1);g=g||++c[k];a(d.find("li\x3eul, li\x3eol").toArray().reverse()).each(function(b){var c=
a(this),k=c.attr("id")||g+"-"+b;b=c.parent();var l=a(c.prevAll().toArray().reverse()),l=l.length?l:a("\x3cspan\x3e"+a.trim(b.contents()[0].nodeValue)+"\x3c/span\x3e"),q=l.first().getEncodedText(),k=(e||"")+"\x26"+a.mobile.subPageUrlKey+"\x3d"+k,n=c.jqmData("theme")||f.theme,t=c.jqmData("counttheme")||d.jqmData("counttheme")||f.countTheme;p=!0;c.detach().wrap("\x3cdiv "+h+"role\x3d'page' "+h+"url\x3d'"+k+"' "+h+"theme\x3d'"+n+"' "+h+"count-theme\x3d'"+t+"'\x3e\x3cdiv "+h+"role\x3d'content'\x3e\x3c/div\x3e\x3c/div\x3e").parent().before("\x3cdiv "+
h+"role\x3d'header' "+h+"theme\x3d'"+f.headerTheme+"'\x3e\x3cdiv class\x3d'ui-title'\x3e"+q+"\x3c/div\x3e\x3c/div\x3e").after(m?a("\x3cdiv "+h+"role\x3d'footer' "+h+"id\x3d'"+m+"'\x3e"):"").parent().appendTo(a.mobile.pageContainer).page();c=b.find("a:first");c.length||(c=a("\x3ca/\x3e").html(l||q).prependTo(b.empty()));c.attr("href","#"+k)}).listview();p&&b.is(":jqmData(external-page\x3d'true')")&&!1===b.data("page").options.domCache&&b.unbind("pagehide.remove").bind("pagehide.remove",function(c,
d){var f=d.nextPage,g,k=new a.Event("pageremove");d.nextPage&&(g=f.jqmData("url"),0!==g.indexOf(e+"\x26"+a.mobile.subPageUrlKey)&&(l.childPages().remove(),b.trigger(k),k.isDefaultPrevented()||b.removeWithDependents()))})},childPages:function(){var c=this.parentPage.jqmData("url");return a(":jqmData(url^\x3d'"+c+"\x26"+a.mobile.subPageUrlKey+"')")}});a(p).bind("pagecreate create",function(c){a.mobile.listview.prototype.enhanceWithin(c.target)})})(n);(function(a,l){a.mobile.listview.prototype.options.autodividers=
!1;a.mobile.listview.prototype.options.autodividersSelector=function(a){return(a=a.text()||null)?(a=a.slice(0,1).toUpperCase(),a):null};a(p).delegate("ul,ol","listviewcreate",function(){var c=a(this),d=c.data("listview");if(d&&d.options.autodividers){var b=function(){c.unbind("listviewafterrefresh",b);c.find("li:jqmData(role\x3d'list-divider')").remove();for(var e=c.find("li"),k=null,g,f,h=0;h<e.length;h++)g=e[h],(f=d.options.autodividersSelector(a(g)))&&k!==f&&(k=p.createElement("li"),k.appendChild(p.createTextNode(f)),
k.setAttribute("data-"+a.mobile.ns+"role","list-divider"),g.parentNode.insertBefore(k,g)),k=f;d.refresh();c.bind("listviewafterrefresh",b)};b()}})})(n);(function(a,l){a.widget("mobile.checkboxradio",a.mobile.widget,{options:{theme:null,initSelector:"input[type\x3d'checkbox'],input[type\x3d'radio']"},_create:function(){var c=this,d=this.element,b=function(a,b){return a.jqmData(b)||a.closest("form, fieldset").jqmData(b)},e=a(d).closest("label"),k=e.length?e:a(d).closest("form, fieldset, :jqmData(role\x3d'page'), :jqmData(role\x3d'dialog')").find("label").filter("[for\x3d'"+
d[0].id+"']").first(),g=d[0].type,e=b(d,"mini"),f=g+"-on",h=g+"-off",q=d.parents(":jqmData(type\x3d'horizontal')").length?l:h,b=b(d,"iconpos"),m="ui-"+f+(q?"":" "+a.mobile.activeBtnClass);if("checkbox"===g||"radio"===g)a.extend(this,{label:k,inputtype:g,checkedClass:m,uncheckedClass:"ui-"+h,checkedicon:"ui-icon-"+f,uncheckedicon:"ui-icon-"+h}),this.options.theme||(this.options.theme=a.mobile.getInheritedTheme(this.element,"c")),k.buttonMarkup({theme:this.options.theme,icon:q,shadow:!1,mini:e,iconpos:b}),
e=p.createElement("div"),e.className="ui-"+g,d.add(k).wrapAll(e),k.bind({vmouseover:function(b){a(this).parent().is(".ui-disabled")&&b.stopPropagation()},vclick:function(a){if(d.is(":disabled"))a.preventDefault();else return c._cacheVals(),d.prop("checked","radio"===g&&!0||!d.prop("checked")),d.triggerHandler("click"),c._getInputSet().not(d).prop("checked",!1),c._updateAll(),!1}}),d.bind({vmousedown:function(){c._cacheVals()},vclick:function(){var b=a(this);b.is(":checked")?(b.prop("checked",!0),
c._getInputSet().not(b).prop("checked",!1)):b.prop("checked",!1);c._updateAll()},focus:function(){k.addClass(a.mobile.focusClass)},blur:function(){k.removeClass(a.mobile.focusClass)}}),this.refresh()},_cacheVals:function(){this._getInputSet().each(function(){a(this).jqmData("cacheVal",this.checked)})},_getInputSet:function(){return"checkbox"===this.inputtype?this.element:this.element.closest("form, fieldset, :jqmData(role\x3d'page'), :jqmData(role\x3d'dialog')").find("input[name\x3d'"+this.element[0].name+
"'][type\x3d'"+this.inputtype+"']")},_updateAll:function(){var c=this;this._getInputSet().each(function(){var d=a(this);(this.checked||"checkbox"===c.inputtype)&&d.trigger("change")}).checkboxradio("refresh")},refresh:function(){var a=this.element[0],d=this.label,b=d.find(".ui-icon");a.checked?(d.addClass(this.checkedClass).removeClass(this.uncheckedClass),b.addClass(this.checkedicon).removeClass(this.uncheckedicon)):(d.removeClass(this.checkedClass).addClass(this.uncheckedClass),b.removeClass(this.checkedicon).addClass(this.uncheckedicon));
a.disabled?this.disable():this.enable()},disable:function(){this.element.prop("disabled",!0).parent().addClass("ui-disabled")},enable:function(){this.element.prop("disabled",!1).parent().removeClass("ui-disabled")}});a(p).bind("pagecreate create",function(c){a.mobile.checkboxradio.prototype.enhanceWithin(c.target,!0)})})(n);(function(a,l){a.widget("mobile.button",a.mobile.widget,{options:{theme:null,icon:null,iconpos:null,corners:!0,shadow:!0,iconshadow:!0,initSelector:"button, [type\x3d'button'], [type\x3d'submit'], [type\x3d'reset']"},
_create:function(){var c=this.element,d,b=this.options,e;e=b.inline||c.jqmData("inline");var k=b.mini||c.jqmData("mini"),g="",f;if("A"===c[0].tagName)c.hasClass("ui-btn")||c.buttonMarkup();else{this.options.theme||(this.options.theme=a.mobile.getInheritedTheme(this.element,"c"));!~c[0].className.indexOf("ui-btn-left")||(g="ui-btn-left");!~c[0].className.indexOf("ui-btn-right")||(g="ui-btn-right");if("submit"===c.attr("type")||"reset"===c.attr("type"))g?g+=" ui-submit":g="ui-submit";a("label[for\x3d'"+
c.attr("id")+"']").addClass("ui-submit");d=this.button=a("\x3cdiv\x3e\x3c/div\x3e")[c.html()?"html":"text"](c.html()||c.val()).insertBefore(c).buttonMarkup({theme:b.theme,icon:b.icon,iconpos:b.iconpos,inline:e,corners:b.corners,shadow:b.shadow,iconshadow:b.iconshadow,mini:k}).addClass(g).append(c.addClass("ui-btn-hidden"));b=c.attr("type");e=c.attr("name");"button"!==b&&"reset"!==b&&e&&c.bind("vclick",function(){f===l&&(f=a("\x3cinput\x3e",{type:"hidden",name:c.attr("name"),value:c.attr("value")}).insertBefore(c),
a(p).one("submit",function(){f.remove();f=l}))});c.bind({focus:function(){d.addClass(a.mobile.focusClass)},blur:function(){d.removeClass(a.mobile.focusClass)}});this.refresh()}},enable:function(){return this.element.attr("disabled",!1),this.button.removeClass("ui-disabled").attr("aria-disabled",!1),this._setOption("disabled",!1)},disable:function(){return this.element.attr("disabled",!0),this.button.addClass("ui-disabled").attr("aria-disabled",!0),this._setOption("disabled",!0)},refresh:function(){var c=
this.element;c.prop("disabled")?this.disable():this.enable();a(this.button.data("buttonElements").text)[c.html()?"html":"text"](c.html()||c.val())}});a(p).bind("pagecreate create",function(c){a.mobile.button.prototype.enhanceWithin(c.target,!0)})})(n);(function(a,l){a.fn.controlgroup=function(c){function d(a,c){a.removeClass("ui-btn-corner-all ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-controlgroup-last ui-shadow").eq(0).addClass(c[0]).end().last().addClass(c[1]).addClass("ui-controlgroup-last")}
return this.each(function(){var b=a(this),e=a.extend({direction:b.jqmData("type")||"vertical",shadow:!1,excludeInvisible:!0,mini:b.jqmData("mini")},c),k=b.children("legend"),g=b.children(".ui-controlgroup-label"),f=b.children(".ui-controlgroup-controls"),h="horizontal"===e.direction?["ui-corner-left","ui-corner-right"]:["ui-corner-top","ui-corner-bottom"];b.find("input").first().attr("type");f.length&&f.contents().unwrap();b.wrapInner("\x3cdiv class\x3d'ui-controlgroup-controls'\x3e\x3c/div\x3e");
k.length?(a("\x3cdiv role\x3d'heading' class\x3d'ui-controlgroup-label'\x3e"+k.html()+"\x3c/div\x3e").insertBefore(b.children(0)),k.remove()):g.length&&b.prepend(g);b.addClass("ui-corner-all ui-controlgroup ui-controlgroup-"+e.direction);d(b.find(".ui-btn"+(e.excludeInvisible?":visible":"")).not(".ui-slider-handle"),h);d(b.find(".ui-btn-inner"),h);e.shadow&&b.addClass("ui-shadow");e.mini&&b.addClass("ui-mini")})}})(n);(function(a,l){a(p).bind("pagecreate create",function(c){a(c.target).find("a").jqmEnhanceable().not(".ui-btn, .ui-link-inherit, :jqmData(role\x3d'none'), :jqmData(role\x3d'nojs')").addClass("ui-link")})})(n);
(function(a,l){function c(a,c,d,g){var f=g;return a<c?f=d+(a-c)/2:f=Math.min(Math.max(d,g-c/2),d+a-c),f}function d(){var b=a(t);return{x:b.scrollLeft(),y:b.scrollTop(),cx:t.innerWidth||b.width(),cy:t.innerHeight||b.height()}}a.widget("mobile.popup",a.mobile.widget,{options:{theme:null,overlayTheme:null,shadow:!0,corners:!0,transition:"none",positionTo:"origin",tolerance:null,initSelector:":jqmData(role\x3d'popup')",closeLinkSelector:"a:jqmData(rel\x3d'back')",closeLinkEvents:"click.popup",navigateEvents:"navigate.popup",
closeEvents:"navigate.popup pagebeforechange.popup",history:!a.mobile.browser.ie},_eatEventAndClose:function(a){return a.preventDefault(),a.stopImmediatePropagation(),this.close(),!1},_resizeScreen:function(){var a=this._ui.container.outerHeight(!0);this._ui.screen.removeAttr("style");a>this._ui.screen.height()&&this._ui.screen.height(a)},_handleWindowKeyUp:function(b){if(this._isOpen&&b.keyCode===a.mobile.keyCode.ESCAPE)return this._eatEventAndClose(b)},_maybeRefreshTimeout:function(){var b=d();
if(this._resizeData){if(b.x===this._resizeData.winCoords.x&&b.y===this._resizeData.winCoords.y&&b.cx===this._resizeData.winCoords.cx&&b.cy===this._resizeData.winCoords.cy)return!1;clearTimeout(this._resizeData.timeoutId)}return this._resizeData={timeoutId:setTimeout(a.proxy(this,"_resizeTimeout"),200),winCoords:b},!0},_resizeTimeout:function(){this._maybeRefreshTimeout()||(this._trigger("beforeposition"),this._ui.container.removeClass("ui-selectmenu-hidden").offset(this._placementCoords(this._desiredCoords(l,
l,"window"))),this._resizeScreen(),this._resizeData=null,this._orientationchangeInProgress=!1)},_handleWindowResize:function(a){this._isOpen&&this._maybeRefreshTimeout()},_handleWindowOrientationchange:function(a){this._orientationchangeInProgress||(this._ui.container.addClass("ui-selectmenu-hidden").removeAttr("style"),this._orientationchangeInProgress=!0)},_create:function(){var b={screen:a("\x3cdiv class\x3d'ui-screen-hidden ui-popup-screen'\x3e\x3c/div\x3e"),placeholder:a("\x3cdiv style\x3d'display: none;'\x3e\x3c!-- placeholder --\x3e\x3c/div\x3e"),
container:a("\x3cdiv class\x3d'ui-popup-container ui-selectmenu-hidden'\x3e\x3c/div\x3e")},c=this.element.closest(".ui-page"),d=this.element.attr("id"),g=this;this.options.history=this.options.history&&a.mobile.ajaxEnabled&&a.mobile.hashListeningEnabled;0===c.length&&(c=a("body"));this.options.container=this.options.container||a.mobile.pageContainer;c.append(b.screen);b.container.insertAfter(b.screen);b.placeholder.insertAfter(this.element);d&&(b.screen.attr("id",d+"-screen"),b.container.attr("id",
d+"-popup"),b.placeholder.html("\x3c!-- placeholder for "+d+" --\x3e"));b.container.append(this.element);this.element.addClass("ui-popup");a.extend(this,{_page:c,_ui:b,_fallbackTransition:"",_currentTransition:!1,_prereqs:null,_isOpen:!1,_tolerance:null,_resizeData:null,_orientationchangeInProgress:!1,_globalHandlers:[{src:a(t),handler:{orientationchange:a.proxy(this,"_handleWindowOrientationchange"),resize:a.proxy(this,"_handleWindowResize"),keyup:a.proxy(this,"_handleWindowKeyUp")}}]});a.each(this.options,
function(a,b){g.options[a]=l;g._setOption(a,b,!0)});b.screen.bind("vclick",a.proxy(this,"_eatEventAndClose"));a.each(this._globalHandlers,function(a,b){b.src.bind(b.handler)})},_applyTheme:function(a,c,d){for(var g=(a.attr("class")||"").split(" "),f=null,h=String(c);0<g.length;){f=g.pop();if((f=(new RegExp("^ui-"+d+"-([a-z])$")).exec(f))&&1<f.length){f=f[1];break}f=null}c!==f&&(a.removeClass("ui-"+d+"-"+f),null!==c&&"none"!==c&&a.addClass("ui-"+d+"-"+h))},_setTheme:function(a){this._applyTheme(this.element,
a,"body")},_setOverlayTheme:function(a){this._applyTheme(this._ui.screen,a,"overlay");this._isOpen&&this._ui.screen.addClass("in")},_setShadow:function(a){this.element.toggleClass("ui-overlay-shadow",a)},_setCorners:function(a){this.element.toggleClass("ui-corner-all",a)},_applyTransition:function(b){this._ui.container.removeClass(this._fallbackTransition);b&&"none"!==b&&(this._fallbackTransition=a.mobile._maybeDegradeTransition(b),this._ui.container.addClass(this._fallbackTransition))},_setTransition:function(a){this._currentTransition||
this._applyTransition(a)},_setTolerance:function(b){var c={t:30,r:15,b:30,l:15};if(b){var d=String(b).split(",");a.each(d,function(a,b){d[a]=parseInt(b,10)});switch(d.length){case 1:isNaN(d[0])||(c.t=c.r=c.b=c.l=d[0]);break;case 2:isNaN(d[0])||(c.t=c.b=d[0]);isNaN(d[1])||(c.l=c.r=d[1]);break;case 4:isNaN(d[0])||(c.t=d[0]),isNaN(d[1])||(c.r=d[1]),isNaN(d[2])||(c.b=d[2]),isNaN(d[3])||(c.l=d[3])}}this._tolerance=c},_setOption:function(b,c){var d="_set"+b.charAt(0).toUpperCase()+b.slice(1);this[d]!==
l&&this[d](c);a.mobile.widget.prototype._setOption.apply(this,arguments);-1===a.inArray(b,"initSelector closeLinkSelector closeLinkEvents navigateEvents closeEvents history container".split(" "))&&this.element.attr("data-"+(a.mobile.ns||"")+b.replace(/([A-Z])/,"-$1").toLowerCase(),c)},_placementCoords:function(a){var e,k,g;g=d();e=this._tolerance.l;var f=g.y+this._tolerance.t,h=g.cx-this._tolerance.l-this._tolerance.r,l=g.cy-this._tolerance.t-this._tolerance.b;this._ui.container.css("max-width",h);
k=this._ui.container.outerWidth(!0);g=this._ui.container.outerHeight(!0);e=c(h,k,e,a.x);a=c(l,g,f,a.y);a=Math.max(0,a);f=p.documentElement;h=p.body;return a-=Math.min(a,Math.max(0,a+g-Math.max(f.clientHeight,h.scrollHeight,h.offsetHeight,f.scrollHeight,f.offsetHeight))),{left:e,top:a}},_createPrereqs:function(b,c,d){var g=this,f;f={screen:a.Deferred(),container:a.Deferred()};f.screen.then(function(){f===g._prereqs&&b()});f.container.then(function(){f===g._prereqs&&c()});a.when(f.screen,f.container).done(function(){f===
g._prereqs&&(g._prereqs=null,d())});g._prereqs=f},_animate:function(b){this._ui.screen.removeClass(b.classToRemove).addClass(b.screenClassToAdd);b.prereqs.screen.resolve();b.transition&&"none"!==b.transition?(b.applyTransition&&this._applyTransition(b.transition),this._ui.container.animationComplete(a.proxy(b.prereqs.container,"resolve")).addClass(b.containerClassToAdd).removeClass(b.classToRemove)):b.prereqs.container.resolve()},_desiredCoords:function(b,c,k){var g=null,f,h=d();if(k&&"origin"!==
k)if("window"===k)b=h.cx/2+h.x,c=h.cy/2+h.y;else{try{g=a(k)}catch(l){g=null}g&&(g.filter(":visible"),0===g.length&&(g=null))}g&&(f=g.offset(),b=f.left+g.outerWidth()/2,c=f.top+g.outerHeight()/2);if("number"!==a.type(b)||isNaN(b))b=h.cx/2+h.x;if("number"!==a.type(c)||isNaN(c))c=h.cy/2+h.y;return{x:b,y:c}},_openPrereqsComplete:function(){var a=this;a._ui.container.addClass("ui-popup-active");a._isOpen=!0;a._resizeScreen();setTimeout(function(){a._ui.container.attr("tabindex","0").focus();a._trigger("afteropen")})},
_open:function(b){var c,d;c=navigator.userAgent;d=c.match(/AppleWebKit\/([0-9\.]+)/);d=!!d&&d[1];var g=c.match(/Android (\d+(?:\.\d+))/),f=!!g&&g[1];c=-1<c.indexOf("Chrome");d=null!==g&&"4.0"===f&&d&&534.13<d&&!c?!0:!1;b=b||{};c=b.transition||this.options.transition;this._trigger("beforeposition");b=this._placementCoords(this._desiredCoords(b.x,b.y,b.positionTo||this.options.positionTo||"origin"));this._createPrereqs(a.noop,a.noop,a.proxy(this,"_openPrereqsComplete"));c?(this._currentTransition=c,
this._applyTransition(c)):c=this.options.transition;this.options.theme||this._setTheme(this._page.jqmData("theme")||a.mobile.getInheritedTheme(this._page,"c"));this._ui.screen.removeClass("ui-screen-hidden");this._ui.container.removeClass("ui-selectmenu-hidden").offset(b);this.options.overlayTheme&&d&&this.element.closest(".ui-page").addClass("ui-popup-open");this._animate({additionalCondition:!0,transition:c,classToRemove:"",screenClassToAdd:"in",containerClassToAdd:"in",applyTransition:!1,prereqs:this._prereqs})},
_closePrereqScreen:function(){this._ui.screen.removeClass("out").addClass("ui-screen-hidden")},_closePrereqContainer:function(){this._ui.container.removeClass("reverse out").addClass("ui-selectmenu-hidden").removeAttr("style")},_closePrereqsDone:function(){var b=this.options;this._ui.container.removeAttr("tabindex");b.container.unbind(b.closeEvents);this.element.undelegate(b.closeLinkSelector,b.closeLinkEvents);a.mobile.popup.active=l;this._trigger("afterclose")},_close:function(){this._ui.container.removeClass("ui-popup-active");
this._page.removeClass("ui-popup-open");this._isOpen=!1;this._createPrereqs(a.proxy(this,"_closePrereqScreen"),a.proxy(this,"_closePrereqContainer"),a.proxy(this,"_closePrereqsDone"));this._animate({additionalCondition:this._ui.screen.hasClass("in"),transition:this._currentTransition||this.options.transition,classToRemove:"in",screenClassToAdd:"out",containerClassToAdd:"reverse out",applyTransition:!0,prereqs:this._prereqs})},_destroy:function(){this._close();this._setTheme("none");this.element.insertAfter(this._ui.placeholder).removeClass("ui-popup ui-overlay-shadow ui-corner-all");
this._ui.screen.remove();this._ui.container.remove();this._ui.placeholder.remove();a.each(this._globalHandlers,function(b,c){a.each(c.handler,function(a,b){c.src.unbind(a,b)})})},_bindContainerClose:function(){this.options.container.one(this.options.closeEvents,a.proxy(this._close,this))},open:function(b){var c=this,d=this.options,g,f,h,q,m;a.mobile.popup.active||(a.mobile.popup.active=this,d.history?(f=a.mobile.dialogHashKey,g=a.mobile.activePage,h=g.is(".ui-dialog"),g=a.mobile.urlHistory.getActive().url,
q=-1<g.indexOf(f)&&!h,m=a.mobile.urlHistory,q?(c._open(b),c._bindContainerClose()):(-1!==g.indexOf(f)||h?g=a.mobile.path.parseLocation().hash+f:g+=f,0===m.activeIndex&&g===m.initialDst&&(g+=f),d.container.one(d.navigateEvents,function(a){a.preventDefault();c._open(b);c._bindContainerClose()}),m.ignoreNextHashChange=h,m.addNew(g,l,l,l,"dialog"),a.mobile.path.set(g))):(c._open(b),c._bindContainerClose(),c.element.delegate(d.closeLinkSelector,d.closeLinkEvents,function(a){return c._close(),!1})))},close:function(){a.mobile.popup.active&&
(this.options.history?a.mobile.back():this._close())}});a.mobile.popup.handleLink=function(b){var c=b.closest(":jqmData(role\x3d'page')"),c=0===c.length?a("body"):c,c=a(a.mobile.path.parseUrl(b.attr("href")).hash,c[0]),d;c.data("popup")&&(d=b.offset(),c.popup("open",{x:d.left+b.outerWidth()/2,y:d.top+b.outerHeight()/2,transition:b.jqmData("transition"),positionTo:b.jqmData("position-to"),link:b}));setTimeout(function(){b.removeClass(a.mobile.activeBtnClass)},300)};a(p).bind("pagebeforechange",function(b,
c){"popup"===c.options.role&&(a.mobile.popup.handleLink(c.options.link),b.preventDefault())});a(p).bind("pagecreate create",function(b){a.mobile.popup.prototype.enhanceWithin(b.target,!0)})})(n);(function(a){var l=a("meta[name\x3dviewport]"),c=l.attr("content"),d=c+",maximum-scale\x3d1, user-scalable\x3dno",b=c+",maximum-scale\x3d10, user-scalable\x3dyes",e=/(user-scalable[\s]*=[\s]*no)|(maximum-scale[\s]*=[\s]*1)[$,\s]/.test(c);a.mobile.zoom=a.extend({},{enabled:!e,locked:!1,disable:function(b){!e&&
!a.mobile.zoom.locked&&(l.attr("content",d),a.mobile.zoom.enabled=!1,a.mobile.zoom.locked=b||!1)},enable:function(c){!(e||a.mobile.zoom.locked&&!0!==c)&&(l.attr("content",b),a.mobile.zoom.enabled=!0,a.mobile.zoom.locked=!1)},restore:function(){e||(l.attr("content",c),a.mobile.zoom.enabled=!0)}})})(n);(function(a,l){a.widget("mobile.textinput",a.mobile.widget,{options:{theme:null,preventFocusZoom:/iPhone|iPad|iPod/.test(navigator.platform)&&-1<navigator.userAgent.indexOf("AppleWebKit"),initSelector:"input[type\x3d'text'], input[type\x3d'search'], :jqmData(type\x3d'search'), input[type\x3d'number'], :jqmData(type\x3d'number'), input[type\x3d'password'], input[type\x3d'email'], input[type\x3d'url'], input[type\x3d'tel'], textarea, input[type\x3d'time'], input[type\x3d'date'], input[type\x3d'month'], input[type\x3d'week'], input[type\x3d'datetime'], input[type\x3d'datetime-local'], input[type\x3d'color'], input:not([type])",
clearSearchButtonText:"clear text",disabled:!1},_create:function(){function c(){setTimeout(function(){m.toggleClass("ui-input-clear-hidden",!b.val())},0)}var d=this,b=this.element,e=this.options,k=e.theme||a.mobile.getInheritedTheme(this.element,"c"),g=" ui-body-"+k,f=!0===b.jqmData("mini"),h=f?" ui-mini":"",l,m;a("label[for\x3d'"+b.attr("id")+"']").addClass("ui-input-text");l=b.addClass("ui-input-text ui-body-"+k);"undefined"!=typeof b[0].autocorrect&&!a.support.touchOverflow&&(b[0].setAttribute("autocorrect",
"off"),b[0].setAttribute("autocomplete","off"));b.is("[type\x3d'search'],:jqmData(type\x3d'search')")?(l=b.wrap("\x3cdiv class\x3d'ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield"+g+h+"'\x3e\x3c/div\x3e").parent(),m=a("\x3ca href\x3d'#' class\x3d'ui-input-clear' title\x3d'"+e.clearSearchButtonText+"'\x3e"+e.clearSearchButtonText+"\x3c/a\x3e").bind("click",function(a){b.val("").focus().trigger("change");m.addClass("ui-input-clear-hidden");a.preventDefault()}).appendTo(l).buttonMarkup({icon:"delete",
iconpos:"notext",corners:!0,shadow:!0,mini:f}),c(),b.bind("paste cut keyup focus change blur",c)):b.addClass("ui-corner-all ui-shadow-inset"+g+h);b.focus(function(){l.addClass(a.mobile.focusClass)}).blur(function(){l.removeClass(a.mobile.focusClass)}).bind("focus",function(){e.preventFocusZoom&&a.mobile.zoom.disable(!0)}).bind("blur",function(){e.preventFocusZoom&&a.mobile.zoom.enable(!0)});if(b.is("textarea")){var n;this._keyup=function(){var a=b[0].scrollHeight;b[0].clientHeight<a&&b.height(a+15)};
b.keyup(function(){clearTimeout(n);n=setTimeout(d._keyup,100)});this._on(a(p),{pagechange:"_keyup"});a.trim(b.val())&&this._on(a(t),{load:"_keyup"})}b.attr("disabled")&&this.disable()},disable:function(){var a;return this.element.attr("disabled",!0).is("[type\x3d'search'], :jqmData(type\x3d'search')")?a=this.element.parent():a=this.element,a.addClass("ui-disabled"),this._setOption("disabled",!0)},enable:function(){var a;return this.element.attr("disabled",!1).is("[type\x3d'search'], :jqmData(type\x3d'search')")?
a=this.element.parent():a=this.element,a.removeClass("ui-disabled"),this._setOption("disabled",!1)}});a(p).bind("pagecreate create",function(c){a.mobile.textinput.prototype.enhanceWithin(c.target,!0)})})(n);(function(a,l){a.mobile.listview.prototype.options.filter=!1;a.mobile.listview.prototype.options.filterPlaceholder="Filter items...";a.mobile.listview.prototype.options.filterTheme="c";var c=function(a,b,c){return-1===a.toString().toLowerCase().indexOf(b)};a.mobile.listview.prototype.options.filterCallback=
c;a(p).delegate(":jqmData(role\x3d'listview')","listviewcreate",function(){var d=a(this),b=d.data("listview");if(b.options.filter){var e=a("\x3cform\x3e",{"class":"ui-listview-filter ui-bar-"+b.options.filterTheme,role:"search"});a("\x3cinput\x3e",{placeholder:b.options.filterPlaceholder}).attr("data-"+a.mobile.ns+"type","search").jqmData("lastval","").bind("keyup change",function(){var e=a(this),g=this.value.toLowerCase(),f=null,h=e.jqmData("lastval")+"",l=!1,m="",m=b.options.filterCallback!==c;
b._trigger("beforefilter","beforefilter",{input:this});e.jqmData("lastval",g);m||g.length<h.length||0!==g.indexOf(h)?f=d.children():f=d.children(":not(.ui-screen-hidden)");if(g){for(h=f.length-1;0<=h;h--)e=a(f[h]),m=e.jqmData("filtertext")||e.text(),e.is("li:jqmData(role\x3dlist-divider)")?(e.toggleClass("ui-filter-hidequeue",!l),l=!1):b.options.filterCallback(m,g,e)?e.toggleClass("ui-filter-hidequeue",!0):l=!0;f.filter(":not(.ui-filter-hidequeue)").toggleClass("ui-screen-hidden",!1);f.filter(".ui-filter-hidequeue").toggleClass("ui-screen-hidden",
!0).toggleClass("ui-filter-hidequeue",!1)}else f.toggleClass("ui-screen-hidden",!1);b._refreshCorners()}).appendTo(e).textinput();b.options.inset&&e.addClass("ui-listview-filter-inset");e.bind("submit",function(){return!1}).insertBefore(d)}})})(n);(function(a,l){a.widget("mobile.slider",a.mobile.widget,{widgetEventPrefix:"slide",options:{theme:null,trackTheme:null,disabled:!1,initSelector:"input[type\x3d'range'], :jqmData(type\x3d'range'), :jqmData(role\x3d'slider')",mini:!1},_create:function(){var c=
this,d=this.element,b=a.mobile.getInheritedTheme(d,"c"),e=this.options.theme||b,b=this.options.trackTheme||b,k=d[0].nodeName.toLowerCase(),g="select"===k?"ui-slider-switch":"",f=d.attr("id"),h=a("[for\x3d'"+f+"']"),q=h.attr("id")||f+"-label",h=h.attr("id",q),m=function(){return"input"===k?parseFloat(d.val()):d[0].selectedIndex},n="input"===k?parseFloat(d.attr("min")):0,r="input"===k?parseFloat(d.attr("max")):d.find("option").length-1,A=t.parseFloat(d.attr("step")||1),w=this.options.inline||!0===d.jqmData("inline")?
" ui-slider-inline":"",u=this.options.mini||d.jqmData("mini")?" ui-slider-mini":"",x=p.createElement("a"),z=a(x),f=p.createElement("div"),y=a(f),F=d.jqmData("highlight")&&"select"!==k?function(){var b=p.createElement("div");return b.className="ui-slider-bg "+a.mobile.activeBtnClass+" ui-btn-corner-all",a(b).prependTo(y)}():!1;this._type=k;x.setAttribute("href","#");f.setAttribute("role","application");f.className=["ui-slider ",g," ui-btn-down-",b," ui-btn-corner-all",w,u].join("");x.className="ui-slider-handle";
f.appendChild(x);z.buttonMarkup({corners:!0,theme:e,shadow:!0}).attr({role:"slider","aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":m(),"aria-valuetext":m(),title:m(),"aria-labelledby":q});a.extend(this,{slider:y,handle:z,valuebg:F,dragging:!1,beforeStart:null,userModified:!1,mouseMoved:!1});if("select"===k){e=p.createElement("div");e.className="ui-slider-inneroffset";g=0;for(q=f.childNodes.length;g<q;g++)e.appendChild(f.childNodes[g]);f.appendChild(e);z.addClass("ui-slider-handle-snapping");
e=d.find("option");f=0;for(g=e.length;f<g;f++)q=f?"a":"b",w=f?" "+a.mobile.activeBtnClass:" ui-btn-down-"+b,p.createElement("div"),u=p.createElement("span"),u.className=["ui-slider-label ui-slider-label-",q,w," ui-btn-corner-all"].join(""),u.setAttribute("role","img"),u.appendChild(p.createTextNode(e[f].innerHTML)),a(u).prependTo(y);c._labels=a(".ui-slider-label",y)}h.addClass("ui-slider");d.addClass("input"===k?"ui-slider-input":"ui-slider-switch").change(function(){c.mouseMoved||c.refresh(m(),!0)}).keyup(function(){c.refresh(m(),
!0,!0)}).blur(function(){c.refresh(m(),!0)});this._preventDocumentDrag=function(a){if(c.dragging&&!c.options.disabled)return c.mouseMoved=!0,"select"===k&&z.removeClass("ui-slider-handle-snapping"),c.refresh(a),c.userModified=c.beforeStart!==d[0].selectedIndex,!1};this._on(a(p),{vmousemove:this._preventDocumentDrag});d.bind("vmouseup",a.proxy(c._checkedRefresh,c));y.bind("vmousedown",function(a){return c.options.disabled?!1:(c.dragging=!0,c.userModified=!1,c.mouseMoved=!1,"select"===k&&(c.beforeStart=
d[0].selectedIndex),c.refresh(a),c._trigger("start"),!1)}).bind("vclick",!1);this._sliderMouseUp=function(){if(c.dragging)return c.dragging=!1,"select"===k&&(z.addClass("ui-slider-handle-snapping"),c.mouseMoved?c.userModified?c.refresh(0===c.beforeStart?1:0):c.refresh(c.beforeStart):c.refresh(0===c.beforeStart?1:0)),c.mouseMoved=!1,c._trigger("stop"),!1};this._on(y.add(p),{vmouseup:this._sliderMouseUp});y.insertAfter(d);"select"===k&&this.handle.bind({focus:function(){y.addClass(a.mobile.focusClass)},
blur:function(){y.removeClass(a.mobile.focusClass)}});this.handle.bind({vmousedown:function(){a(this).focus()},vclick:!1,keydown:function(b){var d=m();if(!c.options.disabled){switch(b.keyCode){case a.mobile.keyCode.HOME:case a.mobile.keyCode.END:case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:b.preventDefault(),c._keySliding||(c._keySliding=!0,a(this).addClass("ui-state-active"))}switch(b.keyCode){case a.mobile.keyCode.HOME:c.refresh(n);
break;case a.mobile.keyCode.END:c.refresh(r);break;case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:c.refresh(d+A);break;case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:c.refresh(d-A)}}},keyup:function(b){c._keySliding&&(c._keySliding=!1,a(this).removeClass("ui-state-active"))}});this.refresh(l,l,!0)},_checkedRefresh:function(){this.value!=this._value()&&this.refresh(this._value())},_value:function(){return"input"===this._type?
parseFloat(this.element.val()):this.element[0].selectedIndex},refresh:function(c,d,b){(this.options.disabled||this.element.attr("disabled"))&&this.disable();this.value=this._value();var e=this.element,k=e[0].nodeName.toLowerCase(),g="input"===k?parseFloat(e.attr("min")):0,f="input"===k?parseFloat(e.attr("max")):e.find("option").length-1,h="input"===k&&0<parseFloat(e.attr("step"))?parseFloat(e.attr("step")):1;if("object"==typeof c){if(!this.dragging||c.pageX<this.slider.offset().left-8||c.pageX>this.slider.offset().left+
this.slider.width()+8)return;c=Math.round((c.pageX-this.slider.offset().left)/this.slider.width()*100)}else null==c&&(c="input"===k?parseFloat(e.val()||0):e[0].selectedIndex),c=(parseFloat(c)-g)/(f-g)*100;if(!isNaN(c)){0>c&&(c=0);100<c&&(c=100);var l=c/100*(f-g)+g,m=(l-g)%h,l=l-m;2*Math.abs(m)>=h&&(l+=0<m?h:-h);l=parseFloat(l.toFixed(5));l<g&&(l=g);l>f&&(l=f);this.handle.css("left",c+"%");this.handle.attr({"aria-valuenow":"input"===k?l:e.find("option").eq(l).attr("value"),"aria-valuetext":"input"===
k?l:e.find("option").eq(l).getEncodedText(),title:"input"===k?l:e.find("option").eq(l).getEncodedText()});this.valuebg&&this.valuebg.css("width",c+"%");if(this._labels){var g=this.handle.width()/this.slider.width()*100,p=c&&g+(100-g)*c/100,n=100===c?0:Math.min(g+100-p,100);this._labels.each(function(){var b=a(this).is(".ui-slider-label-a");a(this).width((b?p:n)+"%")})}b||(b=!1,"input"===k?(b=e.val()!==l,e.val(l)):(b=e[0].selectedIndex!==l,e[0].selectedIndex=l),!d&&b&&e.trigger("change"))}},enable:function(){return this.element.attr("disabled",
!1),this.slider.removeClass("ui-disabled").attr("aria-disabled",!1),this._setOption("disabled",!1)},disable:function(){return this.element.attr("disabled",!0),this.slider.addClass("ui-disabled").attr("aria-disabled",!0),this._setOption("disabled",!0)}});a(p).bind("pagecreate create",function(c){a.mobile.slider.prototype.enhanceWithin(c.target,!0)})})(n);(function(a,l){a.widget("mobile.selectmenu",a.mobile.widget,{options:{theme:null,disabled:!1,icon:"arrow-d",iconpos:"right",inline:!1,corners:!0,
shadow:!0,iconshadow:!0,overlayTheme:"a",hidePlaceholderMenuItems:!0,closeText:"Close",nativeMenu:!0,preventFocusZoom:/iPhone|iPad|iPod/.test(navigator.platform)&&-1<navigator.userAgent.indexOf("AppleWebKit"),initSelector:"select:not( :jqmData(role\x3d'slider') )",mini:!1},_button:function(){return a("\x3cdiv/\x3e")},_setDisabled:function(a){return this.element.attr("disabled",a),this.button.attr("aria-disabled",a),this._setOption("disabled",a)},_focusButton:function(){var a=this;setTimeout(function(){a.button.focus()},
40)},_selectOptions:function(){return this.select.find("option")},_preExtension:function(){var c="";!~this.element[0].className.indexOf("ui-btn-left")||(c=" ui-btn-left");!~this.element[0].className.indexOf("ui-btn-right")||(c=" ui-btn-right");this.select=this.element.wrap("\x3cdiv class\x3d'ui-select"+c+"'\x3e");this.selectID=this.select.attr("id");this.label=a("label[for\x3d'"+this.selectID+"']").addClass("ui-select");this.isMultiple=this.select[0].multiple;this.options.theme||(this.options.theme=
a.mobile.getInheritedTheme(this.select,"c"))},_create:function(){this._preExtension();this._trigger("beforeCreate");this.button=this._button();var c=this,d=this.options,b=d.inline||this.select.jqmData("inline"),e=d.mini||this.select.jqmData("mini"),k=d.icon?d.iconpos||this.select.jqmData("iconpos"):!1,b=this.button.insertBefore(this.select).buttonMarkup({theme:d.theme,icon:d.icon,iconpos:k,inline:b,corners:d.corners,shadow:d.shadow,iconshadow:d.iconshadow,mini:e});this.setButtonText();d.nativeMenu&&
t.opera&&t.opera.version&&b.addClass("ui-select-nativeonly");this.isMultiple&&(this.buttonCount=a("\x3cspan\x3e").addClass("ui-li-count ui-btn-up-c ui-btn-corner-all").hide().appendTo(b.addClass("ui-li-has-count")));(d.disabled||this.element.attr("disabled"))&&this.disable();this.select.change(function(){c.refresh()});this.build()},build:function(){var c=this;this.select.appendTo(c.button).bind("vmousedown",function(){c.button.addClass(a.mobile.activeBtnClass)}).bind("focus",function(){c.button.addClass(a.mobile.focusClass)}).bind("blur",
function(){c.button.removeClass(a.mobile.focusClass)}).bind("focus vmouseover",function(){c.button.trigger("vmouseover")}).bind("vmousemove",function(){c.button.removeClass(a.mobile.activeBtnClass)}).bind("change blur vmouseout",function(){c.button.trigger("vmouseout").removeClass(a.mobile.activeBtnClass)}).bind("change blur",function(){c.button.removeClass("ui-btn-down-"+c.options.theme)});c.button.bind("vmousedown",function(){c.options.preventFocusZoom&&a.mobile.zoom.disable(!0)}).bind("mouseup",
function(){c.options.preventFocusZoom&&setTimeout(function(){a.mobile.zoom.enable(!0)},0)})},selected:function(){return this._selectOptions().filter(":selected")},selectedIndices:function(){var a=this;return this.selected().map(function(){return a._selectOptions().index(this)}).get()},setButtonText:function(){var c=this,d=this.selected(),b=this.placeholder,e=a(p.createElement("span"));this.button.find(".ui-btn-text").html(function(){return d.length?b=d.map(function(){return a(this).text()}).get().join(", "):
b=c.placeholder,e.text(b).addClass(c.select.attr("class")).addClass(d.attr("class"))})},setButtonCount:function(){var a=this.selected();this.isMultiple&&this.buttonCount[1<a.length?"show":"hide"]().text(a.length)},refresh:function(){this.setButtonText();this.setButtonCount()},open:a.noop,close:a.noop,disable:function(){this._setDisabled(!0);this.button.addClass("ui-disabled")},enable:function(){this._setDisabled(!1);this.button.removeClass("ui-disabled")}});a(p).bind("pagecreate create",function(c){a.mobile.selectmenu.prototype.enhanceWithin(c.target,
!0)})})(n);(function(a,l){var c=function(c){var b=c.selectID,e=c.label,k=c.select.closest(".ui-page"),g=c._selectOptions(),f=c.isMultiple=c.select[0].multiple,h=b+"-button",l=b+"-menu",m=a("\x3cdiv data-"+a.mobile.ns+"role\x3d'dialog' data-"+a.mobile.ns+"theme\x3d'"+c.options.theme+"' data-"+a.mobile.ns+"overlay-theme\x3d'"+c.options.overlayTheme+"'\x3e\x3cdiv data-"+a.mobile.ns+"role\x3d'header'\x3e\x3cdiv class\x3d'ui-title'\x3e"+e.getEncodedText()+"\x3c/div\x3e\x3c/div\x3e\x3cdiv data-"+a.mobile.ns+
"role\x3d'content'\x3e\x3c/div\x3e\x3c/div\x3e"),n=a("\x3cdiv\x3e",{"class":"ui-selectmenu"}).insertAfter(c.select).popup({theme:"a"}),r=a("\x3cul\x3e",{"class":"ui-selectmenu-list",id:l,role:"listbox","aria-labelledby":h}).attr("data-"+a.mobile.ns+"theme",c.options.theme).appendTo(n),A=a("\x3cdiv\x3e",{"class":"ui-header ui-bar-"+c.options.theme}).prependTo(n),w=a("\x3ch1\x3e",{"class":"ui-title"}).appendTo(A),u;c.isMultiple&&(u=a("\x3ca\x3e",{text:c.options.closeText,href:"#","class":"ui-btn-left"}).attr("data-"+
a.mobile.ns+"iconpos","notext").attr("data-"+a.mobile.ns+"icon","delete").appendTo(A).buttonMarkup());a.extend(c,{select:c.select,selectID:b,buttonId:h,menuId:l,thisPage:k,menuPage:m,label:e,selectOptions:g,isMultiple:f,theme:c.options.theme,listbox:n,list:r,header:A,headerTitle:w,headerClose:u,menuPageContent:void 0,menuPageClose:void 0,placeholder:"",build:function(){var b=this;b.refresh();b.select.attr("tabindex","-1").focus(function(){a(this).blur();b.button.focus()});b.button.bind("vclick keydown",
function(c){if("vclick"===c.type||c.keyCode&&(c.keyCode===a.mobile.keyCode.ENTER||c.keyCode===a.mobile.keyCode.SPACE))b.open(),c.preventDefault()});b.list.attr("role","listbox").bind("focusin",function(b){a(b.target).attr("tabindex","0").trigger("vmouseover")}).bind("focusout",function(b){a(b.target).attr("tabindex","-1").trigger("vmouseout")}).delegate("li:not(.ui-disabled, .ui-li-divider)","click",function(e){var f=b.select[0].selectedIndex,g=b.list.find("li:not(.ui-li-divider)").index(this),h=
b._selectOptions().eq(g)[0];h.selected=b.isMultiple?!h.selected:!0;b.isMultiple&&a(this).find(".ui-icon").toggleClass("ui-icon-checkbox-on",h.selected).toggleClass("ui-icon-checkbox-off",!h.selected);(b.isMultiple||f!==g)&&b.select.trigger("change");b.isMultiple?b.list.find("li:not(.ui-li-divider)").eq(g).addClass("ui-btn-down-"+c.options.theme).find("a").first().focus():b.close();e.preventDefault()}).keydown(function(b){var e=a(b.target),f=e.closest("li"),g,h;switch(b.keyCode){case 38:return g=f.prev().not(".ui-selectmenu-placeholder"),
g.is(".ui-li-divider")&&(g=g.prev()),g.length&&(e.blur().attr("tabindex","-1"),g.addClass("ui-btn-down-"+c.options.theme).find("a").first().focus()),!1;case 40:return h=f.next(),h.is(".ui-li-divider")&&(h=h.next()),h.length&&(e.blur().attr("tabindex","-1"),h.addClass("ui-btn-down-"+c.options.theme).find("a").first().focus()),!1;case 13:case 32:return e.trigger("click"),!1}});b.menuPage.bind("pagehide",function(){b.list.appendTo(b.listbox);b._focusButton();a.mobile._bindPageRemove.call(b.thisPage)});
b.listbox.bind("popupafterclose",function(a){b.close()});b.isMultiple&&b.headerClose.click(function(){if("overlay"===b.menuType)return b.close(),!1});b.thisPage.addDependents(this.menuPage)},_isRebuildRequired:function(){var a=this.list.find("li");return this._selectOptions().text()!==a.text()},selected:function(){return this._selectOptions().filter(":selected:not( :jqmData(placeholder\x3d'true') )")},refresh:function(b,c){var d=this,e;(b||this._isRebuildRequired())&&d._buildList();e=this.selectedIndices();
d.setButtonText();d.setButtonCount();d.list.find("li:not(.ui-li-divider)").removeClass(a.mobile.activeBtnClass).attr("aria-selected",!1).each(function(b){-1<a.inArray(b,e)&&(b=a(this),b.attr("aria-selected",!0),d.isMultiple?b.find(".ui-icon").removeClass("ui-icon-checkbox-off").addClass("ui-icon-checkbox-on"):b.is(".ui-selectmenu-placeholder")?b.next().addClass(a.mobile.activeBtnClass):b.addClass(a.mobile.activeBtnClass))})},close:function(){!this.options.disabled&&this.isOpen&&("page"===this.menuType?
a.mobile.back():(this.listbox.popup("close"),this.list.appendTo(this.listbox),this._focusButton()),this.isOpen=!1)},open:function(){function b(){var f=e.list.find("."+a.mobile.activeBtnClass+" a");0===f.length&&(f=e.list.find("li.ui-btn:not( :jqmData(placeholder\x3d'true') ) a"));f.first().focus().closest("li").addClass("ui-btn-down-"+c.options.theme)}if(!this.options.disabled){var e=this,f=a(t),g=e.list.parent(),h=g.outerHeight();g.outerWidth();a("."+a.mobile.activePageClass);var g=f.scrollTop(),
k=e.button.offset().top,l=f.height();f.width();e.button.addClass(a.mobile.activeBtnClass);setTimeout(function(){e.button.removeClass(a.mobile.activeBtnClass)},300);h>l-80||!a.support.scrollTop?(e.menuPage.appendTo(a.mobile.pageContainer).page(),e.menuPageContent=m.find(".ui-content"),e.menuPageClose=m.find(".ui-header a"),e.thisPage.unbind("pagehide.remove"),0===g&&k>l&&e.thisPage.one("pagehide",function(){a(this).jqmData("lastScroll",k)}),e.menuPage.one("pageshow",function(){b();e.isOpen=!0}),e.menuType=
"page",e.menuPageContent.append(e.list),e.menuPage.find("div .ui-title").text(e.label.text()),a.mobile.changePage(e.menuPage,{transition:a.mobile.defaultDialogTransition})):(e.menuType="overlay",e.listbox.one("popupafteropen",b).popup("open",{x:e.button.offset().left+e.button.outerWidth()/2,y:e.button.offset().top+e.button.outerHeight()/2}),e.isOpen=!0)}},_buildList:function(){var b=this.options,c=this.placeholder,d=!0,e=this.isMultiple?"checkbox-off":"false";this.list.empty().filter(".ui-listview").listview("destroy");
for(var f=this.select.find("option"),g=f.length,h=this.select[0],k="data-"+a.mobile.ns,l=k+"option-index",m=k+"icon",n=k+"role",k=k+"placeholder",q=p.createDocumentFragment(),r=!1,t,u=0;u<g;u++,r=!1){var w=f[u],v=a(w),A=w.parentNode,M=v.text(),J=p.createElement("a"),N=[];J.setAttribute("href","#");J.appendChild(p.createTextNode(M));A!==h&&"optgroup"===A.nodeName.toLowerCase()&&(A=A.getAttribute("label"),A!==t&&(t=p.createElement("li"),t.setAttribute(n,"list-divider"),t.setAttribute("role","option"),
t.setAttribute("tabindex","-1"),t.appendChild(p.createTextNode(A)),q.appendChild(t),t=A));d&&(!w.getAttribute("value")||0===M.length||v.jqmData("placeholder"))&&(d=!1,r=!0,w.setAttribute(k,!0),b.hidePlaceholderMenuItems&&N.push("ui-selectmenu-placeholder"),c||(c=this.placeholder=M));v=p.createElement("li");w.disabled&&(N.push("ui-disabled"),v.setAttribute("aria-disabled",!0));v.setAttribute(l,u);v.setAttribute(m,e);r&&v.setAttribute(k,!0);v.className=N.join(" ");v.setAttribute("role","option");J.setAttribute("tabindex",
"-1");v.appendChild(J);q.appendChild(v)}this.list[0].appendChild(q);this.isMultiple||c.length?this.headerTitle.text(this.placeholder):this.header.hide();this.list.listview()},_button:function(){return a("\x3ca\x3e",{href:"#",role:"button",id:this.buttonId,"aria-haspopup":"true","aria-owns":this.menuId})}})};a(p).bind("selectmenubeforecreate",function(d){d=a(d.target).data("selectmenu");!d.options.nativeMenu&&0===d.element.parents(":jqmData(role\x3d'popup')").length&&c(d)})})(n);(function(a,l){a.widget("mobile.fixedtoolbar",
a.mobile.widget,{options:{visibleOnPageShow:!0,disablePageZoom:!0,transition:"slide",fullscreen:!1,tapToggle:!0,tapToggleBlacklist:"a, button, input, select, textarea, .ui-header-fixed, .ui-footer-fixed, .ui-popup",hideDuringFocus:"input, textarea, select",updatePagePadding:!0,trackPersistentToolbars:!0,supportBlacklist:function(){var a=navigator.userAgent,d=navigator.platform,b=a.match(/AppleWebKit\/([0-9]+)/),b=!!b&&b[1],e=a.match(/Fennec\/([0-9]+)/),e=!!e&&e[1],k=a.match(/Opera Mobi\/([0-9]+)/),
g=!!k&&k[1];return(-1<d.indexOf("iPhone")||-1<d.indexOf("iPad")||-1<d.indexOf("iPod"))&&b&&534>b||t.operamini&&"[object OperaMini]"==={}.toString.call(t.operamini)||k&&7458>g||-1<a.indexOf("Android")&&b&&533>b||e&&6>e||"palmGetResource"in t&&b&&534>b||-1<a.indexOf("MeeGo")&&-1<a.indexOf("NokiaBrowser/8.5.0")?!0:!1},initSelector:":jqmData(position\x3d'fixed')"},_create:function(){var a=this.options,d=this.element,b=d.is(":jqmData(role\x3d'header')")?"header":"footer",e=d.closest(".ui-page");a.supportBlacklist()?
this.destroy():(d.addClass("ui-"+b+"-fixed"),a.fullscreen?(d.addClass("ui-"+b+"-fullscreen"),e.addClass("ui-page-"+b+"-fullscreen")):e.addClass("ui-page-"+b+"-fixed"),this._addTransitionClass(),this._bindPageEvents(),this._bindToggleHandlers())},_addTransitionClass:function(){var a=this.options.transition;a&&"none"!==a&&("slide"===a&&(a=this.element.is(".ui-header")?"slidedown":"slideup"),this.element.addClass(a))},_bindPageEvents:function(){var c=this,d=c.options;c.element.closest(".ui-page").bind("pagebeforeshow",
function(){d.disablePageZoom&&a.mobile.zoom.disable(!0);d.visibleOnPageShow||c.hide(!0)}).bind("webkitAnimationStart animationstart updatelayout",function(){d.updatePagePadding&&c.updatePagePadding(this)}).bind("pageshow",function(){var b=this;c.updatePagePadding(b);d.updatePagePadding&&a(t).bind("throttledresize."+c.widgetName,function(){c.updatePagePadding(b)})}).bind("pagebeforehide",function(b,e){d.disablePageZoom&&a.mobile.zoom.enable(!0);d.updatePagePadding&&a(t).unbind("throttledresize."+c.widgetName);
if(d.trackPersistentToolbars){var k=a(".ui-footer-fixed:jqmData(id)",this),g=a(".ui-header-fixed:jqmData(id)",this),f=k.length&&e.nextPage&&a(".ui-footer-fixed:jqmData(id\x3d'"+k.jqmData("id")+"')",e.nextPage)||a(),h=g.length&&e.nextPage&&a(".ui-header-fixed:jqmData(id\x3d'"+g.jqmData("id")+"')",e.nextPage)||a();if(f.length||h.length)f.add(h).appendTo(a.mobile.pageContainer),e.nextPage.one("pageshow",function(){f.add(h).appendTo(this)})}})},_visible:!0,updatePagePadding:function(c){var d=this.element,
b=d.is(".ui-header");this.options.fullscreen||(c=c||d.closest(".ui-page"),a(c).css("padding-"+(b?"top":"bottom"),d.outerHeight()))},_useTransition:function(c){var d=a(t),b=this.element,d=d.scrollTop(),e=b.height(),k=b.closest(".ui-page").height(),g=a.mobile.getScreenHeight(),b=b.is(":jqmData(role\x3d'header')")?"header":"footer";return!c&&(this.options.transition&&"none"!==this.options.transition&&("header"===b&&!this.options.fullscreen&&d>e||"footer"===b&&!this.options.fullscreen&&d+g<k-e)||this.options.fullscreen)},
show:function(a){var d=this.element;this._useTransition(a)?d.removeClass("out ui-fixed-hidden").addClass("in"):d.removeClass("ui-fixed-hidden");this._visible=!0},hide:function(a){var d=this.element,b="out"+("slide"===this.options.transition?" reverse":"");this._useTransition(a)?d.addClass(b).removeClass("in").animationComplete(function(){d.addClass("ui-fixed-hidden").removeClass(b)}):d.addClass("ui-fixed-hidden").removeClass(b);this._visible=!1},toggle:function(){this[this._visible?"hide":"show"]()},
_bindToggleHandlers:function(){var c=this,d=c.options;c.element.closest(".ui-page").bind("vclick",function(b){d.tapToggle&&!a(b.target).closest(d.tapToggleBlacklist).length&&c.toggle()}).bind("focusin focusout",function(b){500>screen.width&&a(b.target).is(d.hideDuringFocus)&&!a(b.target).closest(".ui-header-fixed, .ui-footer-fixed").length&&c["focusin"===b.type&&c._visible?"hide":"show"]()})},destroy:function(){this.element.removeClass("ui-header-fixed ui-footer-fixed ui-header-fullscreen ui-footer-fullscreen in out fade slidedown slideup ui-fixed-hidden");
this.element.closest(".ui-page").removeClass("ui-page-header-fixed ui-page-footer-fixed ui-page-header-fullscreen ui-page-footer-fullscreen")}});a(p).bind("pagecreate create",function(c){a(c.target).jqmData("fullscreen")&&a(a.mobile.fixedtoolbar.prototype.options.initSelector,c.target).not(":jqmData(fullscreen)").jqmData("fullscreen",!0);a.mobile.fixedtoolbar.prototype.enhanceWithin(c.target)})})(n);(function(a,l){function c(a){b=a.originalEvent;f=b.accelerationIncludingGravity;e=Math.abs(f.x);k=
Math.abs(f.y);g=Math.abs(f.z);!l.orientation&&(7<e||(6<g&&8>k||8>g&&6<k)&&5<e)?d.enabled&&d.disable():d.enabled||d.enable()}if(/iPhone|iPad|iPod/.test(navigator.platform)&&-1<navigator.userAgent.indexOf("AppleWebKit")){var d=a.mobile.zoom,b,e,k,g,f;a(l).bind("orientationchange.iosorientationfix",d.enable).bind("devicemotion.iosorientationfix",c)}})(n,this);(function(a,l,c){function d(){b.removeClass("ui-mobile-rendering")}var b=a("html");a("head");var e=a(l);a(l.document).trigger("mobileinit");a.mobile.gradeA()&&
(a.mobile.ajaxBlacklist&&(a.mobile.ajaxEnabled=!1),b.addClass("ui-mobile ui-mobile-rendering"),setTimeout(d,5E3),a.extend(a.mobile,{initializePage:function(){var b=a(":jqmData(role\x3d'page'), :jqmData(role\x3d'dialog')"),c=a.mobile.path.parseLocation().hash.replace("#",""),f=p.getElementById(c);b.length||(b=a("body").wrapInner("\x3cdiv data-"+a.mobile.ns+"role\x3d'page'\x3e\x3c/div\x3e").children(0));b.each(function(){var b=a(this);b.jqmData("url")||b.attr("data-"+a.mobile.ns+"url",b.attr("id")||
location.pathname+location.search)});a.mobile.firstPage=b.first();a.mobile.pageContainer=b.first().parent().addClass("ui-mobile-viewport");e.trigger("pagecontainercreate");a.mobile.showPageLoadingMsg();d();a.mobile.hashListeningEnabled&&a.mobile.path.isHashValid(location.hash)&&(a(f).is(':jqmData(role\x3d"page")')||a.mobile.path.isPath(c)||c===a.mobile.dialogHashKey)?e.trigger("hashchange",[!0]):(a.mobile.path.isHashValid(location.hash)&&(a.mobile.urlHistory.initialDst=c.replace("#","")),a.mobile.changePage(a.mobile.firstPage,
{transition:"none",reverse:!0,changeHash:!1,fromHashChange:!0}))}}),a.mobile.navreadyDeferred.resolve(),a(function(){l.scrollTo(0,1);a.mobile.defaultHomeScroll=a.support.scrollTop&&1!==a(l).scrollTop()?1:0;a.fn.controlgroup&&a(p).bind("pagecreate create",function(b){a(":jqmData(role\x3d'controlgroup')",b.target).jqmEnhanceable().controlgroup({excludeInvisible:!1})});a.mobile.autoInitializePage&&a.mobile.initializePage();e.load(a.mobile.silentScroll);a.support.cssPointerEvents||a(p).delegate(".ui-disabled",
"vclick",function(a){a.preventDefault();a.stopImmediatePropagation()})}))})(n,this)});
jQuery(document).ready(function(b){var a=b(".cd-top");b(window).scroll(function(){300<b(this).scrollTop()?a.addClass("cd-is-visible"):a.removeClass("cd-is-visible cd-fade-out");1200<b(this).scrollTop()&&a.addClass("cd-fade-out")});a.on("click",function(a){a.preventDefault();b("body,html").animate({scrollTop:0},700)})});
