﻿if(!window.Bring2mind_ComponentArt_Grid_Keyboard_Loaded){window.Bring2mind_ComponentArt_Grid_KeyMovePageUp=function(){var _1=_q137.KeyboardIndex;_q137.PreviousPage();_q137.KeyboardIndex=_q137.CurrentPageIndex*_q137.PageSize;Bring2mind_ComponentArt_Grid_UpdateHighlights(_1);};window.Bring2mind_ComponentArt_Grid_KeyMovePageDown=function(){var _2=_q137.KeyboardIndex;_q137.NextPage();_q137.KeyboardIndex=_q137.CurrentPageIndex*_q137.PageSize;Bring2mind_ComponentArt_Grid_UpdateHighlights(_2);};window.Bring2mind_ComponentArt_Grid_KeyMoveHome=function(){var _3=_q137.KeyboardIndex;_q137.KeyboardIndex=_q137.CurrentPageIndex*_q137.PageSize;Bring2mind_ComponentArt_Grid_UpdateHighlights(_3);};window.Bring2mind_ComponentArt_Grid_KeyMoveEnd=function(){var _4=_q137.KeyboardIndex;_q137.KeyboardIndex=(_q137.CurrentPageIndex+1)*_q137.PageSize-1;Bring2mind_ComponentArt_Grid_UpdateHighlights(_4);};window.Bring2mind_ComponentArt_Grid_KeyMoveDown=function(){var _5=_q137.KeyboardIndex;if(_5>=_q137.RecordCount-1){return;}if(_q137.ScrollDomObj){if(_q137.ScrollDomObj&&_5==(_q137.RecordOffset+_q137.PageSize-1)){_q137.ScrollBy(1);}}else{if(_5==(_q137.CurrentPageIndex+1)*_q137.PageSize-1){_q137.NextPage();}}_q137.KeyboardIndex++;Bring2mind_ComponentArt_Grid_UpdateHighlights(_5);};window.Bring2mind_ComponentArt_Grid_KeyMoveUp=function(){var _6=_q137.KeyboardIndex;if(_6<=0){return;}if(_q137.ScrollDomObj){if(_q137.ScrollDomObj&&_6==(_q137.RecordOffset)){_q137.ScrollBy(-1);}}else{if(_6==_q137.CurrentPageIndex*_q137.PageSize){_q137.PreviousPage();}}_q137.KeyboardIndex--;Bring2mind_ComponentArt_Grid_UpdateHighlights(_6);};window.Bring2mind_ComponentArt_Grid_UpdateHighlights=function(_7){if(_7>=0){var _8=_q137.Table.GetRow(_7);if(_8){var _9=document.getElementById(_q137.Id+"_row_"+_8.JoinedPath);if(_9&&_9.onmouseout){_9.onmouseout();}}}var _a=_q137.Table.GetRow(_q137.KeyboardIndex);if(_a){var _b=document.getElementById(_q137.Id+"_row_"+_a.JoinedPath);if(_b&&_b.onmouseover){_b.onmouseover();}}};window.Bring2mind_ComponentArt_Grid_KeyboardSetToItem=function(_c,_d){_c.KeyboardIndex=_d;_q137=_c;};window.Bring2mind_ComponentArt_Grid_KeySelectItem=function(_e){var _f=_q137;var row=_f.Table.GetRow(_f.KeyboardIndex);if(row){_f.Select(row,_e);}};window.Bring2mind_ComponentArt_SetKeyboardFocusedGrid=function(_11,_12){if(_q137&&_q137==_12){return;}_q137=_12;};window.Bring2mind_ComponentArt_Grid.prototype.InitKeyboard=function(){_q137=this;this.KeyboardIndex=0;Bring2mind_ComponentArt_RegisterKeyHandler(this,"Enter","Bring2mind_ComponentArt_Grid_KeySelectItem()");Bring2mind_ComponentArt_RegisterKeyHandler(this,"Ctrl+Enter","Bring2mind_ComponentArt_Grid_KeySelectItem(1)");Bring2mind_ComponentArt_RegisterKeyHandler(this,"(","Bring2mind_ComponentArt_Grid_KeyMoveDown()");Bring2mind_ComponentArt_RegisterKeyHandler(this,"&","Bring2mind_ComponentArt_Grid_KeyMoveUp()");Bring2mind_ComponentArt_RegisterKeyHandler(this,"$","Bring2mind_ComponentArt_Grid_KeyMoveHome()");Bring2mind_ComponentArt_RegisterKeyHandler(this,"#","Bring2mind_ComponentArt_Grid_KeyMoveEnd()");Bring2mind_ComponentArt_RegisterKeyHandler(this,"Ctrl+'","Bring2mind_ComponentArt_Grid_KeyMovePageDown()");Bring2mind_ComponentArt_RegisterKeyHandler(this,"Ctrl+%","Bring2mind_ComponentArt_Grid_KeyMovePageUp()");document.onkeydown=Bring2mind_ComponentArt_HandleKeyPress;};window.Bring2mind_ComponentArt_Grid_Keyboard_Loaded=true;}

if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();