var fluid=fluid||{};(function(B,A){A.keys={TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:19,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,i:73,j:74,k:75,m:77};A.roles={GRID:{container:"grid",item:"gridcell"},LIST:{container:"list",item:"listitem"}};A.orientation={HORIZONTAL:"horiz",VERTICAL:"vert"};A.position={BEFORE:0,AFTER:1,INSIDE:2,NO_TARGET:-1};A.direction={NEXT:1,PREVIOUS:-1};A.defaultKeysets=[{modifier:function(C){return C.ctrlKey},up:A.keys.UP,down:A.keys.DOWN,right:A.keys.RIGHT,left:A.keys.LEFT},{modifier:function(C){return C.ctrlKey},up:A.keys.i,down:A.keys.m,right:A.keys.k,left:A.keys.j}];A.mixin=function(E,D){for(var C in D){if(D.hasOwnProperty(C)){E[C]=D[C]}}};A.wrap=function(C){return((!C||C.jquery)?C:B(C))};A.utils={};A.utils.seekNodesById=function(G,I,E){var C=G.getElementsByTagName(I);var H=[];for(var F=0;F<C.length;++F){var D=C[F];var J=D.id;if(J&&J.match(E)){H.push(D)}}return H};A.utils.escapeSelector=function(C){return C.replace(/\:/g,"\\:")};A.utils.findForm=function(C){while(C){if(C.nodeName.toLowerCase()==="form"){return C}C=C.parentNode}};A.utils.adaptFindItems=function(D){var E=function(){};var C={};if(typeof D==="function"){E=D}else{C=D}C.movables=C.movables||E;C.selectables=C.selectables||C.movables;C.dropTargets=C.dropTargets||C.movables;C.grabHandle=C.grabHandle||function(F){return F};return C};A.utils.jById=function(C){return B("[id="+C+"]")}})(jQuery,fluid);