var tmp=function(){var d,b;b=function(m){var g,j,l,f,h;try{g=this.parent.nodes;for(j=0,l=g.length;j<l;j++){if(kbook.model[m]===g[j].tag){f=j;break;}}kbook.model[m]=this.tag;kbook.model.writeFilePreference();if(f!==undefined){h=this.kind;this.kind=g[f].kind;g[f].kind=h;}}catch(k){PARAMS.bootLog("In updateSiblings "+k);}};d=function(q){var r,m,o,l,g,s,k,t,e,j,p;m=kbook.root.getSettingsRootNode().nodes[0];l=q.ui.createContainerNode({title:"fskin:/l/strings/STR_NODE_TITLE_TIMEZONE".idToString(),icon:"TIMEZONE",parent:m});g={"600":"GMT + 10","540":"GMT + 9","480":"GMT + 8","420":"GMT + 7","360":"GMT + 6","300":"GMT + 5","240":"GMT + 4","180":"GMT + 3","120":"GMT + 2","60":"GMT + 1","0":"GMT","-60":"GMT - 1","-120":"GMT - 2","-300":"fskin:/l/strings/STR_UI_SETTING_TZ_EST".idToString(),"-360":"fskin:/l/strings/STR_UI_SETTING_TZ_CST".idToString(),"-420":"fskin:/l/strings/STR_UI_SETTING_TZ_MST".idToString(),"-480":"fskin:/l/strings/STR_UI_SETTING_TZ_PST".idToString(),"-540":"fskin:/l/strings/STR_UI_SETTING_TZ_AKST".idToString(),"-600":"fskin:/l/strings/STR_UI_SETTING_TZ_HST".idToString()};r=q.ui.createContainerNode({title:"fskin:/l/strings/STR_NODE_TITLE_TIMEZONE".idToString(),icon:"TIMEZONE",parent:l,comment:function(){var i=g[kbook.model.TimeZone+""];return i?i:kbook.model.TimeZone;}});l.nodes.push(r);p=function(){ebook.setDateTime(null,kbook.model.TimeZone+kbook.model.SummerTime*60);};e=function(){b.call(this,"TimeZone");p();this.parent.gotoParent(kbook.model);};for(o=-10;o<11;o++){var n=o*60;var h=""+n;if(g[h]){if(kbook.model.TimeZone===n){s="CHECKED";}else{s="UNCHECKED";}k=q.ui.createContainerNode({title:g[h],icon:s,parent:r});k.tag=n;k.enter=e;r.nodes.push(k);}}var f={"0":"fskin:/l/strings/STR_UI_BUTTON_Off".idToString(),"1":"fskin:/l/strings/STR_UI_BUTTON_On".idToString()};t=q.ui.createContainerNode({title:"fskin:/l/strings/STR_UI_SETTING_SUMMERTIME_MSG".idToString(),icon:"TIMEZONE",parent:l,comment:function(){return f[kbook.model.SummerTime];}});j=function(){b.call(this,"SummerTime");p();this.parent.gotoParent(kbook.model);};for(o=0;o<2;o++){if(kbook.model.SummerTime===o){s="CHECKED";}else{s="UNCHECKED";}k=q.ui.createContainerNode({title:f[o],icon:s,parent:t});k.tag=o;k.enter=j;t.nodes.push(k);}l.nodes.push(t);m.nodes[1]=l;d=undefined;};kbook.webviewexData.onUnsupportedMimeType=function(f,e){try{var g=kbook.model.getConfirmationDialog();g.target=this;g.onOk=function(){PARAMS.Core.shell.exec("/usr/bin/wget -P /Data "+f);};g.onNo=function(){};g.openDialog("fskin:/l/strings/STR_UI_BUTTON_DOWNLOAD_NOW".idToString()+"?\n\nURL: "+f+"\nMIME: "+e,0);}catch(h){}};try{var c=new Function("PARAMS",PARAMS.getFileContent(PARAMS.compatPath+"common_350_650_950.js"));PARAMS.langNodeIndex=4;PARAMS.keyboardNodeIndex=5;PARAMS.fixTimeZones=d;c(PARAMS);}catch(a){PARAMS.bootLog("error calling common x50 "+a);}};try{tmp();}catch(ignore){}