////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//   This computer program is protected by copyright law and international treaties.                                                      //
//   Unauthorized reproduction or distribution of the program, or any portion of it, may result in severe civil and criminal penalties,   //
//   and will be prosecuted to the maximum extent possible under law.                                                                     //
//   Copyright(c) Digitomi Corp. All Right Reserved.                                                                                      //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//   Last Update 2004_08_16 15:17:20 by tews                                                                                              //
//   Last Update 2006_10_19 15:50:34 by anndy : modified except Key "q"                                                                                          //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 var oKeyBoard=new KeyBoard();function KeyBoard(){this.aKeyCode=new Array();this.SetKeyCode=SetKeyCode;this.OnKeyDownLevel=OnKeyDownLevel;this.InitKeyBoard=InitKeyBoard;this.InitKeyBoard();}function SetKeyCode(arg_aKeyCode){this.kc_LeafLeft=arg_aKeyCode[0];this.kc_LeafRight=arg_aKeyCode[1];this.kc_ScrollBottom=arg_aKeyCode[2];this.kc_ScrollTop=arg_aKeyCode[3];this.kc_ScrollLeftTop=arg_aKeyCode[4];this.kc_ScrollRightTop=arg_aKeyCode[5];this.kc_ScrollRightBottom=arg_aKeyCode[6];this.kc_ScrollLeftBottom=arg_aKeyCode[7];this.kc_ScrollLeft=arg_aKeyCode[8];this.kc_ScrollRight=arg_aKeyCode[9];this.kc_EnLarge=arg_aKeyCode[10];this.kc_Shrink=arg_aKeyCode[11];this.kc_Help=arg_aKeyCode[12];this.kc_Print=arg_aKeyCode[13];this.kc_Minimize=arg_aKeyCode[14];this.kc_Exit=arg_aKeyCode[15];}function OnKeyDownLevel(){event.returnValue=false;if(event.ctrlKey||event.altKey){return;}switch(event.keyCode){case this.kc_LeafLeft : if(typeof(oController2)!="undefined"){oController2.cOnLeftPage();}break;case this.kc_LeafRight : if(typeof(oController2)!="undefined"){oController2.cOnRightPage();}break;case this.kc_ScrollBottom : sKeyCode="ScrollBottom ";MgrLevel.DoMoveLevelBottom();break;case this.kc_ScrollTop : sKeyCode="ScrollTop ";MgrLevel.DoMoveLevelTop();break;case this.kc_ScrollLeftTop : break;case this.kc_ScrollRightTop : break;case this.kc_ScrollRightBottom : break;case this.kc_ScrollLeftBottom : break;case this.kc_EnLarge : if(typeof(oController2)!="undefined"){oController2.ccoDoEnLarge(-1);}break;case this.kc_Shrink : if(typeof(oController2)!="undefined"){oController2.ccoDoShrink();}break;case this.kc_Refresh : event.keyCode=0;break;case this.kc_Help : break;case this.kc_Print : if(typeof(oController2)!="undefined"){oController2.cOnPrint();}break;case this.kc_PrintLeft : break;case this.kc_PrintRight : break;case this.kc_Maxmize : case this.kc_Restore : if(typeof(oController2)!="undefined"){oController2.ccoToggleRestore();event.returnValue=false;event.keyCode=0;}break;case this.kc_Minimize : oController2.cOnMinimize();break;
 //case this.kc_Exit : window.close();break;
 case 65 : case 66 : case 67 : case 68 : case 69 : case 70 : case 71 : case 72 : case 73 : case 74 : case 75 : case 76 : case 77 : case 78 : case 79 : case 80 : case 81 : case 82 : case 83 : case 84 : case 85 : case 86 : case 87 : case 88 : case 89 : case 90 : case 229 : event.returnValue=true;break;case 46 : case 48 : case 49 : case 50 : case 51 : case 52 : case 53 : case 54 : case 55 : case 56 : case 57 : case 96 : case 97 : case 98 : case 99 : case 100 : case 101 : case 102 : case 103 : case 104 : case 105 : case this.kc_BackSpace : case this.kc_Enter : event.returnValue=true;break;default : break;}}function InitKeyBoard(){this.kc_LeafLeft=39;this.kc_LeafRight=37;this.kc_ScrollBottom=38;this.kc_ScrollTop=40;this.kc_ScrollLeftTop=36;this.kc_ScrollRightTop=33;this.kc_ScrollRightBottom=35;this.kc_ScrollLeftBottom=34;this.kc_ScrollLeft=39;this.kc_ScrollRight=37;this.kc_EnLarge=107;this.kc_Shrink=109;this.kc_Refresh=116;this.kc_Help=72;this.kc_Print=80;this.kc_PrintLeft=120;this.kc_PrintRight=121;this.kc_Maxmize=122;this.kc_Restore=122;this.kc_Minimize=123;this.kc_Exit=81;this.kc_BackSpace=8;this.kc_Enter=13;}

