function ilkpitj0_(name,own){this.name=name;this.lastZIndex=0;this.owner=document.getElementById(own);this.buttons=new Array();this.butStack=new Array();this.hotKeys=new Array();this.mzcrpoh0_=function(divId,caption){this.buttons.push({"divId":divId,"caption":caption});this.jkgbrxr0_();this.butStack.push(this.buttons.length-1);this.duxfyez0_(this.buttons.length-1);};this.hosrqmr0_=function(divId){var bufBut=new Array();for (i=0;i<this.buttons.length;i++){if(this.buttons[i]["divId"]!=divId)bufBut.push(this.buttons[i]);else  this.xtvrmrs0_(i);}this.buttons=bufBut;var bufKeys=new Array();for (i=0;i<this.hotKeys.length;i++){if(this.hotKeys[i]["divId"]!=divId)bufKeys.push(this.hotKeys[i]);}this.hotKeys=bufKeys;this.jkgbrxr0_();this.duxfyez0_(this.butStack[this.butStack.length-1]);};this.duxfyez0_=function(ind){if(!this.buttons.length)return 0;this.pzffoec0_(ind);this.lastZIndex++;document.getElementById(this.buttons[ind]["divId"]).style.zIndex=this.lastZIndex;if (this.lastZIndex>20){for (i=0;i<this.buttons.length;i++){if(i==ind)document.getElementById(this.buttons[ind]["divId"]).style.zIndex=this.buttons.length+1;else  document.getElementById(this.buttons[i]["divId"]).style.zIndex=i;}this.lastZIndex=this.buttons.length+1;}for (i=0;i<this.buttons.length;i++){document.getElementById(this.name+'tb'+i).className='task_but';}document.getElementById('theBody').appendChild(document.getElementById(this.buttons[ind]["divId"]));document.getElementById(this.name+'tb'+ind).className='task_but_active';finltfg0_(this.buttons[ind]["divId"]);};this.jkgbrxr0_=function(){var s='<ul>';for (i=0;i<this.buttons.length;i++){s+='<li class="task_but" id="'+this.name+'tb'+i+'"><a style="float:left;margin-left:7px;" '+  ' href="javascript:'+this.name+'.duxfyez0_('+i+');void(0)">'+this.buttons[i]["caption"]+  '</a>'+  '';s+='<a style="float:right;margin-right:9px;"'+  ' href="javascript:'+  'ewnmyod0_(\''+this.buttons[i]["divId"]+'\');'+  'void(0)">'+  '[x]'+  '</a>'+  '</li>';}s+='</ul>';this.owner.innerHTML=s;};this.xtvrmrs0_=function(Ind){var bufStack=new Array();for (j=0;j<this.butStack.length;j++){if(this.butStack[j]!=Ind){if(this.butStack[j]>Ind)bufStack.push(parseInt(this.butStack[j]-1));else  bufStack.push(this.butStack[j]);}}this.butStack=bufStack;};this.pzffoec0_=function(Ind){if (this.butStack[this.butStack.length-1]==Ind){return 1;}var bufStack=new Array();for (i=0;i<this.butStack.length;i++){if(this.butStack[i]!=Ind){bufStack.push(this.butStack[i])}}this.butStack=bufStack;this.butStack.push(Ind);};this.qczowcd0_=function(divId){for (ii=0;ii<this.buttons.length;ii++){if(this.buttons[ii]["divId"]==divId)return ii;}return -1;};this.ihbqprx0_=function(divId,key,control){if(taskb.buttons.length){for (i=0;i<taskb.hotKeys.length;i++){if(taskb.hotKeys[i]["divId"]==divId&&taskb.hotKeys[i]["key"]==key){taskb.hotKeys[i]["control"]=control;}}}this.hotKeys.push({"divId":divId,"key":key,"control":control});}}function ddkgqch0_(e){var event1 = !e?event:e;var keycode =0;if(event1.keyCode==13)keycode=13;if(event1.keyCode==27)keycode=27;else if(event1.altKey==true&&event1.charCode!=0)keycode = event1.charCode;if (keycode){for (i=0;i<taskb.hotKeys.length;i++){if(taskb.hotKeys[i]["divId"]=='hotGlobal'&&taskb.hotKeys[i]["key"]==keycode){taskb.hotKeys[i]["control"].onclick.call();if(e)e.cancelBubble=true;else  event.cancelBubble=true;return 0;}}if(taskb.buttons.length){var curHotDiv=taskb.buttons[taskb.butStack[taskb.butStack.length-1]]["divId"];for (i=0;i<taskb.hotKeys.length;i++){if(taskb.hotKeys[i]["divId"]==curHotDiv&&taskb.hotKeys[i]["key"]==keycode){taskb.hotKeys[i]["control"].onclick.call();if(e)e.cancelBubble=true;else  event.cancelBubble=true;return 0;}}}}}