//>>built
require({cache:{"url:dojox/widget/Pager/Pager.html":'<div dojoAttachPoint="pagerContainer" tabIndex="0" dojoAttachEvent="onkeypress: _handleKey, onfocus: _a11yStyle, onblur:_a11yStyle" class="${orientation}PagerContainer">\n    <div class="pagerContainer">\n\t\t<div dojoAttachPoint="pagerContainerStatus" class="${orientation}PagerStatus"></div>\n\t\t<div dojoAttachPoint="pagerContainerView" class="${orientation}PagerView">\n\t\t    <div dojoAttachPoint="pagerItemContainer"><ul dojoAttachPoint="pagerItems" class="pagerItems"></ul></div>\n\t\t</div>\n\t\t<div dojoAttachPoint="pagerContainerPager" class="${orientation}PagerPager">\n\t\t\t<div tabIndex="0" dojoAttachPoint="pagerNext" class="pagerIconContainer" dojoAttachEvent="onclick: _pagerNext"><img dojoAttachPoint="pagerIconNext" src="${iconNext}" alt="Next" /></div>\n\t\t\t<div tabIndex="0" dojoAttachPoint="pagerPrevious" class="pagerIconContainer" dojoAttachEvent="onclick: _pagerPrevious"><img dojoAttachPoint="pagerIconPrevious" src="${iconPrevious}" alt="Previous" /></div>\n\t\t</div>\n    </div>\n\t<div dojoAttachPoint="containerNode" style="display:none"></div>\n</div>'}});
define("dojox/widget/Pager","dojo/aspect,dojo/_base/array,dojo/_base/declare,dojo/dom,dojo/dom-attr,dojo/dom-class,dojo/dom-construct,dojo/dom-geometry,dojo/dom-style,dojo/fx,dojo/_base/kernel,dojo/keys,dojo/_base/lang,dojo/on,dijit/_WidgetBase,dijit/_TemplatedMixin,./PagerItem,dojo/text!./Pager/Pager.html".split(","),function(p,r,s,h,t,n,u,i,a,j,v,k,m,q,w,x,y,z){v.experimental("dojox.widget.Pager");return s("dojox.widget.Pager",[w,x],{templateString:z,iconPrevious:"",iconNext:"",iconPage:require.toUrl("dojox/widget/Pager/images/pageInactive.png"),
iconPageActive:require.toUrl("dojox/widget/Pager/images/pageActive.png"),store:null,orientation:"horizontal",statusPos:"leading",pagerPos:"center",duration:500,itemSpace:2,resizeChildren:!0,itemClass:y,itemsPage:3,postMixInProperties:function(){var a="horizontal"==this.orientation;m.mixin(this,{_totalPages:0,_currentPage:1,dirClass:"pager"+(a?"Horizontal":"Vertical"),iconNext:require.toUrl("dojox/widget/Pager/images/"+(a?"h":"v")+"Next.png"),iconPrevious:require.toUrl("dojox/widget/Pager/images/"+
(a?"h":"v")+"Previous.png")})},postCreate:function(){this.inherited(arguments);this.store.fetch({onComplete:m.hitch(this,"_init")})},_a11yStyle:function(a){n.toggle(a.target,"pagerFocus","focus"==a.type)},_handleKey:function(a){switch(a.charCode==k.SPACE?k.SPACE:a.keyCode){case k.UP_ARROW:case k.RIGHT_ARROW:case 110:case 78:a.preventDefault();this._pagerNext();break;case k.DOWN_ARROW:case k.LEFT_ARROW:case 112:case 80:a.preventDefault();this._pagerPrevious();break;case k.ENTER:switch(a.target){case this.pagerNext:this._pagerNext();
break;case this.pagerPrevious:this._pagerPrevious()}}},_init:function(a){this.items=a;this._renderPages();this._renderStatus();this._renderPager()},generatePagerItem:function(a,d){var b=this.itemClass,b="string"==typeof b?m.getObject(b):b,c=u.create("div",{innerHTML:a.content});return new b({id:this.id+"-item-"+(d+1)},c)},_renderPages:function(){var e=this.pagerContainerView,d="horizontal"==this.orientation;if(d){var b=i.getMarginBox(this.pagerContainerPager).h,c=i.getMarginBox(this.pagerContainerStatus).h;
if("center"!=this.pagerPos)var f=b+c;else{var f=c,g=this.pagerIconNext.width,g=a.get(e,"width")-2*g;a.set(e,{width:g+"px",marginLeft:this.pagerIconNext.width+"px",marginRight:this.pagerIconNext.width+"px"})}f=a.get(this.pagerContainer,"height")-f;a.set(this.pagerContainerView,"height",f+"px");var l=Math.floor(a.get(e,"width")/this.itemsPage);"trailing"==this.statusPos?("center"!=this.pagerPos&&a.set(e,"marginTop",b+"px"),a.set(e,"marginBottom",c+"px")):(a.set(e,"marginTop",c+"px"),"center"!=this.pagerPos&&
a.set(e,"marginTop",b+"px"))}else b=i.getMarginBox(this.pagerContainerPager).w,c=i.getMarginBox(this.pagerContainerStatus).w,a.get(this.pagerContainer,"width"),"center"!=this.pagerPos?f=b+c:(f=c,g=this.pagerIconNext.height,g=a.get(e,"height")-2*g,a.set(e,{height:g+"px",marginTop:this.pagerIconNext.height+"px",marginBottom:this.pagerIconNext.height+"px"})),f=a.get(this.pagerContainer,"width")-f,a.set(e,"width",f+"px"),l=Math.floor(a.get(e,"height")/this.itemsPage),"trailing"==this.statusPos?("center"!=
this.pagerPos&&a.set(e,"marginLeft",b+"px"),a.set(e,"marginRight",c+"px")):(a.set(e,"marginLeft",c+"px"),"center"!=this.pagerPos&&a.set(e,"marginRight",b+"px"));var h="padding"+(d?"Left":"Top"),j="padding"+(d?"Right":"Bottom");r.forEach(this.items,function(b,c){var f=this.generatePagerItem(b,c),g={};this.pagerItems.appendChild(f.domNode);g[d?"width":"height"]=l-this.itemSpace+"px";var i=d?"height":"width";g[i]=a.get(e,i)+"px";a.set(f.containerNode,g);this.resizeChildren&&f.resizeChildren();f.parseChildren();
a.set(f.domNode,"position","absolute");c<this.itemsPage?(g=c*l,i=d?"left":"top",a.set(f.domNode,d?"top":"left","0px"),a.set(f.domNode,i,g+"px")):(a.set(f.domNode,"top","-1000px"),a.set(f.domNode,"left","-1000px"));a.set(f.domNode,j,this.itemSpace/2+"px");a.set(f.domNode,h,this.itemSpace/2+"px")},this)},_renderPager:function(){var e=this.pagerContainerPager;"horizontal"==this.orientation?("center"!=this.statusPos&&("trailing"==this.statusPos?a.set(e,"top","0px"):a.set(e,"bottom","0px")),a.set(this.pagerNext,
"right","0px"),a.set(this.pagerPrevious,"left","0px")):("trailing"==this.statusPos?a.set(e,"left","0px"):a.set(e,"right","0px"),a.set(this.pagerNext,"bottom","0px"),a.set(this.pagerPrevious,"top","0px"))},_renderStatus:function(){this._totalPages=Math.ceil(this.items.length/this.itemsPage);this.iconsLoaded=this.iconHeight=this.iconWidth=0;this._iconConnects=[];for(var e=1;e<=this._totalPages;e++){var d=new Image,b=e;q(d,"click",m.hitch(this,"_pagerSkip",b));this._iconConnects[b]=q(d,"load",m.hitch(this,
function(e){this.iconWidth+=d.width;this.iconHeight+=d.height;this.iconsLoaded++;if(this._totalPages==this.iconsLoaded)if("horizontal"==this.orientation){if("trailing"==this.statusPos){if("center"==this.pagerPos){var b=a.get(this.pagerContainer,"height"),g=a.get(this.pagerContainerStatus,"height");a.set(this.pagerContainerPager,"top",b/2-g/2+"px")}a.set(this.pagerContainerStatus,"bottom","0px")}else"center"==this.pagerPos&&(b=a.get(this.pagerContainer,"height"),g=a.get(this.pagerContainerStatus,"height"),
a.set(this.pagerContainerPager,"bottom",b/2-g/2+"px")),a.set(this.pagerContainerStatus,"top","0px");b=a.get(this.pagerContainer,"width")/2-this.iconWidth/2;a.set(this.pagerContainerStatus,"paddingLeft",b+"px")}else"trailing"==this.statusPos?("center"==this.pagerPos&&(b=a.get(this.pagerContainer,"width"),g=a.get(this.pagerContainerStatus,"width"),a.set(this.pagerContainerPager,"left",b/2-g/2+"px")),a.set(this.pagerContainerStatus,"right","0px")):("center"==this.pagerPos&&(b=a.get(this.pagerContainer,
"width"),g=a.get(this.pagerContainerStatus,"width"),a.set(this.pagerContainerPager,"right",b/2-g/2+"px")),a.set(this.pagerContainerStatus,"left","0px")),b=a.get(this.pagerContainer,"height")/2-this.iconHeight/2,a.set(this.pagerContainerStatus,"paddingTop",b+"px");this._iconConnects[e].remove()},b));d.src=e==this._currentPage?this.iconPageActive:this.iconPage;b=e;n.add(d,this.orientation+"PagerIcon");t.set(d,"id",this.id+"-status-"+e);this.pagerContainerStatus.appendChild(d);"vertical"==this.orientation&&
a.set(d,"display","block")}},_pagerSkip:function(a){if(this._currentPage!=a){var d;a<this._currentPage?(d=this._currentPage-a,a=this._totalPages+a-this._currentPage):(d=this._totalPages+this._currentPage-a,a-=this._currentPage);var b=a>d;this._toScroll=b?d:a;var c=b?"_pagerPrevious":"_pagerNext",f=p.after(this,"onScrollEnd",m.hitch(this,function(){this._toScroll--;if(1>this._toScroll)f.remove();else this[c]()}),!0);this[c]()}},_pagerNext:function(){if(!this._anim){for(var e=[],d=this._currentPage*
this.itemsPage;d>(this._currentPage-1)*this.itemsPage;d--)if(h.byId(this.id+"-item-"+d)){var b=h.byId(this.id+"-item-"+d),c=i.getMarginBox(b);"horizontal"==this.orientation?(c=c.l-this.itemsPage*c.w,e.push(j.slideTo({node:b,left:c,duration:this.duration}))):(c=c.t-this.itemsPage*c.h,e.push(j.slideTo({node:b,top:c,duration:this.duration})))}var f=this._currentPage;this._currentPage==this._totalPages?this._currentPage=1:this._currentPage++;for(var g=this.itemsPage,d=this._currentPage*this.itemsPage;d>
(this._currentPage-1)*this.itemsPage;d--){if(h.byId(this.id+"-item-"+d))if(b=h.byId(this.id+"-item-"+d),c=i.getMarginBox(b),"horizontal"==this.orientation){var l=a.get(this.pagerContainerView,"width")+(g-1)*c.w-1;a.set(b,"left",l+"px");a.set(b,"top","0px");c=l-this.itemsPage*c.w;e.push(j.slideTo({node:b,left:c,duration:this.duration}))}else l=a.get(this.pagerContainerView,"height")+(g-1)*c.h-1,a.set(b,"top",l+"px"),a.set(b,"left","0px"),c=l-this.itemsPage*c.h,e.push(j.slideTo({node:b,top:c,duration:this.duration}));
g--}this._anim=j.combine(e);var k=p.after(this._anim,"onEnd",m.hitch(this,function(){delete this._anim;this.onScrollEnd();k.remove()}),!0);this._anim.play();h.byId(this.id+"-status-"+f).src=this.iconPage;h.byId(this.id+"-status-"+this._currentPage).src=this.iconPageActive}},_pagerPrevious:function(){if(!this._anim){for(var e=[],d=this._currentPage*this.itemsPage;d>(this._currentPage-1)*this.itemsPage;d--)if(h.byId(this.id+"-item-"+d)){var b=h.byId(this.id+"-item-"+d),c=i.getMarginBox(b);if("horizontal"==
this.orientation){var f=a.get(b,"left")+this.itemsPage*c.w;e.push(j.slideTo({node:b,left:f,duration:this.duration}))}else f=a.get(b,"top")+this.itemsPage*c.h,e.push(j.slideTo({node:b,top:f,duration:this.duration}))}var g=this._currentPage;1==this._currentPage?this._currentPage=this._totalPages:this._currentPage--;for(var l=this.itemsPage,k=1,d=this._currentPage*this.itemsPage;d>(this._currentPage-1)*this.itemsPage;d--){if(h.byId(this.id+"-item-"+d))if(b=h.byId(this.id+"-item-"+d),c=i.getMarginBox(b),
"horizontal"==this.orientation){var o=-(k*c.w)+1;a.set(b,"left",o+"px");a.set(b,"top","0px");f=(l-1)*c.w;e.push(j.slideTo({node:b,left:f,duration:this.duration}));f=o+this.itemsPage*c.w;e.push(j.slideTo({node:b,left:f,duration:this.duration}))}else o=-(k*c.h+1),a.set(b,"top",o+"px"),a.set(b,"left","0px"),f=(l-1)*c.h,e.push(j.slideTo({node:b,top:f,duration:this.duration}));l--;k++}this._anim=j.combine(e);var n=p.after(this._anim,"onEnd",m.hitch(this,function(){delete this._anim;this.onScrollEnd();
n.remove()}),!0);this._anim.play();h.byId(this.id+"-status-"+g).src=this.iconPage;h.byId(this.id+"-status-"+this._currentPage).src=this.iconPageActive}},onScrollEnd:function(){}})});