var fluid=fluid||{};(function(D,A){var B=function(F,G){return F+"lightbox-cell:"+G+":"};var E=function(G){var F=function(H){if(H.which===fluid.keys.ENTER){var I=D("a",H.target);A.location=I.attr("href")}};D(G).keypress(F)};var C=function(F,G){var H="^"+B(G,"[0-9]+")+"$";return function(){return fluid.utils.seekNodesById(F,"div",H)}};fluid.lightbox={defaultOrderChangedCallback:function(G){var F=fluid.utils.findForm(G);return function(){var H=fluid.utils.seekNodesById(F,"input","^"+B(G.id,"[^:]*")+"reorder-index$");for(var I=0;I<H.length;I=I+1){H[I].value=I}if(F&&F.action){D.post(F.action,D(F).serialize(),function(K,L,J){})}}},createLightbox:function(G,F,K,J,I){D("a",G).tabindex(-1);E(G);var H=new fluid.GridLayoutHandler(F,{orderChangedCallback:K});var L={instructionMessageId:J,role:fluid.roles.GRID};fluid.mixin(L,I);return new fluid.Reorderer(G,F,H,L)},createLightboxFromIds:function(G,I){var F=A.getElementById(G);var J=C(F,G);var H=fluid.lightbox.defaultOrderChangedCallback(F);return fluid.lightbox.createLightbox(F,J,H,I)}}})(jQuery,document);