The West - tw-db.info Cloth Calc [eng]

By Petee Last update Aug 14, 2012 — Installed 4,957 times.

There are 9 previous versions of this script.

the source is over 100KB, syntax highlighting in the browser is too slow

// ==UserScript==
// @name The West - tw-db.info Cloth Calc [eng]
// @version 0.1 Rev. 12
// @description The West Script: Cloth Calculation for game version 1.34 or higher
// @author scoobydoo [tw-db.info]
// @namespace http://tw-db.info
// @website http://tw-db.info
// @include http://*.the-west.*/game.php*
// @include http://*.tw.innogames.*/game.php*
// ==/UserScript==
(function(f){var d=document,s=d.createElement('script');s.setAttribute('type','application/javascript');s.textContent='('+f.toString()+')()';(d.body||d.head||d.documentElement).appendChild(s);s.parentNode.removeChild(s)})(function(){if(typeof(TWDB)=='undefined'){TWDB={}};TWDB.gameversion='1.36';TWDB.url='tw-db.info';if(typeof(TWDB.Updater)=='undefined'){TWDB.Updater={check:function(ver,rev,uid){if(this[uid]['ver']!=ver||this[uid]['rev']!=rev){this.update(ver,rev,uid)}},update:function(ver,rev,uid){var _self=this;var title='Userscript Update needed';var msg='<div class="txcenter">for userscript <b>'+this[uid]['name']+'</b> is a new version available, please click ok to update the Userscript</div><div><br />current version: '+(this[uid]['ver']/100)+' revision '+this[uid]['rev']+'<br />new version: '+(ver/100)+' revision '+rev+'</div>';var url='http://'+this[uid]['update'];if(jQuery.browser.webkit){url+='?1012';};var update=function(){try{location.href=url}catch(e){}};showMessage(msg,title,350,170,[['ok',update]],true,90001,'warning')},}};TWDB.Updater.clothcalc={ver:10,rev:12,name:'The West - tw-db.info Cloth Calc',update:'tw-db.info/cache/userscripts/clothcalc/clothcalc_eng.user.js',};jQuery.getScript('http://tw-db.info/cache/userscripts/clothcalc/version?'+ (new Date().getTime()));if(typeof TWDB.images=="undefined"){TWDB.images={}}TWDB.images.ClothCalcButton="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACAVJREFUeNqM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z7Ftv8P87e/AgwA2Gk+sVBbJGIAAAAASUVORK5CYII=";TWDB.images.iconLaborpoints="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAeVJREFUeNqclM1OwkAUhVtaKMViA2K7cOfOV/JF2LLyFVjwEkRehK0rUxISBUUrP/2xP95LzjRjaSNxki80LXPmzLl3RlVOhwoahCa9T4mMyMGvkee5oteINYkWYUCQRSKQQPiswQt0iRvizvf92W63mwVBMJtMJrdYSD3XGTsxiT7hRlGk6LquaJqmLBaLCyyW1LmoEjPgbhCGodJsNo+Cq9WqVcrxRKwhhc1YxCXRI65YLE1TIWbhey5lVxRFl8I24YiFHBZiQSHG7ubzuYVv/P+QCIiY+GYxFdthgf50On3gSX/BLsWv4zj3LEoFSHTJjUsVU5IkqYTdiWcWElvHfHZ3FNOw1TZvqU5IbFU8S2KaXIAMYcaj0egxy7Ie/dEm21167o7H44FwNRwOn9Y0DMP4sCzr3XXdF8wvxLirt8Ta87xIVJG45rDJbSG2XC496rUlvd8QPvGG+aks9gV3n2CPFVtyjrZts5NnCHElD5ifKVI3HxCihpKr6Kc+nwCRkWma7GgNsQSIPjuKpVJu4qCb2PqOi8JBs1in0wnwfi/dHHn5OOWlq+Ybbv04jgtnJLzH98prSK04Ytw3NvcdaCOCFfGKTMOyWN2tkSLcDRy2EMEWbpO6g17lrPGfy5Gd/QgwADbFOC1FlFuVAAAAAElFTkSuQmCC";TWDB.images.iconData="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAUCAYAAAD/Rn+7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACJlJREFUeNqkVglsFOcV/mZ2dse7HnvXBzG2sQ3hcDli48XYFiGCmDgQERqiFgoJilqFRG0KdasoNKEKJYQ4kRqgqpJItGpLW0UE0RCFoyDAhHAWAgaXI8Ze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rD07Rqmqag5lE43VuCnGnTOklUzd/OOYokKSd1tt3XOajR924YLAIoTlNoW9e53vt+GLoDAurP0OjO2mNTCFIIqGV9qmjkdd1QbehHDDkH5Ch4JZU6/OQv63MYCIpCoiUAAAAASUVORK5CYII=";TWDB.images.jobBG="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAMAAAANmfvwAAAAB3RJTUUH3AgMEhYndb71LwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAARnQU1BAACxjwv8YQUAAAAtUExURQAAADIhGS4hGTgoJEU2MTsyKyoeF09COxwXFzEdGyomI01EQi8vMRALCDo2NSmSYl8AAAABdFJOUwBA5thmAAABG0lEQVR42oWT23LDIAxEWd0A4/r/P7cCMw51gOohMwknuysJQhgqmRnBP1KYlxmeMpsBhMwsXsrMM8gy/LwUUSkxCnPGiwFYSzn7t+MqUTPyGNOJGM/xP1dRZPrEJnDht3URzo+XOTHp4PowRizHbAoXg6zbiMwnJdQje9SfOXIocCdZiYSgYJdJnmRFhMPHnFrYJVLTkPvoBlFi1LHtEN9+RXSNsB87sjM60ZCdkaugdhQ3WcDekf2D2H50iZFTXYCWjUjbI5ZOLnLfEkDiSgT3ZSTvacqwZqLQZaZWLBnPjfYJR/0mcF+obuU6f1tPUgkafnEvGSERHjVaWd2VU6qsUh8s8PVufF9oz16lPfu3RjcbazHNdkZv4BdMigWtQvNdCwAAAABJRU5ErkJggg==";TWDB.Eventer=new Object({events:{},set:function(a,b,c){if(typeof this.events[a]=="undefined"){this.events[a]={}}if(typeof c=="undefined"){var c=false}var d=Number((new Date).getTime());this.events[a][d]={id:d,call:b,count:c};return d},trigger:function(a){if(typeof this.events[a]=="undefined"){return}var b=0;for(var c in this.events[a]){if(typeof this.events[a][c].id=="undefined"){continue}window.setTimeout(this.events[a][c].call,10);if(this.events[a][c].count==false){b++;continue}this.events[a][c].count--;if(this.events[a][c].count>0){b++;continue}}if(b==0){delete this.events[a]}},remove:function(a,b){if(typeof this.events[a]=="undefined"||typeof this.events[a][b]=="undefined"){return false}delete this.events[a][b]}});TWDB.Cache=new Object({ready:false,init:function(){if(this.ready){return}this.uid="twdb_"+Character.playerId+"_";this.ready=true},load:function(a){try{return jQuery.parseJSON(decodeURIComponent(localStorage.getItem(this.uid+a)))}catch(b){TWDB.Error.report(b,"load "+a+" from cache");this.save(a,null);return null}},save:function(a,b){try{localStorage.setItem(this.uid+a,encodeURIComponent(JSON.stringify(b)));return true}catch(e){TWDB.Error.report(e,"save "+a+" to cache");this.save(a,null);return false}}});TWDB.Time=new Object({ready:false,init:function(){if(this.ready){return}var a=TWDB.Cache.load("time");if(a&&typeof a["base"]!="undefined"){this.time=a;this.ready=true;return}this.time={time2str:{},str2time:{}};this.count=0;this.query()},query:function(){var a=this;switch(this.count){case 0:jQuery.post("game.php?window=job&x=11&y=91",{},function(b){jQuery(b.page).find(".task_control > table").find("select > option").each(function(b){if(b==1){a.time["base"]=parseInt(jQuery(this).attr("value"))}a.time.str2time[jQuery.trim(jQuery(this).attr("label")).toLowerCase()]=Number(jQuery(this).attr("value"))});a.count++;a.query()},"json");break;case 1:jQuery.post("game.php?window=job&x=10&y=94",{},function(b){jQuery(b.page).find(".task_control > table").find("select > option").each(function(b){a.time.str2time[jQuery.trim(jQuery(this).attr("label")).toLowerCase()]=Number(jQuery(this).attr("value"))});a.count++;a.query()},"json");break;case 2:jQuery.post("game.php?window=job&x=59&y=119",{},function(b){var c=jQuery(b.page).find(".task_control > table:last").find(".txright:first");a.time.str2time[jQuery.trim(jQuery(c).html()).toLowerCase()]=a.time.base*4/30;a.count++;a.query()},"json");break;case 3:for(var b in this.time.str2time){this.time.time2str[this.time.str2time[b]]=b}if(typeof this.time.base=="undefined"){this.init();break}this.ready=true;TWDB.Cache.save("time",this.time);break}},getBase:function(){return this.time.base},str2time:function(a){a=a.toLowerCase();if(typeof this.time.str2time[a]!="undefined"){return this.time.str2time[a]}return false},time2str:function(a){if(typeof this.time.time2str[a]!="undefined"){return this.time.time2str[a]}return false}});TWDB.Error=new Object({uid:"twdb_error",log:[],report:function(a,b){this.log.push({msg:b,e:a.message});if(typeof this.gui=="undefined"){var c=this;this.gui=jQuery("<div />");this.gui.click(function(){c.show()});var d=jQuery('<div class="main_footnote" style="cursor:pointer;" />').append(jQuery('<div class="main_footnote_left"></div><div class="main_footnote_right"></div>')).append(this.gui);jQuery("#main_footnotes").append(d)}this.gui.html("tw-db.info: an error occured ["+this.log.length+"]");this.gui.fadeOut();this.gui.fadeIn("slow")},show:function(){var a=new tw2gui.scrollpane;jQuery(a.getMainDiv()).css("height","370px");var b='<table border="1" cellpadding="3" cellspacing="1">';for(var c=this.log.length-1;c>=0;c--){b+="<tr><td>"+c+"</td><td>"+this.log[c].msg+"</td><td>"+this.log[c].e+"</td></tr>"}b+="</table>";a.appendContent(b);var d=wman.open(this.uid,null,"noreload").setMiniTitle("TWDB Errorlog").setTitle("tw-db.info Errorlog").appendToContentPane(a.getMainDiv())}});TWDB.Settings=new Object({uid:"twdb_settings",ready:false,init:function(){if(this.ready){return}var a=TWDB.Cache.load("settings");if(typeof a=="object"&&a!=null){this.settings=a}else{this.settings={}}var b=this;var c=jQuery('<div class="main_footnote" style="cursor:pointer;"><div class="main_footnote_left"></div><div class="main_footnote_right"></div>twdb.info: settings<div>');jQuery("#main_footnotes").append(c);c.click(function(){b.open()});this.gui={};this.tmp={};this.ready=true},get:function(a,b){if(typeof this.settings[a]=="undefined"){this.set(a,b);return b}return this.settings[a]},set:function(a,b){this.settings[a]=b;TWDB.Cache.save("settings",this.settings)},open:function(){var a=this;var b=[[0,"sectorMap","show Sector Numbering on Minimap"],[0,"showAllJobs","show all jobs on map"],[0,"collector","mark items on Traders and Market you did not own"],[0,"jobBoniTooltip","show laborpoint information on inventory window for the selected job"],[0,"buyTip","show buy tip on traders"],[0,"sellTip","show sell tip on inventory window"],[0,"sellTip2","show sell tip only if you have that item more than once"],[0,"chat","use chat enhancement"]];this.tmp={};this.gui.window=wman.open(this.uid,null,"noreload").setMiniTitle("TWDB Settings").setTitle("tw-db.info Settings");this.gui.window.showLoader();var c=jQuery("<table />");for(var d=0;d<b.length;d++){var e=b[d][1];this.tmp[e]=this.get(e);var f=jQuery("<tr />");switch(b[d][0]){case 0:var g=function(b){return function(){a.tmp[b]=!a.tmp[b]}}(e);var h=new tw2gui.checkbox("",!this.tmp[e]?"":"tw2gui_checkbox_checked",g);f.append(jQuery("<td />").append(h.getMainDiv()));break}f.append("<td>"+b[d][2]+"</td>");c.append(f)}var i=new tw2gui.combobox;i.addItem("left","left").addItem("right","right");i.select(this.settings["clothPos"]);var f=jQuery("<tr />").append(jQuery('<td colspan="2" />').append(i.getMainDiv()).append("<span> right</span>"));c.append(f);var j=new tw2gui.button("Save",function(){if(i.getValue()=="left"){a.settings["clothPos"]="left"}else{a.settings["clothPos"]="right"}a.close()});this.gui.window.appendToContentPane(c).appendToContentPane(j.getMainDiv());this.gui.window.hideLoader()},close:function(){for(var a in this.tmp){this.settings[a]=this.tmp[a]}TWDB.Cache.save("settings",this.settings);this.gui.window.fireEvent(TWE("WINDOW_CLOSE"),this.gui.window)}});TWDB.Chat=new Object({ready:false,color:null,customColor:[0,0,0],user:null,bold:false,caps:false,sm:{"!:-)!":"shoot",":-)":"smile",":-D":"laugh",":-(":"frown",";-)":"smirk",":-P":"tongue","-.-":"nc","^_^":"01","o.O":"oo","el pollo diablo!":"elpollodiablo","!el pollo diablo":"elpollodiablo_mirror","el pollo diablo?!":"elpollodiablo_front"},init:function(){if(!TWDB.Settings.get("chat",true)||typeof colorTxt!="undefined"){this.ready=true;return}var a=this;this.gui={};this.gui.tellBox=new MessageDialog("whisper","");this.history={color:[],tell:[]};var b=TWDB.Cache.load("chathistory");if(typeof b=="object"&&b!=null){this.history=b}var c=jQuery('<div style="position:absolute;top:3px;left:10px;display:block;"/>');for(var d in this.sm){var e=jQuery('<img src="'+cdnURL+"/images/chat/smiley_"+this.sm[d]+'.png" style="cursor:pointer;margin:1px;" title="'+d+'" />');e.click(function(a){return function(){jQuery("#chatwindow_say").val(jQuery("#chatwindow_say").val()+" "+a+" ");jQuery("#chatwindow_say").focus()}}(d));c.append(e)}var f=jQuery('<div style="display:inline-block;cursor:pointer;vertical-align:top;margin:1px;width:16px;height:15px;overflow:hidden;" title="Player"><div style="position:relative;top:0px;left:-66px" ><img width="148" height="30" src="'+cdnURL+'/images/tw2gui/tw2gui_bbcodes.png" /></div></div>');f.click(function(a){return function(){jQuery("#chatwindow_say").val(jQuery("#chatwindow_say").val()+"[player][/player]");jQuery("#chatwindow_say").focus()}}(d));c.append(f);this.gui.sm=jQuery('<div style="position:absolute;top:22px;left:-8px;width:252px;height:28px;display:none;background:url('+cdnURL+'/images/main/footerbottom_middle.png) repeat scroll left bottom transparent;"><div style="position:absolute;bottom:0px;left:0px;width:19px;height:28px;display:block;background:url('+cdnURL+'/images/main/footerbottom_left.png) repeat scroll left bottom transparent;"></div><div style="position:absolute;bottom:0px;right:0px;width:19px;height:20px;display:block;background:url('+cdnURL+'/images/main/footerbottom_right.png) repeat scroll right bottom transparent;"></div><div style="position:absolute;top:1px;right:0px;width:6px;height:20px;display:block;background:url('+cdnURL+'/images/main/borders.png)"></div></div>').append(c);jQuery("#chatwindow_handle").append(this.gui.sm);this.gui.box=jQuery('<div style="position:absolute;top:-40px;left:140px;width:90px;height:30px;padding:5px;display:none;background-color:#32201a;cursor:pointer;" />');var g=jQuery('<div style="display:inline-block;width:15px;height:15px;background:url('+TWDB.images.iconChat+')no-repeat -15px 0px black;"/>');g.click(function(){a.switchColor(this)});this.gui.box.append(g);var g=jQuery('<div style="display:inline-block;width:15px;height:15px;background:url('+TWDB.images.iconChat+')no-repeat -15px 0px red;"/>');g.click(function(){a.switchColor(this)});this.gui.box.append(g);var g=jQuery('<div style="display:inline-block;width:15px;height:15px;background:url('+TWDB.images.iconChat+')no-repeat -15px 0px blue;"/>');g.click(function(){a.switchColor(this)});this.gui.box.append(g);var g=jQuery('<div style="display:inline-block;width:15px;height:15px;background:url('+TWDB.images.iconChat+')no-repeat -15px 0px yellow;"/>');g.click(function(){a.switchColor(this)});this.gui.box.append(g);var g=jQuery('<div style="display:inline-block;width:15px;height:15px;background:url('+cdnURL+"/images/chat/smiley_smile.png"+')no-repeat -2px 0px transparent;"/>');g.click(function(){a.showSm()});this.gui.box.append(g);var g=jQuery('<div style="display:inline-block;width:15px;height:15px;background:url('+TWDB.images.iconChat+')no-repeat -30px 0px transparent;"/>');g.click(function(){a.tell()});this.gui.box.append(g);var g=jQuery('<div style="display:inline-block;width:15px;height:15px;background:url('+TWDB.images.iconChat+')no-repeat -15px 0px green;"/>');g.click(function(){a.switchColor(this)});this.gui.box.append(g);var g=jQuery('<div style="display:inline-block;width:15px;height:15px;background:url('+TWDB.images.iconChat+')no-repeat -15px 0px brown;"/>');g.click(function(){a.switchColor(this)});this.gui.box.append(g);var g=jQuery('<div style="display:inline-block;width:15px;height:15px;background:url('+TWDB.images.iconChat+')no-repeat -15px 0px magenta;"/>');g.click(function(){a.switchColor(this)});this.gui.box.append(g);var g=jQuery('<div style="display:inline-block;width:15px;height:15px;background:url('+TWDB.images.iconChat+')no-repeat -15px 0px gray;"/>');g.click(function(){a.switchColor(this)});this.gui.box.append(g);var g=jQuery('<div style="display:inline-block;width:15px;height:15px;background:url('+TWDB.images.iconChat+')no-repeat 0px 0px transparent;"/>');g.click(function(){a.showColor()});this.gui.box.append(g);var g=jQuery('<div style="display:inline-block;width:15px;height:15px;background:url('+TWDB.images.iconChat+')no-repeat -45px 0px transparent;"/>');g.click(function(){a.cleartell()});this.gui.box.append(g);this.gui.color=jQuery('<div style="display:inline-block;width:15px;height:15px;background:url('+TWDB.images.iconChat+');cursor:pointer;"/>');var h=jQuery("<td />");h.append(this.gui.box);h.append(this.gui.sm);h.append(this.gui.color);this.gui.box.click(function(){a.show()});this.gui.color.click(function(){a.show()});jQuery("#chatwindow_say").parent().prev().before(h);this.gui.tell=jQuery('<td style="display:none;width:15px;height:15px;" />');this.gui.tell.click(function(){a.tell()});jQuery("#chatwindow_channelselect").parent().after(this.gui.tell);this.gui.customColor=jQuery('<div style="width:50px;height:50px;display:inline-block;background-color:#000;vertical-align:top;margin: 5px;" />');this.ready=true},show:function(){if(this.gui.box.is(":hidden")){this.gui.box.show()}else{this.gui.box.hide();jQuery("#chatwindow_say").focus()}},switchColor:function(a){var b=jQuery(a).css("background-color");rgb=b.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);rgb=String(parseInt(rgb[1]*9/255+.5))+String(parseInt(rgb[2]*9/255+.5))+String(parseInt(rgb[3]*9/255+.5));var c=this.history.color.length;for(var d=0;d<c;d++){var e=this.history.color.shift();if(e!=rgb){this.history.color.push(e)}}this.history.color.push(rgb);if(this.history.color.length>5){this.history.color.shift()}TWDB.Cache.save("chathistory",this.history);this.customColor[0]=parseInt(String(rgb).substr(0,1));this.customColor[1]=parseInt(String(rgb).substr(1,1));this.customColor[2]=parseInt(String(rgb).substr(2,1));this.gui.customColor.css("background-color","rgb("+parseInt(this.customColor[0]*255/9)+","+parseInt(this.customColor[1]*255/9)+","+parseInt(this.customColor[2]*255/9)+")");if(rgb=="000"){this.color=null;this.gui.color.css("background-url",TWDB.images.iconChat);this.gui.color.css("background-position","0px 0px");this.gui.color.css("background-color","transparent")}else{this.color=rgb;this.gui.color.css("background-url",TWDB.images.iconChat);this.gui.color.css("background-color",b);this.gui.color.css("background-position","-15px 0px")}jQuery("#chatwindow_say").focus()},tell:function(a){var b=this;if(a){if(a===true){var a=this.gui.user.getValue();if(a!=""){this.user=a}else{this.cleartell()}}else{this.user=a}if(this.user!=null){this.gui.tell.children().remove();this.gui.tell.append('<div style="width:15px;height:15px;background:url('+TWDB.images.iconChat+')no-repeat -30px 0px transparent;cursor:pointer;" title="'+a+'" />');this.gui.tell.show();var c=this.history.tell.length;for(var d=0;d<c;d++){var e=this.history.tell.shift();if(e!=a){this.history.tell.push(e)}}this.history.tell.push(a);if(this.history.tell.length>9){this.history.tell.shift()}TWDB.Cache.save("chathistory",this.history)}this.gui.tellBox.hide();jQuery("#chatwindow_say").focus()}else{var f=jQuery('<table style="border:1px solid #333;width:100%;" cellspacing="0px" cellpadding="5px"/>');f.append('<thead><tr><th colspan="3">Verlauf</th></tr></thead>');var g=jQuery("<tr />");for(var d=0;d<this.history.tell.length;d++){var e=this.history.tell[d];var h=jQuery('<td style="text-align:center;"></td>');var i=jQuery("<a>"+e+"</a>");var j=function(a){return function(){b.tell(a)}}(e);i.click(j);h.append(i);var k=jQuery('<div title="delete" style="display:inline-block;margin-left:2px;vertical-align:top;height:16px;width:16px;cursor:pointer;background:url(\''+cdnURL+"/images/icons/delete.png') repeat scroll 0px 0px transparent;\" />");var j=function(a){return function(){var c=b.history.tell.length;for(var d=0;d<c;d++){var e=b.history.tell.shift();if(a!=e){b.history.tell.push(e)}}TWDB.Cache.save("chathistory",b.history);b.gui.tellBox.hide();b.tell()}}(e);k.click(j);h.append(k);g.append(h);if(!((d+1)%3)){f.append(g);g=jQuery("<tr />")}}if(d%3!=0){for(var c=d%3;c<3;c++){g.append("<td />")}f.append(g);g=jQuery("<tr />")}this.gui.user=(new tw2gui.textfield("twdb_chat_user")).setSize(30).setValue(name);this.gui.user.setLabel("Name:");var l=jQuery("<div />").append(f).append('<div style="display:block;height:10px;width:100%;" />').append(this.gui.user.getMainDiv());this.gui.tellBox=new MessageDialog("whisper",l);this.gui.tellBox.addButton("ok",function(){b.tell(true)});this.gui.tellBox.addButton("cancel");this.gui.tellBox.show();setTimeout(function(){b.gui.user.getMainDiv().find("input").focus()},100);this.gui.user.getMainDiv().keydown(function(a){if(a.keyCode==13){b.tell(true)}})}},cleartell:function(){this.user=null;this.gui.tell.hide();jQuery("#chatwindow_say").focus()},inject:function(a,b){if(!a){return a}if(b){return a}var c=this;var d=function(a){if(c.caps){a=a.toUpperCase()}if(c.bold){a=a.replace(/\*/g,"~");a="*"+a+"*"}return a};if(a.substr(0,1)=="/"){r=new RegExp("^\\/(tell|msg)\\s+([^:]+):(.+)$");v=a.match(r);if(v){if(this.color!=null){a="/tell "+v[2]+":/"+this.color+d(v[3])}else{a="/tell "+v[2]+":"+d(v[3])}}return a}a=d(a);if(this.color!=null){a="/"+this.color+a}if(this.user!=null){a="/tell "+this.user+":"+a}return a},showColor:function(a){var b=this;var c=function(a,c){if(c&&b.customColor[a]==9||!c&&b.customColor[a]==0){return}b.customColor[a]+=c?1:-1;b.gui.input.attr("value",String(b.customColor[0])+String(b.customColor[1])+String(b.customColor[2]));if(b.customColor[a]==0){b.gui.plusminus[a].children(".butMinus").css("opacity",.3)}else{b.gui.plusminus[a].children(".butMinus").css("opacity",1)}if(b.customColor[a]==9){b.gui.plusminus[a].children(".butPlus").css("opacity",.3)}else{b.gui.plusminus[a].children(".butPlus").css("opacity",1)}b.gui.customColor.css("background-color","rgb("+parseInt(b.customColor[0]*255/9)+","+parseInt(b.customColor[1]*255/9)+","+parseInt(b.customColor[2]*255/9)+")")};var d=jQuery('<div style="width:42px;height:48px;display:inline-block;vertical-align:top;margin: 6px 5px 6px 5px;" />');this.gui.plusminus=[];for(var e=0;e<3;e++){switch(e){case 0:var f="#f00";break;case 1:var f="#0f0";break;case 2:var f="#00f";break}this.gui.plusminus[e]=jQuery('<div class="tw2gui_plusminus" style="display:inline-block;background-color:'+f+';width:12px;height:46px;padding:1px;"><span class="butPlus" style="cursor:pointer;"></span><span style="width:12px;height:10px;display:inline-block;"></span><span class="butMinus" style="cursor:pointer;"></span></div>');this.gui.plusminus[e].children(".butMinus").click(function(a){return function(){c(a,false)}}(e));this.gui.plusminus[e].children(".butPlus").click(function(a){return function(){c(a,true)}}(e));if(this.customColor[e]==0){this.gui.plusminus[e].children(".butMinus").css("opacity",.3)}if(this.customColor[e]==9){this.gui.plusminus[e].children(".butPlus").css("opacity",.3)}d.append(this.gui.plusminus[e])}d.append(this.gui.plusminus[0]).append(this.gui.plusminus[1]).append(this.gui.plusminus[2]);this.gui.input=jQuery('<input maxLength="3" type="text" value="'+String(b.customColor[0])+String(b.customColor[1])+String(b.customColor[2])+'" style="position: relative; top: -35px; left: 2px;color: rgb(255, 255, 255); font-weight: bold; letter-spacing: 6px; text-shadow: 1px 1px 1px rgb(0, 0, 0); width: 43px; background: none repeat scroll 0pt 0pt transparent; border: medium none; height: 18px; line-height: 18px; margin: 0pt; outline: medium none;" />');this.gui.input.keyup(function(){var a=b.gui.input.attr("value");if(a.length<3){return}if(!a.match(/(\d){3}/)){b.gui.input.attr("value",String(b.customColor[0])+String(b.customColor[1])+String(b.customColor[2]));return}for(var c=0;c<3;c++){b.customColor[c]=parseInt(a.substr(c,1));if(b.customColor[c]==0){b.gui.plusminus[c].children(".butMinus").css("opacity",.3)}else{b.gui.plusminus[c].children(".butMinus").css("opacity",1)}if(b.customColor[c]==9){b.gui.plusminus[c].children(".butPlus").css("opacity",.3)}else{b.gui.plusminus[c].children(".butPlus").css("opacity",1)}}b.gui.customColor.css("background-color","rgb("+parseInt(b.customColor[0]*255/9)+","+parseInt(b.customColor[1]*255/9)+","+parseInt(b.customColor[2]*255/9)+")");b.gui.input.attr("value",String(b.customColor[0])+String(b.customColor[1])+String(b.customColor[2]))});d.append(this.gui.input);var g=jQuery('<div style="height:50px;display:inline-block;vertical-align:top;margin: 5px;" />');var h=new tw2gui.checkbox("*bold*",this.bold?"tw2gui_checkbox_checked":"",function(){b.bold=b.bold?false:true});jQuery(h.getMainDiv()).css("display","block").css("margin-bottom","5px");g.append(h.getMainDiv());var h=new tw2gui.checkbox("CAPITALIZE",this.caps?"tw2gui_checkbox_checked":"",function(){b.caps=b.caps?false:true});g.append(h.getMainDiv());var i=jQuery('<div style="width:160px;height:50px;display:inline-block;vertical-align:top;border: 1px solid #000;padding: 0px;margin: 5px;" />');i.append('<span style="width:140px;height:15px;display:inline-block;text-align:center;padding: 4px 0px 2px 0px;font-size:11px;">history</span>');for(var e=0;e<this.history.color.length;e++){var j=this.history.color[e];var f="rgb("+parseInt(j[0]*255/9)+","+parseInt(j[1]*255/9)+","+parseInt(j[2]*255/9)+")";var k=jQuery('<div style="width:20px;height:20px;display:inline-block;vertical-align:top;margin: 0px 0px 0px 10px;cursor:pointer;background-color:'+f+';" />');k.click(function(){b.switchColor(this);b.gui.colorBox.hide()});i.append(k)}this.tmp_bold=this.bold;this.tmp_caps=this.caps;var l=jQuery("<div />").append(this.gui.customColor).append(d).append(g).append(i);this.gui.colorBox=new MessageDialog("Color",l);this.gui.colorBox.addButton("ok",function(){b.switchColor(b.gui.customColor)});this.gui.colorBox.addButton("cancel",function(){b.bold=b.tmp_bold;b.caps=b.tmp_caps});this.gui.colorBox.show()},showSm:function(){if(this.gui.sm.is(":hidden")){this.gui.sm.show()}else{this.gui.sm.hide()}}});TWDB.GameEnhance=new Object({ready:false,save:{},init:function(){if(this.ready){return}this.MessagesWindow();this.InventoryItemTooltip();this.InventoryItem();this.TraderItemTooltip();this.TraderItem();this.ItemTraderItemTooltip();this.ItemTraderItem();this.MarketWindow();this.changeMinimap();this.showAllJobs();this.chat();this.playerClick();this.skill();this.ready=true},InventoryItemTooltip:function(){if(typeof this.save.InventoryItemTooltip=="undefined"){this.save.InventoryItemTooltip=InventoryItem.prototype.setTooltip.toString()}if(!TWDB.Settings.get("jobBoniTooltip",true)&&!TWDB.Settings.get("sellTip",true)){return}try{var length=this.save.InventoryItemTooltip.length;var newfunction=this.save.InventoryItemTooltip.replace(/this.divMain.mouse/g,"this.elImg.mouse");eval("InventoryItem.prototype.setTooltip = "+newfunction)}catch(e){TWDB.Error.report(e,"manipulate InventoryItem.prototype.setTooltip");eval("InventoryItem.prototype.setTooltip = "+this.save.InventoryItemTooltip)}},InventoryItem:function(){if(typeof this.save.InventoryItem=="undefined"){this.save.InventoryItem=InventoryItem.prototype.getMainDiv.toString()}if(!TWDB.Settings.get("jobBoniTooltip",true)&&!TWDB.Settings.get("sellTip",true)){return}try{var inject="";if(TWDB.Settings.get("jobBoniTooltip",true)){inject+="if(typeof(this.divTWDB)!='undefined'){this.divTWDB.remove();};this.divTWDB=TWDB.ClothCalc.jobBoni.show(this.obj.item_id);this.divMain.append(this.divTWDB);"}if(TWDB.Settings.get("sellTip",true)){inject+="if(typeof(this.divTWDB2)!='undefined'){this.divTWDB2.remove();};this.divTWDB2=TWDB.ClothCalc.sellTip.show(this.obj.item_id);this.divMain.append(this.divTWDB2);"}var newfunction=this.save.InventoryItem.replace("{","{\n"+inject);eval("InventoryItem.prototype.getMainDiv = "+newfunction)}catch(e){TWDB.Error.report(e,"manipulate InventoryItem.prototype.getMainDiv");eval("InventoryItem.prototype.getMainDiv = "+this.save.InventoryItem)}},TraderItemTooltip:function(){if(typeof this.save.TraderItemTooltip=="undefined"){this.save.TraderItemTooltip=TraderItem.prototype.setTooltip.toString()}if(!TWDB.Settings.get("collector",true)&&!TWDB.Settings.get("buyTip",true)){return}try{var length=this.save.TraderItemTooltip.length;var newfunction=this.save.TraderItemTooltip.replace(/this.divMain.mouse/g,"this.elImg.mouse");eval("TraderItem.prototype.setTooltip = "+newfunction)}catch(e){TWDB.Error.report(e,"manipulate TraderItem.prototype.setTooltip");eval("TraderItem.prototype.setTooltip = "+this.save.TraderItemTooltip)}},TraderItem:function(){if(typeof this.save.TraderItem=="undefined"){this.save.TraderItem=TraderItem.prototype.initDisplay.toString()}if(!TWDB.Settings.get("collector",true)&&!TWDB.Settings.get("buyTip",true)){return}try{var length=this.save.TraderItem.length;var newfunction=this.save.TraderItem.substring(0,length-1);if(TWDB.Settings.get("collector",true)){newfunction+="var bagItem=Bag.getItemByItemId(this.obj.item_id);var wearItem = Wear.wear[this.obj.type];if(!bagItem&&!(wearItem && wearItem.obj.item_id == this.obj.item_id)){this.divMain.append(jQuery('<img src=\""+TWDB.images.iconNew+'" title=" this item you have not yet " style="position:absolute;top:-8px;left:-15px;padding:0px;border:0px;margin:0px;" />\'));};'}if(TWDB.Settings.get("buyTip",true)){newfunction+="this.divMain.append(TWDB.ClothCalc.buyTip.show(this.obj.item_id));"}newfunction+="}";eval("TraderItem.prototype.initDisplay = "+newfunction)}catch(e){TWDB.Error.report(e,"manipulate TraderItem.prototype.initDisplay");eval("TraderItem.prototype.initDisplay = "+this.save.TraderItem)}},ItemTraderItemTooltip:function(){if(typeof this.save.ItemTraderItemTooltip=="undefined"){this.save.ItemTraderItemTooltip=ItemTraderItem.prototype.setTooltip.toString()}if(!TWDB.Settings.get("collector",true)&&!TWDB.Settings.get("buyTip",true)){return}try{var length=this.save.ItemTraderItemTooltip.length;var newfunction=this.save.ItemTraderItemTooltip.replace(/this.divMain.mouse/g,"this.elImg.mouse");eval("ItemTraderItem.prototype.setTooltip = "+newfunction)}catch(e){TWDB.Error.report(e,"manipulate ItemTraderItem.prototype.setTooltip");eval("ItemTraderItem.prototype.setTooltip = "+this.save.ItemTraderItemTooltip)}},ItemTraderItem:function(){if(typeof this.save.ItemTraderItem=="undefined"){this.save.ItemTraderItem=ItemTraderItem.prototype.initDisplay.toString()}if(!TWDB.Settings.get("collector",true)&&!TWDB.Settings.get("buyTip",true)){return}try{var length=this.save.ItemTraderItem.length;var newfunction=this.save.ItemTraderItem.substring(0,length-1);if(TWDB.Settings.get("collector",true)){newfunction+="var bagItem=Bag.getItemByItemId(this.obj.item_id);var wearItem = Wear.wear[this.obj.type];if(!bagItem&&!(wearItem && wearItem.obj.item_id == this.obj.item_id)){this.divMain.append(jQuery('<img src=\""+TWDB.images.iconNew+'" title=" this item you have not yet " style="position:absolute;top:-8px;left:-15px;padding:0px;border:0px;margin:0px;" />\'));};'}if(TWDB.Settings.get("buyTip",true)){newfunction+="this.divMain.append(TWDB.ClothCalc.buyTip.show(this.obj.item_id));"}newfunction+="}";eval("ItemTraderItem.prototype.initDisplay = "+newfunction)}catch(e){TWDB.Error.report(e,"manipulate ItemTraderItem.prototype.initDisplay");eval("ItemTraderItem.prototype.initDisplay = "+this.save.ItemTraderItem)}},MarketWindow:function(){if(typeof this.save.MarketWindow=="undefined"){this.save.MarketWindow=MarketWindow.getClearName.toString()}if(!TWDB.Settings.get("collector",true)){return}try{var inject="var bagItem=Bag.getItemByItemId(obj.item_id);var wearItem = Wear.wear[obj.type];var prefix = (!bagItem &&!(wearItem && wearItem.obj.item_id == obj.item_id))?'*':'';";var newfunction=this.save.MarketWindow.replace("{","{\n"+inject);newfunction=newfunction.replace(/return/gi,"return prefix +");eval("MarketWindow.getClearName = "+newfunction)}catch(e){TWDB.Error.report(e,"manipulate MarketWindow.getClearName");eval("MarketWindow.getClearName = "+this.save.MarketWindow)}},changeMinimap:function(){if(!TWDB.Settings.get("sectorMap",true)){return}jQuery("#minimap_micro").css("background-image","url(data:"+TWDB.images.miniMap+")")},showAllJobs:function(){if(typeof this.save.mapData=="undefined"){this.save.mapData=WMap.mapData.check_job_points.toString()}if(!TWDB.Settings.get("showAllJobs",true)){return}try{var JobPointCheck=this.save.mapData.replace(/return 0;/gi,"return 2;");eval("WMap.mapData.check_job_points = "+JobPointCheck);WMinimap.updateJobs();WMap.mapData.update_all_jobs()}catch(e){TWDB.Error.report(e,"manipulate WMap.mapData.check_job_points");eval("WMap.mapData.check_job_points = "+this.save.mapData)}},chat:function(){if(!TWDB.Settings.get("chat",true)){return}if(typeof colorTxt!="undefined"){showMessage("tw-db.info: colorMe Userscript is detected and tw-db chat enhancement is enabled. Please disable colorMe Userscript or disable chat enhancement at tw-db.info settings","tw-db.info chat enhancement",350,170,[["ok"]],false,90001,"warning");return}var a=jQuery("#chatwindow_say_button");var b=a.clone();var c=a.parent();a.remove();b.click(function(){var a=$("chatwindow_say").value;if(a){$("chatwindow_say").value="";chatcontrol.sendText(TWDB.Chat.inject(a))}});c.append(b);var a=jQuery("#chatwindow_say");var b=a.clone();var c=a.parent();a.remove();b.bind("keyup",function(a){switch(a.keyCode){case 13:var b=$("chatwindow_say").value;$("chatwindow_say").value="";chatcontrol.sendText(TWDB.Chat.inject(b));break;case 38:if(a.ctrlKey)window.chatcontrol.channelUp();else window.chatcontrol.historyUp();break;case 40:if(a.ctrlKey)window.chatcontrol.channelDown();else window.chatcontrol.historyDown();break}});c.append(b)},playerClick:function(){if(typeof this.save.playerClick=="undefined"){this.save.playerClick=window.chatcontrol.playerClick.toString()}if(!TWDB.Settings.get("chat",true)){return}try{var inject="\"<a id='chat_pm_permtell'>whisper, permanent</a>\",";var newfunction=this.save.playerClick.replace(/<\/a>",(\s)*chatcontrol/g,'</a>",'+inject+"chatcontrol");inject='("chat_pm_permtell", function () { TWDB.Chat.tell(name);mb.hide();})';var newfunction=newfunction.replace(/\(["']chat_pm_tell["'],/g,inject+'("chat_pm_tell",');eval("window.chatcontrol.playerClick = "+newfunction)}catch(e){TWDB.Error.report(e,"manipulate  window.chatcontrol.playerClick");eval("(function ($) {"+" window.chatcontrol.playerClick = "+this.save.playerClick+"})(jQuery);;")}},MessagesWindow:function(){if(typeof this.save.MessagesWindow=="undefined"){this.save.MessagesWindowOpen=MessagesWindow.open.toString();this.save.MessagesWindowTab=MessagesWindow.showTab.toString()}if(!TWDB.Settings.get("analyser",true)){return}try{var inject="MessagesWindow.window.addTab('Analyser', 'analyser', tabclick).appendToContentPane($('<div class=\"messages-analyser\"/>'));";var newfunction=this.save.MessagesWindowOpen.replace(/MessagesWindow.Telegram.DOM/g,inject+"MessagesWindow.Telegram.DOM");eval("(function ($) {"+"MessagesWindow.open = "+newfunction+"})(jQuery);;")}catch(e){TWDB.Error.report(e,"manipulate MessagesWindow.open");eval("(function ($) {"+"MessagesWindow.open = "+this.save.MessagesWindowOpen+"})(jQuery);;")}try{var inject="case 'analyser':TWDB.ReportAnalyser.show();break;";var newfunction=this.save.MessagesWindowTab.replace(/switch(\s)*\(id\)(\s)*{/g,"switch (id) { "+inject);eval("(function ($) {"+"MessagesWindow.showTab = "+newfunction+"})(jQuery);;")}catch(e){TWDB.Error.report(e,"manipulate MessagesWindow.showTab");eval("(function ($) {"+"MessagesWindow.showTab = "+this.save.MessagesWindowTab+"})(jQuery);;")}},skill:function(){jQuery("#menu_skill a").click(function(){var a=80,b=function(){if(jQuery(".skills_content,.skills_content4Shaman").length!=2){if(a--<=0&&c!=-1){clearInterval(c);c=-1}}else{jQuery(".skills_content,.skills_content4Shaman").find(".butMinus,.butPlus").each(function(){function d(){a=Math.max(Math.round(a*(a/200+1)/(a/133+1)),15);c.click();b=setTimeout(d,a)}function e(){b=setTimeout(d,a)}function f(){if(b!=-1){clearTimeout(b);b=-1}a=400}if(jQuery(this).get(0).twdb_skills)return;jQuery(this).get(0).twdb_skills=true;var a=400,b=-1,c=jQuery(this).css("cursor","pointer");c.mousedown(e).mouseup(f).mouseout(f)})}},c=setInterval(b,50)})}});TWDB.ClothCalc=new Object({uid:"twdb_clothcalc",_type2id:{animal:1,body:2,foot:3,head:4,left_arm:5,neck:6,right_arm:7,yield:8,pants:9,belt:10},_id2type:{1:"animal",2:"body",3:"foot",4:"head",5:"left_arm",6:"neck",7:"right_arm",8:"yield",9:"pants",10:"belt"},_skill2id:{strength:1,flexibility:2,dexterity:3,charisma:4,build:5,punch:6,tough:7,endurance:8,health:9,ride:10,reflex:11,dodge:12,hide:13,swim:14,aim:15,shot:16,pitfall:17,finger_dexterity:18,repair:19,leadership:20,tactic:21,trade:22,animal:23,appearance:24},_id2skill:{1:"strength",2:"flexibility",3:"dexterity",4:"charisma",5:"build",6:"punch",7:"tough",8:"endurance",9:"health",10:"ride",11:"reflex",12:"dodge",13:"hide",14:"swim",15:"aim",16:"shot",17:"pitfall",18:"finger_dexterity",19:"repair",20:"leadership",21:"tactic",22:"trade",23:"animal",24:"appearance"},_class2id:{greenhorn:1,adventurer:2,duelist:3,worker:4,soldier:5},ready:false,data:{skills:{},items:{},jobs:{},custom:{}},calcdata:{skills:{},items:{},jobs:{},custom:{},animals:[],buyTip:{},jobBoni:{},used:{}},loaded:false,up2date:true,gui:{job:{},custom:{}},init:function(){if(this.ready){return}var a=this;this.jobs.setParent(this);this.customs.setParent(this);this.bag.setParent(this);this.buyTip.setParent(this);this.jobBoni.setParent(this);this.sellTip.setParent(this);this.jobSearch.setParent(this);this.favoriteJobs.setParent(this);var b=window.addEventListener?"addEventListener":"attachEvent";var c=window[b];var d=b=="attachEvent"?"onmessage":"message";c(d,function(b){if(b.origin!=="http://"+TWDB.url){return}try{var c=jQuery.parseJSON(b.data)}catch(b){(new UserMessage(TWDB.url+": empty or corrupt data recieved",UserMessage.TYPE_ERROR)).show()}if(typeof c.error!="undefined"){(new UserMessage(TWDB.url+": "+c.error,UserMessage.TYPE_ERROR)).show()}else if(typeof c.message!="undefined"){(new UserMessage(TWDB.url+": "+c.message,UserMessage.TYPE_SUCCESS)).show();a.handleTWDBData(c.data)}},false);this.gui.copyright=jQuery('<div style="position:absolute;bottom:0px;left:0px;height:15px;display:block;font-size:10px;color:#000000;">.:powered by tw-db team:. | <a href="http://tw-db.info" style="font-weight:normal;color:#000000;" target="_blank">.:tw-db.info:.</a> | '+(TWDB.Updater.clothcalc.ver/100/1+" rev. "+TWDB.Updater.clothcalc.rev)+"</div>");this.gui.cache=jQuery('<div style="position:absolute;top:10px;right:8px;width:20px;height:20px;cursor:pointer;" />');this.gui.bag=jQuery('<div style="position:absolute;top:95px;left:1px;width:252px;height:186px;" />');if(!Bag.loaded){Bag.loadItems()}this.BagInt=window.setInterval(function(){a.finishInit()},100);this.data.custom=TWDB.Settings.get("custom",{1:{id:1,type:"speed",para:{},name:"Speed"},2:{id:2,type:"custom",para:{9:1},name:"max Health"},3:{id:3,type:"regen",para:{},name:"Health Regeneration"},4:{id:4,type:"fort",para:{att:200,def:0,health:100,type:0},name:"Fortbattle Attacker (Att)"},5:{id:5,type:"fort",para:{att:0,def:200,health:100,type:0},name:"Fortbattle Attacker (Def)"},6:{id:6,type:"fort",para:{att:200,def:0,health:100,type:1},name:"Fortbattle Defender (Att)"},7:{id:7,type:"fort",para:{att:0,def:200,health:100,type:1},name:"Fortbattle Defender (Def)"},8:{id:8,type:"duel",para:{12:1,15:1,16:1,24:1},name:"Range Dueler (Att)"},9:{id:9,type:"duel",para:{12:1,15:1,16:1,21:1},name:"Range Dueler (Def)"},10:{id:10,type:"duel",para:{6:1,7:1,11:1,15:1},name:"Melee Dueler"}});if(TWDB.Updater.clothcalc.ver+" "+TWDB.Updater.clothcalc.rev==TWDB.Cache.load("version")){var e=TWDB.Cache.load("calcdata");if(typeof this.calcdata=="object"||this.calcdata!=null){this.calcdata=e}}else{TWDB.Cache.save("calcdata",this.calcdata)}TWDB.Cache.save("version",TWDB.Updater.clothcalc.ver+" "+TWDB.Updater.clothcalc.rev);this.buyTip.init();this.favoriteJobs.init()},finishInit:function(){if(typeof this.BagInt=="undefined"){return}if(Bag.loaded){window.clearInterval(this.BagInt);delete this.BagInt;this.loaded=true;this.ready=true;this.addButton()}},addButton:function(){if(this.loaded==false){if(typeof this.gui.button=="undefined"){this.gui.button=jQuery('<div style="position:absolute;left:240px;top:-15px;cursor:pointer;display:block;width:32px;heigth:32px;padding:0px;margin:0px;border:0px;" />');jQuery("#footer_menu_left div:last-child").append(this.gui.button)}this.gui.button.children().remove();this.gui.button.append('<img src="'+TWDB.images.ClothCalcButton+'" title="<b> tw-db.info ClothCalc is initializing</b>" style="opacity:0.5" />')}else{if(typeof this.gui.button=="undefined"){this.gui.button=jQuery('<div style="position:absolute;left:240px;top:-15px;cursor:pointer;display:block;width:32px;heigth:32px;padding:0px;margin:0px;border:0px;" />');jQuery("#footer_menu_left div:last-child").append(this.gui.button)}this.gui.button.children().remove();var a=this;this.gui.button.append('<img src="'+TWDB.images.ClothCalcButton+'" title="<b> tw-db.info ClothCalc </b>"  />').click(function(){a.open()})}},checkSkill:function(){for(var a in this.data.skills){if(typeof this.calcdata.skills[a]=="undefined"){return true}if(this.data.skills[a].val!=this.calcdata.skills[a].val){return true}}return false},checkItems:function(){for(var a in this.data.items){if(typeof this.calcdata.items[a]=="undefined"){return true}}for(var a in this.calcdata.items){if(typeof this.data.items[a]=="undefined"){return true}}return false},checkCustom:function(){var a=0;for(var a in this.data.custom){if(typeof this.calcdata.custom[a]=="undefined"){return true}if(this.calcdata.custom[a].name!=this.data.custom[a].name){return true}for(var b in this.data.custom[a].para){if(typeof this.calcdata.custom[a].para[b]=="undefined"){return true}if(this.calcdata.custom[a].para[b]!=this.data.custom[a].para[b]){return true}}}if(typeof this.calcdata.custom[Number(a)+1]!="undefined"){return true}return false},checkCache:function(){var a=this.checkItems();var b=this.checkSkill();var c=this.checkCustom();this.gui.cache.children().remove();if(a||b||c){var d="the Data is outdated, click for Update";if(a){d+=" [Inventory]"}if(b){d+=" [Skill]"}if(c){d+=" [Custom skills]"}var e=jQuery('<div title="'+d+'" style="position:absolute;top:0px;right:0px;width:20px;height:20px;background: url('+TWDB.images.iconData+')no-repeat 0px 0px;" />');this.up2date=false}else{var e=jQuery('<div title="the Data is up to Date" style="position:absolute;top:0px;right:0px;width:20px;height:20px;background: url('+TWDB.images.iconData+')no-repeat -20px 0px;" /></div>');this.up2date=true}this.gui.cache.append(e);var f=this;e.click(function(){f.getTWDBData()})},open:function(){if(this.loaded==false){return}if(wman.getById(this.uid)){return}var a=this;if(typeof this.eventOpen!="undefined"){TWDB.Eventer.remove("getGameData",this.eventOpen)}var b=0;for(var c in this.calcdata.jobs){b++;break}if(b==0){this.eventOpen=TWDB.Eventer.set("getGameData",function(){a.getTWDBData()},1);this.up2date=false;this.getGameData()}else{this.eventOpen=TWDB.Eventer.set("getGameData",function(){a.finishOpening()},1);this.getGameData()}var d=wman.getById(Inventory.uid);Wear.open();var e=wman.getById(Inventory.uid);if(typeof d=="undefined"&&typeof e!="undefined"){e.fireEvent(TWE("WINDOW_CLOSE"),e)}this.jobs.selected=0;this.gui.job.sort=jQuery('<div style="position:absolute;top:10px;left:0px;height:20px;" />').append('<img src="'+TWDB.images.iconName+'" title=" order by name " alt=" order by name " onclick="javascript:TWDB.ClothCalc.jobs.order(\'name\')" style="margin:0px 2px 0px 2px;cursor:pointer;" />').append('<img src="'+TWDB.images.iconExperience+'" title=" order by experience " alt=" order by experience " onclick="javascript:TWDB.ClothCalc.jobs.order(\'experience\')" style="margin:0px 2px 0px 2px;cursor:pointer;" />').append('<img src="'+TWDB.images.iconDollar+'" title=" order by wages " alt=" order by wages " onclick="javascript:TWDB.ClothCalc.jobs.order(\'wages\')" style="margin:0px 2px 0px 2px;cursor:pointer;" />').append('<img src="'+TWDB.images.iconLuck+'" title=" order by luck " alt=" order by luck " onclick="javascript:TWDB.ClothCalc.jobs.order(\'luck\')" style="margin:0px 2px 0px 2px;cursor:pointer;" />').append('<img src="'+TWDB.images.iconDanger+'" title=" order by danger " alt=" order by danger " onclick="javascript:TWDB.ClothCalc.jobs.order(\'danger\')" style="margin:0px 2px 0px 2px;cursor:pointer;" />').append('<img src="'+TWDB.images.iconLaborpoints+'" title=" order by workpoints " alt=" order by workpoints " onclick="javascript:TWDB.ClothCalc.jobs.order(\'laborpoints\')" style="margin:0px 2px 0px 2px;cursor:pointer;" />');this.gui.job.title=jQuery('<div style="position:absolute;top:36px;left:0px;width:190px;height:19px;font-weight:bold;text-align:center;">Select job here >></div>');this.gui.job.favorite=jQuery("<div style=\"position:absolute;top:15px;right:50px;width:20px;height:20px;background:url('"+TWDB.images.iconFavorite+'\') no-repeat scroll 0 0 transparent;cursor:pointer;display:none;" title=" Add this job to favorites " />');this.gui.job.search=jQuery("<div style=\"position:absolute;top:35px;right:50px;width:20px;height:20px;background:url('"+TWDB.images.iconSearch+'\') no-repeat scroll 0 0 transparent;cursor:pointer;display:none;" title=" Find this job on the map " />');this.gui.job.checkbox=new tw2gui.checkbox("",this.jobs.alljobs?"":"tw2gui_checkbox_checked",function(){if(this.isSelected()){a.jobs.alljobs=false;a.jobs.createSelectbox()}else{a.jobs.alljobs=true;a.jobs.createSelectbox()}});this.gui.job.checkbox.setTooltip("Hide Jobs you could not do");this.gui.job.checkbox.getMainDiv().css("position","absolute").css("top","35px").css("right","30px");this.gui.job.button=jQuery('<div style="position:absolute;top:35px;right:4px;width:26px;height:20px;background:url(\'/images/window/character/title_editbtn.jpg\') no-repeat scroll 0 0 transparent;cursor:pointer;" title=" Select job here " />');this.gui.job.selectbox=new tw2gui.selectbox;this.gui.job.selectbox.setPosition(255,34).setWidth(300).addListener(function(b){a.jobs.switch(b)}.bind(this));jQuery(this.gui.job.selectbox.elContent).css("max-height","300px");this.gui.job.skills=jQuery('<div style="position:absolute;top:60px;left:1px;width:252px;height:30px;display:block;" />');this.gui.job.mainDiv=jQuery('<div style="position:absolute;top:0px;left:0px;height:100%;width:100%;" />');this.gui.job.mainDiv.append(this.gui.job.sort);this.gui.job.mainDiv.append(this.gui.job.title);this.gui.job.mainDiv.append(this.gui.job.favorite);this.gui.job.mainDiv.append(this.gui.job.search);this.gui.job.mainDiv.append(this.gui.job.checkbox.getMainDiv());this.gui.job.mainDiv.append(this.gui.job.button);this.gui.job.mainDiv.append(this.gui.job.selectbox.getMainDiv());this.gui.job.mainDiv.append(this.gui.job.skills);this.gui.job.button.click(function(){if("block"!=a.gui.job.selectbox.getMainDiv().css("display")){a.jobs.createSelectbox()}a.gui.job.selectbox.toggleDisplay()}.bind(this));this.gui.job.search.click(function(){a.jobSearch.show()}.bind(this));this.gui.job.favorite.click(function(){a.favoriteJobs.addFavorite()}.bind(this));this.gui.job.searchDiv=jQuery("<div />");this.customs.selected=0;this.gui.custom.title=jQuery('<div style="position:absolute;top:36px;left:0px;width:210px;height:19px;font-weight:bold;text-align:center;">Select job here >></div>');this.gui.custom.settings=jQuery('<div title="settings" style="position:absolute;top:35px;right:30px;width:20px;height:20px;background:url('+TWDB.images.iconSetting+');cursor:pointer;" />');this.gui.custom.settings.click(function(){a.customs.showConfig()});this.gui.custom.button=jQuery('<div style="position:absolute;top:35px;right:4px;width:26px;height:20px;background:url(\'/images/window/character/title_editbtn.jpg\') no-repeat scroll 0 0 transparent;cursor:pointer;" title=" Select job here " />');this.gui.custom.selectbox=new tw2gui.selectbox;this.gui.custom.selectbox.setPosition(255,34).setWidth(300).addListener(function(b){a.customs.switch(b)}.bind(this));jQuery(this.gui.custom.selectbox.elContent).css("max-height","300px");this.gui.custom.skills=jQuery('<div style="position:absolute;top:60px;left:1px;width:252px;height:30px;display:block;" />');this.gui.custom.mainDiv=jQuery('<div style="position:absolute;top:0px;left:0px;height:100%;width:100%;" />').hide();this.gui.custom.mainDiv.append(this.gui.custom.title);this.gui.custom.mainDiv.append(this.gui.custom.settings);this.gui.custom.mainDiv.append(this.gui.custom.button);this.gui.custom.mainDiv.append(this.gui.custom.selectbox.getMainDiv());this.gui.custom.mainDiv.append(this.gui.custom.skills);this.gui.custom.button.click(function(){a.gui.custom.selectbox.toggleDisplay()}.bind(this));this.gui.bag.children().remove();var f=function(b,c){a.showTab(b,c)};this.gui.window=wman.open(this.uid,null,"noreload").setMiniTitle("TWDB Cloth Calc").setTitle("tw-db.info Cloth Calc").addTab("Job","Jobs",f).addTab("Custom skills","Custom",f).appendToContentPane(this.gui.job.mainDiv).appendToContentPane(this.gui.custom.mainDiv).appendToContentPane(this.gui.cache).appendToContentPane(this.gui.bag).appendToContentPane(this.gui.copyright);this.gui.window.showLoader();if(TWDB.Settings.get("clothPos","left")=="right"){var g=Wear.window.divMain.offsetLeft+Wear.window.divMain.offsetWidth-15}else{var g=Wear.window.divMain.offsetLeft-295}this.gui.window.restoreAppearance({h:410,w:310,x:g});return},finishOpening:function(){this.jobs.calc();this.jobs.sort.order*=-1;this.jobs.order(this.jobs.sort.type);this.customs.createSelectbox();if(typeof this.gui.window!="undefined"){this.checkCache();delete this.eventOpen;this.gui.window.hideLoader()}},showTab:function(a,b){this.gui.window.activateTab(b);this.gui.window.showLoader();this.gui.bag.children().remove();switch(b){case"Jobs":this.gui.custom.mainDiv.hide();if(this.jobs.selected!=0){this.jobs.switch(this.jobs.selected)}this.gui.job.mainDiv.show();break;case"Custom":this.gui.job.mainDiv.hide();if(this.customs.selected!=0){this.customs.switch(this.customs.selected)}this.gui.custom.mainDiv.show();break}this.gui.window.hideLoader()},getGameData:function(a){var b=this;if(typeof a=="undefined"){this.getState={skill:false,items:false};TWDB.Eventer.set("getSkill",function(){b.getGameData("skill")},1);TWDB.Eventer.set("getItems",function(){b.getGameData("items")},1);this.getSkill();this.getItems()}else{this.getState[a]=true;var c=true;for(var d in this.getState){if(!this.getState[d]){c=false;break}}if(c){delete this.getState;TWDB.Eventer.trigger("getGameData")}}},getSkill:function(a){if(typeof a=="undefined"){var b=this;setTimeout(function(){b.getSkill(Character.skills)},10);return}else{this.data.skills={};for(var c in Character.skills){var d=this._skill2id[c];this.data.skills[d]={id:d,val:Character.skills[c]}}TWDB.Eventer.trigger("getSkill")}},getItems:function(a){if(typeof a=="undefined"){var b=this;jQuery.post("game.php?window=inventory",{},function(a){b.getItems(a)},"json");return}else{this.data.items={};for(var c=0;c<a.wear.length;c++){var d=ItemManager.get(a.wear[c]);if(!this.isItemUsable(d.item_id)){continue}this.data.items[d.item_id]={id:d.item_id}}for(var e in Bag.items){for(var c in Bag.items[e]){var d=ItemManager.get(Number(c));if(!this.isItemUsable(d.item_id)){continue}this.data.items[d.item_id]={id:d.item_id}}}TWDB.Eventer.trigger("getItems")}},isItemUsable:function(a){var b=ItemManager.get(a);if(typeof b=="undefined"){return false}var c=false;if(!this.itemHasBonus(b)){return false}if(b.characterClass!==null&&b.characterClass!==Character.characterClass){return false}if(b.characterSex!==null&&b.characterSex!==Character.characterSex){return false}if(b.level!==null&&b.level>Character.level+Character.itemLevelRequirementDecrease["all"]+(typeof Character.itemLevelRequirementDecrease[b.type]!="undefined"?Character.itemLevelRequirementDecrease[b.type]:0)){return false}return true},itemHasBonus:function(a){if(a.type=="left_arm"||a.type=="right_arm"){return true}if(typeof a.set!="undefined"&&a.set!=null){return true}if(typeof a.speed!="undefined"&&a.speed!=null){return true}if(typeof a.bonus=="undefined"){return false}if(typeof a.bonus.skills!="undefined"){for(var b in a.bonus.skills){if(!jQuery.isFunction(a.bonus.skills[b])){return true}}}if(typeof a.bonus.attributes!="undefined"){for(var b in a.bonus.attributes){if(!jQuery.isFunction(a.bonus.attributes[b])){return true}}}if(typeof a.bonus.fortbattle!="undefined"){for(var b in a.bonus.fortbattle){if(a.bonus.fortbattle[b]>0){return true}}}if(typeof a.bonus.fortbattlesector!="undefined"){for(var b in a.bonus.fortbattlesector){if(a.bonus.fortbattle[b]>0){return true}}}return false},getTWDBData:function(){function g(a,b){return a["speed"]>b["speed"]?true:false}if(this.up2date){return}var a={};var b="";var c="";var d=[];for(var e in this.data.items){var f=ItemManager.get(e);if(typeof a[f.type]=="undefined"){a[f.type]=""}if(!this.isItemUsable(f.item_id)){continue}if(f.type=="animal"){d.push({id:f.item_id,speed:f.speed})}a[f.type]+=f.item_id+",";if(f.set!==null){c+=f.item_id+","}}d.sort(g);this.calcdata.animals=d;for(var h in this._type2id){if(b!=""){b+=";"}b+=this._type2id[h]+":";if(typeof a[h]=="undefined"){continue}b+=a[h]}var i="";for(var e in this.data.skills){i+=this.data.skills[e].id+":"+this.data.skills[e].val+";"}var j=jQuery.extend(true,{},this.data.custom);for(var e in j){if(j[e].type=="fort"||j[e].type=="regen"){j[e]["para"]["level"]=Number(Character.level);j[e]["para"]["class"]=Number(this._class2id[Character.characterClass]);j[e]["para"]["premium"]=Number(PremiumBoni.hasBonus("regen"))+","+Number(PremiumBoni.hasBonus("automation"))+","+Number(PremiumBoni.hasBonus("money"))+","+Number(PremiumBoni.hasBonus("character"))}}var k='<form name="TWDB_CC_Form" action="http://'+TWDB.url+'/ingame_calc.php" method="post">';k+='<input style="display:none" type="text" name="items" value="'+b+'" />';k+='<input style="display:none" type="text" name="setitems" value="'+c+'" />';k+='<input style="display:none" type="text" name="skill" value="'+i+'" />';k+='<input style="display:none" type="text" name="nick" value="'+Character.name+'" />';k+='<input style="display:none" type="text" name="worldfull" value="'+window.location.host+'" />';k+='<input style="display:none" type="text" name="custom" value=\''+JSON.stringify(j).replace(/'/g,"\\'")+"' />";k+="</form>";k+='</form><script type="text/javascript">document.forms.TWDB_CC_Form.submit();</script></body>';if(typeof this.iframe!="undefined"){jQuery(this.iframe).remove()}this.iframe=jQuery('<iframe width="1px" height="1px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" allowtransparency="false" style="display:none;" />');jQuery("body").append(this.iframe);var l=this.iframe.get(0);var m=l.contentWindow||l.contentDocument;if(m.document)m=m.document;m.write(k)},handleTWDBData:function(a){this.calcdata.items=jQuery.extend(true,{},this.data.items);this.calcdata.skills=jQuery.extend(true,{},this.data.skills);this.calcdata.time=a.time;this.calcdata.jobs=a.jobs;this.calcdata.custom=a.custom;this.calcdata.buyTip={};this.calcdata.jobBoni={};this.calcdata.used={};try{this.jobs.init()}catch(b){(new UserMessage("tw-db.info cloth calculation script has encountered an unknown error! Please, provide us with this text:; handle Jobs; "+JSON.stringify(b),UserMessage.TYPE_ERROR)).show()}try{this.customs.init()}catch(b){(new UserMessage("tw-db.info cloth calculation script has encountered an unknown error! Please, provide us with this text:; handle Customs; "+JSON.stringify(b),UserMessage.TYPE_ERROR)).show()}try{this.buyTip.init()}catch(b){(new UserMessage("tw-db.info cloth calculation script has encountered an unknown error! Please, provide us with this text:; handle buyTip; "+JSON.stringify(b),UserMessage.TYPE_ERROR)).show()}try{this.sellTip.init()}catch(b){(new UserMessage("tw-db.info cloth calculation script has encountered an unknown error! Please, provide us with this text:; handle sellTip; "+JSON.stringify(b),UserMessage.TYPE_ERROR)).show()}TWDB.Cache.save("calcdata",this.calcdata);this.finishOpening()},jobs:new Object({selected:0,alljobs:false,sort:{list:[],type:"name",order:1},setParent:function(a){this.parent=a},init:function(){var a=[];for(var b in JobList){a[JobList[b].shortName]=b}for(var b in this.parent.calcdata.jobs){if(typeof a[this.parent.calcdata.jobs[b].short_name]=="undefined"){if(this.parent.calcdata.jobs[b].short_name=="construction"){this.parent.calcdata.jobs[b].name="Construction";this.parent.calcdata.jobs[b].formular=InternalJobList[0].formular;this.parent.calcdata.jobs[b].gameid=0;this.parent.calcdata.jobs[b].laborpoints.current=0}continue}this.parent.calcdata.jobs[b].name=JobList[a[this.parent.calcdata.jobs[b].short_name]].name;this.parent.calcdata.jobs[b].formular=JobList[a[this.parent.calcdata.jobs[b].short_name]].formular;this.parent.calcdata.jobs[b].gameid=a[this.parent.calcdata.jobs[b].short_name];this.parent.calcdata.jobs[b].laborpoints.current=0}this.calc()},calc:function(){var skills=jQuery.extend(true,{},Character.skills);var lp=0;var premium=Number(PremiumBoni.hasBonus("money"));for(var jobid in this.parent.calcdata.jobs){this.parent.calcdata.jobs[jobid].laborpoints.skills=eval(this.parent.calcdata.jobs[jobid].formular);this.parent.calcdata.jobs[jobid].laborpoints.sum=this.parent.calcdata.jobs[jobid].laborpoints.cloth;this.parent.calcdata.jobs[jobid].laborpoints.sum+=this.parent.calcdata.jobs[jobid].laborpoints.skills;this.parent.calcdata.jobs[jobid].laborpoints.sum-=this.parent.calcdata.jobs[jobid].difficulty;lp=this.parent.calcdata.jobs[jobid].laborpoints.sum>0?this.parent.calcdata.jobs[jobid].laborpoints.sum:0;this.parent.calcdata.jobs[jobid].values=[];this.parent.calcdata.jobs[jobid].values.experience=Number(this.parent.calcdata.jobs[jobid].experience)*2;this.parent.calcdata.jobs[jobid].values.danger=Number(this.parent.calcdata.jobs[jobid].danger);this.parent.calcdata.jobs[jobid].values.wages=Math.round((.9*this.parent.calcdata.jobs[jobid].wages+5)*Math.pow(lp+1,.2)*(2+premium));this.parent.calcdata.jobs[jobid].values.luck1=Math.round((.9*this.parent.calcdata.jobs[jobid].luck+5)*Math.pow(lp+1,.2)*(5+premium*2.5));this.parent.calcdata.jobs[jobid].values.luck2=Math.round((.9*this.parent.calcdata.jobs[jobid].luck+5)*Math.pow(lp+1,.2)*(15+premium*7.5))}},order:function(a){function f(a,b){return a["value"]>b["value"]?e:-e}function g(a,b){return a["value"]*1>b["value"]*1?e:-e}var b=[];if(a==this.sort.type){this.sort.order*=-1}else{this.sort.order=-1}this.sort.list=[];for(var c in this.parent.calcdata.jobs){switch(a){case"name":var d=this.parent.calcdata.jobs[c].name;if(a!=this.sort.type){this.sort.order*=-1}break;case"luck":var d=this.parent.calcdata.jobs[c].values.luck1;break;case"laborpoints":var d=this.parent.calcdata.jobs[c].laborpoints.sum;break;case"experience":var d=this.parent.calcdata.jobs[c].values.experience;break;case"wages":var d=this.parent.calcdata.jobs[c].values.wages;break;case"danger":var d=this.parent.calcdata.jobs[c].danger;if(a!=this.sort.type){this.sort.order*=-1}break;default:var d=this.parent.calcdata.jobs[c].name;this.sort.type="name";this.sort.order=1;break}b.push({id:c,value:d})}this.sort.type=a;var e=this.sort.order;if(a=="name"){b.sort(f)}else{b.sort(g)}for(var h=0;h<b.length;h++){this.sort.list.push(b[h]["id"])}this.createSelectbox()},createSelectbox:function(){this.parent.gui.job.selectbox.elContent.empty();this.parent.gui.job.selectbox.value=null;this.parent.gui.job.selectbox.items=[];for(var i=0;i<this.sort.list.length;i++){var jobid=this.sort.list[i];if(!this.alljobs&&this.parent.calcdata.jobs[jobid].laborpoints.sum<0){continue}var name=this.parent.calcdata.jobs[jobid].name;var skills=jQuery.extend(true,{},Character.bonus_skills);this.parent.calcdata.jobs[jobid].laborpoints.current=eval(this.parent.calcdata.jobs[jobid].formular)+WearSet.getWorkPointAddition(this.parent.calcdata.jobs[jobid].gameid)-this.parent.calcdata.jobs[jobid].difficulty;name+=" ["+this.parent.calcdata.jobs[jobid].laborpoints.current+"/"+this.parent.calcdata.jobs[jobid].laborpoints.sum+"] ";switch(this.sort.type){case"luck":name+="$"+this.parent.calcdata.jobs[jobid].values.luck1+" - "+"$"+this.parent.calcdata.jobs[jobid].values.luck2;break;case"laborpoints":name+=this.parent.calcdata.jobs[jobid].laborpoints.sum;break;case"experience":name+=this.parent.calcdata.jobs[jobid].values.experience+"exp";break;case"wages":name+="$"+this.parent.calcdata.jobs[jobid].values.wages;break;case"danger":name+=this.parent.calcdata.jobs[jobid].danger+"!";break}if(this.parent.calcdata.jobs[jobid].laborpoints.sum<0){name='<span style="color:red;">'+name+"</span>"}else{if(this.parent.calcdata.jobs[jobid].laborpoints.current<0){name='<span style="color:yellow;">'+name+"</span>"}}this.parent.gui.job.selectbox.addItem(jobid,name)}if(typeof this.parent.calcdata.jobs[this.selected]!="undefined"){var string=this.parent.calcdata.jobs[this.selected].name.substring(0,18)+" ["+this.parent.calcdata.jobs[this.selected].laborpoints.current+"/"+this.parent.calcdata.jobs[this.selected].laborpoints.sum+"]";this.parent.gui.job.title.html(string)}},"switch":function(a){if(typeof this.parent.calcdata.jobs[a]=="undefined"||typeof this.parent.calcdata.jobs[a].cloth=="undefined"){return}var b=this.parent;if(this.parent.calcdata.jobs[a].gameid!=0){b.gui.job.search.show();b.gui.job.favorite.show()}else{b.gui.job.search.hide();b.gui.job.favorite.hide()}document.getElementById("minimap_job_id").value=this.parent.calcdata.jobs[a].gameid;WMinimap.update();this.selected=a;var c=this.parent.calcdata.jobs[this.selected].name.substring(0,18)+" ["+this.parent.calcdata.jobs[this.selected].laborpoints.current+"/"+this.parent.calcdata.jobs[this.selected].laborpoints.sum+"]";this.parent.gui.job.title.html(c);this.parent.bag.showItems(this.parent.calcdata.jobs[a].cloth,"jobs");this.parent.gui.job.skills.children().remove();var d=this.parent.calcdata.jobs[a].formular.replace(/ /g,"");var e=d.split("+");for(var f=0;f<e.length;f++){var g=e[f].split("*");if(g.length>1&&Number(g[0])==g[0]){for(var h=0;h<g[0];h++){var i=g[1].split(".");if(typeof i[1]!="undefined"){var j=jQuery('<div style="float:left;widht;30px;heigth:30px;" />');this.parent.gui.job.skills.append(j.append(this.parent.getSkillImg(i[1],30)))}}}}}}),customs:new Object({selected:0,setParent:function(a){this.parent=a},init:function(){for(var a in this.parent.calcdata.custom){try{var b=this.parent.calcdata.custom[a];switch(b.type){case"speed":var c=0;var d=0;if(typeof b.cloth[1]!="undefined"){if(typeof b.cloth[1]["other"][1]!="undefined"){c=b.cloth[1]["other"][1]}}if(typeof b.boni.other[1]!="undefined"){d=b.boni.other[1]}d-=c;c+=typeof b.boni.skill[2]!="undefined"?b.boni.skill[2]:0;c+=typeof b.boni.skill[10]!="undefined"?b.boni.skill[10]:0;c+=Character.skills.ride;b.skills=["ride"];b.formular="Math.round(Character.default_speed / (Character.speed) * 100) + '%'";b.laborpoints=Math.round((100+c)*(1+d/100))+"%";break;case"regen":b.skills=["health"];b.formular="";b.laborpoints="";break;case"fort":if(b.para.type==0){var e="Character.get_max_health()";var f="Math.round((25 + Math.pow((skills.leadership * 1 + (Character.characterClass=='soldier'?(PremiumBoni.hasBonus('character')?0.5:0.25):0)), 0.4) + Math.pow(skills.aim, 0.4) + Math.pow(skills.endurance, 0.4))*100)/100";var g="Math.round((10 + Math.pow((skills.leadership * 1 + (Character.characterClass=='soldier'?(PremiumBoni.hasBonus('character')?0.5:0.25):0)), 0.4) + Math.pow(skills.dodge, 0.4) + Math.pow(skills.endurance, 0.4))*100)/100";b.formular=e+"+'|'+"+f+"+'|'+"+g;var h={};h.aim=Character.skills.aim+(typeof b.boni.skill[3]!="undefined"?b.boni.skill[3]:0)+(typeof b.boni.skill[15]!="undefined"?b.boni.skill[15]:0);h.endurance=Character.skills.endurance+(typeof b.boni.skill[1]!="undefined"?b.boni.skill[1]:0)+(typeof b.boni.skill[8]!="undefined"?b.boni.skill[8]:0);h.dodge=Character.skills.dodge+(typeof b.boni.skill[2]!="undefined"?b.boni.skill[2]:0)+(typeof b.boni.skill[12]!="undefined"?b.boni.skill[12]:0);h.leadership=Character.skills.leadership+(typeof b.boni.skill[4]!="undefined"?b.boni.skill[4]:0)+(typeof b.boni.skill[20]!="undefined"?b.boni.skill[20]:0);h.health=Character.skills.health+(typeof b.boni.skill[1]!="undefined"?b.boni.skill[1]:0)+(typeof b.boni.skill[9]!="undefined"?b.boni.skill[9]:0);var e=100+(Character.level-1)*Character.lifePointPerHealthSkill+h.health*(Character.lifePointPerHealthSkill+Character.lifePointPerHealthSkillBonus)+" | ";e+=Math.round((25+Math.pow(h.leadership*1+(Character.characterClass=="soldier"?PremiumBoni.hasBonus("character")?.5:.25:0),.4)+Math.pow(h.aim,.4)+Math.pow(h.endurance,.4))*100)/100+" | ";e+=Math.round((10+Math.pow(h.leadership*1+(Character.characterClass=="soldier"?PremiumBoni.hasBonus("character")?.5:.25:0),.4)+Math.pow(h.dodge,.4)+Math.pow(h.endurance,.4))*100)/100}else{var e="Character.get_max_health()";var f="Math.round((25 + Math.pow((skills.leadership * 1 + (Character.characterClass=='soldier'?(PremiumBoni.hasBonus('character')?0.5:0.25):0)), 0.4) + Math.pow(skills.aim, 0.4) + Math.pow(skills.hide, 0.4))*100)/100";var g="Math.round((10 + Math.pow((skills.leadership * 1 + (Character.characterClass=='soldier'?(PremiumBoni.hasBonus('character')?0.5:0.25):0)), 0.4) + Math.pow(skills.dodge, 0.4) + Math.pow(skills.hide, 0.4))*100)/100";b.formular=e+"+'|'+"+f+"+'|'+"+g;var h={};h.aim=Character.skills.aim+(typeof b.boni.skill[3]!="undefined"?b.boni.skill[3]:0)+(typeof b.boni.skill[15]!="undefined"?b.boni.skill[15]:0);h.hide=Character.skills.hide+(typeof b.boni.skill[2]!="undefined"?b.boni.skill[2]:0)+(typeof b.boni.skill[13]!="undefined"?b.boni.skill[13]:0);h.dodge=Character.skills.dodge+(typeof b.boni.skill[2]!="undefined"?b.boni.skill[2]:0)+(typeof b.boni.skill[12]!="undefined"?b.boni.skill[12]:0);h.leadership=Character.skills.leadership+(typeof b.boni.skill[4]!="undefined"?b.boni.skill[4]:0)+(typeof b.boni.skill[20]!="undefined"?b.boni.skill[20]:0);h.health=Character.skills.health+(typeof b.boni.skill[1]!="undefined"?b.boni.skill[1]:0)+(typeof b.boni.skill[9]!="undefined"?b.boni.skill[9]:0);var e=100+(Character.level-1)*Character.lifePointPerHealthSkill+h.health*(Character.lifePointPerHealthSkill+Character.lifePointPerHealthSkillBonus)+" | ";e+=Math.round((25+Math.pow(h.leadership*1+(Character.characterClass=="soldier"?PremiumBoni.hasBonus("character")?.5:.25:0),.4)+Math.pow(h.aim,.4)+Math.pow(h.hide,.4))*100)/100+" | ";e+=Math.round((10+Math.pow(h.leadership*1+(Character.characterClass=="soldier"?PremiumBoni.hasBonus("character")?.5:.25:0),.4)+Math.pow(h.dodge,.4)+Math.pow(h.hide,.4))*100)/100}b.skills=["health","attacker","defender"];b.laborpoints=e;break;case"duel":b.skills=[];b.formular="";var e=0;for(var i in b.para){var j=Math.floor(i/5);if(typeof b.boni.skill[i]!="undefined"){e+=b.boni.skill[i]}if(typeof b.boni.skill[j]!="undefined"){e+=b.boni.skill[j]}if(typeof this.parent._id2skill[i]!="undefined"){if(b.formular.length>0){b.formular+=" + "}b.formular+="skills."+this.parent._id2skill[i]+" ";b.skills.push(this.parent._id2skill[i]);if(typeof Character.skills[this.parent._id2skill[i]]!="undefined"){e+=Character.skills[this.parent._id2skill[i]]}else if(typeof Character.attributes[this.parent._id2skill[i]]!="undefined"){e+=Character.attributes[this.parent._id2skill[i]]}}}b.laborpoints=e;break;case"custom":b.skills=[];b.formular="";var e=0;for(var i in b.para){var j=Math.floor(i/5);if(typeof b.boni.skill[i]!="undefined"){e+=b.boni.skill[i]}if(typeof b.boni.skill[j]!="undefined"){e+=b.boni.skill[j]}if(typeof this.parent._id2skill[i]!="undefined"){if(b.formular.length>0){b.formular+=" + "}b.formular+="skills."+this.parent._id2skill[i]+" ";b.skills.push(this.parent._id2skill[i]);if(typeof Character.skills[this.parent._id2skill[i]]!="undefined"){e+=Character.skills[this.parent._id2skill[i]]}else if(typeof Character.attributes[this.parent._id2skill[i]]!="undefined"){e+=Character.attributes[this.parent._id2skill[i]]}}}b.laborpoints=e;break;default:return;break}}catch(k){console.log(k);(new UserMessage("tw-db.info cloth calculation script has encountered an unknown error! Please, provide us with this text:; handle Customs; "+JSON.stringify(k),UserMessage.TYPE_ERROR)).show()}}},calc:function(){if(typeof this.parent.calcdata.custom[this.selected]=="undefined"||this.parent.calcdata.custom[this.selected].formular==""){return""}var skills=jQuery.extend(true,{},Character.bonus_skills);jQuery.extend(true,skills,Character.attributes);for(var key in Character.attributes){if(typeof Character.bonus.attributes[key]!="undefined"){skills[key]+=Character.bonus.attributes[key]}}return eval(this.parent.calcdata.custom[this.selected].formular)},createSelectbox:function(){this.parent.gui.custom.selectbox.elContent.empty();this.parent.gui.custom.selectbox.value=null;this.parent.gui.custom.selectbox.items=[];for(var a in this.parent.calcdata.custom){var b=this.parent.calcdata.custom[a].name+" ["+this.parent.calcdata.custom[a].laborpoints+"]";this.parent.gui.custom.selectbox.addItem(a,b)}this.switch(this.selected)},"switch":function(a){if(typeof this.parent.calcdata.custom[a]=="undefined"||typeof this.parent.calcdata.custom[a].cloth=="undefined"){return}var b=this.parent;this.parent.customs.selected=a;var c=" ["+this.parent.calcdata.custom[a].laborpoints+"]";c=this.parent.calcdata.custom[a].name.substring(0,35-c.length)+c;this.parent.gui.custom.title.html(c);this.parent.bag.showItems(this.parent.calcdata.custom[a].cloth,"custom");this.showSkill()},showSkill:function(){this.parent.gui.custom.skills.children().remove();if(typeof this.parent.calcdata.custom[this.parent.customs.selected]=="undefinied"){return}var a=this.calc();var b=String(a).split("|");for(var c=0;c<this.parent.calcdata.custom[this.selected].skills.length;c++){var d=jQuery('<div style="float:left;width:30px;height:30px;" />');d.append(this.parent.getSkillImg(this.parent.calcdata.custom[this.selected].skills[c],30));this.parent.gui.custom.skills.append(d);if(this.parent.calcdata.custom[this.parent.customs.selected].type=="fort"&&typeof b[c]!="undefined"){var e=jQuery('<div style="float:left;height:25px;padding:5px 10px 0px 5px ;font-weight:bold;">'+b[c]+"</div>");this.parent.gui.custom.skills.append(e)}}if(this.parent.calcdata.custom[this.parent.customs.selected].type!="fort"){var e=jQuery('<div style="float:left;height:25px;padding:5px 0px 0px 5px ;font-weight:bold;">'+a+"</div>");this.parent.gui.custom.skills.append(e)}},showConfig:function(){var a=this;var b=jQuery('<div title="edit" style="display:inline-block;vertical-align:top;height:16px;width:16px;cursor:pointer;background:url(\''+cdnURL+"/images/window/messages/head-icons.png') repeat scroll 0 16px transparent;\" />");var c=jQuery('<div title="delete" style="display:inline-block;vertical-align:top;height:16px;width:16px;cursor:pointer;background:url(\''+cdnURL+"/images/icons/delete.png') repeat scroll 0px 0px transparent;\" />");var d=jQuery('<div title="add" style="display:block;margin-top:2px;vertical-align:top;height:20px;width:25px;cursor:pointer;background:url(\''+cdnURL+"/images/window/messages/icons.png') repeat scroll 72px -5px transparent;\" />");var e=jQuery("<div />");for(var f in this.parent.data.custom){var g=this.parent.data.custom[f];var h=jQuery('<div style="display:inline-block;vertical-align:top;height:16px;width:300px;overflow:hidden;" />').html(g.name);var i=b.clone(false);var j=c.clone(false);var k=jQuery('<div style="display:block;height:18px;padding: 3px 0px 0px 0px;border-bottom: 1px solid #666" />').append(h).append(i).append(j);e.append(k);var l=function(b){return function(){a.editConfig(b)}}(f);i.click(l);var l=function(b){return function(){a.deleteConfig(b)}}(f);j.click(l)}var m=0;for(var f in this.parent.data.custom){m++}if(m<15){e.append(d);d.click(function(){a.addConfig()})}this.parent.gui.custom.config=new MessageDialog("Custom skills",e);this.parent.gui.custom.config.addButton("ok",function(){a.parent.checkCache()});this.parent.gui.custom.config.show()},addConfig:function(){var a=0;for(var b in this.parent.data.custom){a++}if(a>=15){(new UserMessage("too much entries, only ten are allowed",UserMessage.TYPE_ERROR)).show()}else{a++;this.editConfig(a)}},editConfig:function(a,b){if(typeof b=="undefined"){var c=this;var d="";var e="";var f="add - ";if(typeof this.parent.data.custom[a]!="undefined"){f="edit - ";var d=this.parent.data.custom[a].name;var e=JSON.stringify({type:this.parent.data.custom[a].type,para:this.parent.data.custom[a].para})}this.tmp={name:d,code:e};this.parent.gui.custom.name=(new tw2gui.textfield("twdb_cc_custom_name")).setSize(30).setValue(d);this.parent.gui.custom.code=(new tw2gui.textfield("twdb_cc_custom_code")).setSize(30).setValue(e);var g=jQuery('<table width="400px" />');g.append(jQuery("<tr />").append('<td style="vertical-align:middle">Name:</td>').append(jQuery("<td />").append(this.parent.gui.custom.name.getMainDiv())));g.append(jQuery("<tr />").append('<td style="vertical-align:middle">code:</td>').append(jQuery("<td />").append(this.parent.gui.custom.code.getMainDiv())));g.append('<tr><td colspan="2">please go to tw-db.info an get the code snippets to inserts here from there <a href="http://tw-db.info/?strana=calc" target="_blank">tw-db.info Calculator</a></td></tr>');var g=new MessageDialog(f+"Custom skills",g);g.addButton("ok",function(){return c.editConfig(a,true)});g.addButton("cancel");g.show()}else{var h=function(a){(new UserMessage("the inserts you have done are incorrect: "+a,UserMessage.TYPE_ERROR)).show();return false};if(this.parent.gui.custom.name.getValue()==""){return h("empty Name")}if(this.parent.gui.custom.code.getValue()==""){return h("empty code [1]")}if(this.parent.gui.custom.name.getValue()==this.tmp.name&&this.parent.gui.custom.code.getValue()==this.tmp.code){return true}try{var e=jQuery.parseJSON(this.parent.gui.custom.code.getValue())}catch(i){return h("wrong code [2]")}if(typeof e.type=="undefined"||typeof e.para=="undefined"){return h("wrong code [3]")}var j=0;for(var k in e.para){j++}switch(e.type){case"speed":case"regen":if(j!=0){return h("wrong code [4]")}break;case"fort":if(typeof e.para.type=="undefined"||typeof e.para.att=="undefined"||typeof e.para.def=="undefined"||typeof e.para.health=="undefined"){return h("wrong code [5]")}if(e.para.type!=1&&e.para.type!=0){return h("wrong code [6]")}if(!jQuery.isNumeric(e.para.att)||e.para.att<0){return h("wrong code [7]")}if(!jQuery.isNumeric(e.para.def)||e.para.def<0){return h("wrong code [8]")}if(!jQuery.isNumeric(e.para.health)||e.para.health<0){return h("wrong code [9]")}break;case"duel":case"custom":if(j<=0){return h("wrong code [10]")}break;default:return h("wrong code [11]")}delete this.tmp;this.parent.data.custom[a]={id:Number(a),type:e.type,para:e.para,name:this.parent.gui.custom.name.getValue()};this.parent.gui.custom.config.hide();this.showConfig();TWDB.Settings.set("custom",this.parent.data.custom)}},deleteConfig:function(a,b){if(typeof b=="undefined"){var c=this;var d=new MessageDialog("delete - Custom skills","delete: "+this.parent.data.custom[a].name+"?");d.addButton("ok",function(){c.deleteConfig(a,true)});d.addButton("cancel");d.show()}else{var e=this.parent.data.custom;delete e[a];this.parent.data.custom={};var f=0;for(var a in e){f++;this.parent.data.custom[f]=e[a];this.parent.data.custom[f].id=f}this.parent.gui.custom.config.hide();this.showConfig();TWDB.Settings.set("custom",this.parent.data.custom)}}}),getSkillImg:function(a,b){var c=1;var d=1;var e=0;switch(a){case"build":var f=cdnURL+"/images/skill/skills_strength.png";d=2;break;case"punch":var f=cdnURL+"/images/skill/skills_strength.png";e=1;d=2;break;case"tough":var f=cdnURL+"/images/skill/skills_strength.png";e=2;d=2;break;case"endurance":var f=cdnURL+"/images/skill/skills_strength.png";e=3;d=2;break;case"health":var f=cdnURL+"/images/skill/skills_strength.png";e=4;d=2;break;case"ride":var f=cdnURL+"/images/skill/skills_flexibility.png";d=2;break;case"reflex":var f=cdnURL+"/images/skill/skills_flexibility.png";e=1;d=2;break;case"dodge":var f=cdnURL+"/images/skill/skills_flexibility.png";e=2;d=2;break;case"hide":var f=cdnURL+"/images/skill/skills_flexibility.png";e=3;d=2;break;case"swim":var f=cdnURL+"/images/skill/skills_flexibility.png";e=4;d=2;break;case"aim":var f=cdnURL+"/images/skill/skills_dexterity.png";d=2;break;case"shot":var f=cdnURL+"/images/skill/skills_dexterity.png";e=1;d=2;break;case"pitfall":var f=cdnURL+"/images/skill/skills_dexterity.png";e=2;d=2;break;case"finger_dexterity":var f=cdnURL+"/images/skill/skills_dexterity.png";e=3;d=2;break;case"repair":var f=cdnURL+"/images/skill/skills_dexterity.png";e=4;d=2;break;case"leadership":var f=cdnURL+"/images/skill/skills_charisma.png";d=2;break;case"tactic":var f=cdnURL+"/images/skill/skills_charisma.png";e=1;d=2;break;case"trade":var f=cdnURL+"/images/skill/skills_charisma.png";e=2;d=2;break;case"animal":var f=cdnURL+"/images/skill/skills_charisma.png";e=3;d=2;break;case"appearance":var f=cdnURL+"/images/skill/skills_charisma.png";e=4;d=2;break;case"strength":var f=cdnURL+"/images/attribute_circle/strength.png";break;case"flexibility":var f=cdnURL+"/images/attribute_circle/flexibility.png";break;case"dexterity":var f=cdnURL+"/images/attribute_circle/dexterity.png";break;case"charisma":var f=cdnURL+"/images/attribute_circle/charisma.png";break;case"attacker":var f=TWDB.images.attacker;break;case"defender":var f=TWDB.images.defender;break;default:return jQuery("<div />")}var g="";if(typeof Character.skill_titles[a]!="undefined"){var g=Character.skill_titles[a]}else if(typeof Character.attribute_titles[a]!="undefined"){var g=Character.attribute_titles[a]}f='<img src="'+f+'" height="'+b*d+'" title="'+g+'" style="margin-left:-'+e*b+'px" />';f=jQuery(f);var h='<div style="display:block;overflow:hidden;width:'+b*c+"px;height:"+b+'px;"/>';h=jQuery(h);return h.append(f)},bag:new Object({stack:{},interval:false,setParent:function(a){this.parent=a},showItems:function(a,b){this.parent.gui.bag.children().remove();this.items={};var c=this;var d=false;addItem=function(a){var d=ItemManager.get(a);var e=new InventoryItem(d);var f=e.getMainDiv().clone(true);var g=function(a){return function(){c.click(this,a,b)}}(a);jQuery(f).removeAttr("id");jQuery(f).children(".count").remove();jQuery(f).children("img:first-child").removeAttr("id").click(g);jQuery(f).appendTo(c.parent.gui.bag);c.items[a]=jQuery(f)};for(var e in a){if(typeof e=="function"){break}var f=a[e].id;var g=ItemManager.get(f);addItem(f);if(g.type=="animal"){d=true}}if(!d&&this.parent.calcdata.animals.length>0){addItem(this.parent.calcdata.animals[0]["id"])}this.wear()},click:function(a,b,c){var d=Bag.getItemByItemId(b);if(d===undefined){return false}if(Wear.carry(d)){this.stack[b]=a;if(this.interval===false){var e=this;switch(c){case"jobs":var f=function(){e.wear();e.parent.jobs.createSelectbox()};break;case"custom":var f=function(){e.wear();e.parent.customs.showSkill()};break}TWDB.Eventer.set("carryChecker",f,1);this.interval=setInterval(function(){e.carry()},100)}jQuery(a).css("opacity","0.3")}},carry:function(){var a=0;for(var b in this.stack){var c=Bag.getItemByItemId(b);if(c==undefined||c.elImg.css("opacity")==1){jQuery(this.stack[b]).css("opacity","1.0");delete this.stack[b]}else{a++}}if(a==0){clearInterval(this.interval);this.interval=false;TWDB.Eventer.trigger("carryChecker")}},wear:function(){for(var a in Wear.wear){var b=Wear.wear[a].obj.item_id;if(typeof this.items[b]!="undefined"){this.items[b].css("opacity","0.5")}}}}),buyTip:new Object({list:[],current:0,stack:[],up2date:true,setParent:function(a){this.parent=a},init:function(){function b(a,b){return a["value"]>b["value"]?1:-1}this.list=[];jobs=[];for(var a in this.parent.calcdata.jobs){jobs.push({id:a,value:this.parent.calcdata.jobs[a].name})}jobs.sort(b);for(var c=0;c<jobs.length;c++){this.list.push(jobs[c]["id"])}},show:function(a){var b=jQuery('<div style="position:absolute;bottom:-8px;right:-5px;block;width:25px;height:25px;border:0px;margin:0px;" />');var c=ItemManager.get(a);if(typeof c=="undefined"){return b}if(c.characterClass!==null&&c.characterClass!==Character.characterClass){return b}if(c.characterSex!==null&&c.characterSex!==Character.characterSex){return b}if(Bag.getItemByItemId(a)){return b}if(typeof this.parent.calcdata.buyTip[a]=="undefined"){this.stack.push({id:a,div:b});if(this.up2date){this.up2date=false;var d=this;setTimeout(function(){d.calc()},100)}}else{if(this.parent.calcdata.buyTip[a].length>0){b.append(this.popup(a))}}return b},calc:function(){if(this.stack[this.current]!="undefined"){var a=this.stack[this.current].id;var b=this.stack[this.current].div;this.parent.calcdata.buyTip[a]=this.isBetterItem(a);if(this.parent.calcdata.buyTip[a].length>0){b.append(this.popup(a))}}this.current++;if(this.current<this.stack.length){var c=this;setTimeout(function(){c.calc()},100)}else{this.up2date=true;this.stack=[];this.current=0;TWDB.Cache.save("calcdata",this.parent.calcdata)}},isBetterItem:function(itemid){var data=ItemManager.get(itemid);if(data=="undefined"){return[]}if(typeof this.parent._type2id[data.type]=="undefined"){return[]}var type=this.parent._type2id[data.type];var skills={};for(var skill in Character.skills){skills[skill]=typeof data.bonus.skills[skill]!="undefined"?data.bonus.skills[skill]:0}for(var attr in Character.skill_names){if(typeof data.bonus.attributes[attr]!="undefined"){for(var i=0;i<Character.skill_names[attr].length;i++){skill=Character.skill_names[attr][i];skills[skill]+=data.bonus.attributes[attr]}}}var better=[];for(var i=0;i<this.list.length;i++){job=this.parent.calcdata.jobs[this.list[i]];if(typeof job.cloth=="undefined"||typeof job.cloth[type]=="undefined"||job.cloth[type].lp==0){continue}var lp=eval(job.formular);if(job.cloth[type].lp<lp){var color=0;var joblp=job.laborpoints.sum+(lp-job.cloth[type].lp);if(job.laborpoints.sum<0){if(joblp>=0){color=2}else{color=1}}better.push({job:job.id,lp:lp,more:lp-job.cloth[type].lp,color:color,joblp:joblp})}}return better},popup:function(a){var b=false;var c=ItemManager.get(a);var d=this.parent.calcdata.buyTip[a];var e="<table border='0' cellspacing='0' cellpadding='0'><tr>";if(c.level!==null&&c.level>Character.level+Character.itemLevelRequirementDecrease["all"]+(typeof Character.itemLevelRequirementDecrease[c.type]!="undefined"?Character.itemLevelRequirementDecrease[c.type]:0)){e+="<td colspan='2' style='text-align:center; font-weight:bold;'>"+c.level+" Level</td></tr><tr>"}for(var f=0;f<d.length;f++){var g=" +"+d[f].more+" "+this.parent.calcdata.jobs[d[f].job].name+" ["+d[f].joblp+"]";if(this.parent.jobs.selected==d[f].job){g="<b>"+g+"</b>";b=true}var h="#008000";switch(d[f].color){case 0:h="#008000";break;case 1:h="#FF0000";break;case 2:h="#0000FF";break}e+="<td style='color:"+h+";'>"+g+"</td>";if(f%2){e+="</tr><tr>"}}if(d.length%2){e+="<td></td></tr>"}else{e=e.substring(0,e.length-5)}e+="</table>";if(b){return jQuery('<img src="'+TWDB.images.iconStar2+'" width="100%" height="100%" title="'+e+'" />')}else{return jQuery('<img src="'+TWDB.images.iconStar+'" width="100%" height="100%" title="'+e+'" />')}}}),jobBoni:new Object({current:0,stack:[],up2date:true,setParent:function(a){this.parent=a},show:function(a){var b=jQuery('<div style="position: absolute; top: 0px; right: 1px; width: 17px; height: 18px; border: 0px none; margin: 0px;" />');if(this.parent.jobs.selected==0){return b}var c=this.parent.jobs.selected;if(typeof this.parent.calcdata.jobBoni[c]=="undefined"){this.parent.calcdata.jobBoni[c]={}}if(typeof this.parent.calcdata.jobBoni[c][a]=="undefined"){this.stack.push({id:a,div:b,job:c});if(this.up2date){this.up2date=false;var d=this;setTimeout(function(){d.work()},100)}}else{if(this.parent.calcdata.jobBoni[c][a]>0){b.append(this.popup(a,c))}}return b},work:function(){if(this.stack[this.current]!="undefined"){var a=this.stack[this.current].id;var b=this.stack[this.current].div;var c=this.stack[this.current].job;this.parent.calcdata.jobBoni[c][a]=this.calc(a,c);if(this.parent.calcdata.jobBoni[c][a]>0){b.append(this.popup(a,c))}}this.current++;if(this.current<this.stack.length){var d=this;setTimeout(function(){d.work()},100)}else{this.up2date=true;this.stack=[];this.current=0;TWDB.Cache.save("calcdata",this.parent.calcdata)}},calc:function(itemid,jobid){var data=ItemManager.get(itemid);if(data=="undefined"){return[]}var skills={};for(var skill in Character.skills){skills[skill]=typeof data.bonus.skills[skill]!="undefined"?data.bonus.skills[skill]:0}for(var attr in Character.skill_names){if(typeof data.bonus.attributes[attr]!="undefined"){for(var i=0;i<Character.skill_names[attr].length;i++){skill=Character.skill_names[attr][i];skills[skill]+=data.bonus.attributes[attr]}}}try{var lp=eval(this.parent.calcdata.jobs[jobid].formular)}catch(e){return 0}return lp},popup:function(a,b){var c=this.parent.calcdata.jobBoni[b][a];var d=this.parent.calcdata.jobs[b].name;return jQuery('<img src="'+TWDB.images.iconInfo+'" width="100%" height="100%" title="+'+c+" "+d+'" />')}}),sellTip:new Object({setParent:function(a){this.parent=a},init:function(){for(var a in this.parent.calcdata.jobs){for(var b in this.parent.calcdata.jobs[a].cloth){var c=this.parent.calcdata.jobs[a].cloth[b].id;if(typeof (this.parent.calcdata.used[c]=="undefined")){this.parent.calcdata.used[c]=1}else{this.parent.calcdata.used[c]++}}}for(var d in this.parent.calcdata.custom){for(var b in this.parent.calcdata.custom[d].cloth){var c=this.parent.calcdata.custom[d].cloth[b].id;if(typeof (this.parent.calcdata.used[c]=="undefined")){this.parent.calcdata.used[c]=0}else{this.parent.calcdata.used[c]++}}}},show:show=function(a){var b=jQuery('<div style="position:absolute;bottom:0px;right:0px;block;width:19px;height:19px;border:0px;margin:0px;" />');if(typeof this.parent.calcdata.used[a]!="undefined"){return b}if(TWDB.Settings.get("sellTip2",true)){var c=0;var d=ItemManager.get(a);var e=Bag.getItemByItemId(a);if(e){c+=e.count}var f=Wear.wear[d.type];if(f&&f.obj.item_id==a){c++}if(c<2){return b}}return b.append(this.popup())},popup:function(){return jQuery('<img src="'+TWDB.images.iconSell+'" width="100%" height="100%" title="this item is not used for any job or custom defined activity (ClothCalc)" />')}})});TWDB.ClothCalc.jobSearch={setParent:function(a){this.parent=a},show:function(){if(this.parent.jobs.selected==0||typeof this.parent.calcdata.jobs[this.parent.jobs.selected]=="undefined"){return}if(this.parent.gui.job.searchDiv.parent().length){this.parent.jobs.switch(this.parent.jobs.selected);return}this.parent.gui.bag.children().remove();this.newTask(this.parent.calcdata.jobs[this.parent.jobs.selected].gameid,this.parent.gui.job.searchDiv);this.parent.gui.bag.append(this.parent.gui.job.searchDiv)},constants:{maxJobs:4,directions:["&#8658;","&#8663;","&#8657;","&#8662;","&#8656;","&#8665;","&#8659;","&#8664;"],css:"#TWDBJobList, #TWDBTimeSelect { width:100%;  } \n"+"#TWDBJobList tr td a { margin: -3px; color:#821; }"+"#TWDBJobList tr th { text-align:center; }"+"#TWDBJobList tr td:nth-child(1) { width:auto; vertical-align: middle; }"+"#TWDBJobList tr td:nth-child(2) { width:26px; font-size:24px; font-weight: bold; }"+"#TWDBJobList tr td:nth-child(3) .button_middle { overflow: hidden; text-overflow: clip; width: 66px; }"+"#TWDBJobList tr td:nth-child(4) .button_middle { overflow: hidden; text-overflow: clip; width: 50px; }"},jobPosCache:{},html:null,task:null,prepareJobTimes:function(){var a=this;jQuery.post("game.php?window=job&x=11&y=43",{},function(b){var c=jQuery(b.page).find(".task_control > table");a.html={};a.html.distance=jQuery(c[0]).find("td:first").html();jQuery(c[1]).find("select").attr("onchange","").find("option:last").attr("selected","selected");a.html.duration='<table id="TWDBTimeSelect">'+jQuery(c[1]).find("tr:first").html()+"</table>";var d=jQuery(c[1]).find("#button_start_task_job_11-43");var e="default";if(e!="default")d.find(".button_middle").html(e);a.html.start=d.html();d.find(".button_middle").html("Open");a.html.open=d.html();a.html.singleDuration=jQuery(c[1]).find("select option:last").val()*1/30;if(a.task.waitingForHTML)a.makeHTML()},"json")},error:function(a){alert(a);return false},newTask:function(a,b){if(this.task&&this.task.toBeGenerated)return;if(!this.html){this.prepareJobTimes()}this.task={toBeGenerated:0,target:b,waitingForHTML:false,jobToSearchFor:a};this.prepareMyCoords();this.prepareJobData()},prepareMyCoords:function(a){if(!a){var b={to_x:pos.x,to_y:pos.y};for(var c=Tasks.tasks.length-1;c>=0;c--){if(Tasks.tasks[c].type=="way"){b=Tasks.tasks[c].data_obj;break}}}else{var b={to_x:a.x,to_y:a.y}}this.task.x=b.to_x;this.task.y=b.to_y;this.task.miniX=parseInt(this.task.x/100);this.task.miniY=parseInt(this.task.y/250)},prepareJobData:function(){this.task.toBeDone=0;for(var a=Math.max(this.task.miniY-1,0);a<=Math.min(this.task.miniY+1,3);a++)for(var b=Math.max(this.task.miniX-1,0);b<=Math.min(this.task.miniX+1,9);b++)this.task.toBeDone++;for(var a=Math.max(this.task.miniY-1,0);a<=Math.min(this.task.miniY+1,3);a++)for(var b=Math.max(this.task.miniX-1,0);b<=Math.min(this.task.miniX+1,9);b++)this.myGenerateJobList(b,a)},myGenerateJobList:function(a,b){this.task.toBeGenerated++;var c=this;if(this.jobPosCache[a]&&this.jobPosCache[a][b])this.generateFinished();else Ajax.remoteCall("map","get_job_position_list",{x:a,y:b},function(d){if(!d.job_positions)return c.error("Loading job positions failed");for(var e in d.job_positions)for(var f=0,g=d.job_positions[e],h=g.length;f<h;f++){var i=g[f],j=i[0],k=i[1];if(!c.jobPosCache[a])c.jobPosCache[a]=[];if(!c.jobPosCache[a][b])c.jobPosCache[a][b]=[];if(!c.jobPosCache[a][b][e])c.jobPosCache[a][b][e]=[];c.jobPosCache[a][b][e].push([j,k])}c.generateFinished()})},generateFinished:function(){this.task.toBeDone--;this.task.toBeGenerated--;if(this.task.toBeDone==0)this.processJobs()},processJobs:function(){var a=this.task.jobToSearchFor,b=[];var c=parseInt(this.task.x/100),d=parseInt(this.task.y/250);for(var e=Math.max(this.task.miniY-1,0);e<=Math.min(this.task.miniY+1,3);e++)for(var f=Math.max(this.task.miniX-1,0);f<=Math.min(this.task.miniX+1,9);f++)for(var g=0,h=this.jobPosCache[f][e]||this.error("Prepared job data were corrupted: "+f+","+e)||[],i=h[a]||[];g<i.length;g++)b.push({dist:WMap.calcWayTime(this.task,{x:i[g][0],y:i[g][1]}),x:i[g][0],y:i[g][1]});b.sort(function(a,b){return a.dist-b.dist});var j=this.task.dataRes=[];for(var g=0;j.length<this.constants.maxJobs&&g<b.length;g++){var k=j[j.length-1]||{};if(b[g].x!=k.x&&b[g].y!=k.y)j.push(b[g])}this.makeHTML()},makeHTML:function(){function c(a,b){return a.val(b).attr("label",TWDB.Time.time2str(b)).html(TWDB.Time.time2str(b))}if(!this.html){this.task.waitingForHTML=true;return}var a=jQuery(this.html.duration),b=this;if(this.task.jobToSearchFor==4)c(a.find("option:first"),this.html.singleDuration*3/4);if(this.task.jobToSearchFor==94)a.find("option").not(c(a.find("option:first"),this.html.singleDuration)).remove();var d=jQuery('<table id="TWDBJobList"><tr><th colspan="4" style="text-align:left">'+this.html.distance+"</th></tr></table>");for(var e=0;e<this.task.dataRes.length;e++)(function(c){var e=jQuery(b.html.start).click(function(){(({window:a.get(0),singleDuration:b.html.singleDuration,pos:{x:c.x,y:c.y},button:{activate:function(){}},start:Job.prototype.start})).start();b.prepareMyCoords(c)}),f=jQuery(b.html.open).click(function(){AjaxWindow.show("job",{x:c.x,y:c.y},c.x+"_"+c.y)}),g=parseInt((Math.atan2((b.task.y-c.y)/4,b.task.x-c.x)*180/Math.PI+360+90/4)%360/45);d.append(jQuery('<tr style="height:32px;"><td style="height:32px;">'+c.dist.formatDuration()+'</td><td style="height:32px;"><a href="javascript:WMap.scroll_map_to_pos('+c.x+","+c.y+');void(0)">'+b.constants.directions[g]+"</a></td></tr>").append(jQuery('<td style="height:32px;" />').append(f)).append(jQuery('<td style="height:32px;" />').append(e)))})(this.task.dataRes[e]);jQuery(b.task.target).html('<style type="text/css">'+this.constants.css+"</style>").append(a).append(d)}};TWDB.ClothCalc.favoriteJobs={list:[],setParent:function(a){this.parent=a},saveListToStorage:function(){TWDB.Cache.save("jobfavorite",this.list)},loadListFromStorage:function(){var a=TWDB.Cache.load("jobfavorite");if(typeof a=="object"&&a!=null){this.list=a}else{this.list=[]}},init:function(){this.Div.parent=this;this.loadListFromStorage();this.makeHTML=this.displayList;this.prepareJobTimes()},Div:{o:null,parent:null,init:function(){if(jQuery("#TWDB_favoriteJobs").length)return;this.o=jQuery('<div style="display:none;" id="TWDB_favoriteJobs"></div>').appendTo("#ui").append('<style type="text/css">'+this.parent.constants.css+"</style>")},anim:function(){jQuery(this.o).fadeIn(500)},add:function(a){function h(a,b){return a.val(b).attr("label",TWDB.Time.time2str(b)).html(TWDB.Time.time2str(b))}var b=JobList[a.id],c=jQuery(this.parent.html.duration).find("select"),d=this,e=0,f=TWDB.ClothCalc.calcdata.jobs;if(!f[1])return false;if(f[1].gameid===1)this.parent.jobs.init();for(var g in f)if(f[g].gameid==a.id)e=f[g].id;if(a.id==4)h(c.find("option:first"),this.parent.html.singleDuration*3/4);if(a.id==94)c.find("option").not(h(c.find("option:first"),this.parent.html.singleDuration)).remove();(this[a.id]=jQuery('<div><img src="images/jobs/'+b.shortName+'.png" alt="'+b.shortName+'" /><div></div></div>').append(c)).appendTo(this.o).find("img:first,div:first").attr("title",b.name).click(function(){TWDB.ClothCalc.open();TWDB.ClothCalc.jobs.switch(e)});this[a.id].find("select").attr("size",a.id==94?2:5).css("width","150px").click(function(){if(jQuery(this).val()!="ClothCalc_remove")d.parent.newTask(a.id,d[a.id]);else d.parent.removeFavorite(a.id)}).append('<option value="ClothCalc_remove">(Remove this job)</option>').get(0).selectedIndex=a.id==94?0:3;return a}},displayList:function(){this.Div.init();for(var a=0;a<this.list.length;a++)if(!this.Div.add(this.list[a]))return;this.Div.anim();this.makeHTML=this.startJob;this.ready=true},addFavorite:function(){if(!this.ready)this.displayList();var a=this.parent.calcdata.jobs[this.parent.jobs.selected].gameid;for(var b=0;b<this.list.length;b++)if(a==this.list[b].id)return;this.list.push(this.Div.add({id:a}));this.saveListToStorage()},removeFavorite:function(a){for(var b=0;b<this.list.length;b++)if(a==this.list[b].id){this.list.splice(b,1);this.saveListToStorage();this.Div[a].remove()}},constants:{maxJobs:1,css:"#TWDB_favoriteJobs {position:absolute;top:5px;left:5px;}\n"+"#TWDB_favoriteJobs > div {display:inline-block;width:36px;vertical-align:top;position:relative; }\n"+"#TWDB_favoriteJobs > div > img {width:30px;height:30px;display:block;position:absolute;top:3px;left:3px;z-index:10;}\n"+"#TWDB_favoriteJobs > div > div {width:34px;height:34px;display:block;z-index:11;margin:1px 1px 0px 1px;position:relative;background-image: url("+TWDB.images.jobBG+");}\n"+"#TWDB_favoriteJobs > div > select {font-size:10px;display:none;position:relative;z-index:10000;}\n"+"#TWDB_favoriteJobs > div:hover > select {display:block;}\n"},jobPosCache:TWDB.ClothCalc.jobSearch.jobPosCache,html:null,task:{waitingForHTML:true},prepareJobTimes:TWDB.ClothCalc.jobSearch.prepareJobTimes,error:TWDB.ClothCalc.jobSearch.error,newTask:TWDB.ClothCalc.jobSearch.newTask,prepareMyCoords:TWDB.ClothCalc.jobSearch.prepareMyCoords,prepareJobData:TWDB.ClothCalc.jobSearch.prepareJobData,myGenerateJobList:TWDB.ClothCalc.jobSearch.myGenerateJobList,generateFinished:TWDB.ClothCalc.jobSearch.generateFinished,processJobs:TWDB.ClothCalc.jobSearch.processJobs,startJob:function(){if(!this.html){this.task.waitingForHTML=true;return}var a=this.task.dataRes[0];(xxx={window:this.Div[this.task.jobToSearchFor].get(0),singleDuration:this.html.singleDuration,pos:{x:a.x,y:a.y},button:{activate:function(){}},start:Job.prototype.start}).start();this.prepareMyCoords(a)}};TWDB.ReportAnalyser=new Object({ready:false,failedReports:[],products:[700,701,702,703,704,705,706,707,708,709,710,711,712,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,733,734,736,737,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,771,774,778,779,780,781,782,783,784,786,787,788,789,790,791,792,793,794,795,797,1708,1755,1756,1791,1807,1808,1809,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,2e3,2003,2006,2009],gui:{},locked:false,reports:[],init:function(){if(typeof this.statistic!="undefined"){return}var a=TWDB.Cache.load("statistic");if(typeof a=="object"&&a!=null){this.statistic=a}else{this.reset(true)}if(typeof this.statistic.ver=="undefined"||this.statistic.ver!=2){this.reset(true,1)}this.backup=jQuery.extend(true,{},this.statistic);this.ready=true},reset:function(a,b){if(a==true){if(!b){var c=0}else{var d=/\[report=([0-9]+)([A-Fa-f0-9]{10})\]/;var e=String(b).match(d);if(e){var b=e[1]}}if(isNaN(parseInt(b))){var c=0}else{var c=parseInt(b)-1}this.statistic={ver:2,jobs:{_finds:{count:0,last:0,finds:0,attempts:{},detailed:{}},_last:c}}}else{var f=this;var g=jQuery('<div><h2>Do you really want to reset the ReportAnalyser statistics?</h2><span style="font-size:12px"><br />Give Report-Link of first Report which should be read after Reset</span></div>');var h=(new tw2gui.textfield("twdb_analyser_last")).setSize(40);h.setLabel("Report-Link:");g.append(h.getMainDiv());var i=new tw2gui.checkbox("or use all reports  ");var j=new tw2gui.checkbox("or use only future reports");i.setCallback(function(a){if(a){j.setSelected(false);h.setValue("")}});j.setCallback(function(a){if(a){i.setSelected(false);h.setValue("")}});jQuery(h.getMainDiv()).find("span").css("font-size","12px");jQuery(h.getMainDiv()).find("input").keyup(function(){i.setSelected(false);j.setSelected(false)});g.append(jQuery('<div style="display:block;" />').append(i.getMainDiv()).append(j.getMainDiv()));var k=new MessageDialog("ReportAnalyser - Reset",g);k.addButton("ok",function(){if(i.isSelected()){f.reset(true,0)}else if(j.isSelected()){f.reset(true,f.statistic.jobs._last+1)}else{f.reset(true,h.getValue())}k.hide();f.open()});k.addButton("cancel");k.show()}},analyse:function(){if(!this.ready){this.init()}if(!TWDB.Time.ready){return}if(this.locked){return}this.reports=new Array;this.locked=true;this.queryReports()},readReports:function(a){var b=true;if(typeof a.reports!="object"){a.reports=[];b=false}if(typeof a.page=="undefined"||this.lastPage!=a.page){a.reports=[];b=false}for(var c=0;c<a.reports.length;c++){var d=a.reports[c];if(d.report_id<=this.statistic.jobs._last){b=false;break}this.reports.push({id:d.report_id,hash:d.hash})}this.gui.bar.setMaxValue(this.reports.length);if(b){this.queryReports(this.lastPage+1)}else{this.analyseReports()}},queryReports:function(a){if(typeof a=="undefined"){a=1}var b=this;this.lastPage=a;jQuery.post("game.php?window=reports&action=get_reports&h="+h,{folder:"job",page:a},function(a){b.readReports(a)},"json")},analyseReports:function(){if(this.reports.length>0){this.gui.bar.setValue(this.gui.bar.getValue()+1);this.queryReport(this.reports.pop())}else{TWDB.Cache.save("statistic",this.statistic);this.locked=false;this.show(true)}},queryReport:function(a){var b=this;jQuery.post("game.php?window=reports&mode=show_report",{flash:null,hash:a.hash,report_id:a.id},function(a){b.readReport(a)},"json")},readReport:function(json){if(typeof json.report_id=="undefinied"||typeof json.publishHash=="undefinied"){return false}data={items:[]};data.id=json.report_id;data.hash=json.publishHash;if(typeof json.page!="string"||typeof json.title!="string"||typeof json.js!="string"){this.failedReports.push(data.id);return false}data.job=jQuery.trim(json.title.slice(json.title.indexOf(":")+1));var tmp=jQuery(json.page);var _self=this;tmp.find(".rp_row_jobdata").each(function(a){var b=jQuery.trim(jQuery(this).children("span:last-child").html());b=b.split(" ").join(" ");switch(a){case 0:data.motivation=parseInt(b.slice(0,b.indexOf(" ")));break;case 1:data.duration=parseInt(TWDB.Time.str2time(b));break;case 2:data.wage=parseInt(b.slice(b.indexOf(" ")+1));break;case 3:data.bond=parseInt(b);break;case 4:data.experience=parseInt(b.slice(0,b.indexOf(" ")));break}});var str=json.js;var rawItems=[];var start=str.indexOf("(new Item");while(start>=0){var end=str.indexOf(".injectInside");if(end<=0){this.failedReports.push(data.id);return false}rawItems.push(str.slice(start,end));var str=str.slice(end+13);start=str.indexOf("(new Item")}for(var i=0;i<rawItems.length;i++){try{var itemDiv=eval(rawItems[i])}catch(e){this.failedReports.push(data.id);return false}var item={};item.item_id=Number(jQuery(itemDiv).attr("id").slice(5));item.count=Number(jQuery(itemDiv).find(".new_bag_item_count p").html());if(item.count==0){item.count=1}data.items.push({item_id:item.item_id,count:item.count})}this.analyseReport(data);this.statistic.jobs._last=data.id;this.analyseReports()},analyseReport:function(a){if(typeof this.statistic.jobs=="undefined"){this.statistic.jobs={}}var b=["motivation","duration","wage","bond","experience"];for(var c=0;c<b.length;c++){if(typeof a[b[c]]=="undefined"||isNaN(a[b[c]])){this.failedReports.push({id:a.id,data:a});return false}}if(typeof this.statistic.jobs[a.job]=="undefined"){this.statistic.jobs[a.job]={count:0,duration:0,motivation:0,wage:0,bond:0,experience:0,reports:0,products:{},items:{},extraItems:{}}}if(typeof this.statistic.jobs[a.job]["reports"]=="undefined"){this.statistic.jobs[a.job]["reports"]=0}var d=this.statistic.jobs[a.job];var e=this.statistic.jobs["_finds"];var f=0;for(var c=0;c<a.items.length;c++){var g=a.items[c];if(this.products.isIn(g.item_id)){if(typeof d.products[g.item_id]=="undefined"){d.products[g.item_id]={count:0,last:0,attempts:{}}}if(g.count>0){var h=Math.ceil((d.duration-d.products[g.item_id].last)/TWDB.Time.getBase())+1;if(typeof d.products[g.item_id].attempts[h]=="undefined"){d.products[g.item_id].attempts[h]=1}else{d.products[g.item_id].attempts[h]++}if(g.count>1){if(typeof d.products[g.item_id].attempts[1]=="undefined"){d.products[g.item_id].attempts[1]=g.count-1}else{d.products[g.item_id].attempts[1]+=g.count-1}}d.products[g.item_id].last=d.duration+a.duration;if(Math.ceil(a.duration/TWDB.Time.getBase())>g.count){d.products[g.item_id].last-=TWDB.Time.getBase()*(a.duration/TWDB.Time.getBase()-g.count)}}d.products[g.item_id].count+=g.count}else{var i=ItemManager.get(g.item_id);if(i.tradeable==false){if(typeof d.extraItems=="undefined"){d.extraItems={}}if(typeof d.extraItems[g.item_id]=="undefined"){d.extraItems[g.item_id]=0}d.extraItems[g.item_id]+=g.count}else{if(typeof d.items[g.item_id]=="undefined"){d.items[g.item_id]=0}d.items[g.item_id]+=g.count;f++}}}if(typeof e["detailed"][a.duration]=="undefined"){e["detailed"][a.duration]={}}if(typeof e["detailed"][a.duration][a.motivation]=="undefined"){e["detailed"][a.duration][a.motivation]={count:0,finds:0,last:0,attempts:{}}}e["detailed"][a.duration][a.motivation]["count"]++;e["count"]++;if(f>0){var h=e["detailed"][a.duration][a.motivation]["count"]-e["detailed"][a.duration][a.motivation]["last"];e["detailed"][a.duration][a.motivation]["last"]=e["detailed"][a.duration][a.motivation]["count"];e["detailed"][a.duration][a.motivation]["finds"]+=f;if(typeof e["detailed"][a.duration][a.motivation]["attempts"][h]=="undefined"){e["detailed"][a.duration][a.motivation]["attempts"][h]=0}e["detailed"][a.duration][a.motivation]["attempts"][h]++;var j=e["count"]-e["last"];e["last"]=e["count"];e["finds"]+=f;if(typeof e["attempts"][j]=="undefined"){e["attempts"][j]=0}e["attempts"][j]++;if(f>1){if(typeof e["detailed"][a.duration][a.motivation]["attempts"][0]=="undefined"){e["detailed"][a.duration][a.motivation]["attempts"][0]=0}e["detailed"][a.duration][a.motivation]["attempts"][0]+=f-1;if(typeof e["attempts"][0]=="undefined"){e["attempts"][0]=0}e["attempts"][0]+=f-1}}d.motivation+=a.motivation;d.duration+=a.duration;d.count+=a.duration/TWDB.Time.getBase();d.wage+=a.wage;d.bond+=a.bond;d.experience+=a.experience;d.reports++},open:function(){MessagesWindow.open("analyser")},show:function(a){var b=this;if(!MessagesWindow.window){return}this.gui.window=jQuery(MessagesWindow.window.getContentPane()).find(".messages-analyser");if(typeof a=="undefined"){MessagesWindow.window.showLoader();this.gui.bar=new tw2gui.progressbar(0,this.reports.length);this.gui.window.children().remove();this.gui.window.append(this.gui.bar.getMainDiv());this.analyse()}else{this.sorting={ord:null,type:null};var c=jQuery('<div class="fancytable"><div class="_bg tw2gui_bg_tl"></div><div class="_bg tw2gui_bg_tr"></div><div class="_bg tw2gui_bg_bl"></div><div class="_bg tw2gui_bg_br"></div><div class="trows"><div class="thead statics"><div class="row_head"><div class="cell_0" style="width:150px; text-align:center;"><span title="Name" style="cursor:pointer, margin-bottom:3px;"><img src="'+TWDB.images.iconName+'" /></span></div><div class="cell_1" style="width:50px; text-align:center;"><span title="Duration"><img src="'+TWDB.images.iconClock+'" /></span></div><div class="cell_2" style="width:50px; text-align:center;"><span title="Experience"><img src="'+TWDB.images.iconExperience+'" /></span></div><div class="cell_3" style="width:50px; text-align:center;"><span title="Wage"><img src="'+TWDB.images.iconDollar+'" /></span></div><div class="cell_4" style="width:50px; text-align:center;"><span title="Bond"><img src="'+TWDB.images.iconUpb+'" /></span></div><div class="cell_5" style="width:50px; text-align:center;"><span title="Motivation"><img src="'+TWDB.images.iconMoti+'" /></span></div><div class="cell_6" style="width:50px; text-align:center;"><span title="Products"><img src="'+TWDB.images.iconYield+'" /></span></div><div class="cell_7" style="width:50px; text-align:center;"><span title="Rate"><img src="'+TWDB.images.iconRate+'" /></span></div><div class="cell_8" style="width:50px; text-align:center;"><span title="Item"><img src="'+TWDB.images.iconItem+'" /></span></div><div class="cell_9" style="width:50px; text-align:center;"><span title="Luck"><img src="'+TWDB.images.iconLuck+'" /></span></div><div class="cell_10" style="width:50px; text-align:right;"><span title="Reset"><img src="'+TWDB.images.iconReset+'" /></span></div></div></div><div class="tbody"></div><div class="tfoot statics"><div class="row row_foot"></div></div></div></div>');c.find(".row_head").find("img").click(function(){b.sort(this)});c.find(".row_head").find("img").css("cursor","pointer");var d=0;var e="";var f={jobs:0,total:0,duration:0,experience:0,wage:0,bond:0,motivation:0,products:0,rate:0,items:0,luck:0};for(var g in TWDB.ReportAnalyser.statistic.jobs){if(g=="_last"||g=="_finds"){continue}f.jobs++;var h=TWDB.ReportAnalyser.statistic.jobs[g];e+='<div class="row row_'+d+'">';e+='<div class="cell_0" style="width:150px; text-align:left;cursor:pointer;" title="'+g+'">'+g+"</div>";f.total+=h.reports;var i=Math.round(h.duration/36)/100;e+='<div class="cell_1" style="width:50px; text-align:center;" title="'+i+' hours">'+i+"</div>";f.duration+=h.duration;var j=Math.round(h.experience);e+='<div class="cell_2" style="width:50px; text-align:center;" title="'+j+'">'+j+"</div>";f.experience+=h.experience;var j=Math.round(h.wage);e+='<div class="cell_3" style="width:50px; text-align:center;" title="$ '+j+'">'+j+"</div>";f.wage+=h.wage;var j=Math.round(h.bond);e+='<div class="cell_4" style="width:50px; text-align:center;" title="'+j+'">'+j+"</div>";f.bond+=h.bond;var j=Math.round(h.motivation/h.reports);e+='<div class="cell_5" style="width:50px; text-align:center;" title="Ø '+j+'">'+j+"</div>";f.motivation+=h.motivation;var k=0;var l=0;for(var m in h.products){k+=h.products[m].count;var n=ItemManager.get(m);l+=n.price*h.products[m].count}e+='<div class="cell_6" style="width:50px; text-align:center;" title="'+k+'">'+Math.round(k)+"</div>";f.products+=k;var o=Math.round(k/h.count*1e3)/10;e+='<div class="cell_7" style="width:50px; text-align:center;" title="'+o+'%">'+o+"</div>";f.rate+=k/h.count;var k=0;for(var m in h.items){k+=h.items[m];var n=ItemManager.get(m);l+=n.price}e+='<div class="cell_8" style="width:50px; text-align:center;" title="'+k+'">'+k+"</div>";f.items+=k;e+='<div class="cell_9" style="width:50px; text-align:center;" title="$ '+l+'">'+l+"</div>";f.luck+=l;e+="</div>";d++}e=jQuery(e);this.gui.rows=[];e.each(function(){b.gui.rows.push(this);jQuery(this).click(function(){b.detail(jQuery(this).children(".cell_0").html())})});this.gui.bodyscroll=(new tw2gui.scrollpane).appendContent(e);jQuery(this.gui.bodyscroll.getMainDiv()).css("height","300px");c.find(".tbody").append(this.gui.bodyscroll.getMainDiv());var p=c.find(".row_foot");var q=this;var r=function(a){p.children().remove();var b=this;if(a==1){var c=jQuery('<div class="cell_0" style="width:100px; text-align:left;cursor:pointer;" title="'+f.total+' Reports">'+f.total+" Reports</div>");c.click(function(){r(0)});var d=jQuery('<div class="cell_1" style="width:20px; text-align:center;cursor:pointer;color:#444;" title="switch to Ø">∑</div>');d.click(function(){r(0)});var e="";e+='<div class="cell_3" style="width:50px; text-align:center;" title="'+Math.round(f.duration/36)/100+' hours">'+Math.round(f.duration/36)/100+"</div>";e+='<div class="cell_4" style="width:50px; text-align:center;" title="'+f.experience+'">'+f.experience+"</div>";e+='<div class="cell_5" style="width:50px; text-align:center;" title="$ '+f.wage+'">'+f.wage+"</div>";e+='<div class="cell_6" style="width:50px; text-align:center;" title="'+f.bond+'">'+f.bond+"</div>";e+='<div class="cell_7" style="width:50px; text-align:center;" title=""> </div>';e+='<div class="cell_8" style="width:50px; text-align:center;" title="'+f.products+'">'+f.products+"</div>";e+='<div class="cell_9" style="width:50px; text-align:center;" title=""> </div>';e+='<div class="cell_10" style="width:50px; text-align:center;color:#444;" title="'+f.items+'">'+f.items+"</div>";e+='<div class="cell_11" style="width:50px; text-align:center;" title="$ '+f.luck+'">'+f.luck+"</div>";p.append(c).append(d).append('<div class="cell_2" style="width:30px; text-align:center;" title="'+f.jobs+' Jobs">'+f.jobs+"</div>").append(e)}else{var c=jQuery('<div class="cell_0" style="width:100px; text-align:left;cursor:pointer;" title="'+f.total+' Reports">'+f.total+" Reports</div>");c.click(function(){r(1)});var d=jQuery('<div class="cell_1" style="width:20px; text-align:center;cursor:pointer;color:#444;" title="switch to ∑">Ø</div>');d.click(function(){r(1)});var e="";e+='<div class="cell_3" style="width:50px; text-align:center;" title="'+Math.round(f.duration/(36*f.total))/100+' hours">'+Math.round(f.duration/(36*f.total))/100+"</div>";e+='<div class="cell_4" style="width:50px; text-align:center;" title="'+Math.round(f.experience/f.total*100)/100+'">'+Math.round(f.experience/f.total*100)/100+"</div>";e+='<div class="cell_5" style="width:50px; text-align:center;" title="$ '+Math.round(f.wage/f.total*100)/100+'">'+Math.round(f.wage/f.total*100)/100+"</div>";e+='<div class="cell_6" style="width:50px; text-align:center;" title="'+Math.round(f.bond/f.total*1e3)/1e3+'">'+Math.round(f.bond/f.total*1e3)/1e3+"</div>";e+='<div class="cell_7" style="width:50px; text-align:center;" title="'+Math.round(f.motivation/f.total*100)/100+'">'+Math.round(f.motivation/f.total*100)/100+"</div>";e+='<div class="cell_8" style="width:50px; text-align:center;" title="'+Math.round(f.products/f.total*1e3)/1e3+'">'+Math.round(f.products/f.total*1e3)/1e3+"</div>";e+='<div class="cell_9" style="width:50px; text-align:center;" title="'+Math.round(f.rate/f.total*1e3)/10+'%">'+Math.round(f.rate/f.total*1e3)/10+"</div>";e+='<div class="cell_10" style="width:50px; text-align:center;color:#444;" title="'+Math.round(f.items/f.total*1e3)/1e3+'">'+Math.round(f.items/f.total*1e3)/1e3+"</div>";e+='<div class="cell_11" style="width:50px; text-align:center;" title="$ '+Math.round(f.luck/f.total*100)/100+'">'+Math.round(f.luck/f.total*100)/100+"</div>";p.append(c).append(d).append('<div class="cell_2" style="width:30px; text-align:center;" title="'+Math.round(f.total/f.jobs*100)/100+' Reports/Jobs">'+Math.round(f.total/f.jobs*100)/100+"</div>").append(e)}p.find(".cell_10").css("cursor","pointer").click(function(){q.itemReport(10)}).mouseenter(function(){jQuery(this).css("color","#888")}).mouseleave(function(){jQuery(this).css("color","#444")});p.find(".cell_1").mouseenter(function(){jQuery(this).css("color","#888")}).mouseleave(function(){jQuery(this).css("color","#444")})};r(1);var s=jQuery('<div style="margin: 0px 6px 0px 6px;width:680px;" />').append(c);this.gui.window.children().remove();this.gui.window.append(s);MessagesWindow.window.hideLoader()}},sort:function(a){var b=jQuery(a).parent().parent().attr("class");if(b=="cell_10"){this.reset();return}if(this.sorting.type==b){this.sorting.ord*=-1}else{this.sorting.ord=1;this.sorting.type=b}var c=this.sorting.ord;if(b=="cell_0"){var d=function(a,d){return jQuery(a).find("."+b).html()>jQuery(d).find("."+b).html()?c:-c}}else{var d=function(a,d){return jQuery(a).find("."+b).html()*1>jQuery(d).find("."+b).html()*1?c:-c}}this.gui.rows.sort(d);for(var e=0;e<this.gui.rows.length;e++){this.gui.bodyscroll.appendContent(this.gui.rows[e])}},detail:function(a){try{var b=this.statistic.jobs[a];var c=0;var d=0;var e=0;for(var f in b.products){c+=b.products[f].count;var g=ItemManager.get(f);e+=g.price*b.products[f].count}for(var f in b.items){d+=b.items[f];var g=ItemManager.get(f);e+=g.price}var h=new tw2gui.scrollpane;jQuery(h.getMainDiv()).css("height","370px");var i=jQuery('<div class="fancytable" style="margin: 0px 5px 0px 5px;width:680px;" ><div class="_bg tw2gui_bg_tl"></div><div class="_bg tw2gui_bg_tr"></div><div class="_bg tw2gui_bg_bl"></div><div class="_bg tw2gui_bg_br"></div><div class="trows"><div class="thead statics"><div class="row_head">'+'<div class="cell_0" style="width:15px; text-align:center;"><span style="cursor:pointer, margin-bottom:3px;"> </span></div>'+'<div class="cell_1" style="width:70px; text-align:center;"><span title="Duration"><img src="'+TWDB.images.iconClock+'" /></span></div>'+'<div class="cell_2" style="width:70px; text-align:center;"><span title="Experience"><img src="'+TWDB.images.iconExperience+'" /></span></div>'+'<div class="cell_3" style="width:70px; text-align:center;"><span title="Wage"><img src="'+TWDB.images.iconDollar+'" /></span></div>'+'<div class="cell_4" style="width:70px; text-align:center;"><span title="Bond"><img src="'+TWDB.images.iconUpb+'" /></span></div>'+'<div class="cell_5" style="width:70px; text-align:center;"><span title="Motivation"><img src="'+TWDB.images.iconMoti+'" /></span></div>'+'<div class="cell_6" style="width:70px; text-align:center;"><span title="Products"><img src="'+TWDB.images.iconYield+'" /></span></div>'+'<div class="cell_7" style="width:70px; text-align:center;"><span title="Item"><img src="'+TWDB.images.iconItem+'" /></span></div>'+'<div class="cell_8" style="width:70px; text-align:center;"><span title="Luck"><img src="'+TWDB.images.iconLuck+'" /></span></div>'+'</div></div><div class="tbody" style="min-height:50px;background: url('+cdnURL+'/images/tw2gui/table/table_row.png) repeat scroll center bottom transparent;">'+'<div class="row row_0">'+'<div class="cell_0" style="width:20px; text-align:center;"><span style="text-size:14px;text-weigth:bold;">∑</span></div>'+'<div class="cell_1" style="width:70px; text-align:center;"><span title="'+Math.round(b.duration/36)/100+'">'+Math.round(b.duration/36)/100+"</span></div>"+'<div class="cell_2" style="width:70px; text-align:center;"><span title="'+b.experience+'">'+b.experience+"</span></div>"+'<div class="cell_3" style="width:70px; text-align:center;"><span title="'+b.wage+'">'+b.wage+"</span></div>"+'<div class="cell_4" style="width:70px; text-align:center;"><span title="'+b.bond+'">'+b.bond+"</span></div>"+'<div class="cell_5" style="width:70px; text-align:center;"><span title="'+b.motivation+'">'+b.motivation+"</span></div>"+'<div class="cell_6" style="width:70px; text-align:center;"><span title="'+c+'">'+c+"</span></div>"+'<div class="cell_7" style="width:70px; text-align:center;"><span title="'+d+'">'+d+"</span></div>"+'<div class="cell_8" style="width:70px; text-align:center;"><span title="'+e+'">'+e+"</span></div>"+"</div>"+'<div class="row row_1">'+'<div class="cell_0" style="width:20px; text-align:center;"><span style="text-size:14px;text-weigth:bold;">Ø</span></div>'+'<div class="cell_1" style="width:70px; text-align:center;"><span title="'+Math.round(b.duration/(36*b.reports))/100+'">'+Math.round(b.duration/(36*b.reports))/100+"</span></div>"+'<div class="cell_2" style="width:70px; text-align:center;"><span title="'+Math.round(b.experience*100/b.reports)/100+'">'+Math.round(b.experience*100/b.reports)/100+"</span></div>"+'<div class="cell_3" style="width:70px; text-align:center;"><span title="'+Math.round(b.wage*100/b.reports)/100+'">'+Math.round(b.wage*100/b.reports)/100+"</span></div>"+'<div class="cell_4" style="width:70px; text-align:center;"><span title="'+Math.round(b.bond*TWDB.Time.getBase()/b.duration*1e5)/1e3+'">'+Math.round(b.bond*TWDB.Time.getBase()/b.duration*1e5)/1e3+"%</span></div>"+'<div class="cell_5" style="width:70px; text-align:center;"><span title="'+Math.round(b.motivation*100/b.reports)/100+'">'+Math.round(b.motivation*100/b.reports)/100+"</span></div>"+'<div class="cell_6" style="width:70px; text-align:center;"><span title="'+Math.round(c*TWDB.Time.getBase()/b.duration*1e4)/100+'">'+Math.round(c*TWDB.Time.getBase()/b.duration*1e4)/100+"%</span></div>"+'<div class="cell_7" style="width:70px; text-align:center;"><span title="'+Math.round(d*TWDB.Time.getBase()/b.duration*1e4)/100+'">'+Math.round(d*TWDB.Time.getBase()/b.duration*1e4)/100+"%</span></div>"+'<div class="cell_8" style="width:70px; text-align:center;"><span title="'+Math.round(e*100/b.reports)/100+'">'+Math.round(e*100/b.reports)/100+"</span></div>"+"</div>"+"</div></div></div>");h.appendContent(i);h.appendContent('<div style="margin:5px 0px 5px 0px;width:710px;height:10px;display:block;background: url('+cdnURL+'/images/window/dailyactivity/wood_devider_horiz.png) repeat-x scroll 0 0 transparent;" />');for(var j in b.products){var k=(new InventoryItem(ItemManager.get(j))).getMainDiv().clone(true);jQuery(k).children("div").remove();jQuery(k).css("cursor","normal");h.appendContent(jQuery('<div style="display:block;height:65px;margin: 0px 5px 0px 10px;" />').append(k).append('<div style="display:inline-block;margin:5px;">'+b.products[j].count+'</div><br /><div style="display:inline-block;margin:5px;">'+Math.round(b.products[j].count*TWDB.Time.getBase()/b.duration*1e4)/100+"%</div>"));h.appendContent(this.diagram(b.products[j]));h.appendContent('<div style="margin:5px 0px 5px 0px;width:710px;height:10px;display:block;background: url('+cdnURL+'/images/window/dailyactivity/wood_devider_horiz.png) repeat-x scroll 0 0 transparent;" />')}var l=jQuery('<div style="display:block;margin: 0px 5px 0px 10px;"/>');for(var j in b.items){var k=new InventoryItem(ItemManager.get(j));k.setCount(b.items[j]);k=k.getMainDiv().clone(true);jQuery(k).children("div").remove();jQuery(k).css("cursor","normal");l.append(jQuery('<div style="display:inline-block;margin: 2px; height:62px;width:62px;" />').append(k))}h.appendContent(l);var m=wman.open(a,null,"noreload").setMiniTitle(a).setTitle(a).appendToContentPane(h.getMainDiv())}catch(n){TWDB.Error.report(n,"Report Detail")}},diagram:function(a){try{var b=a.attempts;var c=0;var d=0;for(var e in b){if(b[e]>c){c=b[e]}if(Number(e)>d){d=Number(e)}}var f=Math.round(660/d);if(f>10){f=10}else if(f<1){f=1}var g=Math.floor(f/4);var h=jQuery('<div style="position:absolute;top:0;bottom:10;left:0;right:0;padding:0px 0px 10px 10px;" />');var i=jQuery('<div style="position:relative;top:-9px;display:block;height:20px;"><div style="display:inline-block;width:'+(f*5+10)+'px;"> </div></div>');for(var j=1;j<=d;j++){if(typeof b[j]=="undefined"){h.append('<div style="display:inline-block;height:180px;width:'+(f-g)+"px;margin:9px 0px 0px "+g+'px;" />')}else{var k=b[j]/c*180;k=k<5?5:k;var l=jQuery('<div style="display:inline-block;height:'+k+"px;width:"+(f-g)+"px;margin:9px 0px 0px  "+g+"px;bottom:0px;background: url("+cdnURL+'/images/tw2gui/window2_scrollbar_vertical.png) repeat-y scroll -48px 0 transparent;" title="'+b[j]+"x "+j+' attempts"/>');l.hover(function(){jQuery(this).css("opacity","0.5")},function(){jQuery(this).css("opacity","1")});h.append(l)}if(!((j-1)%10)){i.append('<div style="display:inline-block;width:'+f*10+'px;text-align:center;font-size:10px;">'+(j+9)+"</div>")}}var m=jQuery('<div style="position:relative;width:100%;height:200px;display:block;" >'+'<div style="position:absolute;top:0;bottom:0;left:0;width:58px;background-image: url('+cdnURL+'/images/tw2gui/table/table_border.png?3);background-position: left bottom;" />'+'<div style="position:absolute;height:7px;bottom:4px;left:58px;right:0;background: url('+TWDB.images.tableBorder+');" />'+"</div>");m.append(h);return jQuery('<div style="margin: 0px 5px 0px 5px;width:'+(Math.ceil(d/10/1)*10*f+5*f+10)+'px;height:220px;display:block;"/>').append(m).append(i)}catch(n){TWDB.Error.report(n,"Analyser diagram")}},itemReport:function(a){var b=this.statistic.jobs._finds.detailed;var c=100/a;var d={};var e={};var f=0;var g=0;var h='<div class="cell_0" style="width:95px; text-align:center;sfont-size:12px;"></div><div class="cell_1" style="width:50px; text-align:center;font-size:12px;" title="overall">overall</div>';for(var i=0;i<a;i++){h+='<div class="cell_'+(i+2)+'" style="width:50px; text-align:center;font-size:12px;" title="Motivation >= '+Math.round(100-(i+1)*c)+'%">'+Math.round(100-(i+1)*c)+"%</div>"}var j=[];for(var k in b){j.push(parseInt(k))}j.sort(function(a,b){return b-a});var l=new tw2gui.scrollpane;jQuery(l.getMainDiv()).css("height","300px");var m=0;for(var n=0;n<j.length;n++){var k=j[n];var o=b[k];var p={};var q={};var r=0;var s=0;for(var t in o){var u=Math.ceil((100-t)/c)-1;u=u<0?0:u;if(typeof p[u]=="undefined"){p[u]=0;q[u]=0}if(typeof d[u]=="undefined"){d[u]=0;e[u]=0}p[u]+=o[t].finds;q[u]+=o[t].count;d[u]+=o[t].finds;e[u]+=o[t].count;s+=o[t].finds;r+=o[t].count;g+=o[t].finds;f+=o[t].count}var v='<div class="cell_0" style="width:95px; text-align:center;font-size:12px;" title="Findings" >Findings</div><div class="cell_1" style="width:50px; text-align:center;font-size:12px;" title="'+s+'">'+s+"</div>";var w='<div class="cell_0" style="width:95px; text-align:center;font-size:12px;" title="attempts" >attempts</div><div class="cell_1" style="width:50px; text-align:center;font-size:12px;" title="'+r+'">'+r+"</div>";var x='<div class="cell_0" style="width:95px; text-align:center;font-size:12px;" title="Rate" >Rate</div><div class="cell_1" style="width:50px; text-align:center;font-size:12px;" title="'+Math.round(s/r*1e4)/100+'%">'+Math.round(s/r*1e4)/100+"%</div>";for(var i=0;i<a;i++){if(typeof q[i]!="undefined"){v+='<div class="cell_'+(i+2)+'" style="width:50px; text-align:center;font-size:12px;" title="'+p[i]+'">'+p[i]+"</div>";w+='<div class="cell_'+(i+2)+'" style="width:50px; text-align:center;font-size:12px;" title="'+q[i]+'">'+q[i]+"</div>";x+='<div class="cell_'+(i+2)+'" style="width:50px; text-align:center;font-size:12px;" title="'+Math.round(p[i]/q[i]*1e4)/100+'%">'+Math.round(p[i]/q[i]*1e4)/100+"%</div>"}else{v+='<div class="cell_'+(i+2)+'" style="width:50px; text-align:center;font-size:12px;" title="">0</div>';w+='<div class="cell_'+(i+2)+'" style="width:50px; text-align:center;font-size:12px;" title="">0</div>';x+='<div class="cell_'+(i+2)+'" style="width:50px; text-align:center;font-size:12px;" title="">0</div>'}}l.appendContent('<div class="row row_'+m+'"><div class="cell_0" style="width:595px; text-align:center;font-size:12px;" title="'+TWDB.Time.time2str(k)+'">'+TWDB.Time.time2str(k)+'</div></div><div class="row row_'+(m+1)+'">'+v+'</div><div class="row row_'+(m+2)+'">'+w+'</div><div class="row row_'+(m+3)+'">'+x+"</div>");m+=4}var v='<div class="cell_0" style="width:95px; text-align:center;font-size:12px;" title="Findings" >Findings</div><div class="cell_1" style="width:50px; text-align:center;font-size:12px;" title="'+g+'">'+g+"</div>";var w='<div class="cell_0" style="width:95px; text-align:center;font-size:12px;" title="attempts" >attempts</div><div class="cell_1" style="width:50px; text-align:center;font-size:12px;" title="'+f+'">'+f+"</div>";var x='<div class="cell_0" style="width:95px; text-align:center;font-size:12px;" title="Rate" >Rate</div><div class="cell_1" style="width:50px; text-align:center;font-size:12px;" title="'+Math.round(g/f*1e4)/100+'%">'+Math.round(g/f*1e4)/100+"%</div>";for(var i=0;i<a;i++){if(typeof e[i]!="undefined"){v+='<div class="cell_'+(i+2)+'" style="width:50px; text-align:center;font-size:12px;" title="'+d[i]+'">'+d[i]+"</div>";w+='<div class="cell_'+(i+2)+'" style="width:50px; text-align:center;font-size:12px;" title="'+e[i]+'">'+e[i]+"</div>";x+='<div class="cell_'+(i+2)+'" style="width:50px; text-align:center;font-size:12px;" title="'+Math.round(d[i]/e[i]*1e4)/100+'%">'+Math.round(d[i]/e[i]*1e4)/100+"%</div>"}else{v+='<div class="cell_'+(i+2)+'" style="width:50px; text-align:center;font-size:12px;" title="">0</div>';w+='<div class="cell_'+(i+2)+'" style="width:50px; text-align:center;font-size:12px;" title="">0</div>';x+='<div class="cell_'+(i+2)+'" style="width:50px; text-align:center;font-size:12px;" title="">0</div>'}}l.appendContent('<div class="row row_'+m+'"><div class="cell_0" style="width:595px; text-align:center;font-size:12px;" title="overall">overall</div></div><div class="row row_'+(m+1)+'">'+v+'</div><div class="row row_'+(m+2)+'">'+w+'</div><div class="row row_'+(m+3)+'">'+x+"</div>");var y=jQuery('<div class="fancytable"><div class="_bg tw2gui_bg_tl"></div><div class="_bg tw2gui_bg_tr"></div><div class="_bg tw2gui_bg_bl"></div><div class="_bg tw2gui_bg_br"></div><div class="trows"><div class="thead statics"><div class="row_head">'+h+'</div></div><div class="tbody"></div><div class="tfoot statics"></div></div></div>');y.find(".tbody").append(l.getMainDiv());var z=jQuery('<div style="margin: 0px 6px 0px 6px;width:680px;" />').append(y);var A=wman.open("twdb_itemreport",null,"noreload").setMiniTitle("TWDB Item-Report").setTitle("tw-db.info Item-Report");A.appendToContentPane(z)}});TWDB.Loader=new Object({current:false,stack:["Cache","Settings","Time","GameEnhance","ReportAnalyser","Chat","ClothCalc"],init:function(){this.guiMain=jQuery("<div />");this.guiMain.html("tw-db.info ClothCalc is waiting for the game");this.gui=jQuery('<div class="main_footnote" />').append(jQuery('<div class="main_footnote_left"></div><div class="main_footnote_right"></div>'));this.gui.append(this.guiMain);jQuery("#main_footnotes").append(this.gui);var a=this;this.interval=setInterval(function(){a.worker(false)},500)},worker:function(a){if(this.current===false){if(!window["jQuery"]||!window["TheWestApi"]||!TheWestApi.version||typeof ItemManager.initialized=="undefined"||!ItemManager.initialized){return}try{TheWestApi.register("twdb_clothcalc","tw-db.info Cloth Calc","1.34",TWDB.gameversion,"scoobydoo [tw-db.info]","http://tw-db.info")}catch(b){(new UserMessage("failed to register tw-db.info script on TheWestApi",UserMessage.TYPE_FATAL)).show();return this.destroy()}if(TWDB.gameversion<TheWestApi.version){TheWestApi.displayOutdated()}this.current=0;this.worker(true)}if(this.current>=this.stack.length){return this.destroy()}if(a){this.guiMain.html("tw-db.info: initialising "+this.current+"/"+this.stack.length);try{TWDB[this.stack[this.current]].init()}catch(c){TWDB.Error.report(c,"init "+[this.stack[this.current]]);return this.destroy()}}if(TWDB[this.stack[this.current]].ready){this.current++;this.worker(true)}},destroy:function(){clearInterval(this.interval);this.gui.remove();setTimeout(function(){delete TWDB.Loader},1e3)}});if((location.href.indexOf(".the-west.")!=-1||location.href.indexOf(".tw.innogames.")!=-1)&&location.href.indexOf("game.php")!=-1){TWDB.Loader.init()}});