
if(!Curse)
{var Curse={};}
Curse.Browser={ie:navigator.appName.indexOf("Microsoft")!=-1,ie7:this.ie&&navigator.appVersion.indexOf("MSIE 7")!=-1,ie6:this.ie&&navigator.appVersion.indexOf("MSIE 6")!=-1,opera:!!window.opera,safari:navigator.userAgent.indexOf("Safari")!=-1,gecko:navigator.userAgent.indexOf("Gecko")!=-1&&navigator.userAgent.indexOf("KHTML")==-1};Curse.Client={viewportWidth:function(){return self.innerWidth||(document.documentElement.clientWidth||document.body.clientWidth);},viewportHeight:function(){return self.innerHeight||(document.documentElement.clientHeight||document.body.clientHeight);},viewportSize:function(){return{width:this.viewportWidth(),height:this.viewportHeight()};},scrollTop:function()
{if(self.pageYOffset)
{return self.pageYOffset;}
else if(document.documentElement&&!document.documentElement.scrollTop)
{return 0;}
else if(document.documentElement&&document.documentElement.scrollTop)
{return document.documentElement.scrollTop;}
else if(document.body&&document.body.scrollTop)
{return document.body.scrollTop;}}};function cg_args(a)
{var r=[];for(var i=0,len=a.length;i<len;++i)
{r.push(a[i]);}
return r;}
function cg_indexOfAll(str,find){var indices=[];var current=0;while(str.indexOf(find,current)>=0){current=str.indexOf(find,current);indices.push(current);current++;}
return indices;}
if(!Array.indexOf)
{Array.prototype.indexOf=function(obj)
{for(var i=0;i<this.length;i++)
{if(this[i]==obj)
{return i;}}
return-1;}}
if(!Curse.Browser.ie)
{HTMLElement.prototype.contains=function(oEl){if(oEl==this)return true;if(oEl==null)return false;try{return this.contains(oEl.parentNode)}
catch(err){}};}
Function.prototype.bindAsEventListener=function(object){var __method=this;return function(event){return __method.call(object,event||window.event);}}
Function.prototype.bind=function()
{var ref=this;var args=cg_args(arguments);var object=args.shift();return function()
{return ref.apply(object,args.concat(cg_args(arguments)));};};function cg_iterateArray(arr,func,ud)
{var res;for(var i=0,len=arr.length;i<len;++i)
{res=func(arr[i],ud,arr,i);if(res!=null)
{arr[i]=res;}}}
function cg_inArray(a,r,f,s)
{if(a==null)
{return-1;}
if(f)
{return cg_inArrayF(a,r,f);}
for(var i=s||0,len=a.length;i<len;++i)
{if(a[i]==r)
{return i;}}
return-1;}
function cg_inArrayF(a,b,c,d)
{for(var i=d||0,len=a.length;i<len;++i)
{if(c(a[i])==b)
{return i;}}
return-1;}
function cg_de(a)
{if(a)
{a.parentNode.removeChild(a);}}
function cg_strcmp(a,b)
{if(a==b)
{return 0;}
if(a==null)
{return-1;}
if(b==null)
{return 1;}
return a<b?-1:1;}
function cg_cOr(a,b)
{for(var p in b)
{if(typeof b[p]=="object")
{if(!a[p])
{a[p]={};}
cg_cOr(a[p],b[p]);}
else
{a[p]=b[p];}}}
function cg_ce(a,b)
{var r=document.createElement(a);if(b)
{cg_cOr(r,b);}
return r;}
function cg_ae(a,b)
{return a.appendChild(b);}
function cg_ge(a)
{return document.getElementById(a);}
function cg_ia(parent,node,referenceNode){parent.insertBefore(node,referenceNode.nextSibling);}
function cg_df()
{this.blur();}
function cg_gebt(a,b)
{return a.getElementsByTagName(b);}
function cg_ct(a)
{return document.createTextNode(a);}
function cg_rf()
{return false;}
function cg_ds(a)
{a.onmousedown=cg_rf;a.onselectstart=cg_rf;if(Curse.Browser.ie){a.onfocus=cg_df;}}
function cg_cO(a,b)
{for(var p in b)
{a[p]=b[p];}}
function cg_getShadowText(text,className)
{var shadowText=cg_ce("span");for(var i=-1;i<=1;++i)
{for(var j=-1;j<=1;++j)
{var d=cg_ce("div");d.style.position="absolute";d.style.whiteSpace="nowrap";d.style.left=i+"px";d.style.top=j+"px";if(i==0&&j==0)
{d.style.zIndex=4;}
else
{d.style.color="black";d.style.zIndex=2;}
cg_ae(d,cg_ct(text));cg_ae(shadowText,d);}}
shadowText.style.position="relative";shadowText.className="glow"+(className!=null?" "+className:"");var s=cg_ce("span");s.style.visibility="hidden";cg_ae(s,cg_ct(text));cg_ae(shadowText,s);return shadowText;}
function cg_getLookupsFromCookie(name,delim1,delim2)
{var lookupList=[];var cookieList=cg_getCookie("Login."+name);cookieList=cg_utf8Decode(cookieList);if(!delim1)
{delim1=",";}
if(!delim2)
{delim2="^";}
if(cookieList)
{cookieList=cookieList.split(delim1);for(var i=0;i<cookieList.length;i++)
{lookupList.push(cookieList[i].split(delim2));}}
return lookupList;}
function cg_getLookupSelectBox(lookupName,selectName,container,hideEmpty,onchange,fromCookie,delim1,delim2,emptyLabel)
{if(fromCookie)
{var lookupList=cg_getLookupsFromCookie(lookupName,delim1,delim2);}
else
{var lookupList=Curse.Lookup[lookupName]}
var objSelect=document.createElement("select");if(selectName)
{objSelect.name=selectName;objSelect.id="fi_"+selectName;}
if(onchange)
{objSelect.onchange=function(){eval(onchange);};}
if(!hideEmpty)
{var objOption=document.createElement("option");if(!emptyLabel)
{emptyLabel="";}
objOption.text=emptyLabel;objOption.value="";objSelect.options.add(objOption)}
if(!fromCookie)
{for(var p in lookupList)
{if(typeof p=='string'&&p!="indexOf")
{var objOption=document.createElement("option");objOption.text=lookupList[p].replace("<br>"," - ");objOption.value=p;objSelect.options.add(objOption)}}}
else
{for(var i=0;i<lookupList.length;i++)
{var objOption=document.createElement("option");objOption.text=lookupList[i][1].replace("<br>"," - ").replace("+"," ");objOption.value=lookupList[i][0];objSelect.options.add(objOption)}}
if(container)
{container.appendChild(objSelect);return objSelect}
else
{return objSelect;}}
function cg_scrollTo(element,padding)
{var pos=cg_getPosition(element)
scrollTo(0,pos.y-padding);}
function cg_scrollTop()
{if(self.pageYOffset)
{return self.pageYOffset;}
else if(document.documentElement&&!document.documentElement.scrollTop)
{return 0;}
else if(document.documentElement&&document.documentElement.scrollTop)
{return document.documentElement.scrollTop;}
else if(document.body&&document.body.scrollTop)
{return document.body.scrollTop;}}
function cg_addEventListener(eventSource,eventName,eventHandler)
{if(eventSource.addEventListener){eventSource.addEventListener(eventName,eventHandler,false);}
else if(eventSource.attachEvent){eventName="on"+eventName;eventSource.attachEvent(eventName,eventHandler);}}
function cg_removeEventListener(eventSource,eventName,eventHandler)
{if(eventSource.addEventListener){eventSource.removeEventListener(eventName,eventHandler,false);}
else if(eventSource.detachEvent)
{eventSource.detachEvent("on"+eventName);}}
function cg_hasClass(pElem,pClassName)
{if(!pElem.className)
{return;}
if(pElem.className==pClassName)
{return true;}
if(pElem.className.split(" ").indexOf(pClassName)>=0)
{return true;}
return false;}
function cg_removeClass(pElem,pClassName)
{if(!pElem.className)
{return;}
var classArray=pElem.className.split(" ");for(var i=0;i<classArray.length;i++)
{if(classArray[i]==pClassName)
{classArray.splice(i,1);break;}}
pElem.className=classArray.join(" ");}
function cg_addClass(pElem,pClassName)
{var classArray=pElem.className.split(" ");for(var i=0;i<classArray.length;i++)
{if(classArray[i]==pClassName)
{return;}}
classArray.push(pClassName);pElem.className=classArray.join(" ");}
function cg_isArray(obj){if(obj.constructor.toString().toLowerCase().indexOf("function")==-1&&obj.constructor.toString().toLowerCase().indexOf("array")==-1)
{return false;}
else
{if(!obj.length)
{return false;}
return true;}}
function cg_getPosition(pElem)
{var left=0;var top=0;while(pElem.offsetParent){left+=pElem.offsetLeft;if(pElem.clientLeft)
{left+=pElem.clientLeft;}
top+=pElem.offsetTop;if(pElem.clientTop)
{top+=pElem.clientTop;}
pElem=pElem.offsetParent;}
left+=pElem.offsetLeft;top+=pElem.offsetTop;return{x:left,y:top};}
function cg_getScroll()
{var x=0,y=0;if(typeof(window.pageYOffset)=="number")
{x=window.pageXOffset;y=window.pageYOffset;}
else
{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){x=document.body.scrollLeft;y=document.body.scrollTop;}
else
{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop))
{x=document.documentElement.scrollLeft;y=document.documentElement.scrollTop;}}}
return{x:x,y:y};}
function cg_setTextNodes(n,b)
{if(a.nodeType==3)
{a.nodeValue=b;}
else
{for(var i=0;i<a.childNodes.length;++i){cg_setTextNodes(a.childNodes[i],b);}}}
function cg_deleteCookie(name,path,domain)
{var curVal=cg_getCookie(name);if(curVal)
{document.cookie=name+"="+curVal+";expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/";}}
function cg_setCookie(name,value,exp_y,exp_m,exp_d,path,domain,secure)
{var cookie_string=name+"="+escape(value);var expires=new Date();if(exp_y)
{if(exp_m=null)
{exp_m=1;}
if(exp_d=null)
{exp_m=1;}
expires.setTime(expires.getTime()+(1000*60*60*24*31));}
else
{expires.setDate(expires.getDate()+365);}
cookie_string+="; expires="+expires.toGMTString();if(path)
cookie_string+="; path="+escape(path);if(domain)
cookie_string+="; domain="+escape(domain);if(secure)
cookie_string+="; secure";document.cookie=cookie_string;}
function cg_getCookie(cookie_name)
{var results=document.cookie.match(cookie_name+'=(.*?)(;|$)');if(results)
return(unescape(results[1]));else
return null;}
function cg_getElementsByClassName(sClassName,sTag,oContainer,returnFirst){var searchObj;var results=new Array();if(!oContainer){oContainer=document;}
if(sTag=="*"||!sTag){if(document.all){searchObj=oContainer.all;}
else{searchObj=oContainer.getElementsByTagName("*");}}
else
{searchObj=oContainer.getElementsByTagName(sTag);}
for(var i=0,el;((searchObj.all&&!neo.bw.isIE6up)?el=searchObj(i):el=searchObj.item(i));i++){if(el.className==sClassName){if(returnFirst)
{return el;}
results.push(el);}}
return results;}
function cg_getQueryStringParam(param){var begin,end;if(self.location.search.length>1)
{begin=self.location.search.indexOf(param)
if(begin==-1)
{return"";}
begin=begin+param.length+1;end=self.location.search.indexOf("&",begin);if(end==(-1))end=self.location.search.length;return(self.location.search.substring(begin,end));}
else if(self.location.hash.length>1)
{begin=self.location.hash.indexOf(param)+param.length+1;end=self.location.hash.indexOf("&",begin);if(end==(-1))end=self.location.hash.length;return(self.location.hash.substring(begin,end));}
else return("");}
function cg_getEvent(e){if(!Curse.Browser.ie&&!e)
{return null;}
if(!e)
{e=window.event;if(!e)
{return null;}}
e._button=e.which?e.which:e.button;e._target=e.target?e.target:e.srcElement;e._relatedTarget=e.relatedTarget?e.relatedTarget:e.toElement;return e;}
function cg_getEventTarget(e){e=cg_getEvent(e);if(!e)
{return null;}
return e._target;}
function cg_formatNumber(num)
{num=""+parseInt(num);if(num.length<=3)
{return num;}
return cg_formatNumber(num.substr(0,num.length-3))+","+num.substr(num.length-3);}
function cg_commify(nStr)
{nStr+='';x=nStr.split('.');x1=x[0];x2=x.length>1?'.'+x[1]:'';var rgx=/(\d+)(\d{3})/;while(rgx.test(x1)){x1=x1.replace(rgx,'$1'+','+'$2');}
return x1+x2;}
function cg_getTextValue(a)
{if(Curse.Browser.ie)
{return a.innerText;}
else
{return a.textContent;}}
function cg_toggleDisplay(a)
{if(a.style.display=="none")
{a.style.display="";return true;}
else
{a.style.display="none";return false;}}
function cg_cancelBubbling(e)
{if(Curse.Browser.ie)
{e=window.event;e.cancelBubble=true;}
else
{e=cg_getEvent(e);if(!e)
{return;}
e.stopPropagation();}}
var cg_localTime;function cg_refreshDate()
{cg_localTime=new Date().getTime();}
cg_refreshDate();function cg_mod(divisee,base)
{return Math.round(divisee-(Math.floor(divisee/base)*base));}
function cg_getLocalDateFromTime(time)
{return time;}
function cg_getShortFriendlyTime(epoch,excludeTime)
{localDate=new Date(epoch);function getPlural(value,ifSingular,ifPlural)
{if(value==1)
{return ifSingular;}
return ifPlural;}
var shortFriendlyTime;var timeDifferenceMinutes=parseInt((cg_localTime-localDate.getTime())/1000/60);var timeDifferenceHours=parseInt(timeDifferenceMinutes/60);if(timeDifferenceMinutes<=1)
{return Localization.time_last_minute;}
if(timeDifferenceHours<1)
{return Localization.replace("time_minute",timeDifferenceMinutes);}
if(timeDifferenceHours<24)
{var extraMins=cg_mod(timeDifferenceMinutes,60);shortFriendlyTime=parseInt(timeDifferenceHours,null)+" hr";if(extraMins>0)
{return Localization.replace("time_hour_minute",timeDifferenceHours,extraMins);}
else
{return Localization.replace("time_hour",timeDifferenceHours);}}
var timeDifferenceDays=parseInt(timeDifferenceHours/24);if(timeDifferenceDays<7)
{var extraHours=cg_mod(timeDifferenceHours,24);if(extraHours>0)
{if(timeDifferenceDays>1)
{return Localization.replace("time_days_hour",timeDifferenceDays,extraHours);}
else
{return Localization.replace("time_day_hour",timeDifferenceDays,extraHours);}}
else
{if(timeDifferenceDays>1)
{return Localization.replace("time_days",timeDifferenceDays,extraHours);}
else
{return Localization.replace("time_day",timeDifferenceDays,extraHours);}}}
if(excludeTime)
{return localDate.getMonth()+1+"/"+localDate.getDate()+"/"+localDate.getFullYear();}
else
{return Localization.replace("time_full",localDate.getMonth()+1,localDate.getDate(),localDate.getFullYear(),localDate.toLocaleTimeString());}}
function cg_trim(a)
{return a.replace(/^\s+/,'').replace(/\s+$/,'');}
function cg_addOrReplace(a,b,c)
{if(b)
{cg_de(b);}
cg_ae(a,c);}
function cg_dbg(text)
{if(!cg_ge("debugPanel"))
{return;}
if(cg_ge("debugPanel").style.display=="none")
{return;}
cg_ge("debugPanel").appendChild(document.createElement("br"));cg_ge("debugPanel").appendChild(document.createTextNode(text));}
function cg_getRelativeLocation(ignoreEscape)
{var relativeLocation=self.location.href;var arrRelativeLocation=relativeLocation.split("/");relativeLocation=arrRelativeLocation[arrRelativeLocation.length-1];if(!ignoreEscape)
{relativeLocation=escape(relativeLocation);}
return relativeLocation;}
function cg_isDefined(object,variable)
{return(typeof(eval(object)[variable])!="undefined");}
function cg_cookiesDisabled()
{cg_setCookie("_cookieTest",true);return cg_getCookie("_cookieTest")==null;}
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var cg_reverseAlphaArray=["z","y","x","w","v","u","t","s","r"];function cg_navToLogin()
{var relativeLocation=cg_getRelativeLocation();if(relativeLocation.toLowerCase().indexOf("login.aspx")>=0)
{self.location="login.aspx";}
else
{self.location="login.aspx?referrer="+relativeLocation;}}
function cg_centerElement(oElement)
{var viewportHeight=Curse.Client.viewportHeight();var viewportWidth=Curse.Client.viewportWidth();var newTop=(viewportHeight/2)-(oElement.offsetHeight/2);var newLeft=(viewportWidth/2)-(oElement.offsetWidth/2);oElement.style.top=(newTop+cg_scrollTop())+"px";oElement.style.left=newLeft+"px";}
function cg_getFormAsString(formObject){returnString=formObject.action;formElements=formObject.elements;for(var i=formElements.length-1;i>=0;--i){if(i==formElements.length-1)
{returnString=returnString+"?";}
else
{returnString=returnString+"&";}
returnString=returnString+encodeURI(formElements[i].name)+"="+encodeURIComponent(formElements[i].value.replace(/</g,"&lt;").replace(/>/g,"&gt;"));}
return returnString;}
function cg_getViewState(index)
{var currentHashArray=self.location.hash.substring(1).split(":");if(currentHashArray.length<index+1)
{return null;}
return currentHashArray[index];}
function cg_replace()
{var args=cg_replace.arguments;var str=args[0];for(i=1;i<args.length;i++)
{str=str.replace(eval("/\\%"+i+"/g"),args[i]);}
return str;}
function cg_getStyle(elem,cssRule){var value="";if(document.defaultView&&document.defaultView.getComputedStyle){value=document.defaultView.getComputedStyle(elem,"").getPropertyValue(cssRule);}
else if(elem.currentStyle){cssRule=cssRule.replace(/\-(\w)/g,function(match,p1){return p1.toUpperCase();});value=elem.currentStyle[cssRule];}
return value;}
function cg_endsWith(str,s){var reg=new RegExp(s+"$");return reg.test(str);}
function cg_utf8Decode(utftext)
{if(utftext==null)
{return"";}
var string="";var i=0;var c=c1=c2=0;while(i<utftext.length){c=utftext.charCodeAt(i);if(c<128){string+=String.fromCharCode(c);i++;}
else if((c>191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}
else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}
return string;}
function cg_getString(val)
{if(val==null)
{return"";}
return val;}
function cg_getBits(val)
{var bits=[];if(!val||val==0)
{return bits;}
var dblFeatureCode=parseInt(val);var decFeatureCode=parseFloat(0.0);var bytFeatureId=1;while(dblFeatureCode>0)
{dblFeatureCode=dblFeatureCode/2;decFeatureCode=parseInt(dblFeatureCode);if(dblFeatureCode>decFeatureCode)
{bits.push(bytFeatureId);}
dblFeatureCode=parseFloat(decFeatureCode);bytFeatureId=bytFeatureId+1}
return bits;}
function cg_isNumeric(str){return str.toString().match(/[0-9]+$/)!=null;}
Curse.Menu={currentBrowsePath:null,setBrowsePath:function(browseArray){Curse.Menu.currentBrowsePath=browseArray;},renderBrowsePath:function(){if(!Curse.Menu.currentBrowsePath){return;}
var currentFilterString=cg_getQueryStringParam("filters");if(currentFilterString!=""){currentFilterString="&filters="+currentFilterString;}
var currentBrowsePath="";var fullBrowsePath="";var span=document.createElement("SPAN");span.className="spanMenuArrow";var anchor=document.createElement("A");anchor.style.textDecoration="none";anchor.style.color="#ffffff";anchor.href="./";anchor.innerHTML=Localization.home;span.appendChild(anchor);var container=cg_ge("divBrowsePathLeft")
container.appendChild(span);var currentMenu;var lastMenu=mn_Main;var browseArray=Curse.Menu.currentBrowsePath;for(var i=0;i<browseArray.length;i++){currentMenu=browseArray[i];span=document.createElement("SPAN");anchor=document.createElement("A");anchor.style.cursor="default";if(i<browseArray.length-1){span.className="spanMenuArrow";}
if(i>0){if(currentBrowsePath!=""){currentBrowsePath+="."}
currentBrowsePath+=browseArray[i-1];fullBrowsePath+=".";}
fullBrowsePath+=browseArray[i];anchor.className="spanBrowseMenuLink";var menu=null;var nextMenu=null;if(i==0){menu=mn_Main;}
else{try{menu=eval("mn_"+currentBrowsePath.replace(/\./g,"_").replace(/\-/g,"$"));}
catch(ex){}}
try{nextMenu=eval(("mn_"+fullBrowsePath).replace(/\./g,"_").replace(/\-/g,"$"));}
catch(ex){}
var selectedLinkLabel=null;var selectedLink=null
for(var j=0;j<menu.length;j++){if(menu[j][0]==currentMenu){selectedLinkLabel=menu[j][1];selectedLink=menu[j][2];break;}}
if(!selectedLinkLabel){continue;}
if(selectedLink!=null){if(selectedLink!="$nonav$"){anchor.href=selectedLink;anchor.style.cursor="pointer";}
currentLink="";}
else{anchor.href="search.aspx?browse="+fullBrowsePath+currentFilterString;anchor.style.cursor="pointer";}
anchor.innerHTML=selectedLinkLabel;anchor._baseLink=fullBrowsePath;if(nextMenu){anchor._subMenuArray=nextMenu;}
anchor.onmouseover=Curse.Menu.handleMainMenuMouseOver.bind(anchor);anchor.onmouseout=Curse.Menu.handleMainMenuMouseOut.bind(anchor);anchor.onclick=Curse.Menu.closeMainMenu.bind(anchor);anchor._isMainMenu=true;span.appendChild(anchor);container.appendChild(span);lastMenu=menu;}
cg_ge("divMainPrecontents").style.display="block";},setStaticMenu:function(menuArray){for(var i=0;i<menuArray.length;i++){var currentMenu=menuArray[i];var anchor=cg_ge("menu_anchor_"+currentMenu[0]);if(anchor!=null){if(currentMenu.length>=4&&currentMenu[3]!=null){anchor._subMenuArray=currentMenu[3];}
anchor._isMainMenu=true;anchor.onmouseover=Curse.Menu.handleMainMenuMouseOver.bind(anchor);anchor.onmouseout=Curse.Menu.handleMainMenuMouseOut.bind(anchor);anchor.onclick=Curse.Menu.closeMainMenu.bind(anchor);}}},addMainMenu:function(containerID,menuArray){var container=cg_ge(containerID);if(!container){return;}
var currentBrowseCategory="";if(Curse.Menu.currentBrowsePath){currentBrowseCategory=Curse.Menu.currentBrowsePath[0];}
var currentFilterString=cg_getQueryStringParam("filters");if(currentFilterString!=""){currentFilterString="&filters="+currentFilterString;}
if(!menuArray)
return;container._menuArray=[];for(var i=0;i<menuArray.length;i++){var currentMenu=menuArray[i];var anchor=document.createElement("A");if(i==menuArray.length-1){anchor.style.background="none";}
anchor.style.cursor="default";if(currentMenu[2]!=null){if(currentMenu[2]!="$nonav$"){anchor.href=currentMenu[2];anchor.style.cursor="pointer";}
else{anchor._baseLink=currentMenu[0];}}
else{if(currentFilterString!=""&&currentMenu[0]==currentBrowseCategory){anchor.href="search.aspx?browse="+currentMenu[0]+currentFilterString;}
else{anchor.href="search.aspx?browse="+currentMenu[0];}
anchor.style.cursor="pointer";anchor._baseLink=currentMenu[0];}
anchor.style.textDecoration="none";var span=document.createElement("SPAN");span.className="menu-link";if(currentMenu.length>=4&&currentMenu[3]!=null){anchor._subMenuArray=currentMenu[3];}
if(currentMenu.length>=5){anchor.className=currentMenu[4];}
span.innerHTML=currentMenu[1];anchor._isMainMenu=true;anchor.onmouseover=Curse.Menu.handleMainMenuMouseOver.bind(anchor);anchor.onmouseout=Curse.Menu.handleMainMenuMouseOut.bind(anchor);anchor.onclick=Curse.Menu.closeMainMenu.bind(anchor);anchor._container=container;cg_ae(anchor,span);container._menuArray.push(anchor);cg_ae(container,anchor);}},handleMainMenuMouseOver:function(){if(this._timeout){window.clearTimeout(this._timeout);}
if(this._subMenu&&this._subMenu.style.display=="block"){return;}
var layers=cg_ge("layers");var menus=cg_getElementsByClassName("menu","div",layers);for(var i=0;i<menus.length;i++){menus[i].style.display="none";}
var viewportHeight=Curse.Client.viewportHeight();if(this._subMenu&&this._subMenuArray){if(this._viewportHeight&&this._viewportHeight!=viewportHeight){var menuParent=this._subMenu.parentNode;menuParent.removeChild(this._subMenu);this._subMenu=null;}}
if(!this._subMenu&&this._subMenuArray){var subMenu=Curse.Menu.addMenu("layers",this._subMenuArray,this,this._baseLink);this._subMenu=subMenu;this._viewportHeight=viewportHeight;}
if(this._subMenu){Curse.Menu.positionSubMenu(this);}},closeMainMenu:function(){Curse.Menu.hideMainMenu.bind(this)();},hideMainMenu:function(){this._timeout=null;if(this._subMenu){Curse.Menu.hideChildren(this);}},handleMainMenuMouseOut:function(e){e=cg_getEvent(e);var relatedTarget=e._relatedTarget;if(relatedTarget&&this.contains(relatedTarget)){return;}
if(relatedTarget&&relatedTarget==this._subMenu){return;}
if(relatedTarget&&this._subMenu&&this._subMenu.contains(relatedTarget)){return;}
this._timeout=setTimeout(Curse.Menu.hideMainMenu.bind(this),400);},addMenu:function(containerID,menuArray,objParentLink,baseID){var arrBrowseArray=Curse.Menu.currentBrowsePath||[];parentCategory=arrBrowseArray[0];var filterString=cg_getQueryStringParam("filters");if(filterString!=""){filterString="&filters="+filterString;}
var viewportHeight=Curse.Client.viewportHeight();var heightPerMenuItem;var parentMenuItemPosition=cg_getPosition(objParentLink);var newMenu=document.createElement("div");newMenu.onmouseover=Curse.Menu.expand.bind(newMenu);newMenu.onmouseout=Curse.Menu.contract.bind(newMenu);newMenu.onclick=Curse.Menu.handleSubClick.bind(newMenu);newMenu.className="menu";if(objParentLink){newMenu._parentLink=objParentLink;newMenu._parentMenu=objParentLink._container;}
if(objParentLink._parentMenu&&objParentLink._parentLink._subMenuArray){heightPerMenuItem=Math.ceil(objParentLink.offsetHeight/objParentLink._parentLink._subMenuArray.length);}
heightPerMenuItem=27;var menuContainerHeight;if(objParentLink.className=="spanBrowseMenuLink"){var parentPosition=cg_getPosition(objParentLink);menuContainerHeight=parentPosition.y+objParentLink.offsetHeight+(heightPerMenuItem*menuArray.length);}
else{menuContainerHeight=(heightPerMenuItem*menuArray.length);}
var itemsPerContainer;if(menuContainerHeight>viewportHeight){menuGroupCount=Math.ceil(menuContainerHeight/viewportHeight);itemsPerContainer=Math.ceil(menuArray.length/menuGroupCount);}
else{newMenu.appendChild(document.createElement("em"));newMenu.appendChild(document.createElement("var"));newMenu.appendChild(document.createElement("strong"));menuGroupCount=1;itemsPerContainer=menuArray.length;}
var mainTable=document.createElement("table");newMenu.appendChild(mainTable);var tbody;if(mainTable.tBodies&&mainTable.tBodies.length>0){tbody=mainTable.tBodies[0];}
else{tbody=document.createElement("tbody");mainTable.appendChild(tbody);}
var mainRow=tbody.insertRow(tbody.rows.length);for(var k=0;k<menuGroupCount;k++){var mainCell=mainRow.insertCell(mainRow.cells.length);var itemsStart;var mainDiv=null;if(menuGroupCount>1){var mainParagraph=document.createElement("p");mainCell.appendChild(mainParagraph);mainParagraph.appendChild(document.createElement("em"));mainParagraph.appendChild(document.createElement("var"));mainParagraph.appendChild(document.createElement("strong"));mainDiv=document.createElement("div");mainParagraph.appendChild(mainDiv);itemsStart=k*itemsPerContainer;}
else{itemsStart=0;mainDiv=document.createElement("div");mainCell.appendChild(mainDiv);}
var secondDiv=document.createElement("div");mainDiv.appendChild(secondDiv);for(var i=0;i<itemsPerContainer;i++){var currentMenuIndex;currentMenuIndex=i;if(k>0){currentMenuIndex=i+(itemsPerContainer*k);}
if(currentMenuIndex>=menuArray.length){break;}
var currentMenu=menuArray[currentMenuIndex];if(currentMenu){var currentLink="";var hasChildren=false;if(cg_isArray(currentMenu)){if(currentMenu.length==4){if(currentMenu[3].length>0){hasChildren=true;}}
currentLink=currentMenu[0]+"";}
else{currentLink=i+"";}
var anchor=document.createElement("a");if(currentMenu[2]!=null){if(currentMenu[2]!="$nonav$"){anchor.href=currentMenu[2].replace(/\$userid\$/,Curse.User.id);;}
currentLink="";}
else{if(baseID!=null){currentLink=baseID+"."+currentLink;}
if(filterString!=""&&currentLink.split(".")[0]==parentCategory){anchor.href="search.aspx?browse="+currentLink+filterString;}
else{anchor.href="search.aspx?browse="+currentLink;}}
anchor._parentElement=newMenu;secondDiv.appendChild(anchor);var mainSpan=document.createElement("span");if(hasChildren){mainSpan.className="menusub";}
if(currentMenu.length>=5){anchor.className=currentMenu[4];}
anchor.appendChild(mainSpan);var secondSpan=document.createElement("span");if(!cg_isArray(currentMenu)){secondSpan.innerHTML=currentMenu;}
else{secondSpan.innerHTML=currentMenu[1];}
if(currentLink!=""){var arrCurrentLink;arrCurrentLink=currentLink.split(".");var blnMenuChecked=true;for(var j=0;j<arrCurrentLink.length;j++){if(arrCurrentLink[j]!=arrBrowseArray[j]){blnMenuChecked=false;}}
if(blnMenuChecked){secondSpan.className="menucheck";}}
anchor._baseLink=currentLink;anchor._container=newMenu;mainSpan.appendChild(secondSpan);if(hasChildren){anchor._subMenuArray=currentMenu[3];}
else{}
anchor.onmouseout=Curse.Menu.contractSub.bind(anchor);}}}
cg_ge(containerID).appendChild(newMenu);return newMenu;},expand:function(e){if(this._timeout){window.clearTimeout(this._timeout);}
if(this._parentLink._timeout){window.clearTimeout(this._parentLink._timeout);}
var a=cg_getEventTarget(e);if(a.tagName!="A"&&a.tagName!="SPAN"){return;}
while(a.tagName!="A"){a=a.parentNode;}
var viewportHeight=Curse.Client.viewportHeight();if(a._subMenu&&a._subMenu.style.display=="block"){return;}
if(a._subMenu&&a._subMenuArray){if(a._viewportHeight&&a._viewportHeight!=viewportHeight){var menuParent=a._subMenu.parentNode;menuParent.removeChild(this._subMenu);this._subMenu=null;}}
if(!a._subMenu){if(a._subMenuArray){a._subMenu=Curse.Menu.addMenu("layers",a._subMenuArray,a,a._baseLink);a._viewportHeight=viewportHeight;}}
if(a._subMenu){Curse.Menu.positionSubMenu(a);}},positionSubMenu:function(objParentMenu){var objSubMenu=objParentMenu._subMenu;var parentMenuItemPosition=cg_getPosition(objParentMenu);var parentTop=parentMenuItemPosition.y-2;var parentLeft=parentMenuItemPosition.x-2;var viewportHeight=Curse.Client.viewportHeight();var viewportWidth=Curse.Client.viewportWidth();var parentMenuPadding=0;if(objParentMenu._isMainMenu){objSubMenu.style.visibility="hidden";objSubMenu.style.display="block";padLeft=cg_getStyle(objParentMenu,"padding-left");if(padLeft!=""){parentMenuPadding=parseInt(padLeft.replace(/px/,""));}
if(objSubMenu.offsetHeight+parentTop>viewportHeight){objSubMenu.style.top=(parentTop-objSubMenu.offsetHeight-objParentMenu.offsetHeight+10)+"px";}
else{objSubMenu.style.top=parentMenuItemPosition.y+objParentMenu.offsetHeight+"px";}
if((parentMenuItemPosition.x+objSubMenu.offsetWidth+parentMenuPadding)>viewportWidth){objSubMenu.style.right="5px";}
else{objSubMenu.style.left=parentMenuItemPosition.x+parentMenuPadding+"px";}
objSubMenu.style.visibility="visible";}
else if(parentMenuItemPosition.y>0){objSubMenu.style.visibility="hidden";objSubMenu.style.display="block";var menuPad=10;if(Curse.Browser.ie){menuPad=20;}
if(menuPad+objSubMenu.offsetHeight+parentTop>viewportHeight){objSubMenu.style.top=(viewportHeight-objSubMenu.offsetHeight-menuPad)+"px";}
else{objSubMenu.style.top=parentTop+"px";}
if((menuPad+objSubMenu.offsetWidth+parentLeft+objParentMenu.offsetWidth+5)>viewportWidth){objSubMenu.style.left=(parentMenuItemPosition.x-objSubMenu.offsetWidth)+"px";}
else{objSubMenu.style.left=parentMenuItemPosition.x+objParentMenu.offsetWidth-2+"px";}
objSubMenu.style.visibility="visible";}},hideSubMenu:function(){this._timeout=null;this.style.display="none";if(this._parentMenu){Curse.Menu.hideAllParents(this);}},contractSub:function(e){var e=cg_getEvent(e);var toAnchor=e._relatedTarget;var fromAnchor=e._target;if(this.contains(toAnchor)){return;}
if(this._subMenu&&!this._subMenu.contains(toAnchor)){this._subMenu.style.display="none";return;}},contract:function(e){var e=cg_getEvent(e);var toAnchor=e._relatedTarget;var fromAnchor=e._target;var container=this;if(!toAnchor){this.style.display="none";if(this._parentMenu){Curse.Menu.hideAllParents(this);}
return;}
if(!fromAnchor){return;}
if(this.contains(toAnchor)){return;}
if(fromAnchor.tagName=="SPAN"||fromAnchor.tagName=="A"){while(fromAnchor.tagName!="A"){fromAnchor=fromAnchor.parentNode;}
if(fromAnchor._subMenu&&(fromAnchor._subMenu==toAnchor||fromAnchor._subMenu.contains(toAnchor))){return;}}
if(this._parentLink==toAnchor){return;}
if(this._parentMenu&&this._parentMenu.contains(toAnchor)){this.style.display="none";return;}
this._timeout=setTimeout(Curse.Menu.hideSubMenu.bind(this),400);return;},handleSubClick:function(){var layers=cg_ge("layers");var menus=cg_getElementsByClassName("menu","div",layers);for(var i=0;i<menus.length;i++){menus[i].style.display="none";}},hideAllParents:function(child){child.style.display="none";if(child._parentMenu&&!child._parentLink._isMainMenu){Curse.Menu.hideAllParents(child._parentMenu);}},hideChildren:function(parent){tempMenu=parent._subMenu;while(tempMenu&&tempMenu.style.display!="none"){tempMenu.style.display="none";tempMenu=tempMenu._subMenu;}},hideSiblings:function(obj){if(!obj._container){return;}
for(var i=0;i<obj._container._menuArray.length;i++){if(obj!=obj._container._menuArray[i]){window.clearTimeout(obj._container._menuArray[i]._timeout);Curse.Menu.hideMainMenu.bind(obj._container._menuArray[i])();}}}};Curse.Session=function(onLogin)
{this.onLogin=onLogin;}
Curse.Session.prototype={initialize:function()
{if(cg_cookiesDisabled())
{return;}
var sessionTimeout=1000*60*10;setTimeout(this.reset,sessionTimeout);var sessionid=cg_getCookie("networkcookie");var loginInitialized=cg_getCookie("Login.Initialized");if(sessionid!=null&&loginInitialized!=null)
{this.onLogin(true);return;}
var iframe=document.createElement("IFRAME");iframe.src="ajaxSession.aspx";iframe.style.display="none";document.body.appendChild(iframe);},reset:function()
{cg_deleteCookie("Login.Initialized");},handleLogin:function(status)
{this.onLogin(status);}}
Curse.Alert={makeHidden:function()
{cg_ge("alert").style.display="none";},makeVisible:function()
{cg_ge("alert").style.display="block";},close:function()
{var alert=cg_ge("alert");if(alert){document.body.removeChild(alert);}
var alertOverlay=cg_ge("alert_overlay");if(alertOverlay){document.body.removeChild(alertOverlay);}
cg_removeEventListener(document,"keyup",Curse.Alert.handleKeyPress);},show:function(alertMessage,alertTitle,alertInput,alertButtons,alertOpener,alertTop,alertLeft,showAlertOverlay,alertWidth)
{cg_addEventListener(document,"keyup",Curse.Alert.handleKeyPress);var oAlert=cg_ge("alert");if(oAlert)
{document.body.removeChild(oAlert);}
var alertOverlay=cg_ge("alert_overlay");if(alertOverlay)
{document.body.removeChild(alertOverlay);}
if(showAlertOverlay)
{var alertOverlayDiv=document.createElement("DIV");alertOverlayDiv.innerHTML="&nbsp;";alertOverlayDiv.id="alert_overlay";document.body.appendChild(alertOverlayDiv);}
var alertDiv=document.createElement("DIV");alertDiv.className="content-panel alert";alertDiv.id="alert";alertDiv.style.visibility="hidden";if(alertWidth)
{alertDiv.style.width=alertWidth+"px";}
if(alertTitle==null)
{alertTitle=Localization.system_message;}
var alertContainerHTML="<div class=\"content-panel-bg\"></div><div class=\"content-panel-r\"></div><div class=\"content-panel-b\"></div><div class=\"content-panel-br\"></div><div class=\"content-panel-t\"></div><div class=\"content-panel-tr\"></div><div class=\"content-panel-wrapper\">";var alertHTML=alertContainerHTML+"<h2>"+alertTitle+"</h2><div>"+alertMessage+"</div>";var primaryButtonCallback=null;var secondaryButtonCallback=null;var alertButtonsArray=null;if(alertButtons)
{alertButtonsArray=alertButtons.split("|");primaryButtonCallback=alertButtonsArray[0].split("^")[0];secondaryButtonCallback=alertButtonsArray[1].split("^")[0];}
if(alertInput)
{alertInputArray=alertInput.split("|");alertHTML+="<div>&nbsp;</div><form onsubmit=\"return false;\">";alertHTML+="<table>";for(var i=0;i<alertInputArray.length;i++)
{alertHTML+="<tr>";var currentInput=alertInputArray[i].split("^");var defaultValue="";var lookupName="";var lookupFromCookie=true;var maxLengthHTML="";var sizeHTML="";var inputLabel=currentInput[0];var inputDescription="";var scriptActions="";var inputStyle="";if(inputLabel.indexOf(Localization.colon)==-1)
{inputLabel+=Localization.colon;}
if(currentInput.length>=3)
{defaultValue=currentInput[2];}
if(currentInput.length>=4)
{lookupName=currentInput[3];if(lookupName.indexOf("l:")==0)
{lookupName=lookupName.substring(2);lookupFromCookie=false;}}
if(currentInput.length>=5&&currentInput[4]!="")
{sizeHTML="  size='"+currentInput[4]+"'";}
if(currentInput.length>=6&&currentInput[5]!="")
{maxLengthHTML=" maxlength="+currentInput[5];}
if(currentInput.length>=7)
{inputDescription="<div class=desc>"+currentInput[6]+"</div>";}
if(currentInput.length>=8)
{scriptActions=currentInput[7];}
if(currentInput.length>=9)
{inputStyle=currentInput[8];}
alertHTML+="<td class=\"label\">"+inputLabel+"</td>";alertHTML+="<td class=\"alertInput\">";if(lookupName!="")
{var lookupSelect=cg_getLookupSelectBox(lookupName,"",null,false,null,lookupFromCookie);alertHTML+="<select id=\""+currentInput[1]+"\" name=\""+currentInput[1]+"\">"+lookupSelect.innerHTML+"</select>";}
else
{alertHTML+="<input id=\""+currentInput[1]+"\" name=\""+currentInput[1]+"\" onKeyPress=\"if((event.keyCode==10)||(event.keyCode==13)) "+primaryButtonCallback+"; if (event.keyCode==27) "+secondaryButtonCallback+";\" type=\"text\" value=\""+defaultValue+"\""+maxLengthHTML+sizeHTML+scriptActions+inputStyle+"/>"+inputDescription;}
alertHTML+="</td>";alertHTML+="</tr>";}
alertHTML+="</table>";alertHTML+="</form>";}
alertHTML+="<div class=\"buttons\">";if(alertButtonsArray)
{for(var i=0;i<alertButtonsArray.length;i++)
{var currentButton=alertButtonsArray[i].split("^");alertHTML+="&nbsp;<button class=\"smallButton\" onclick=\""+currentButton[0]+"\"><span>"+currentButton[1]+"</span></button>";}}
else{alertHTML+="<button class=\"smallButton\" onclick=\"Curse.Alert.close();\"><span>Close</span></button>";}
alertHTML+="</div>";alertHTML+="</div>";alertDiv.innerHTML=alertHTML;document.body.appendChild(alertDiv);if(!alertTop)
{cg_centerElement(alertDiv);}
else
{alertDiv.style.top=alertTop+"px";alertDiv.style.left=alertLeft+"px";}
alertDiv.style.visibility="visible";if(alertInput)
{alertDiv.getElementsByTagName("input")[0].focus();}},handleKeyPress:function(e)
{var e=cg_getEvent(e);if(e.keyCode==27)
{Curse.Alert.close();}
return;}}
if(!Curse)
{Curse={};}
Curse.Ajax={http:false,format:'text',callback:function(data){},handler:false,error:false,opt:new Object(),getHTTPObject:function(){var http=false;if(typeof ActiveXObject!='undefined'){try{http=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{http=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){http=false;}}}else if(XMLHttpRequest){try{http=new XMLHttpRequest();}
catch(e){http=false;}}
return http;},load:function(url,callback,format,method,allowCache,queueFunction,queueFunctionArgs,callbackHost){this.init();if(!this.http||!url)return;if(this.http.overrideMimeType)this.http.overrideMimeType('text/xml');this.callback=callback;this.callbackHost=callbackHost;this.queueFunction=queueFunction;this.queueFunctionArgs=queueFunctionArgs;if(!method)var method="GET";if(!format)var format="text";this.format=format.toLowerCase();method=method.toUpperCase();var ths=this;if(!allowCache)
{var now="uid="+new Date().getTime();url+=(url.indexOf("?")+1)?"&":"?";url+=now;}
var parameters=null;if(method=="POST"){var parts=url.split("\?");url=parts[0];parameters=parts[1];}
this.http.open(method,url,true);if(method=="POST"){this.http.setRequestHeader("Content-type","application/x-www-form-urlencoded");this.http.setRequestHeader("Content-length",parameters.length);if(!Curse.Browser.ie)
{this.http.setRequestHeader("Connection","close");}}
if(this.handler)
{this.http.onreadystatechange=this.handler;}
else{this.http.onreadystatechange=function()
{if(!ths)return;var http=ths.http;if(http.readyState==4){if(http.status==200){var result="";if(http.responseText)result=http.responseText;if(ths.format.charAt(0)=="j")
{result=result.replace(/[\n\r]/g,"");result=eval('('+result+')');}
else if(ths.format.charAt(0)=="x"){result=http.responseXML;}
if(ths.queueFunction)
{ths.queueFunction(result,ths.callback,ths.queueFunctionArgs);}
else if(ths.callback)
{if(ths.callbackHost){ths.callback.bind(ths.callbackHost,result)();}
else{ths.callback(result);}}}
else{if(ths.opt.loadingIndicator)document.getElementsByTagName("body")[0].removeChild(ths.opt.loadingIndicator);if(ths.opt.loading)document.getElementById(ths.opt.loading).style.display="none";if(ths.error)ths.error(http.status);}}}}
this.http.send(parameters);},bind:function(user_options){var opt={'url':'','onSuccess':false,'onError':false,'format':"text",'method':"GET",'update':"",'loading':"",'loadingIndicator':""}
for(var key in opt){if(user_options[key]){opt[key]=user_options[key];}}
this.opt=opt;if(!opt.url)return;if(opt.onError)this.error=opt.onError;var div=false;if(opt.loadingIndicator){div=document.createElement("div");div.setAttribute("style","position:absolute;top:0px;left:0px;");div.setAttribute("class","loading-indicator");div.innerHTML=opt.loadingIndicator;document.getElementsByTagName("body")[0].appendChild(div);this.opt.loadingIndicator=div;}
if(opt.loading)document.getElementById(opt.loading).style.display="block";this.load(opt.url,function(data){if(opt.onSuccess)opt.onSuccess(data);if(opt.update)document.getElementById(opt.update).innerHTML=data;if(div)document.getElementsByTagName("body")[0].removeChild(div);if(opt.loading)document.getElementById(opt.loading).style.display="none";},opt.format,opt.method);},init:function(){this.http=this.getHTTPObject();}};var cg_ajaxQueue=[];var cg_ajaxProcessing=false;function cg_queueAjaxRequest(url,callbackFunction,format,method,callbackArgs,allowCache)
{if(!isNewRequest())
{return;}
var ajaxRequest={};ajaxRequest.url=url;ajaxRequest.callback=callbackFunction;ajaxRequest.callbackArgs=callbackArgs;ajaxRequest.format=format;ajaxRequest.method=method;ajaxRequest.allowCache=allowCache;cg_ajaxQueue.push(ajaxRequest);cg_processAjaxQueue();function isNewRequest()
{if(cg_ajaxQueue.length==0)
{return true;}
for(var i=0,len=cg_ajaxQueue.length;i<len;i++)
{if(cg_ajaxQueue[i].url==url)
{return false;}}
return true;}}
function cg_completeAjaxQueue(data,callback,callbackArgs)
{cg_ajaxProcessing=false;callback(data,callbackArgs);cg_processAjaxQueue();}
function cg_processAjaxQueue()
{if(cg_ajaxProcessing||cg_ajaxQueue.length==0)
{return;}
cg_ajaxProcessing=true;var ajaxRequest=cg_ajaxQueue[0];cg_ajaxQueue.splice(0,1);Curse.Ajax.load(ajaxRequest.url,ajaxRequest.callback,ajaxRequest.format,ajaxRequest.method,ajaxRequest.allowCache,cg_completeAjaxQueue,ajaxRequest.callbackArgs);}
if(!Curse)
{var Curse={};}
Curse.Mouse={x:0,y:0,initialize:function()
{cg_addEventListener(document,"mousemove",this.update);cg_addEventListener(document,"mouseout",this.update);},update:function(e)
{if(window.event)
{Curse.Mouse.x=window.event.clientX;Curse.Mouse.y=window.event.clientY;Curse.Mouse.y+=cg_scrollTop();}
else
{Curse.Mouse.x=e.pageX;Curse.Mouse.y=e.pageY;}}};Curse.Mouse.initialize();if(!Curse){var Curse={};}
Curse.Lookup={lookup:function(keyName)
{if(Curse.Lookup[keyName]!=null)
{return(Curse.Lookup[keyName]);}
else
{return"";}},add:function()
{var args=Curse.Lookup.add.arguments;for(c=0;c<args.length;c+=3)
{this[args[c]+"."+args[c+1]]=args[c+2];if(!Curse.Lookup["LookupList_"+args[c]])
{Curse.Lookup["LookupList_"+args[c]]=[];}
Curse.Lookup["LookupList_"+args[c]].push([args[c+1],args[c+2]])}},lookupList:function()
{var args=Curse.Lookup.lookupList.arguments;return Curse.Lookup[args[0]];},Localization:{replace:function()
{var args=Curse.Lookup.Localization.replace.arguments;var str=Curse.Lookup.Localization[args[0]];if(!str)
{alert("Missing: "+args[0]);}
for(i=1;i<args.length;i++)
{str=str.replace(eval("/\\%"+i+"/"),args[i]);}
return str;}}}
Localization=Curse.Lookup.Localization;Localization._delete="Delete";Localization._in="in";Localization._in="in";Localization.ability_not_scale="This ability does not scale with level.";Localization.account_settings="Account Options";Localization.active_users="Active Users";Localization.add="Add";Localization.add_comment="Add Comment";Localization.add_filter="Add Additional Filter";Localization.add_new_entry="Add New Entry";Localization.add_to_wishlist="Add to Wish List";Localization.added="Added";Localization.added_for_approval="Added for Approval";Localization.additional_filters="Additional Filters";Localization.also_get="Also Get";Localization.any="Any";Localization.apply_filter="Apply Filter";Localization.area="Area";Localization.armor="Armor";Localization.bonuses="Bonuses";Localization.bookmark_search="Bookmark this Search";Localization.bookmarks="Bookmarks";Localization.bookmarks_appear_here="Your %1Bookmarks%2 will appear here";Localization.by="By";Localization.by_filtering="By filtering your results, you can find exactly what you are searching for, and see up to 500 matches.";Localization.cancel="Cancel";Localization.career="";Localization.category="Category";Localization.char_enter_note="Note: You may enter up to %1 characters.";Localization.char_manager="Character Manager";Localization.char_options_saved="Your character options have been saved.";Localization.character_manager="Character Manager";Localization.characters="Characters";Localization.choose="Choose";Localization.choose_wishlist="Please choose the wish list you would like to add this to, or enter the name of a new one";Localization.choose_wishlist="Please choose the wish list you would like to add this to, or enter the name of a new one";Localization.class_label="Class";Localization.class_list="";Localization.class_name="";Localization.click_bookmark="Click here to bookmark this search for later retrieval.";Localization.click_delete_list="Click here to delete this wish list.";Localization.click_here_add_wishlist="Click here to add %1 to your wish list.";Localization.click_pin_spell="Click the button to &quot;pin&quot; this spell level, using it by default for all scaling spells. ";Localization.click_see_side_by_side="Click here to use this item for side-by-side tooltip comparisons in the %1 slot.";Localization.click_see_side_by_side="Click here to use this item for side-by-side tooltip comparisons in the %1 slot.";Localization.click_toggle_map="Click here toggle on/off the map shade, making it easier to spot points of interest.";Localization.collect="Collect";Localization.colon=":";Localization.comment_contains_html="The comment you entered contains HTML characters. Please remove them, and try again.";Localization.configure_guild_options="Configure your guild options using the form below. Once saved, your guild options will take effect immediately. Note: Guild privacy options will not be applied to guild members.";Localization.confirm_delete="Are you sure you want to delete this comment?";Localization.contains="Contains";Localization.contract="Contract";Localization.count="Count";Localization.crafted_by="Crafted By";Localization.crafting="";Localization.create_filter="Show %1 Filters";Localization.create_hyperlink="Create a Hyperlink";Localization.create_profile="Create your profile and choose a custom avatar, by visiting the %1Account Options%2 page.";Localization.created="Created";Localization.current_avatar="Current Avatar";Localization.daily_quest="Daily Quest";Localization.daily_quests="Daily Quests";Localization.database="Database";Localization.date_added="Date Added";Localization.delete_profile="Delete Your Profile";Localization.delete_profile_info="You can permanently delete your character, including all associated comments and screenshots, by clicking the \"Delete My Profile\" button below.";Localization.delete_wishlist="Are you sure you want to delete this wish list?";Localization.description_colon="Description: %1";Localization.download="Download";Localization.dps="DPS";Localization.drop_rate="Drop Rate";Localization.dropped_by="Dropped By";Localization.drops_in="Drops In";Localization.edit="Edit";Localization.edit_entry="Edit Entry";Localization.edit_fail="Edit Failed";Localization.edit_map="Edit Map";Localization.edit_submitted="Edit Submitted for Approval";Localization.edit_success="Edit Succeeded";Localization.edit_this_entry="Edit this Entry";Localization.email_us="E-mail us";Localization.ends_quests="Ends Quests";Localization.enter_at_least_x_chars="You must enter at least %1 characters.";Localization.enter_bookmark_search="Search Bookmark Details";Localization.enter_bookmark_search="Search Bookmark Details";Localization.enter_hyperlink="Please enter the hyperlink details below.";Localization.enter_register_email="Don\'t forget to %1set your avatar";Localization.enter_register_email="Don\'t forget to %1set your avatar";Localization.enter_to_x_chars="Enter up to %1 characters";Localization.enter_url="Enter a URL, starting with %1|Label";Localization.equipment="";Localization.existing="Existing";Localization.expand="Expand";Localization.filtering="filtering";Localization.finishes_quest="Finishes Quest";Localization.finishing_item="Finishing Item";Localization.finishing_npc="Finishing NPC";Localization.first="First";Localization.first_to_submit="Be the first to %1submit one%2!";Localization.for_advanced_search="For advanced search options, select a filter from the list below.";Localization.for_verification="For verification, please enter the text you see in the box";Localization.found_in_zones="Found in Zones";Localization.gain_mastery_point_at="You gain you first Mastery point at rank 11, and will have gained 25 by rank 40.";Localization.gain_mastery_points="Gain mastery points %1 by leveling your character. Use mastery points to increase mastery level or train mastery abilities.";Localization.game_title="Runescape";Localization.general="";Localization.get_fewer="You can get fewer results by ";Localization.google_format="&as_sitesearch=zybez.net";Localization.google_search="Try searching for %1 on Google";Localization.guild="Guild";Localization.guild_elected_hidden="This guild has elected to hide their profile";Localization.guild_hidden="Guild Hidden";Localization.guild_management="Guild Management";Localization.guild_mgmt="Guild Management";Localization.guild_options_saved="Your guild options have been saved";Localization.guilds="Guilds";Localization.guildxpbar_tooltip="";Localization.header="Header";Localization.header_contribute="Post Comments";Localization.hide_filter_form="Hide Filter Form";Localization.home="Home";Localization.hp="HP";Localization.if_equip="If you equip";Localization.if_equip="If you equip";Localization.in_your_wishlist="In Your Wishlist";Localization.influence="";Localization.insert_failed="Insert Failed";Localization.inventory="";Localization.items="Items";Localization.kill="Kill";Localization.last="Last";Localization.last_edited_by="Last edited by ";Localization.last_registered="Last Visited";Localization.last_updated="Last Updated";Localization.last_visited="Last Visited";Localization.latest_additions="Latest Additions";Localization.latest_comments="Latest Comments";Localization.latest_items="Latest Items";Localization.latest_npcs="Latest NPCs";Localization.latest_profiles="Latest Profiles";Localization.latest_quests="Latest Quests";Localization.latest_screenshots="Latest Screenshots";Localization.latest_spells="Latest Spells";Localization.latest_users="Latest Users";Localization.leader="Leader";Localization.leave_me_message="Leave me a message";Localization.level="Level";Localization.levels="Levels";Localization.loc_submitted="Location Submitted";Localization.location="Location";Localization.locations_you_add="Locations you add will be submitted for moderation. Once approved, they will be visible to all Zybez users.";Localization.login="Login";Localization.login_rate_comments="You must login to rate or reply to comments.<br>Click here to login or register a new account.";Localization.login_register_to_comment="You are not logged in. Please %1Login%2 or %3Register%4 to post a comment";Localization.login_register_to_screenshot="You are not logged in. Please %1Login%2 or %3Register%4 to post a screenshot.";Localization.logout="Logout";Localization.made_by="Made By";Localization.main_class="Main Class";Localization.main_level="Main Level";Localization.mana="Mana";Localization.members="Members";Localization.misc="Miscellaneous";Localization.mode="Mode";Localization.must_enter_current_pass="You must enter your current password.";Localization.must_enter_six_pass="You must enter a password that is 6 or more characters.";Localization.must_enter_valid_email="You must enter a valid e-mail address.";Localization.my_account="My Account";Localization.my_characters="My Characters";Localization.my_characters="My Characters";Localization.my_chars_comments="My Characters, Comments & Screenshots";Localization.my_info="My Info";Localization.my_profile="My Profile";Localization.my_screenshots="My Screenshots";Localization.name="Name";Localization.new_characters="New Characters";Localization.new_list="New List";Localization.new_users="New Users";Localization.next="Next";Localization.next_screenshot="Next Screenshot";Localization.no_comments="No comments have been submitted for %1.";Localization.no_results_matching="No results matching ";Localization.no_screenshots="No screenshots have been submitted for %1.";Localization.no_search_support="No search engine support";Localization.not_owner="You are not the owner of this entity";Localization.note="Note";Localization.npc="NPC";Localization.obj_of_quests="Objective of Quests";Localization.objectives="Objectives";Localization.of="of";Localization.ok="OK";Localization.part_of="Part Of";Localization.pass_no_match="The passwords you entered do not match.";Localization.patch="Patch";Localization.per_page="Per page:";Localization.pin_item="Pin Item";Localization.pin_item="Pin Item";Localization.point_of_interest="Point of Interest";Localization.post_a_comment="Post a Comment";Localization.posted="Posted";Localization.posted_by="Posted by";Localization.preview="Preview";Localization.previous="Previous";Localization.previous_screen="Previous Screenshot";Localization.primary_only="Primary Only";Localization.primary_only="Primary Only";Localization.privacy_options="Privacy Options";Localization.profile_privacy_info="By default your Zybez character profile will be freely viewable by the public. Using the form below, you can toggle on or off privacy options to hide information about your character. Note: These privacy options will not be applied to members of your guild.";Localization.provide_search_criteria="Click here to provide additional criteria for your search.";Localization.quest_drops="Quest Drops";Localization.quest_level="Quest Level";Localization.race="";Localization.race="";Localization.rank="";Localization.rated_by_users="(by %1 users)";Localization.rating="Rating";Localization.refine_by_name="Refine by name";Localization.register_to_bookmark="%1Register%2 to %3Create Bookmarks%4";Localization.registered="Registered";Localization.related_info="Related Information";Localization.remove="Remove";Localization.remove_filter="Remove Filter";Localization.remove_from_wishlist="Are you sure you want to remove this from your wish list?";Localization.renownbar_tooltip="";Localization.replies="Replies";Localization.reply="Reply";Localization.req_level="Req Level";Localization.req_level="Req Level";Localization.required_for="Required For";Localization.requires_account="This feature requires a Zybez account. Click here to login or register.";Localization.requires_level="Requires Level";Localization.rewarded_from="Rewarded From";Localization.rewards="Rewards";Localization.save="Save";Localization.save_char_options="Save Character Options";Localization.save_guild_options="Save Guild Options";Localization.script_detected="Script Detected, Edit Rejected";Localization.search_filter_idea="Do you have an idea for a search filter?";Localization.secondary_class="Secondary Class";Localization.see_spell_level="Place your mouse over a numbered button to see this spell at that level.";Localization.select_all="Select All";Localization.select_avatar="Select a New Avatar";Localization.select_char_from_list="Select a character from the list below to access the character manager.%1To see your character on Zybez, download the %2Curse Client";Localization.select_location_type="Select the type of location, and enter a name for it using the form below.";Localization.select_manage_guild="Select the guild you would like to manage from the list below";Localization.server="Server";Localization.set_includes="Set Includes";Localization.shop_cost="Item Shop Cost";Localization.shot_note="Note: It may take up to 24 hours for your screenshot to be approved by a moderator.";Localization.show_comment="Show Comment";Localization.size_colon="Size:";Localization.skill="";Localization.skill_req="Skill Req";Localization.slot="Slot";Localization.small="Small";Localization.source="Source";Localization.spend_renown_points="Spend %1 points above to access the rewards below";Localization.starting_item="Starting Item";Localization.starting_npc="Starting NPC";Localization.starts_quest="Starts Quest";Localization.starts_quests="Starts Quests";Localization.starts_quests="Starts Quests";Localization.starts_with="Starts With";Localization.stats_summary="Stats Summary";Localization.strike="Strike";Localization.sub_class="Sub Class";Localization.sub_level="Sub Level";Localization.subject="Subject";Localization.submit="Submit";Localization.submit_build="Submit Build";Localization.submitted_by_colon="Submitted by:";Localization.system_message="System Message";Localization.TEXT_ARMOR_DESC="";Localization.TEXT_ARMOR_PENETRATION_DESC="";Localization.TEXT_BALLISTICSKILL_DESC="";Localization.TEXT_BALLISTICSKILL_DESC_INCREASED_CHANCE="";Localization.TEXT_BONUS_BLOCK_DESC="";Localization.TEXT_BONUS_DESC="";Localization.TEXT_BONUS_DISRUPT_DESC="";Localization.TEXT_BONUS_EVADE_DESC="";Localization.TEXT_BONUS_PARRY_DESC="";Localization.TEXT_CORPOREALRESIST_DESC="";Localization.TEXT_CRIT_BONUS_DESC="";Localization.TEXT_DAMAGE_CRIT_PERCENT_DESC="";Localization.TEXT_ELEMENTALRESIST_DESC="";Localization.text_entered_no_match="The text you entered does not match the text in the image.";Localization.TEXT_HEAL_CRIT_PERCENT_DESC="";Localization.TEXT_HEALING_BONUS_DESC="";Localization.TEXT_INITIATIVE_DESC="";Localization.TEXT_INTELLIGENCE_DESC="";Localization.TEXT_INTELLIGENCE_DESC_INCREASED_CHANCE="";Localization.TEXT_MAIN_HAND_DESC="";Localization.TEXT_MELEE_ARMORE_PENETRATION_DESC="";Localization.TEXT_MELEE_WEAPON_DPS_DESC="";Localization.TEXT_OFF_HAND_DESC="";Localization.TEXT_RANGED_WEAPON_DPS_DESC="";Localization.TEXT_SPELL_BONUS_DESC="";Localization.TEXT_SPIRITRESIST_DESC="";Localization.TEXT_STRENGTH_DESC="";Localization.TEXT_STRENGTH_DESC_INCREASED_CHANCE="";Localization.TEXT_TOUGHNESS_DESC="";Localization.TEXT_WEAPONSKILL_DESC="";Localization.TEXT_WILLPOWER_DESC="";Localization.TEXT_WILLPOWER_DESC_INCREASED_CHANCE="";Localization.TEXT_WOUNDS_DESC="";Localization.these_core_abilities="These Core Abilities are part of this mastery. Each point spent increases their power.";Localization.this_can_also_be_found="This %1 can also be found in %2";Localization.this_entity1="This item";Localization.this_entity2="This npc";Localization.this_entity3="This zone";Localization.this_entity4="This quest";Localization.this_entity5="This object";Localization.this_entity6="This spell";Localization.this_entity7="This item set";Localization.this_entity8="This faction";Localization.this_item_has="This item has an";Localization.this_npc_has="This npc has an";Localization.time_day="%1 day ago";Localization.time_day_hour="%1 day %2 hr ago";Localization.time_days="%1 days ago";Localization.time_days_hour="%1 days %2 hr ago";Localization.time_full="%1/%2/%3 at %4";Localization.time_hour="%1 hr ago";Localization.time_hour_minute="%1 hr %2 min ago";Localization.time_last_minute="in the last minute";Localization.time_minute="%1 min ago";Localization.tip="Tip";Localization.title="";Localization.to_edit_this_map="To %1edit this map%2, click the Edit Map button, then click the desired point on the map.";Localization.to_retreive_search="To easily retrieve a search you frequently perform, simply click the Bookmark this %1Search%2 button after filtering results.";Localization.to_retrieve_search="Click here to retrieve your saved searches";Localization.tooltip_ap_regen="Your rate of regenerating action points.<BR>AP Regeneration: +%1 / sec";Localization.tooltips="Tooltips";Localization.tooltips="Tooltips";Localization.total="Total";Localization.tp="TP";Localization.type="Type";Localization.type_colon="Type: %1";Localization.type_to_update="Start typing the name of what you\'re searching for, and the results will update instantly.";Localization.unpin_item="Unpin Item";Localization.unpin_item="Unpin Item";Localization.url="URL";Localization.use_form_set_avatar="Using this form, you can set an avatar to appear anywhere you post a comment.";Localization.use_forum_update_profile="Using this form, you can create or update the profile that appears on your user page.";Localization.use_previous_curse="Use your previous Curse.com account information.";Localization.user="User";Localization.user="User";Localization.view="View";Localization.view_character="View Your Character";Localization.view_original_image="View Original Image";Localization.view_your_guild="View Your Guild";Localization.weapon_skills="";Localization.welcome="Welcome";Localization.welcome_message="Welcome to Zybez";Localization.were_found=" were found.";Localization.wishlist_max="You have already saved the maximum number(%1) of items to your wishlist.";Localization.wishlists="Wishlists";Localization.with_romdb_account="With a Zybez account you can save searches as Bookmarks for later retrieval.";Localization.worn_by="Worn By";Localization.xp="XP";Localization.xpbar_tooltip="";Localization.you_may_choose="You may choose one of the items below";Localization.you_will_gain="You will Gain";Localization.you_will_gain="You will Gain";Localization.you_will_lose="You will Lose";Localization.you_will_lose="You will Lose";Localization.your_avatar="Your Avatar";Localization.your_comment_posted="Your comment has been posted.";Localization.your_profile="Your Profile";Localization.your_results="your results";var cg_currentLanguage='en';Curse.Lookup.initialize=function(){var _=Curse.Lookup;_.blog_type={};_.blog_type["4"]="Guest Articles";_.blog_type["2"]="Runescape General";_.blog_type["1"]="Runescape News";_.blog_type["3"]="Zybez Community";_.class_id={};_.class_id["7"]="Assassin";_.class_id["11"]="Chanter";_.class_id["4"]="Cleric";_.class_id["10"]="Elementalist";_.class_id["5"]="Fighter";_.class_id["6"]="Knight";_.class_id["3"]="Mage";_.class_id["12"]="Priest";_.class_id["8"]="Ranger";_.class_id["2"]="Scout";_.class_id["1"]="Warrior";_.class_id["9"]="Wizard";_.client_item_skill_sub_id={};_.client_item_skill_sub_id["herb"]="1";_.client_item_skill_sub_id["bow(s)"]="10";_.client_item_skill_sub_id["thrown"]="11";_.client_item_skill_sub_id["net"]="12";_.client_item_skill_sub_id["rod"]="13";_.client_item_skill_sub_id["harpoon"]="14";_.client_item_skill_sub_id["cage"]="15";_.client_item_skill_sub_id["other"]="16";_.client_item_skill_sub_id["leather"]="17";_.client_item_skill_sub_id["jewelry"]="18";_.client_item_skill_sub_id["glass"]="19";_.client_item_skill_sub_id["potion"]="2";_.client_item_skill_sub_id["battlestaff"]="20";_.client_item_skill_sub_id["regular"]="21";_.client_item_skill_sub_id["ancient"]="22";_.client_item_skill_sub_id["vegetable"]="23";_.client_item_skill_sub_id["flower"]="24";_.client_item_skill_sub_id["bush"]="25";_.client_item_skill_sub_id["tree"]="26";_.client_item_skill_sub_id["fruit"]="27";_.client_item_skill_sub_id["door"]="28";_.client_item_skill_sub_id["chest"]="29";_.client_item_skill_sub_id["bone"]="3";_.client_item_skill_sub_id["stall"]="30";_.client_item_skill_sub_id["pickpocket"]="31";_.client_item_skill_sub_id["bar"]="32";_.client_item_skill_sub_id["bronze"]="33";_.client_item_skill_sub_id["iron"]="34";_.client_item_skill_sub_id["steel"]="35";_.client_item_skill_sub_id["mithril"]="36";_.client_item_skill_sub_id["adamant"]="37";_.client_item_skill_sub_id["rune"]="38";_.client_item_skill_sub_id["course"]="39";_.client_item_skill_sub_id["remains"]="4";_.client_item_skill_sub_id["obstacle"]="40";_.client_item_skill_sub_id["shortcut"]="41";_.client_item_skill_sub_id["bow(u)"]="42";_.client_item_skill_sub_id["average"]="43";_.client_item_skill_sub_id["expensive"]="44";_.client_item_skill_sub_id["cheap"]="45";_.client_item_skill_sub_id["lunar"]="46";_.client_item_skill_sub_id["tracking"]="47";_.client_item_skill_sub_id["bird_snare"]="48";_.client_item_skill_sub_id["butterfly"]="49";_.client_item_skill_sub_id["general"]="5";_.client_item_skill_sub_id["deadfall"]="50";_.client_item_skill_sub_id["rabbit_snare"]="51";_.client_item_skill_sub_id["box_trap"]="52";_.client_item_skill_sub_id["pitfall"]="53";_.client_item_skill_sub_id["net_trap"]="54";_.client_item_skill_sub_id["falconry"]="55";_.client_item_skill_sub_id["mix"]="56";_.client_item_skill_sub_id["gold"]="57";_.client_item_skill_sub_id["green"]="58";_.client_item_skill_sub_id["crimson"]="59";_.client_item_skill_sub_id["ale"]="6";_.client_item_skill_sub_id["blue"]="60";_.client_item_skill_sub_id["imp"]="61";_.client_item_skill_sub_id["fish"]="7";_.client_item_skill_sub_id["gnome_cuisine"]="8";_.client_item_skill_sub_id["ammo"]="9";_.client_price_type={};_.client_price_type["token"]="1";_.client_price_type["fog token"]="2";_.client_price_type["tickets"]="3";_.client_price_type["sticks"]="4";_.client_price_type["tokkul"]="5";_.client_price_type["poe"]="6";_.client_price_type["gp"]="7";_.client_skill_id={};_.client_skill_id["warrior"]="1";_.client_skill_id["fletching"]="10";_.client_skill_id["fishing"]="11";_.client_skill_id["firemaking"]="12";_.client_skill_id["crafting"]="13";_.client_skill_id["smithing"]="14";_.client_skill_id["mining"]="15";_.client_skill_id["herblore"]="16";_.client_skill_id["agility"]="17";_.client_skill_id["thieving"]="18";_.client_skill_id["slayer"]="19";_.client_skill_id["2"]="2";_.client_skill_id["farming"]="20";_.client_skill_id["runecrafting"]="21";_.client_skill_id["hunter"]="22";_.client_skill_id["construction"]="23";_.client_skill_id["summoning"]="24";_.client_skill_id["3"]="3";_.client_skill_id["4"]="4";_.client_skill_id["ranged"]="5";_.client_skill_id["prayer"]="6";_.client_skill_id["magic"]="7";_.client_skill_id["cooking"]="8";_.client_skill_id["woodcutting"]="9";_.content_team={};_.content_team["2"]="Database Crew";_.content_team["1"]="Maintenance Crew";_.content_team["3"]="Managers";_.content_team_abbr={};_.content_team_abbr["2"]="DC";_.content_team_abbr["1"]="MC";_.content_team_abbr["3"]="VIP";_.content_type={};_.content_type["1"]="Free";_.content_type["2"]="P2P";_.cost_type={};_.cost_type["20"]="Alchemist Points";_.cost_type["10"]="Attacker Points";_.cost_type["15"]="Castle War Tickets";_.cost_type["8"]="Commendation Points";_.cost_type["11"]="Defender Points";_.cost_type["21"]="Enchantment Points";_.cost_type["2"]="Fog Tokens";_.cost_type["7"]="gp";_.cost_type["22"]="Graveyard Points";_.cost_type["12"]="Healer Points";_.cost_type["9"]="Honour Points";_.cost_type["18"]="Implings";_.cost_type["13"]="Investment Credits";_.cost_type["23"]="Pieces of 8";_.cost_type["6"]="Poe";_.cost_type["14"]="Reward Points";_.cost_type["17"]="Stealing Creation Points";_.cost_type["4"]="Sticks";_.cost_type["19"]="Telecinetic Points";_.cost_type["3"]="Tickets";_.cost_type["1"]="Tokens";_.cost_type["5"]="Tokkul";_.cost_type["24"]="Vinesweeper Points";_.cost_type["16"]="Zeal";_.custom_permission={};_.custom_permission["5006"]="Add Permission";_.custom_permission["5001"]="Approve Comments";_.custom_permission["5012"]="Approve Edits";_.custom_permission["5002"]="Approve Locations";_.custom_permission["5003"]="Approve Screenshots";_.custom_permission["5013"]="Approve Submissions";_.custom_permission["5007"]="Approve Vent Users";_.custom_permission["140"]="Clue Scroll DB";_.custom_permission["6002"]="Content Group";_.custom_permission["5004"]="DJ Access";_.custom_permission["144"]="Edit Entry DB";_.custom_permission["5015"]="Edit Templates";_.custom_permission["137"]="Fact DB";_.custom_permission["133"]="Guide DB";_.custom_permission["1"]="Item DB";_.custom_permission["7"]="Item Set DB";_.custom_permission["3"]="Location DB";_.custom_permission["6000"]="Manager Group";_.custom_permission["115"]="News DB";_.custom_permission["2"]="NPC DB";_.custom_permission["143"]="Permissions DB";_.custom_permission["4"]="Quest DB";_.custom_permission["6004"]="Radio Group";_.custom_permission["114"]="Screenshot DB";_.custom_permission["109"]="Shop DB";_.custom_permission["6"]="Skill Calc DB";_.custom_permission["5000"]="Staff Page Access";_.custom_permission["6001"]="Team Leader Group";_.custom_permission["142"]="Ticker DB";_.custom_permission["122"]="Tome DB";_.custom_permission["200"]="User DB";_.custom_permission["6003"]="Ventrilo Group";_.custom_permission["141"]="Video DB";_.custom_permission["5005"]="View Content Progress";_.custom_permission["5008"]="View Corrections";_.custom_permission["5010"]="View Reported Content";_.custom_permission["5009"]="View Staff Activity";_.custom_permission["5011"]="View Todo List";_.default_entity_icon={};_.default_entity_icon["122"]="122000000";_.default_entity_icon["133"]="133000000";_.default_entity_icon["140"]="140000000";_.default_entity_icon["141"]="141000000";_.default_entity_icon["2"]="2000000";_.default_entity_icon["3"]="3000000";_.default_entity_icon["4"]="4000000";_.edit_input_type={};_.edit_input_type["5"]="Checkbox";_.edit_input_type["7"]="Date";_.edit_input_type["3"]="External Table Entry";_.edit_input_type["6"]="Map Location";_.edit_input_type["4"]="Multi-Select";_.edit_input_type["2"]="Select From Lookup";_.edit_input_type["1"]="Text Box";_.entity_label={};_.entity_label["9"]="Character";_.entity_label["140"]="Clue Scroll";_.entity_label["144"]="Field Edit";_.entity_label["133"]="Guide";_.entity_label["10"]="Guild";_.entity_label["1"]="Item";_.entity_label["7"]="Item Set";_.entity_label["7"]="Item Set";_.entity_label["7"]="Item Set";_.entity_label["3"]="Location";_.entity_label["138"]="Mod Action";_.entity_label["115"]="News Item";_.entity_label["2"]="NPC";_.entity_label["5"]="Object";_.entity_label["4"]="Quest";_.entity_label["131"]="Recipe";_.entity_label["132"]="Recipe Task";_.entity_label["6"]="Spell";_.entity_label["142"]="Ticker Entry";_.entity_label["122"]="Tome";_.entity_label["200"]="User";_.entity_label["109"]="Vendor";_.entity_label["141"]="Video";_.entity_label_plural={};_.entity_label_plural["9"]="Characters";_.entity_label_plural["140"]="Clue Scrolls";_.entity_label_plural["144"]="Field Edits";_.entity_label_plural["133"]="Guides";_.entity_label_plural["7"]="Item Sets";_.entity_label_plural["7"]="Item Sets";_.entity_label_plural["1"]="Items";_.entity_label_plural["3"]="Locations";_.entity_label_plural["138"]="Mod Actions";_.entity_label_plural["115"]="News Items";_.entity_label_plural["2"]="NPCs";_.entity_label_plural["5"]="Objects";_.entity_label_plural["4"]="Quests";_.entity_label_plural["132"]="Recipe Tasks";_.entity_label_plural["131"]="Recipes";_.entity_label_plural["114"]="Screenshots";_.entity_label_plural["6"]="Spells";_.entity_label_plural["142"]="Ticker Entries";_.entity_label_plural["122"]="Tomes";_.entity_label_plural["200"]="Users";_.entity_label_plural["109"]="Vendors";_.entity_label_plural["141"]="Videos";_.entity_link={};_.entity_link["133"]="guide.aspx";_.entity_link["10"]="guild.aspx";_.entity_link["1"]="item.aspx";_.entity_link["7"]="itemset.aspx";_.entity_link["3"]="location.aspx";_.entity_link["115"]="newsItem.aspx";_.entity_link["2"]="npc.aspx";_.entity_link["5"]="object.aspx";_.entity_link["9"]="profile.aspx";_.entity_link["4"]="quest.aspx";_.entity_link["131"]="recipe.aspx";_.entity_link["6"]="spell.aspx";_.entity_link["122"]="tome.aspx";_.entity_link["200"]="user.aspx";_.entity_link["141"]="video.aspx";_.equip_type={};_.equip_type["58"]="2-H Axe";_.equip_type["59"]="2-H Hammer";_.equip_type["56"]="2-H Sword";_.equip_type["7"]="Accessory";_.equip_type["64"]="Arrow";_.equip_type["54"]="Axe";_.equip_type["55"]="Bludgeon";_.equip_type["61"]="Bow";_.equip_type["65"]="Bullet";_.equip_type["1"]="Chain";_.equip_type["3"]="Cloth";_.equip_type["62"]="Crossbow";_.equip_type["52"]="Dagger";_.equip_type["63"]="Gun";_.equip_type["2"]="Leather";_.equip_type["0"]="Plate";_.equip_type["66"]="Projectiles";_.equip_type["4"]="Robes";_.equip_type["5"]="Shields";_.equip_type["60"]="Spear";_.equip_type["57"]="Staff";_.equip_type["51"]="Sword";_.equip_type["6"]="Talisman";_.equip_type["50"]="Unarmed";_.equip_type["53"]="Wand";_.filter_result_id={};_.filter_result_id["item_bonus_attack"]=" ";_.filter_result_id["item_dps"]=" ";_.filter_result_id["item_bonus_strength"]=" ";_.filter_result_id["item_bonus_wisdom"]=" ";_.filter_result_id["item_bonus_stamina"]=" ";_.filter_result_id["item_bonus_dexterity"]=" ";_.filter_result_id["item_bonus_intelligence"]=" ";_.filter_result_id["item_bonus_damage"]=" ";_.filter_result_id["item_bonus_magic_attack"]=" ";_.filter_result_id["item_bonus_defense"]=" ";_.filter_result_id["item_bonus_magic_defense"]=" ";_.filter_result_id["item_bonus_durability"]=" ";_.filter_result_id["item_bonus_hp_recovery"]=" ";_.filter_result_id["item_bonus_mp_recovery"]=" ";_.filter_result_id["item_bonus_accuracy_perc"]=" ";_.filter_result_id["item_bonus_dodge_perc"]=" ";_.filter_result_id["item_bonus_damage_perc"]=" ";_.filter_result_id["item_bonus_critical_hit_power_perc"]=" ";_.filter_result_id["item_bonus_magic_crit_rate_perc"]=" ";_.filter_result_id["item_bonus_magic_crit_power_perc"]=" ";_.filter_result_id["item_bonus_block_rate_perc"]=" ";_.filter_result_id["item_bonus_attack_speed_perc"]=" ";_.filter_result_id["item_bonus_move_speed_perc"]=" ";_.filter_result_id["item_bonus_earth_res"]=" ";_.filter_result_id["item_bonus_water_res"]=" ";_.filter_result_id["item_bonus_fire_res"]=" ";_.filter_result_id["item_bonus_wind_res"]=" ";_.filter_result_id["item_bonus_dark_res"]=" ";_.filter_result_id["item_bonus_max_hp"]=" ";_.filter_result_id["item_bonus_max_mp"]=" ";_.filter_result_id["item_bonus_all_res"]=" ";_.filter_result_id["item_bonus_all_stats"]=" ";_.filter_result_id["item_diamond_cost"]=" ";_.filter_result_id["quest_required_agility"]="Agility";_.filter_result_id["quest_reward_agility"]="AgilityXP";_.filter_result_id["quest_required_attack"]="Attack";_.filter_result_id["quest_reward_attack"]="AttackXP";_.filter_result_id["item_buy_price"]="BuyPrice";_.filter_result_id["npc_combat"]="CombatPts";_.filter_result_id["quest_required_construction"]="Construction";_.filter_result_id["quest_reward_construction"]="ConstructionXP";_.filter_result_id["quest_required_cooking"]="Cooking";_.filter_result_id["quest_reward_cooking"]="CookingXP";_.filter_result_id["quest_required_crafting"]="Crafting";_.filter_result_id["quest_reward_crafting"]="CraftingXP";_.filter_result_id["item_bonus_atk_crush"]="CrushAtk";_.filter_result_id["item_bonus_def_crush"]="CrushDef";_.filter_result_id["quest_required_defense"]="Defense";_.filter_result_id["quest_reward_defense"]="DefenseXP";_.filter_result_id["item_bonus_resist_earth"]="EarthResist";_.filter_result_id["quest_required_farming"]="Farming";_.filter_result_id["quest_reward_farming"]="FarmingXP";_.filter_result_id["quest_required_fire_making"]="FireMaking";_.filter_result_id["quest_reward_fire_making"]="FireMakingXP";_.filter_result_id["quest_required_fishing"]="Fishing";_.filter_result_id["quest_reward_fishing"]="FishingXP";_.filter_result_id["quest_required_fletching"]="Fletching";_.filter_result_id["quest_reward_fletching"]="FletchingXP";_.filter_result_id["quest_reward_gold"]="Gold";_.filter_result_id["quest_required_herblore"]="Herblore";_.filter_result_id["quest_reward_herblore"]="HerbloreXP";_.filter_result_id["npc_hit_points"]="HitPoints";_.filter_result_id["item_bonus_hp"]="HP";_.filter_result_id["quest_required_hunter"]="Hunter";_.filter_result_id["quest_reward_hunter"]="HunterXP";_.filter_result_id["quest_required_magic"]="Magic";_.filter_result_id["item_bonus_magical_critical"]="MagicalCritical";_.filter_result_id["item_bonus_atk_magic"]="MagicAtk";_.filter_result_id["item_bonus_def_magic"]="MagicDef";_.filter_result_id["quest_reward_magic"]="MagicXP";_.filter_result_id["npc_max_hit"]="MaxHit";_.filter_result_id["item_market_price_max"]="MaxPrice";_.filter_result_id["quest_required_mining"]="Mining";_.filter_result_id["quest_reward_mining"]="MiningXP";_.filter_result_id["item_market_price_min"]="MinPrice";_.filter_result_id["item_bonus_accuracy"]="PhysAccuracy";_.filter_result_id["quest_required_prayer"]="Prayer";_.filter_result_id["item_bonus_prayer"]="Prayer";_.filter_result_id["quest_reward_prayer"]="PrayerXP";_.filter_result_id["item_extra_price"]="Price";_.filter_result_id["item_price"]="Price";_.filter_result_id["item_bonus_atk_range"]="RangeAtk";_.filter_result_id["quest_required_ranged"]="Ranged";_.filter_result_id["item_bonus_def_range"]="RangeDef";_.filter_result_id["item_bonus_ranged_strength"]="RangedStr";_.filter_result_id["quest_reward_ranged"]="RangedXP";_.filter_result_id["quest_required_rune_crafting"]="RuneCrafting";_.filter_result_id["quest_reward_rune_crafting"]="RuneCraftingXP";_.filter_result_id["item_sell_price"]="SellPrice";_.filter_result_id["item_bonus_atk_slash"]="SlashAtk";_.filter_result_id["item_bonus_def_slash"]="SlashDef";_.filter_result_id["quest_required_slayer"]="Slayer";_.filter_result_id["quest_reward_slayer"]="SlayerXP";_.filter_result_id["quest_required_smithing"]="Smithing";_.filter_result_id["quest_reward_smithing"]="SmithingXP";_.filter_result_id["item_speed"]="Speed";_.filter_result_id["item_bonus_atk_stab"]="StabAtk";_.filter_result_id["item_bonus_def_stab"]="StabDef";_.filter_result_id["item_bonus_strength"]="Strength";_.filter_result_id["item_hit_count"]="StrikeCount";_.filter_result_id["item_bonus_def_summon"]="SummonDef";_.filter_result_id["quest_required_summoning"]="Summoning";_.filter_result_id["quest_reward_summoning"]="SummoningXP";_.filter_result_id["quest_required_thieving"]="Thieving";_.filter_result_id["quest_reward_thieving"]="ThievingXP";_.filter_result_id["item_bonus_resist_water"]="WaterResist";_.filter_result_id["item_weight"]="Weight";_.filter_result_id["item_bonus_resist_air"]="WindResist";_.filter_result_id["quest_required_wood_cutting"]="WoodCutting";_.filter_result_id["quest_reward_wood_cutting"]="WoodCuttingXP";_.filter_yes_no={};_.filter_yes_no["0"]="No";_.filter_yes_no["1"]="Yes";_.guide_category_id={};_.guide_category_id["3"]="Cities";_.guide_category_id["10"]="Dungeon Maps";_.guide_category_id["4"]="Guilds";_.guide_category_id["5"]="Minigames";_.guide_category_id["9"]="Mining Maps";_.guide_category_id["8"]="Misc";_.guide_category_id["2"]="Skills";_.guide_create_category_id={};_.guide_create_category_id["100"]="Blogs";_.guide_create_category_id["3"]="Cities";_.guide_create_category_id["4"]="Guilds";_.guide_create_category_id["5"]="Minigames";_.guide_create_category_id["9"]="Mining Maps";_.guide_create_category_id["8"]="Misc";_.guide_create_category_id["2"]="Skills";_.item_category_id={};_.item_category_id["2"]="Armor";_.item_category_id["5"]="Materials";_.item_category_id["4"]="Misc";_.item_category_id["6"]="Potions & Food";_.item_category_id["3"]="Quest Items";_.item_category_id["1"]="Weapons";_.item_rarity={};_.item_rarity["1"]="Common";_.item_rarity["0"]="Junk";_.item_rarity["3"]="Legendary";_.item_rarity["2"]="Rare";_.item_rarity["4"]="Unique";_.item_skill_sub_id={};_.item_skill_sub_id["0"]="";_.item_skill_sub_id["37"]="Adamant";_.item_skill_sub_id["6"]="Ale";_.item_skill_sub_id["9"]="Ammo";_.item_skill_sub_id["22"]="Ancient";_.item_skill_sub_id["43"]="Average";_.item_skill_sub_id["32"]="Bar";_.item_skill_sub_id["20"]="Battlestaff";_.item_skill_sub_id["48"]="Bird snare";_.item_skill_sub_id["60"]="Blue";_.item_skill_sub_id["3"]="Bone";_.item_skill_sub_id["10"]="Bow(s)";_.item_skill_sub_id["42"]="Bow(u)";_.item_skill_sub_id["52"]="Box trap";_.item_skill_sub_id["33"]="Bronze";_.item_skill_sub_id["25"]="Bush";_.item_skill_sub_id["49"]="Butterfly";_.item_skill_sub_id["15"]="Cage";_.item_skill_sub_id["45"]="Cheap";_.item_skill_sub_id["29"]="Chest";_.item_skill_sub_id["39"]="Course";_.item_skill_sub_id["59"]="Crimson";_.item_skill_sub_id["50"]="Deadfall";_.item_skill_sub_id["28"]="Door";_.item_skill_sub_id["44"]="Expensive";_.item_skill_sub_id["55"]="Falconry";_.item_skill_sub_id["7"]="Fish";_.item_skill_sub_id["24"]="Flower";_.item_skill_sub_id["27"]="Fruit";_.item_skill_sub_id["5"]="General";_.item_skill_sub_id["19"]="Glass";_.item_skill_sub_id["8"]="Gnome Cuisine";_.item_skill_sub_id["57"]="Gold";_.item_skill_sub_id["58"]="Green";_.item_skill_sub_id["14"]="Harpoon";_.item_skill_sub_id["61"]="Imp";_.item_skill_sub_id["34"]="Iron";_.item_skill_sub_id["18"]="Jewelry";_.item_skill_sub_id["17"]="Leather";_.item_skill_sub_id["46"]="Lunar";_.item_skill_sub_id["36"]="Mithril";_.item_skill_sub_id["56"]="Mix";_.item_skill_sub_id["12"]="Net";_.item_skill_sub_id["54"]="Net trap";_.item_skill_sub_id["40"]="Obstacle";_.item_skill_sub_id["16"]="Other";_.item_skill_sub_id["31"]="Pickpocket";_.item_skill_sub_id["53"]="Pitfall";_.item_skill_sub_id["2"]="Potion";_.item_skill_sub_id["51"]="Rabbit snare";_.item_skill_sub_id["21"]="Regular";_.item_skill_sub_id["4"]="Remains";_.item_skill_sub_id["13"]="Rod";_.item_skill_sub_id["38"]="Rune";_.item_skill_sub_id["41"]="Shortcut";_.item_skill_sub_id["30"]="Stall";_.item_skill_sub_id["35"]="Steel";_.item_skill_sub_id["11"]="Thrown";_.item_skill_sub_id["47"]="Tracking";_.item_skill_sub_id["26"]="Tree";_.item_skill_sub_id["23"]="Vegetable";_.item_slot={};_.item_slot["6"]="Arrows";_.item_slot["11"]="Cape";_.item_slot["3"]="Chest";_.item_slot["8"]="Feet";_.item_slot["9"]="Hands";_.item_slot["1"]="Head";_.item_slot["7"]="Legs";_.item_slot["2"]="Neck";_.item_slot["10"]="Ring";_.item_slot["5"]="Shield";_.item_slot["4"]="Weapon";_.item_source_id={};_.item_source_id["6"]="Construction";_.item_source_id["4"]="Cooking";_.item_source_id["5"]="Crafting";_.item_source_id["1"]="Drop";_.item_source_id["12"]="Farming";_.item_source_id["11"]="Fishing";_.item_source_id["10"]="Fletching";_.item_source_id["7"]="Herblore";_.item_source_id["8"]="Mining";_.item_source_id["3"]="Quest";_.item_source_id["14"]="Runecrafting";_.item_source_id["9"]="Smithing";_.item_source_id["15"]="Thieving";_.item_source_id["2"]="Vendor";_.item_source_id["13"]="Woodcutting";_.item_type_0={};_.item_type_0["1"]="Axe";_.item_type_0["3"]="Dagger";_.item_type_0["2"]="Hammer";_.item_type_0["6"]="Projectiles";_.item_type_0["5"]="Ranged Weapon";_.item_type_0["4"]="Staff";_.item_type_0["0"]="Sword";_.item_type_0_0={};_.item_type_0_0["0"]="1-Handed";_.item_type_0_0["1"]="2-Handed";_.item_type_0_1={};_.item_type_0_1["0"]="1-Handed";_.item_type_0_1["1"]="2-Handed";_.item_type_0_2={};_.item_type_0_2["0"]="1-Handed";_.item_type_0_2["1"]="2-Handed";_.item_type_0_4={};_.item_type_0_4["0"]="1-Handed";_.item_type_0_4["1"]="2-Handed";_.item_type_0_5={};_.item_type_0_5["2"]="Arrows";_.item_type_0_5["0"]="Bow";_.item_type_0_5["1"]="Crossbow";_.item_type_1={};_.item_type_1["4"]="Accessories";_.item_type_1["1"]="Chain";_.item_type_1["3"]="Cloth";_.item_type_1["2"]="Leather";_.item_type_1["5"]="Off-hand";_.item_type_1["7"]="Ornaments";_.item_type_1["0"]="Plate";_.item_type_1["6"]="Talisman";_.item_type_1_0={};_.item_type_1_0["2"]="Belt";_.item_type_1_0["6"]="Cape";_.item_type_1_0["5"]="Feet";_.item_type_1_0["4"]="Hands";_.item_type_1_0["0"]="Head";_.item_type_1_0["3"]="Lower Body";_.item_type_1_0["7"]="Shoulder";_.item_type_1_0["1"]="Upper Body";_.item_type_1_1={};_.item_type_1_1["2"]="Belt";_.item_type_1_1["6"]="Cape";_.item_type_1_1["5"]="Feet";_.item_type_1_1["4"]="Hands";_.item_type_1_1["0"]="Head";_.item_type_1_1["3"]="Lower Body";_.item_type_1_1["7"]="Shoulder";_.item_type_1_1["1"]="Upper Body";_.item_type_1_2={};_.item_type_1_2["2"]="Belt";_.item_type_1_2["6"]="Cape";_.item_type_1_2["5"]="Feet";_.item_type_1_2["4"]="Hands";_.item_type_1_2["0"]="Head";_.item_type_1_2["3"]="Lower Body";_.item_type_1_2["7"]="Shoulder";_.item_type_1_2["1"]="Upper Body";_.item_type_1_3={};_.item_type_1_3["2"]="Belt";_.item_type_1_3["6"]="Cape";_.item_type_1_3["5"]="Feet";_.item_type_1_3["4"]="Hands";_.item_type_1_3["0"]="Head";_.item_type_1_3["3"]="Lower Body";_.item_type_1_3["7"]="Shoulder";_.item_type_1_3["1"]="Upper Body";_.item_type_1_4={};_.item_type_1_4["0"]="Earrings";_.item_type_1_4["2"]="Necklace";_.item_type_1_4["1"]="Ring";_.item_type_1_5={};_.item_type_1_5["0"]="Shield";_.item_type_1_5["1"]="Talisman";_.item_type_2={};_.item_type_2["1"]="Desserts";_.item_type_2["0"]="Foods";_.item_type_2["2"]="Potions";_.item_type_3={};_.item_type_3["2"]="Herbs";_.item_type_3["0"]="Ores";_.item_type_3["4"]="Production Rune";_.item_type_3["3"]="Raw Materials";_.item_type_3["1"]="Wood";_.item_type_4={};_.item_type_4["4"]="Alchemy";_.item_type_4["2"]="Armor Crafting";_.item_type_4["0"]="Blacksmithing";_.item_type_4["1"]="Carpentry";_.item_type_4["5"]="Cooking";_.item_type_4["3"]="Stitching";_.item_type_5={};_.item_type_5["0"]="Jewels";_.item_type_5["2"]="Power Stones";_.item_type_5["1"]="Runes";_.item_type_8={};_.item_type_8["1"]="Furnitures";_.item_type_8["0"]="House Contracts";_.item_type_8["2"]="Knowledge Books";_.item_type_id={};_.item_type_id["7"]="Adamantite";_.item_type_id["3"]="Bronze";_.item_type_id["9"]="Dragon";_.item_type_id["4"]="Iron";_.item_type_id["6"]="Mithril";_.item_type_id["8"]="Rune";_.item_type_id["5"]="Steel";_.item_weapon_type={};_.item_weapon_type["3"]="Magic";_.item_weapon_type["1"]="Melee";_.item_weapon_type["2"]="Ranged";_.location_category_id={};_.location_category_id["2"]="Dungeon";_.location_category_id["1"]="Zone";_.location_type={};_.location_type["1"]="Free";_.location_type["2"]="Members Only";_.lookup_order={};_.lookup_order["marker_type"]="1,2,3,4,5,6,7,8";_.marker_allow_notes={};_.marker_allow_notes["4"]="";_.marker_allow_notes["5"]="";_.marker_allow_notes["6"]="";_.marker_allow_notes["1"]="";_.marker_allow_notes["2"]="";_.marker_allow_notes["3"]="";_.marker_icon={};_.marker_icon["1.1"]="1";_.marker_icon["2.1"]="1";_.marker_icon["3.1"]="1";_.marker_icon["4.1"]="agility_training";_.marker_icon["4.2"]="altar";_.marker_icon["8.1"]="amulet_shop";_.marker_icon["4.3"]="anvil";_.marker_icon["4.4"]="apothecary";_.marker_icon["8.2"]="archery_shop";_.marker_icon["8.3"]="axe_shop";_.marker_icon["8.4"]="bank";_.marker_icon["4.5"]="brewery";_.marker_icon["8.5"]="candle_shop";_.marker_icon["8.6"]="chainmail_shop";_.marker_icon["8.7"]="clothes_shop";_.marker_icon["4.6"]="combat_training";_.marker_icon["7.1"]="cookery_shop";_.marker_icon["4.7"]="cooking_range";_.marker_icon["7.2"]="crafting_shop";_.marker_icon["4.8"]="dairy_churn";_.marker_icon["4.9"]="estate_agent";_.marker_icon["7.3"]="farming_shop";_.marker_icon["4.10"]="farming_spot";_.marker_icon["7.4"]="fishing_shop";_.marker_icon["5.1"]="fishing_spot";_.marker_icon["8.8"]="food_shop";_.marker_icon["8.9"]="fur_trader";_.marker_icon["4.12"]="furnace";_.marker_icon["8.10"]="gem_shop";_.marker_icon["8.11"]="general_store";_.marker_icon["8.12"]="grand_exchange";_.marker_icon["4.13"]="guide";_.marker_icon["4.14"]="hair_dresser";_.marker_icon["8.13"]="helmet_shop";_.marker_icon["7.5"]="herbalist";_.marker_icon["7.6"]="hunter_store";_.marker_icon["4.15"]="hunter_training";_.marker_icon["8.14"]="jewelery";_.marker_icon["8.15"]="kebab_seller";_.marker_icon["4.16"]="loom";_.marker_icon["8.16"]="mace_shop";_.marker_icon["7.7"]="magic_shop";_.marker_icon["4.17"]="makeover_mage";_.marker_icon["4.18"]="mini_obelisk";_.marker_icon["7.8"]="mining_shop";_.marker_icon["5.2"]="mining_site";_.marker_icon["8.17"]="pet_shop";_.marker_icon["8.18"]="platebody_shop";_.marker_icon["4.19"]="potters_wheel";_.marker_icon["8.19"]="pub_or_bar";_.marker_icon["5.3"]="rare_trees";_.marker_icon["5.4"]="sandpit";_.marker_icon["4.21"]="sawmill";_.marker_icon["8.20"]="scimitar_shop";_.marker_icon["8.21"]="shield_shop";_.marker_icon["8.22"]="silk_trader";_.marker_icon["8.23"]="silver_shop";_.marker_icon["4.22"]="slayer_master";_.marker_icon["8.24"]="spice_shop";_.marker_icon["4.23"]="spinning_wheel";_.marker_icon["8.25"]="staff_shop";_.marker_icon["4.24"]="summoning_obelisk";_.marker_icon["7.9"]="summoning_store";_.marker_icon["8.26"]="sword_shop";_.marker_icon["4.25"]="tannery";_.marker_icon["4.26"]="transport";_.marker_icon["7.10"]="vegetable_store";_.marker_icon["5.5"]="water_source";_.marker_icon["4.28"]="windmill";_.marker_icon["4.29"]="woodcutting_stump";_.marker_subtype_1={};_.marker_subtype_1["1"]="Shop NPC";_.marker_subtype_2={};_.marker_subtype_2["1"]="Item Locations";_.marker_subtype_3={};_.marker_subtype_3["1"]="Start Locations";_.marker_subtype_4={};_.marker_subtype_4["1"]="Agility Training";_.marker_subtype_4["2"]="Altar";_.marker_subtype_4["3"]="Anvil";_.marker_subtype_4["4"]="Apothecary";_.marker_subtype_4["5"]="Brewery";_.marker_subtype_4["6"]="Combat Training";_.marker_subtype_4["7"]="Cooking Range";_.marker_subtype_4["8"]="Dairy Churn";_.marker_subtype_4["9"]="Estate Agent";_.marker_subtype_4["10"]="Farming Patch";_.marker_subtype_4["11"]="Fired Up Beacon";_.marker_subtype_4["12"]="Furnace";_.marker_subtype_4["13"]="Guide";_.marker_subtype_4["14"]="Hairdresser";_.marker_subtype_4["15"]="Hunter Training";_.marker_subtype_4["16"]="Loom";_.marker_subtype_4["17"]="Makeover Mage";_.marker_subtype_4["18"]="Mini Obelisk";_.marker_subtype_4["19"]="Pottery Wheel";_.marker_subtype_4["20"]="Resting Spot";_.marker_subtype_4["21"]="Sawmill";_.marker_subtype_4["22"]="Slayer Master";_.marker_subtype_4["23"]="Spinning Wheel";_.marker_subtype_4["24"]="Summoning Obelisk";_.marker_subtype_4["25"]="Tannery";_.marker_subtype_4["26"]="Transportation";_.marker_subtype_4["27"]="Vambrace Exchange";_.marker_subtype_4["28"]="Windmill";_.marker_subtype_4["29"]="Woodcutting Stump";_.marker_subtype_5={};_.marker_subtype_5["1"]="Fishing Spot";_.marker_subtype_5["2"]="Mining Site";_.marker_subtype_5["3"]="Rare Trees";_.marker_subtype_5["4"]="Sandpit";_.marker_subtype_5["5"]="Water Source";_.marker_subtype_7={};_.marker_subtype_7["1"]="Cookery Shop";_.marker_subtype_7["2"]="Crafting Shop";_.marker_subtype_7["3"]="Farming Shop";_.marker_subtype_7["4"]="Fishing Shop";_.marker_subtype_7["5"]="Herbalist";_.marker_subtype_7["6"]="Hunter Store";_.marker_subtype_7["7"]="Magic Shop";_.marker_subtype_7["8"]="Mining Shop";_.marker_subtype_7["9"]="Summoning Store";_.marker_subtype_7["10"]="Vegetable Store";_.marker_subtype_8={};_.marker_subtype_8["1"]="Amulet Shop";_.marker_subtype_8["2"]="Archery Shop";_.marker_subtype_8["3"]="Axe Shop";_.marker_subtype_8["4"]="Bank";_.marker_subtype_8["5"]="Candle Shop";_.marker_subtype_8["6"]="Chainmail Shop";_.marker_subtype_8["7"]="Clothes Shop";_.marker_subtype_8["8"]="Food Shop";_.marker_subtype_8["9"]="Fur Trader";_.marker_subtype_8["10"]="Gem Shop";_.marker_subtype_8["11"]="General Store";_.marker_subtype_8["12"]="Grand Exchange";_.marker_subtype_8["13"]="Helmet Shop";_.marker_subtype_8["14"]="Jewellery Shop";_.marker_subtype_8["15"]="Kebab Seller";_.marker_subtype_8["16"]="Mace Shop";_.marker_subtype_8["17"]="Pet Shop";_.marker_subtype_8["18"]="Plate Store";_.marker_subtype_8["19"]="Pub / Bar";_.marker_subtype_8["20"]="Scimitar Shop";_.marker_subtype_8["21"]="Shield Shop";_.marker_subtype_8["22"]="Silk Trader";_.marker_subtype_8["23"]="Silver Shop";_.marker_subtype_8["24"]="Spice Shop";_.marker_subtype_8["25"]="Staff Shop";_.marker_subtype_8["26"]="Sword Shop";_.marker_subtype_8["27"]="Tools for Games";_.marker_type={};_.marker_type["4"]="Facilities";_.marker_type["2"]="Items";_.marker_type["1"]="NPCs";_.marker_type["3"]="Quests";_.marker_type["5"]="Resources";_.marker_type["7"]="Skill Shops";_.marker_type["8"]="Vendors";_.mod_action_entity={};_.mod_action_entity["137"]="Game Fact";_.mod_action_entity["133"]="Guide";_.mod_action_entity["1"]="Item";_.mod_action_entity["3"]="Location";_.mod_action_entity["2"]="NPC";_.mod_action_entity["4"]="Quest";_.mod_action_entity["131"]="Recipe";_.mod_action_entity["6"]="Skill Info";_.mod_action_type={};_.mod_action_type["2"]="Add Entity";_.mod_action_type["5"]="Added Todo";_.mod_action_type["10"]="Approve Comment";_.mod_action_type["6"]="Approve Edit";_.mod_action_type["7"]="Approve Entity";_.mod_action_type["4"]="Approve Marker";_.mod_action_type["3"]="Approve Screenshot";_.mod_action_type["14"]="Delete Comment";_.mod_action_type["8"]="Delete Entity";_.mod_action_type["13"]="Delete Screenshot";_.mod_action_type["1"]="Edit Entity";_.mod_action_type["11"]="Unreport Comment";_.mod_action_type["12"]="Unreport Screenshot";_.mod_action_type["9"]="Upload Image";_.moderator_role={};_.moderator_role["1"]="Team Leader";_.moderator_role["2"]="VIP";_.modifier_id={};_.modifier_id["511960"]="Absorption I";_.modifier_id["511961"]="Absorption II";_.modifier_id["511962"]="Absorption III";_.modifier_id["511963"]="Absorption IV";_.modifier_id["511968"]="Absorption IX";_.modifier_id["511964"]="Absorption V";_.modifier_id["511965"]="Absorption VI";_.modifier_id["511966"]="Absorption VII";_.modifier_id["511967"]="Absorption VIII";_.modifier_id["511969"]="Absorption X";_.modifier_id["510141"]="Accuracy II";_.modifier_id["510142"]="Accuracy III";_.modifier_id["510143"]="Accuracy IV";_.modifier_id["510148"]="Accuracy IX";_.modifier_id["510144"]="Accuracy V";_.modifier_id["510145"]="Accuracy VI";_.modifier_id["510146"]="Accuracy VII";_.modifier_id["510147"]="Accuracy VIII";_.modifier_id["510149"]="Accuracy X";_.modifier_id["510150"]="Accuracy XI";_.modifier_id["510151"]="Accuracy XII";_.modifier_id["511188"]="Authority IX";_.modifier_id["511187"]="Authority VIII";_.modifier_id["511189"]="Authority X";_.modifier_id["511220"]="Barbarian I";_.modifier_id["511221"]="Barbarian II";_.modifier_id["511222"]="Barbarian III";_.modifier_id["511223"]="Barbarian IV";_.modifier_id["511228"]="Barbarian IX";_.modifier_id["511224"]="Barbarian V";_.modifier_id["511225"]="Barbarian VI";_.modifier_id["511226"]="Barbarian VII";_.modifier_id["511227"]="Barbarian VIII";_.modifier_id["511229"]="Barbarian X";_.modifier_id["511860"]="Blood I";_.modifier_id["511861"]="Blood II";_.modifier_id["511862"]="Blood III";_.modifier_id["511863"]="Blood IV";_.modifier_id["511868"]="Blood IX";_.modifier_id["511864"]="Blood V";_.modifier_id["511865"]="Blood VI";_.modifier_id["511866"]="Blood VII";_.modifier_id["511867"]="Blood VIII";_.modifier_id["511869"]="Blood X";_.modifier_id["511920"]="Breeze I";_.modifier_id["511921"]="Breeze II";_.modifier_id["511922"]="Breeze III";_.modifier_id["511923"]="Breeze IV";_.modifier_id["511928"]="Breeze IX";_.modifier_id["511924"]="Breeze V";_.modifier_id["511925"]="Breeze VI";_.modifier_id["511926"]="Breeze VII";_.modifier_id["511927"]="Breeze VIII";_.modifier_id["511929"]="Breeze X";_.modifier_id["511840"]="Candle I";_.modifier_id["511841"]="Candle II";_.modifier_id["511842"]="Candle III";_.modifier_id["511843"]="Candle IV";_.modifier_id["511848"]="Candle IX";_.modifier_id["511844"]="Candle V";_.modifier_id["511845"]="Candle VI";_.modifier_id["511846"]="Candle VII";_.modifier_id["511847"]="Candle VIII";_.modifier_id["511849"]="Candle X";_.modifier_id["511200"]="Cougar I";_.modifier_id["511201"]="Cougar II";_.modifier_id["511202"]="Cougar III";_.modifier_id["511203"]="Cougar IV";_.modifier_id["511208"]="Cougar IX";_.modifier_id["511204"]="Cougar V";_.modifier_id["511205"]="Cougar VI";_.modifier_id["511206"]="Cougar VII";_.modifier_id["511207"]="Cougar VIII";_.modifier_id["511209"]="Cougar X";_.modifier_id["511380"]="Crystal I";_.modifier_id["511381"]="Crystal II";_.modifier_id["511382"]="Crystal III";_.modifier_id["511383"]="Crystal IV";_.modifier_id["511388"]="Crystal IX";_.modifier_id["511384"]="Crystal V";_.modifier_id["511385"]="Crystal VI";_.modifier_id["511386"]="Crystal VII";_.modifier_id["511387"]="Crystal VIII";_.modifier_id["511389"]="Crystal X";_.modifier_id["511900"]="Darkness I";_.modifier_id["511901"]="Darkness II";_.modifier_id["511902"]="Darkness III";_.modifier_id["511903"]="Darkness IV";_.modifier_id["511908"]="Darkness IX";_.modifier_id["511904"]="Darkness V";_.modifier_id["511905"]="Darkness VI";_.modifier_id["511906"]="Darkness VII";_.modifier_id["511907"]="Darkness VIII";_.modifier_id["511909"]="Darkness X";_.modifier_id["511240"]="Defender I";_.modifier_id["511241"]="Defender II";_.modifier_id["511242"]="Defender III";_.modifier_id["511243"]="Defender IV";_.modifier_id["511248"]="Defender IX";_.modifier_id["511244"]="Defender V";_.modifier_id["511245"]="Defender VI";_.modifier_id["511246"]="Defender VII";_.modifier_id["511247"]="Defender VIII";_.modifier_id["511249"]="Defender X";_.modifier_id["510200"]="Dodge I";_.modifier_id["510201"]="Dodge II";_.modifier_id["510202"]="Dodge III";_.modifier_id["510203"]="Dodge IV";_.modifier_id["510208"]="Dodge IX";_.modifier_id["510204"]="Dodge V";_.modifier_id["510205"]="Dodge VI";_.modifier_id["510206"]="Dodge VII";_.modifier_id["510207"]="Dodge VIII";_.modifier_id["510209"]="Dodge X";_.modifier_id["510210"]="Dodge XI";_.modifier_id["510211"]="Dodge XII";_.modifier_id["511660"]="Dominion I";_.modifier_id["511661"]="Dominion II";_.modifier_id["511662"]="Dominion III";_.modifier_id["511663"]="Dominion IV";_.modifier_id["511668"]="Dominion IX";_.modifier_id["511664"]="Dominion V";_.modifier_id["511665"]="Dominion VI";_.modifier_id["511666"]="Dominion VII";_.modifier_id["511667"]="Dominion VIII";_.modifier_id["511669"]="Dominion X";_.modifier_id["511420"]="Elder I";_.modifier_id["511421"]="Elder II";_.modifier_id["511422"]="Elder III";_.modifier_id["511423"]="Elder IV";_.modifier_id["511428"]="Elder IX";_.modifier_id["511424"]="Elder V";_.modifier_id["511425"]="Elder VI";_.modifier_id["511426"]="Elder VII";_.modifier_id["511427"]="Elder VIII";_.modifier_id["511429"]="Elder X";_.modifier_id["511440"]="Expansion I";_.modifier_id["511441"]="Expansion II";_.modifier_id["511442"]="Expansion III";_.modifier_id["511443"]="Expansion IV";_.modifier_id["511448"]="Expansion IX";_.modifier_id["511444"]="Expansion V";_.modifier_id["511445"]="Expansion VI";_.modifier_id["511446"]="Expansion VII";_.modifier_id["511447"]="Expansion VIII";_.modifier_id["511449"]="Expansion X";_.modifier_id["511600"]="Ferocity I";_.modifier_id["511601"]="Ferocity II";_.modifier_id["511602"]="Ferocity III";_.modifier_id["511603"]="Ferocity IV";_.modifier_id["511608"]="Ferocity IX";_.modifier_id["511604"]="Ferocity V";_.modifier_id["511605"]="Ferocity VI";_.modifier_id["511606"]="Ferocity VII";_.modifier_id["511607"]="Ferocity VIII";_.modifier_id["511609"]="Ferocity X";_.modifier_id["511300"]="Fox I";_.modifier_id["511301"]="Fox II";_.modifier_id["511302"]="Fox III";_.modifier_id["511303"]="Fox IV";_.modifier_id["511308"]="Fox IX";_.modifier_id["511304"]="Fox V";_.modifier_id["511305"]="Fox VI";_.modifier_id["511306"]="Fox VII";_.modifier_id["511307"]="Fox VIII";_.modifier_id["511309"]="Fox X";_.modifier_id["511820"]="Glacier I";_.modifier_id["511821"]="Glacier II";_.modifier_id["511822"]="Glacier III";_.modifier_id["511823"]="Glacier IV";_.modifier_id["511828"]="Glacier IX";_.modifier_id["511824"]="Glacier V";_.modifier_id["511825"]="Glacier VI";_.modifier_id["511826"]="Glacier VII";_.modifier_id["511827"]="Glacier VIII";_.modifier_id["511829"]="Glacier X";_.modifier_id["511480"]="Grace I";_.modifier_id["511481"]="Grace II";_.modifier_id["511482"]="Grace III";_.modifier_id["511483"]="Grace IV";_.modifier_id["511488"]="Grace IX";_.modifier_id["511484"]="Grace V";_.modifier_id["511485"]="Grace VI";_.modifier_id["511486"]="Grace VII";_.modifier_id["511487"]="Grace VIII";_.modifier_id["511489"]="Grace X";_.modifier_id["511940"]="Grimoire I";_.modifier_id["511941"]="Grimoire II";_.modifier_id["511942"]="Grimoire III";_.modifier_id["511943"]="Grimoire IV";_.modifier_id["511948"]="Grimoire IX";_.modifier_id["511944"]="Grimoire V";_.modifier_id["511945"]="Grimoire VI";_.modifier_id["511946"]="Grimoire VII";_.modifier_id["511947"]="Grimoire VIII";_.modifier_id["511949"]="Grimoire X";_.modifier_id["511680"]="Gunpowder I";_.modifier_id["511681"]="Gunpowder II";_.modifier_id["511682"]="Gunpowder III";_.modifier_id["511683"]="Gunpowder IV";_.modifier_id["511688"]="Gunpowder IX";_.modifier_id["511684"]="Gunpowder V";_.modifier_id["511685"]="Gunpowder VI";_.modifier_id["511686"]="Gunpowder VII";_.modifier_id["511687"]="Gunpowder VIII";_.modifier_id["511689"]="Gunpowder X";_.modifier_id["511580"]="Hammer I";_.modifier_id["511581"]="Hammer II";_.modifier_id["511582"]="Hammer III";_.modifier_id["511583"]="Hammer IV";_.modifier_id["511588"]="Hammer IX";_.modifier_id["511584"]="Hammer V";_.modifier_id["511585"]="Hammer VI";_.modifier_id["511586"]="Hammer VII";_.modifier_id["511587"]="Hammer VIII";_.modifier_id["511589"]="Hammer X";_.modifier_id["511740"]="Lumen I";_.modifier_id["511741"]="Lumen II";_.modifier_id["511742"]="Lumen III";_.modifier_id["511743"]="Lumen IV";_.modifier_id["511748"]="Lumen IX";_.modifier_id["511744"]="Lumen V";_.modifier_id["511745"]="Lumen VI";_.modifier_id["511746"]="Lumen VII";_.modifier_id["511747"]="Lumen VIII";_.modifier_id["511749"]="Lumen X";_.modifier_id["511520"]="Massif I";_.modifier_id["511521"]="Massif II";_.modifier_id["511522"]="Massif III";_.modifier_id["511523"]="Massif IV";_.modifier_id["511528"]="Massif IX";_.modifier_id["511524"]="Massif V";_.modifier_id["511525"]="Massif VI";_.modifier_id["511526"]="Massif VII";_.modifier_id["511527"]="Massif VIII";_.modifier_id["511529"]="Massif X";_.modifier_id["511760"]="Mercy I";_.modifier_id["511761"]="Mercy II";_.modifier_id["511762"]="Mercy III";_.modifier_id["511763"]="Mercy IV";_.modifier_id["511768"]="Mercy IX";_.modifier_id["511764"]="Mercy V";_.modifier_id["511765"]="Mercy VI";_.modifier_id["511766"]="Mercy VII";_.modifier_id["511767"]="Mercy VIII";_.modifier_id["511769"]="Mercy X";_.modifier_id["511880"]="Meteor I";_.modifier_id["511881"]="Meteor II";_.modifier_id["511882"]="Meteor III";_.modifier_id["511883"]="Meteor IV";_.modifier_id["511888"]="Meteor IX";_.modifier_id["511884"]="Meteor V";_.modifier_id["511885"]="Meteor VI";_.modifier_id["511886"]="Meteor VII";_.modifier_id["511887"]="Meteor VIII";_.modifier_id["511889"]="Meteor X";_.modifier_id["511360"]="Monk I";_.modifier_id["511361"]="Monk II";_.modifier_id["511362"]="Monk III";_.modifier_id["511363"]="Monk IV";_.modifier_id["511368"]="Monk IX";_.modifier_id["511364"]="Monk V";_.modifier_id["511365"]="Monk VI";_.modifier_id["511366"]="Monk VII";_.modifier_id["511367"]="Monk VIII";_.modifier_id["511369"]="Monk X";_.modifier_id["511620"]="Moral I";_.modifier_id["511621"]="Moral II";_.modifier_id["511622"]="Moral III";_.modifier_id["511623"]="Moral IV";_.modifier_id["511628"]="Moral IX";_.modifier_id["511624"]="Moral V";_.modifier_id["511625"]="Moral VI";_.modifier_id["511626"]="Moral VII";_.modifier_id["511627"]="Moral VIII";_.modifier_id["511629"]="Moral X";_.modifier_id["511260"]="Paladin I";_.modifier_id["511261"]="Paladin II";_.modifier_id["511262"]="Paladin III";_.modifier_id["511263"]="Paladin IV";_.modifier_id["511268"]="Paladin IX";_.modifier_id["511264"]="Paladin V";_.modifier_id["511265"]="Paladin VI";_.modifier_id["511266"]="Paladin VII";_.modifier_id["511267"]="Paladin VIII";_.modifier_id["511269"]="Paladin X";_.modifier_id["511720"]="Paradigm I";_.modifier_id["511721"]="Paradigm II";_.modifier_id["511722"]="Paradigm III";_.modifier_id["511723"]="Paradigm IV";_.modifier_id["511728"]="Paradigm IX";_.modifier_id["511724"]="Paradigm V";_.modifier_id["511725"]="Paradigm VI";_.modifier_id["511726"]="Paradigm VII";_.modifier_id["511727"]="Paradigm VIII";_.modifier_id["511729"]="Paradigm X";_.modifier_id["511640"]="Rage I";_.modifier_id["511641"]="Rage II";_.modifier_id["511642"]="Rage III";_.modifier_id["511643"]="Rage IV";_.modifier_id["511648"]="Rage IX";_.modifier_id["511644"]="Rage V";_.modifier_id["511645"]="Rage VI";_.modifier_id["511646"]="Rage VII";_.modifier_id["511647"]="Rage VIII";_.modifier_id["511649"]="Rage X";_.modifier_id["511400"]="Rigor I";_.modifier_id["511401"]="Rigor II";_.modifier_id["511402"]="Rigor III";_.modifier_id["511403"]="Rigor IV";_.modifier_id["511408"]="Rigor IX";_.modifier_id["511404"]="Rigor V";_.modifier_id["511405"]="Rigor VI";_.modifier_id["511406"]="Rigor VII";_.modifier_id["511407"]="Rigor VIII";_.modifier_id["511409"]="Rigor X";_.modifier_id["511340"]="Sage I";_.modifier_id["511341"]="Sage II";_.modifier_id["511342"]="Sage III";_.modifier_id["511343"]="Sage IV";_.modifier_id["511348"]="Sage IX";_.modifier_id["511344"]="Sage V";_.modifier_id["511345"]="Sage VI";_.modifier_id["511346"]="Sage VII";_.modifier_id["511347"]="Sage VIII";_.modifier_id["511349"]="Sage X";_.modifier_id["511280"]="Savage I";_.modifier_id["511281"]="Savage II";_.modifier_id["511282"]="Savage III";_.modifier_id["511283"]="Savage IV";_.modifier_id["511288"]="Savage IX";_.modifier_id["511284"]="Savage V";_.modifier_id["511285"]="Savage VI";_.modifier_id["511286"]="Savage VII";_.modifier_id["511287"]="Savage VIII";_.modifier_id["511289"]="Savage X";_.modifier_id["511320"]="Savant I";_.modifier_id["511321"]="Savant II";_.modifier_id["511322"]="Savant III";_.modifier_id["511323"]="Savant IV";_.modifier_id["511328"]="Savant IX";_.modifier_id["511324"]="Savant V";_.modifier_id["511325"]="Savant VI";_.modifier_id["511326"]="Savant VII";_.modifier_id["511327"]="Savant VIII";_.modifier_id["511329"]="Savant X";_.modifier_id["511500"]="Scholar I";_.modifier_id["511501"]="Scholar II";_.modifier_id["511502"]="Scholar III";_.modifier_id["511503"]="Scholar IV";_.modifier_id["511508"]="Scholar IX";_.modifier_id["511505"]="Scholar VI";_.modifier_id["511506"]="Scholar VII";_.modifier_id["511507"]="Scholar VIII";_.modifier_id["511509"]="Scholar X";_.modifier_id["511504"]="ScholarV";_.modifier_id["511460"]="Shield I";_.modifier_id["511461"]="Shield II";_.modifier_id["511462"]="Shield III";_.modifier_id["511463"]="Shield IV";_.modifier_id["511468"]="Shield IX";_.modifier_id["511464"]="Shield V";_.modifier_id["511465"]="Shield VI";_.modifier_id["511466"]="Shield VII";_.modifier_id["511467"]="Shield VIII";_.modifier_id["511469"]="Shield X";_.modifier_id["511560"]="Source I";_.modifier_id["511561"]="Source II";_.modifier_id["511562"]="Source III";_.modifier_id["511563"]="Source IV";_.modifier_id["511568"]="Source IX";_.modifier_id["511564"]="Source V";_.modifier_id["511565"]="Source VI";_.modifier_id["511566"]="Source VII";_.modifier_id["511567"]="Source VIII";_.modifier_id["511569"]="Source X";_.modifier_id["511780"]="Spring I";_.modifier_id["511781"]="Spring II";_.modifier_id["511782"]="Spring III";_.modifier_id["511783"]="Spring IV";_.modifier_id["511788"]="Spring IX";_.modifier_id["511784"]="Spring V";_.modifier_id["511785"]="Spring VI";_.modifier_id["511786"]="Spring VII";_.modifier_id["511787"]="Spring VIII";_.modifier_id["511789"]="Spring X";_.modifier_id["511980"]="Stream I";_.modifier_id["511981"]="Stream II";_.modifier_id["511982"]="Stream III";_.modifier_id["511983"]="Stream IV";_.modifier_id["511988"]="Stream IX";_.modifier_id["511984"]="Stream V";_.modifier_id["511985"]="Stream VI";_.modifier_id["511986"]="Stream VII";_.modifier_id["511987"]="Stream VIII";_.modifier_id["511989"]="Stream X";_.modifier_id["511540"]="Thunder I";_.modifier_id["511541"]="Thunder II";_.modifier_id["511542"]="Thunder III";_.modifier_id["511543"]="Thunder IV";_.modifier_id["511548"]="Thunder IX";_.modifier_id["511544"]="Thunder V";_.modifier_id["511545"]="Thunder VI";_.modifier_id["511546"]="Thunder VII";_.modifier_id["511547"]="Thunder VIII";_.modifier_id["511549"]="Thunder X";_.modifier_id["511800"]="Vulcano I";_.modifier_id["511801"]="Vulcano II";_.modifier_id["511802"]="Vulcano III";_.modifier_id["511803"]="Vulcano IV";_.modifier_id["511808"]="Vulcano IX";_.modifier_id["511804"]="Vulcano V";_.modifier_id["511805"]="Vulcano VI";_.modifier_id["511806"]="Vulcano VII";_.modifier_id["511807"]="Vulcano VIII";_.modifier_id["511809"]="Vulcano X";_.modifier_id["511700"]="Wrath I";_.modifier_id["511701"]="Wrath II";_.modifier_id["511702"]="Wrath III";_.modifier_id["511703"]="Wrath IV";_.modifier_id["511708"]="Wrath IX";_.modifier_id["511704"]="Wrath V";_.modifier_id["511705"]="Wrath VI";_.modifier_id["511706"]="Wrath VII";_.modifier_id["511707"]="Wrath VIII";_.modifier_id["511709"]="Wrath X";_.modifier_text={};_.modifier_text["Absorption I"]="";_.modifier_text["Absorption II"]="";_.modifier_text["Absorption III"]="";_.modifier_text["Absorption IV"]="";_.modifier_text["Absorption V"]="";_.modifier_text["Absorption VI"]="";_.modifier_text["Absorption VII"]="";_.modifier_text["Absorption VIII"]="";_.modifier_text["Absorption IX"]="";_.modifier_text["Absorption X"]="";_.modifier_text["Stream I"]="";_.modifier_text["Stream II"]="";_.modifier_text["Stream III"]="";_.modifier_text["Stream IV"]="";_.modifier_text["Stream V"]="";_.modifier_text["Stream VI"]="";_.modifier_text["Stream VII"]="";_.modifier_text["Stream VIII"]="";_.modifier_text["Stream IX"]="";_.modifier_text["Stream X"]="";_.modifier_text["Rebel I"]="";_.modifier_text["Rebel II"]="";_.modifier_text["Rebel III"]="";_.modifier_text["Rebel IV"]="";_.modifier_text["Rebel V"]="";_.modifier_text["Rebel VI"]="";_.modifier_text["Rebel VII"]="";_.modifier_text["Rebel VIII"]="";_.modifier_text["Rebel IX"]="";_.modifier_text["Rebel X"]="";_.modifier_text["Hero I"]="";_.modifier_text["Hero II"]="";_.modifier_text["Hero III"]="";_.modifier_text["Hero IV"]="";_.modifier_text["Hero V"]="";_.modifier_text["Hero VI"]="";_.modifier_text["Hero VII"]="";_.modifier_text["Hero VIII"]="";_.modifier_text["Hero IX"]="";_.modifier_text["Hero X"]="";_.modifier_text["Ability I"]="<tr><td><span class=\'modifier-text\'>+1 All attributes</span></td><th><span class=\'r0\'>Ability I</span></th></tr>";_.modifier_text["Element I"]="<tr><td><span class=\'modifier-text\'>+1 All resistances</span></td><th><span class=\'r0\'>Element I</span></th></tr>";_.modifier_text["Ability VIII"]="<tr><td><span class=\'modifier-text\'>+10 All attributes</span></td><th><span class=\'r0\'>Ability VIII</span></th></tr>";_.modifier_text["Element VIII"]="<tr><td><span class=\'modifier-text\'>+10 All resistances</span></td><th><span class=\'r0\'>Element VIII</span></th></tr>";_.modifier_text["Dark IV"]="<tr><td><span class=\'modifier-text\'>+10 Dark resistance</span></td><th><span class=\'r0\'>Dark IV</span></th></tr>";_.modifier_text["Soul I"]="<tr><td><span class=\'modifier-text\'>+10 Defense</span></td><th><span class=\'r0\'>Soul I</span></th></tr><tr><td><span class=\'modifier-text\'>+3 Wisdom</span></td></tr>";_.modifier_text["Agility III"]="<tr><td><span class=\'modifier-text\'>+10 Dexterity</span></td><th><span class=\'r0\'>Agility III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Magical defense</span></td></tr>";_.modifier_text["Dexterity V"]="<tr><td><span class=\'modifier-text\'>+10 Dexterity</span></td><th><span class=\'r0\'>Dexterity V</span></th></tr>";_.modifier_text["Fang III"]="<tr><td><span class=\'modifier-text\'>+10 Dexterity</span></td><th><span class=\'r0\'>Fang III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Physical Attack</span></td></tr>";_.modifier_text["Fox IV"]="<tr><td><span class=\'modifier-text\'>+10 Dexterity</span></td><th><span class=\'r0\'>Fox IV</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Intelligence</span></td></tr>";_.modifier_text["Observance III"]="<tr><td><span class=\'modifier-text\'>+10 Dexterity</span></td><th><span class=\'r0\'>Observance III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Maximum HP</span></td></tr>";_.modifier_text["Precision IV"]="<tr><td><span class=\'modifier-text\'>+10 Dexterity</span></td><th><span class=\'r0\'>Precision IV</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Wisdom</span></td></tr>";_.modifier_text["Reflex III"]="<tr><td><span class=\'modifier-text\'>+10 Dexterity</span></td><th><span class=\'r0\'>Reflex III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Defense</span></td></tr>";_.modifier_text["Speed III"]="<tr><td><span class=\'modifier-text\'>+10 Dexterity</span></td><th><span class=\'r0\'>Speed III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Maximum MP</span></td></tr>";_.modifier_text["Earth IV"]="<tr><td><span class=\'modifier-text\'>+10 Earth resistance</span></td><th><span class=\'r0\'>Earth IV</span></th></tr>";_.modifier_text["Flame IV"]="<tr><td><span class=\'modifier-text\'>+10 Fire resistance</span></td><th><span class=\'r0\'>Flame IV</span></th></tr>";_.modifier_text["Elder IV"]="<tr><td><span class=\'modifier-text\'>+10 Intelligence</span></td><th><span class=\'r0\'>Elder IV</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Stamina</span></td></tr>";_.modifier_text["Expansion III"]="<tr><td><span class=\'modifier-text\'>+10 Intelligence</span></td><th><span class=\'r0\'>Expansion III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Physical Attack</span></td></tr>";_.modifier_text["Genius IV"]="<tr><td><span class=\'modifier-text\'>+10 Intelligence</span></td><th><span class=\'r0\'>Genius IV</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Wisdom</span></td></tr>";_.modifier_text["Grace III"]="<tr><td><span class=\'modifier-text\'>+10 Intelligence</span></td><th><span class=\'r0\'>Grace III</span></th></tr>";_.modifier_text["Grimoire III"]="<tr><td><span class=\'modifier-text\'>+10 Intelligence</span></td><th><span class=\'r0\'>Grimoire III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Maximum MP</span></td></tr>";_.modifier_text["Illumine III"]="<tr><td><span class=\'modifier-text\'>+10 Intelligence</span></td><th><span class=\'r0\'>Illumine III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Magical Attack</span></td></tr>";_.modifier_text["Intellect V"]="<tr><td><span class=\'modifier-text\'>+10 Intelligence</span></td><th><span class=\'r0\'>Intellect V</span></th></tr>";_.modifier_text["Mind III"]="<tr><td><span class=\'modifier-text\'>+10 Intelligence</span></td><th><span class=\'r0\'>Mind III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Magical defense</span></td></tr>";_.modifier_text["Scholar III"]="<tr><td><span class=\'modifier-text\'>+10 Intelligence</span></td><th><span class=\'r0\'>Scholar III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Maximum HP</span></td></tr>";_.modifier_text["Shield III"]="<tr><td><span class=\'modifier-text\'>+10 Intelligence</span></td><th><span class=\'r0\'>Shield III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Defense</span></td></tr>";_.modifier_text["Light IV"]="<tr><td><span class=\'modifier-text\'>+10 Light resistance</span></td><th><span class=\'r0\'>Light IV</span></th></tr>";_.modifier_text["Darkness I"]="<tr><td><span class=\'modifier-text\'>+10 Magical Attack</span></td><th><span class=\'r0\'>Darkness I</span></th></tr><tr><td><span class=\'modifier-text\'>+3 Wisdom</span></td></tr>";_.modifier_text["Meteor I"]="<tr><td><span class=\'modifier-text\'>+10 Magical Attack</span></td><th><span class=\'r0\'>Meteor I</span></th></tr>";_.modifier_text["Warlock I"]="<tr><td><span class=\'modifier-text\'>+10 Magical Attack</span></td><th><span class=\'r0\'>Warlock I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Magical defense</span></td></tr>";_.modifier_text["Resilience II"]="<tr><td><span class=\'modifier-text\'>+10 Magical defense</span></td><th><span class=\'r0\'>Resilience II</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Defense</span></td></tr>";_.modifier_text["Candle I"]="<tr><td><span class=\'modifier-text\'>+10 Maximum HP</span></td><th><span class=\'r0\'>Candle I</span></th></tr>";_.modifier_text["Glacier I"]="<tr><td><span class=\'modifier-text\'>+10 Maximum HP</span></td><th><span class=\'r0\'>Glacier I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Magical Attack</span></td></tr>";_.modifier_text["Life I"]="<tr><td><span class=\'modifier-text\'>+10 Maximum HP</span></td><th><span class=\'r0\'>Life I</span></th></tr>";_.modifier_text["Lumen I"]="<tr><td><span class=\'modifier-text\'>+10 Maximum HP</span></td><th><span class=\'r0\'>Lumen I</span></th></tr><tr><td><span class=\'modifier-text\'>+3 Wisdom</span></td></tr>";_.modifier_text["Paradigm I"]="<tr><td><span class=\'modifier-text\'>+10 Maximum HP</span></td><th><span class=\'r0\'>Paradigm I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Maximum MP</span></td></tr>";_.modifier_text["Spring I"]="<tr><td><span class=\'modifier-text\'>+10 Maximum HP</span></td><th><span class=\'r0\'>Spring I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Magical defense</span></td></tr>";_.modifier_text["Stone I"]="<tr><td><span class=\'modifier-text\'>+10 Maximum HP</span></td><th><span class=\'r0\'>Stone I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Defense</span></td></tr>";_.modifier_text["Vulcano I"]="<tr><td><span class=\'modifier-text\'>+10 Maximum HP</span></td><th><span class=\'r0\'>Vulcano I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Physical Attack</span></td></tr>";_.modifier_text["Crystal I"]="<tr><td><span class=\'modifier-text\'>+10 Maximum MP</span></td><th><span class=\'r0\'>Crystal I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Defense</span></td></tr>";_.modifier_text["Gunpowder I"]="<tr><td><span class=\'modifier-text\'>+10 Maximum MP</span></td><th><span class=\'r0\'>Gunpowder I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Physical Attack</span></td></tr>";_.modifier_text["Magic I"]="<tr><td><span class=\'modifier-text\'>+10 Maximum MP</span></td><th><span class=\'r0\'>Magic I</span></th></tr>";_.modifier_text["Mercy I"]="<tr><td><span class=\'modifier-text\'>+10 Maximum MP</span></td><th><span class=\'r0\'>Mercy I</span></th></tr>";_.modifier_text["Sage I"]="<tr><td><span class=\'modifier-text\'>+10 Maximum MP</span></td><th><span class=\'r0\'>Sage I</span></th></tr><tr><td><span class=\'modifier-text\'>+3 Wisdom</span></td></tr>";_.modifier_text["Savant I"]="<tr><td><span class=\'modifier-text\'>+10 Maximum MP</span></td><th><span class=\'r0\'>Savant I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Magical defense</span></td></tr>";_.modifier_text["Wrath I"]="<tr><td><span class=\'modifier-text\'>+10 Maximum MP</span></td><th><span class=\'r0\'>Wrath I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Magical Attack</span></td></tr>";_.modifier_text["Blood I"]="<tr><td><span class=\'modifier-text\'>+10 Physical Attack</span></td><th><span class=\'r0\'>Blood I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Magical Attack</span></td></tr>";_.modifier_text["Keen I"]="<tr><td><span class=\'modifier-text\'>+10 Physical Attack</span></td><th><span class=\'r0\'>Keen I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Defense</span></td></tr>";_.modifier_text["Authority III"]="<tr><td><span class=\'modifier-text\'>+10 Stamina</span></td><th><span class=\'r0\'>Authority III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Defense</span></td></tr>";_.modifier_text["Endurance III"]="<tr><td><span class=\'modifier-text\'>+10 Stamina</span></td><th><span class=\'r0\'>Endurance III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Maximum HP</span></td></tr>";_.modifier_text["Force IV"]="<tr><td><span class=\'modifier-text\'>+10 Stamina</span></td><th><span class=\'r0\'>Force IV</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Dexterity</span></td></tr>";_.modifier_text["Massif III"]="<tr><td><span class=\'modifier-text\'>+10 Stamina</span></td><th><span class=\'r0\'>Massif III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Maximum MP</span></td></tr>";_.modifier_text["Monk IV"]="<tr><td><span class=\'modifier-text\'>+10 Stamina</span></td><th><span class=\'r0\'>Monk IV</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Wisdom</span></td></tr>";_.modifier_text["Oppression III"]="<tr><td><span class=\'modifier-text\'>+10 Stamina</span></td><th><span class=\'r0\'>Oppression III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Physical Attack</span></td></tr>";_.modifier_text["Rigor III"]="<tr><td><span class=\'modifier-text\'>+10 Stamina</span></td><th><span class=\'r0\'>Rigor III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Magical defense</span></td></tr>";_.modifier_text["Source III"]="<tr><td><span class=\'modifier-text\'>+10 Stamina</span></td><th><span class=\'r0\'>Source III</span></th></tr>";_.modifier_text["Stamina V"]="<tr><td><span class=\'modifier-text\'>+10 Stamina</span></td><th><span class=\'r0\'>Stamina V</span></th></tr>";_.modifier_text["Thunder III"]="<tr><td><span class=\'modifier-text\'>+10 Stamina</span></td><th><span class=\'r0\'>Thunder III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Magical Attack</span></td></tr>";_.modifier_text["Barbarian III"]="<tr><td><span class=\'modifier-text\'>+10 Strength</span></td><th><span class=\'r0\'>Barbarian III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Physical Attack</span></td></tr>";_.modifier_text["Cougar IV"]="<tr><td><span class=\'modifier-text\'>+10 Strength</span></td><th><span class=\'r0\'>Cougar IV</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Dexterity</span></td></tr>";_.modifier_text["Defender III"]="<tr><td><span class=\'modifier-text\'>+10 Strength</span></td><th><span class=\'r0\'>Defender III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Defense</span></td></tr>";_.modifier_text["Dominion III"]="<tr><td><span class=\'modifier-text\'>+10 Strength</span></td><th><span class=\'r0\'>Dominion III</span></th></tr>";_.modifier_text["Ferocity III"]="<tr><td><span class=\'modifier-text\'>+10 Strength</span></td><th><span class=\'r0\'>Ferocity III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Maximum MP</span></td></tr>";_.modifier_text["Hammer III"]="<tr><td><span class=\'modifier-text\'>+10 Strength</span></td><th><span class=\'r0\'>Hammer III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Maximum HP</span></td></tr>";_.modifier_text["Moral IV"]="<tr><td><span class=\'modifier-text\'>+10 Strength</span></td><th><span class=\'r0\'>Moral IV</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Intelligence</span></td></tr>";_.modifier_text["Paladin III"]="<tr><td><span class=\'modifier-text\'>+10 Strength</span></td><th><span class=\'r0\'>Paladin III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Magical defense</span></td></tr>";_.modifier_text["Rage III"]="<tr><td><span class=\'modifier-text\'>+10 Strength</span></td><th><span class=\'r0\'>Rage III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Magical Attack</span></td></tr>";_.modifier_text["Savage IV"]="<tr><td><span class=\'modifier-text\'>+10 Strength</span></td><th><span class=\'r0\'>Savage IV</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Stamina</span></td></tr>";_.modifier_text["Strength V"]="<tr><td><span class=\'modifier-text\'>+10 Strength</span></td><th><span class=\'r0\'>Strength V</span></th></tr>";_.modifier_text["Mist IV"]="<tr><td><span class=\'modifier-text\'>+10 Water resistance</span></td><th><span class=\'r0\'>Mist IV</span></th></tr>";_.modifier_text["Whiff IV"]="<tr><td><span class=\'modifier-text\'>+10 Wind resistance</span></td><th><span class=\'r0\'>Whiff IV</span></th></tr>";_.modifier_text["Breeze III"]="<tr><td><span class=\'modifier-text\'>+10 Wisdom</span></td><th><span class=\'r0\'>Breeze III</span></th></tr>";_.modifier_text["Mystic III"]="<tr><td><span class=\'modifier-text\'>+10 Wisdom</span></td><th><span class=\'r0\'>Mystic III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Magical defense</span></td></tr>";_.modifier_text["Spirit V"]="<tr><td><span class=\'modifier-text\'>+10 Wisdom</span></td><th><span class=\'r0\'>Spirit V</span></th></tr>";_.modifier_text["Soul VII"]="<tr><td><span class=\'modifier-text\'>+100 Defense</span></td><th><span class=\'r0\'>Soul VII</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Wisdom</span></td></tr>";_.modifier_text["Agility IX"]="<tr><td><span class=\'modifier-text\'>+100 Dexterity</span></td><th><span class=\'r0\'>Agility IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Magical defense</span></td></tr>";_.modifier_text["Fang IX"]="<tr><td><span class=\'modifier-text\'>+100 Dexterity</span></td><th><span class=\'r0\'>Fang IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Physical Attack</span></td></tr>";_.modifier_text["Observance IX"]="<tr><td><span class=\'modifier-text\'>+100 Dexterity</span></td><th><span class=\'r0\'>Observance IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Maximum HP</span></td></tr>";_.modifier_text["Reflex IX"]="<tr><td><span class=\'modifier-text\'>+100 Dexterity</span></td><th><span class=\'r0\'>Reflex IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Defense</span></td></tr>";_.modifier_text["Speed IX"]="<tr><td><span class=\'modifier-text\'>+100 Dexterity</span></td><th><span class=\'r0\'>Speed IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Maximum MP</span></td></tr>";_.modifier_text["Expansion IX"]="<tr><td><span class=\'modifier-text\'>+100 Intelligence</span></td><th><span class=\'r0\'>Expansion IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Physical Attack</span></td></tr>";_.modifier_text["Grace IX"]="<tr><td><span class=\'modifier-text\'>+100 Intelligence</span></td><th><span class=\'r0\'>Grace IX</span></th></tr>";_.modifier_text["Grimoire IX"]="<tr><td><span class=\'modifier-text\'>+100 Intelligence</span></td><th><span class=\'r0\'>Grimoire IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Maximum MP</span></td></tr>";_.modifier_text["Illumine IX"]="<tr><td><span class=\'modifier-text\'>+100 Intelligence</span></td><th><span class=\'r0\'>Illumine IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Magical Attack</span></td></tr>";_.modifier_text["Mind IX"]="<tr><td><span class=\'modifier-text\'>+100 Intelligence</span></td><th><span class=\'r0\'>Mind IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Magical defense</span></td></tr>";_.modifier_text["Scholar IX"]="<tr><td><span class=\'modifier-text\'>+100 Intelligence</span></td><th><span class=\'r0\'>Scholar IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Maximum HP</span></td></tr>";_.modifier_text["Shield IX"]="<tr><td><span class=\'modifier-text\'>+100 Intelligence</span></td><th><span class=\'r0\'>Shield IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Defense</span></td></tr>";_.modifier_text["Darkness VII"]="<tr><td><span class=\'modifier-text\'>+100 Magical Attack</span></td><th><span class=\'r0\'>Darkness VII</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Wisdom</span></td></tr>";_.modifier_text["Meteor VII"]="<tr><td><span class=\'modifier-text\'>+100 Magical Attack</span></td><th><span class=\'r0\'>Meteor VII</span></th></tr>";_.modifier_text["Warlock VII"]="<tr><td><span class=\'modifier-text\'>+100 Magical Attack</span></td><th><span class=\'r0\'>Warlock VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Magical defense</span></td></tr>";_.modifier_text["Resilience IX"]="<tr><td><span class=\'modifier-text\'>+100 Magical defense</span></td><th><span class=\'r0\'>Resilience IX</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Defense</span></td></tr>";_.modifier_text["Candle VII"]="<tr><td><span class=\'modifier-text\'>+100 Maximum HP</span></td><th><span class=\'r0\'>Candle VII</span></th></tr>";_.modifier_text["Glacier VII"]="<tr><td><span class=\'modifier-text\'>+100 Maximum HP</span></td><th><span class=\'r0\'>Glacier VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Magical Attack</span></td></tr>";_.modifier_text["Lumen VII"]="<tr><td><span class=\'modifier-text\'>+100 Maximum HP</span></td><th><span class=\'r0\'>Lumen VII</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Wisdom</span></td></tr>";_.modifier_text["Paradigm VII"]="<tr><td><span class=\'modifier-text\'>+100 Maximum HP</span></td><th><span class=\'r0\'>Paradigm VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Maximum MP</span></td></tr>";_.modifier_text["Spring VII"]="<tr><td><span class=\'modifier-text\'>+100 Maximum HP</span></td><th><span class=\'r0\'>Spring VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Magical defense</span></td></tr>";_.modifier_text["Stone VII"]="<tr><td><span class=\'modifier-text\'>+100 Maximum HP</span></td><th><span class=\'r0\'>Stone VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Defense</span></td></tr>";_.modifier_text["Vulcano VII"]="<tr><td><span class=\'modifier-text\'>+100 Maximum HP</span></td><th><span class=\'r0\'>Vulcano VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Physical Attack</span></td></tr>";_.modifier_text["Crystal VII"]="<tr><td><span class=\'modifier-text\'>+100 Maximum MP</span></td><th><span class=\'r0\'>Crystal VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Defense</span></td></tr>";_.modifier_text["Gunpowder VII"]="<tr><td><span class=\'modifier-text\'>+100 Maximum MP</span></td><th><span class=\'r0\'>Gunpowder VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Physical Attack</span></td></tr>";_.modifier_text["Mercy VII"]="<tr><td><span class=\'modifier-text\'>+100 Maximum MP</span></td><th><span class=\'r0\'>Mercy VII</span></th></tr>";_.modifier_text["Sage VII"]="<tr><td><span class=\'modifier-text\'>+100 Maximum MP</span></td><th><span class=\'r0\'>Sage VII</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Wisdom</span></td></tr>";_.modifier_text["Savant VII"]="<tr><td><span class=\'modifier-text\'>+100 Maximum MP</span></td><th><span class=\'r0\'>Savant VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Magical defense</span></td></tr>";_.modifier_text["Wrath VII"]="<tr><td><span class=\'modifier-text\'>+100 Maximum MP</span></td><th><span class=\'r0\'>Wrath VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Magical Attack</span></td></tr>";_.modifier_text["Blood VII"]="<tr><td><span class=\'modifier-text\'>+100 Physical Attack</span></td><th><span class=\'r0\'>Blood VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Magical Attack</span></td></tr>";_.modifier_text["Keen VII"]="<tr><td><span class=\'modifier-text\'>+100 Physical Attack</span></td><th><span class=\'r0\'>Keen VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Defense</span></td></tr>";_.modifier_text["Authority IX"]="<tr><td><span class=\'modifier-text\'>+100 Stamina</span></td><th><span class=\'r0\'>Authority IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Defense</span></td></tr>";_.modifier_text["Endurance IX"]="<tr><td><span class=\'modifier-text\'>+100 Stamina</span></td><th><span class=\'r0\'>Endurance IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Maximum HP</span></td></tr>";_.modifier_text["Massif IX"]="<tr><td><span class=\'modifier-text\'>+100 Stamina</span></td><th><span class=\'r0\'>Massif IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Maximum MP</span></td></tr>";_.modifier_text["Oppression IX"]="<tr><td><span class=\'modifier-text\'>+100 Stamina</span></td><th><span class=\'r0\'>Oppression IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Physical Attack</span></td></tr>";_.modifier_text["Rigor IX"]="<tr><td><span class=\'modifier-text\'>+100 Stamina</span></td><th><span class=\'r0\'>Rigor IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Magical defense</span></td></tr>";_.modifier_text["Source IX"]="<tr><td><span class=\'modifier-text\'>+100 Stamina</span></td><th><span class=\'r0\'>Source IX</span></th></tr>";_.modifier_text["Thunder IX"]="<tr><td><span class=\'modifier-text\'>+100 Stamina</span></td><th><span class=\'r0\'>Thunder IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Magical Attack</span></td></tr>";_.modifier_text["Barbarian IX"]="<tr><td><span class=\'modifier-text\'>+100 Strength</span></td><th><span class=\'r0\'>Barbarian IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Physical Attack</span></td></tr>";_.modifier_text["Defender IX"]="<tr><td><span class=\'modifier-text\'>+100 Strength</span></td><th><span class=\'r0\'>Defender IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Defense</span></td></tr>";_.modifier_text["Dominion IX"]="<tr><td><span class=\'modifier-text\'>+100 Strength</span></td><th><span class=\'r0\'>Dominion IX</span></th></tr>";_.modifier_text["Ferocity IX"]="<tr><td><span class=\'modifier-text\'>+100 Strength</span></td><th><span class=\'r0\'>Ferocity IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Maximum MP</span></td></tr>";_.modifier_text["Hammer IX"]="<tr><td><span class=\'modifier-text\'>+100 Strength</span></td><th><span class=\'r0\'>Hammer IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Maximum HP</span></td></tr>";_.modifier_text["Paladin IX"]="<tr><td><span class=\'modifier-text\'>+100 Strength</span></td><th><span class=\'r0\'>Paladin IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Magical defense</span></td></tr>";_.modifier_text["Rage IX"]="<tr><td><span class=\'modifier-text\'>+100 Strength</span></td><th><span class=\'r0\'>Rage IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Magical Attack</span></td></tr>";_.modifier_text["Breeze IX"]="<tr><td><span class=\'modifier-text\'>+100 Wisdom</span></td><th><span class=\'r0\'>Breeze IX</span></th></tr>";_.modifier_text["Mystic IX"]="<tr><td><span class=\'modifier-text\'>+100 Wisdom</span></td><th><span class=\'r0\'>Mystic IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Magical defense</span></td></tr>";_.modifier_text["Life IX"]="<tr><td><span class=\'modifier-text\'>+114 Maximum HP</span></td><th><span class=\'r0\'>Life IX</span></th></tr>";_.modifier_text["Magic IX"]="<tr><td><span class=\'modifier-text\'>+114 Maximum MP</span></td><th><span class=\'r0\'>Magic IX</span></th></tr>";_.modifier_text["Accuracy IV"]="<tr><td><span class=\'modifier-text\'>+12 % accuracy</span></td><th><span class=\'r0\'>Accuracy IV</span></th></tr>";_.modifier_text["Dodge IV"]="<tr><td><span class=\'modifier-text\'>+12 % dodge rate</span></td><th><span class=\'r0\'>Dodge IV</span></th></tr>";_.modifier_text["Defense IV"]="<tr><td><span class=\'modifier-text\'>+12 Defense</span></td><th><span class=\'r0\'>Defense IV</span></th></tr>";_.modifier_text["Energy IV"]="<tr><td><span class=\'modifier-text\'>+12 Magical Attack</span></td><th><span class=\'r0\'>Energy IV</span></th></tr>";_.modifier_text["Barrier IV"]="<tr><td><span class=\'modifier-text\'>+12 Magical defense</span></td><th><span class=\'r0\'>Barrier IV</span></th></tr>";_.modifier_text["Might IV"]="<tr><td><span class=\'modifier-text\'>+12 Physical Attack</span></td><th><span class=\'r0\'>Might IV</span></th></tr>";_.modifier_text["Ability IX"]="<tr><td><span class=\'modifier-text\'>+13 All attributes</span></td><th><span class=\'r0\'>Ability IX</span></th></tr>";_.modifier_text["Element IX"]="<tr><td><span class=\'modifier-text\'>+13 All resistances</span></td><th><span class=\'r0\'>Element IX</span></th></tr>";_.modifier_text["Dark V"]="<tr><td><span class=\'modifier-text\'>+13 Dark resistance</span></td><th><span class=\'r0\'>Dark V</span></th></tr>";_.modifier_text["Dexterity VI"]="<tr><td><span class=\'modifier-text\'>+13 Dexterity</span></td><th><span class=\'r0\'>Dexterity VI</span></th></tr>";_.modifier_text["Earth V"]="<tr><td><span class=\'modifier-text\'>+13 Earth resistance</span></td><th><span class=\'r0\'>Earth V</span></th></tr>";_.modifier_text["Flame V"]="<tr><td><span class=\'modifier-text\'>+13 Fire resistance</span></td><th><span class=\'r0\'>Flame V</span></th></tr>";_.modifier_text["Intellect VI"]="<tr><td><span class=\'modifier-text\'>+13 Intelligence</span></td><th><span class=\'r0\'>Intellect VI</span></th></tr>";_.modifier_text["Light V"]="<tr><td><span class=\'modifier-text\'>+13 Light resistance</span></td><th><span class=\'r0\'>Light V</span></th></tr>";_.modifier_text["Stamina VI"]="<tr><td><span class=\'modifier-text\'>+13 Stamina</span></td><th><span class=\'r0\'>Stamina VI</span></th></tr>";_.modifier_text["Strength VI"]="<tr><td><span class=\'modifier-text\'>+13 Strength</span></td><th><span class=\'r0\'>Strength VI</span></th></tr>";_.modifier_text["Mist V"]="<tr><td><span class=\'modifier-text\'>+13 Water resistance</span></td><th><span class=\'r0\'>Mist V</span></th></tr>";_.modifier_text["Whiff V"]="<tr><td><span class=\'modifier-text\'>+13 Wind resistance</span></td><th><span class=\'r0\'>Whiff V</span></th></tr>";_.modifier_text["Spirit VI"]="<tr><td><span class=\'modifier-text\'>+13 Wisdom</span></td><th><span class=\'r0\'>Spirit VI</span></th></tr>";_.modifier_text["Life X"]="<tr><td><span class=\'modifier-text\'>+140 Maximum HP</span></td><th><span class=\'r0\'>Life X</span></th></tr>";_.modifier_text["Magic X"]="<tr><td><span class=\'modifier-text\'>+140 Maximum MP</span></td><th><span class=\'r0\'>Magic X</span></th></tr>";_.modifier_text["Accuracy V"]="<tr><td><span class=\'modifier-text\'>+15 % accuracy</span></td><th><span class=\'r0\'>Accuracy V</span></th></tr>";_.modifier_text["Dodge V"]="<tr><td><span class=\'modifier-text\'>+15 % dodge rate</span></td><th><span class=\'r0\'>Dodge V</span></th></tr>";_.modifier_text["Defense V"]="<tr><td><span class=\'modifier-text\'>+15 Defense</span></td><th><span class=\'r0\'>Defense V</span></th></tr>";_.modifier_text["Soul II"]="<tr><td><span class=\'modifier-text\'>+15 Defense</span></td><th><span class=\'r0\'>Soul II</span></th></tr><tr><td><span class=\'modifier-text\'>+5 Wisdom</span></td></tr>";_.modifier_text["Agility IV"]="<tr><td><span class=\'modifier-text\'>+15 Dexterity</span></td><th><span class=\'r0\'>Agility IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Magical defense</span></td></tr>";_.modifier_text["Fang IV"]="<tr><td><span class=\'modifier-text\'>+15 Dexterity</span></td><th><span class=\'r0\'>Fang IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Physical Attack</span></td></tr>";_.modifier_text["Fox V"]="<tr><td><span class=\'modifier-text\'>+15 Dexterity</span></td><th><span class=\'r0\'>Fox V</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Intelligence</span></td></tr>";_.modifier_text["Observance IV"]="<tr><td><span class=\'modifier-text\'>+15 Dexterity</span></td><th><span class=\'r0\'>Observance IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Maximum HP</span></td></tr>";_.modifier_text["Precision V"]="<tr><td><span class=\'modifier-text\'>+15 Dexterity</span></td><th><span class=\'r0\'>Precision V</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Wisdom</span></td></tr>";_.modifier_text["Reflex IV"]="<tr><td><span class=\'modifier-text\'>+15 Dexterity</span></td><th><span class=\'r0\'>Reflex IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Defense</span></td></tr>";_.modifier_text["Speed IV"]="<tr><td><span class=\'modifier-text\'>+15 Dexterity</span></td><th><span class=\'r0\'>Speed IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Maximum MP</span></td></tr>";_.modifier_text["Elder V"]="<tr><td><span class=\'modifier-text\'>+15 Intelligence</span></td><th><span class=\'r0\'>Elder V</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Stamina</span></td></tr>";_.modifier_text["Expansion IV"]="<tr><td><span class=\'modifier-text\'>+15 Intelligence</span></td><th><span class=\'r0\'>Expansion IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Physical Attack</span></td></tr>";_.modifier_text["Genius V"]="<tr><td><span class=\'modifier-text\'>+15 Intelligence</span></td><th><span class=\'r0\'>Genius V</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Wisdom</span></td></tr>";_.modifier_text["Grace IV"]="<tr><td><span class=\'modifier-text\'>+15 Intelligence</span></td><th><span class=\'r0\'>Grace IV</span></th></tr>";_.modifier_text["Grimoire IV"]="<tr><td><span class=\'modifier-text\'>+15 Intelligence</span></td><th><span class=\'r0\'>Grimoire IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Maximum MP</span></td></tr>";_.modifier_text["Illumine IV"]="<tr><td><span class=\'modifier-text\'>+15 Intelligence</span></td><th><span class=\'r0\'>Illumine IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Magical Attack</span></td></tr>";_.modifier_text["Mind IV"]="<tr><td><span class=\'modifier-text\'>+15 Intelligence</span></td><th><span class=\'r0\'>Mind IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Magical defense</span></td></tr>";_.modifier_text["Scholar IV"]="<tr><td><span class=\'modifier-text\'>+15 Intelligence</span></td><th><span class=\'r0\'>Scholar IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Maximum HP</span></td></tr>";_.modifier_text["Shield IV"]="<tr><td><span class=\'modifier-text\'>+15 Intelligence</span></td><th><span class=\'r0\'>Shield IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Defense</span></td></tr>";_.modifier_text["Darkness II"]="<tr><td><span class=\'modifier-text\'>+15 Magical Attack</span></td><th><span class=\'r0\'>Darkness II</span></th></tr><tr><td><span class=\'modifier-text\'>+5 Wisdom</span></td></tr>";_.modifier_text["Energy V"]="<tr><td><span class=\'modifier-text\'>+15 Magical Attack</span></td><th><span class=\'r0\'>Energy V</span></th></tr>";_.modifier_text["Meteor II"]="<tr><td><span class=\'modifier-text\'>+15 Magical Attack</span></td><th><span class=\'r0\'>Meteor II</span></th></tr>";_.modifier_text["Warlock II"]="<tr><td><span class=\'modifier-text\'>+15 Magical Attack</span></td><th><span class=\'r0\'>Warlock II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Magical defense</span></td></tr>";_.modifier_text["Barrier V"]="<tr><td><span class=\'modifier-text\'>+15 Magical defense</span></td><th><span class=\'r0\'>Barrier V</span></th></tr>";_.modifier_text["Resilience III"]="<tr><td><span class=\'modifier-text\'>+15 Magical defense</span></td><th><span class=\'r0\'>Resilience III</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Defense</span></td></tr>";_.modifier_text["Candle II"]="<tr><td><span class=\'modifier-text\'>+15 Maximum HP</span></td><th><span class=\'r0\'>Candle II</span></th></tr>";_.modifier_text["Glacier II"]="<tr><td><span class=\'modifier-text\'>+15 Maximum HP</span></td><th><span class=\'r0\'>Glacier II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Magical Attack</span></td></tr>";_.modifier_text["Lumen II"]="<tr><td><span class=\'modifier-text\'>+15 Maximum HP</span></td><th><span class=\'r0\'>Lumen II</span></th></tr><tr><td><span class=\'modifier-text\'>+5 Wisdom</span></td></tr>";_.modifier_text["Paradigm II"]="<tr><td><span class=\'modifier-text\'>+15 Maximum HP</span></td><th><span class=\'r0\'>Paradigm II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Maximum MP</span></td></tr>";_.modifier_text["Spring II"]="<tr><td><span class=\'modifier-text\'>+15 Maximum HP</span></td><th><span class=\'r0\'>Spring II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Magical defense</span></td></tr>";_.modifier_text["Stone II"]="<tr><td><span class=\'modifier-text\'>+15 Maximum HP</span></td><th><span class=\'r0\'>Stone II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Defense</span></td></tr>";_.modifier_text["Vulcano II"]="<tr><td><span class=\'modifier-text\'>+15 Maximum HP</span></td><th><span class=\'r0\'>Vulcano II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Physical Attack</span></td></tr>";_.modifier_text["Crystal II"]="<tr><td><span class=\'modifier-text\'>+15 Maximum MP</span></td><th><span class=\'r0\'>Crystal II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Defense</span></td></tr>";_.modifier_text["Gunpowder II"]="<tr><td><span class=\'modifier-text\'>+15 Maximum MP</span></td><th><span class=\'r0\'>Gunpowder II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Physical Attack</span></td></tr>";_.modifier_text["Mercy II"]="<tr><td><span class=\'modifier-text\'>+15 Maximum MP</span></td><th><span class=\'r0\'>Mercy II</span></th></tr>";_.modifier_text["Sage II"]="<tr><td><span class=\'modifier-text\'>+15 Maximum MP</span></td><th><span class=\'r0\'>Sage II</span></th></tr><tr><td><span class=\'modifier-text\'>+5 Wisdom</span></td></tr>";_.modifier_text["Savant II"]="<tr><td><span class=\'modifier-text\'>+15 Maximum MP</span></td><th><span class=\'r0\'>Savant II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Magical defense</span></td></tr>";_.modifier_text["Wrath II"]="<tr><td><span class=\'modifier-text\'>+15 Maximum MP</span></td><th><span class=\'r0\'>Wrath II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Magical Attack</span></td></tr>";_.modifier_text["Blood II"]="<tr><td><span class=\'modifier-text\'>+15 Physical Attack</span></td><th><span class=\'r0\'>Blood II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Magical Attack</span></td></tr>";_.modifier_text["Keen II"]="<tr><td><span class=\'modifier-text\'>+15 Physical Attack</span></td><th><span class=\'r0\'>Keen II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Defense</span></td></tr>";_.modifier_text["Might V"]="<tr><td><span class=\'modifier-text\'>+15 Physical Attack</span></td><th><span class=\'r0\'>Might V</span></th></tr>";_.modifier_text["Authority IV"]="<tr><td><span class=\'modifier-text\'>+15 Stamina</span></td><th><span class=\'r0\'>Authority IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Defense</span></td></tr>";_.modifier_text["Endurance IV"]="<tr><td><span class=\'modifier-text\'>+15 Stamina</span></td><th><span class=\'r0\'>Endurance IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Maximum HP</span></td></tr>";_.modifier_text["Force V"]="<tr><td><span class=\'modifier-text\'>+15 Stamina</span></td><th><span class=\'r0\'>Force V</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Dexterity</span></td></tr>";_.modifier_text["Massif IV"]="<tr><td><span class=\'modifier-text\'>+15 Stamina</span></td><th><span class=\'r0\'>Massif IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Maximum MP</span></td></tr>";_.modifier_text["Monk V"]="<tr><td><span class=\'modifier-text\'>+15 Stamina</span></td><th><span class=\'r0\'>Monk V</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Wisdom</span></td></tr>";_.modifier_text["Oppression IV"]="<tr><td><span class=\'modifier-text\'>+15 Stamina</span></td><th><span class=\'r0\'>Oppression IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Physical Attack</span></td></tr>";_.modifier_text["Rigor IV"]="<tr><td><span class=\'modifier-text\'>+15 Stamina</span></td><th><span class=\'r0\'>Rigor IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Magical defense</span></td></tr>";_.modifier_text["Source IV"]="<tr><td><span class=\'modifier-text\'>+15 Stamina</span></td><th><span class=\'r0\'>Source IV</span></th></tr>";_.modifier_text["Thunder IV"]="<tr><td><span class=\'modifier-text\'>+15 Stamina</span></td><th><span class=\'r0\'>Thunder IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Magical Attack</span></td></tr>";_.modifier_text["Barbarian IV"]="<tr><td><span class=\'modifier-text\'>+15 Strength</span></td><th><span class=\'r0\'>Barbarian IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Physical Attack</span></td></tr>";_.modifier_text["Cougar V"]="<tr><td><span class=\'modifier-text\'>+15 Strength</span></td><th><span class=\'r0\'>Cougar V</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Dexterity</span></td></tr>";_.modifier_text["Defender IV"]="<tr><td><span class=\'modifier-text\'>+15 Strength</span></td><th><span class=\'r0\'>Defender IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Defense</span></td></tr>";_.modifier_text["Dominion IV"]="<tr><td><span class=\'modifier-text\'>+15 Strength</span></td><th><span class=\'r0\'>Dominion IV</span></th></tr>";_.modifier_text["Ferocity IV"]="<tr><td><span class=\'modifier-text\'>+15 Strength</span></td><th><span class=\'r0\'>Ferocity IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Maximum MP</span></td></tr>";_.modifier_text["Hammer IV"]="<tr><td><span class=\'modifier-text\'>+15 Strength</span></td><th><span class=\'r0\'>Hammer IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Maximum HP</span></td></tr>";_.modifier_text["Moral V"]="<tr><td><span class=\'modifier-text\'>+15 Strength</span></td><th><span class=\'r0\'>Moral V</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Intelligence</span></td></tr>";_.modifier_text["Paladin IV"]="<tr><td><span class=\'modifier-text\'>+15 Strength</span></td><th><span class=\'r0\'>Paladin IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Magical defense</span></td></tr>";_.modifier_text["Rage IV"]="<tr><td><span class=\'modifier-text\'>+15 Strength</span></td><th><span class=\'r0\'>Rage IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Magical Attack</span></td></tr>";_.modifier_text["Savage V"]="<tr><td><span class=\'modifier-text\'>+15 Strength</span></td><th><span class=\'r0\'>Savage V</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Stamina</span></td></tr>";_.modifier_text["Breeze IV"]="<tr><td><span class=\'modifier-text\'>+15 Wisdom</span></td><th><span class=\'r0\'>Breeze IV</span></th></tr>";_.modifier_text["Mystic IV"]="<tr><td><span class=\'modifier-text\'>+15 Wisdom</span></td><th><span class=\'r0\'>Mystic IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Magical defense</span></td></tr>";_.modifier_text["Soul VIII"]="<tr><td><span class=\'modifier-text\'>+150 Defense</span></td><th><span class=\'r0\'>Soul VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Wisdom</span></td></tr>";_.modifier_text["Agility X"]="<tr><td><span class=\'modifier-text\'>+150 Dexterity</span></td><th><span class=\'r0\'>Agility X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Magical defense</span></td></tr>";_.modifier_text["Fang X"]="<tr><td><span class=\'modifier-text\'>+150 Dexterity</span></td><th><span class=\'r0\'>Fang X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Physical Attack</span></td></tr>";_.modifier_text["Observance X"]="<tr><td><span class=\'modifier-text\'>+150 Dexterity</span></td><th><span class=\'r0\'>Observance X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Maximum HP</span></td></tr>";_.modifier_text["Reflex X"]="<tr><td><span class=\'modifier-text\'>+150 Dexterity</span></td><th><span class=\'r0\'>Reflex X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Defense</span></td></tr>";_.modifier_text["Speed X"]="<tr><td><span class=\'modifier-text\'>+150 Dexterity</span></td><th><span class=\'r0\'>Speed X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Maximum MP</span></td></tr>";_.modifier_text["Expansion X"]="<tr><td><span class=\'modifier-text\'>+150 Intelligence</span></td><th><span class=\'r0\'>Expansion X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Physical Attack</span></td></tr>";_.modifier_text["Grace X"]="<tr><td><span class=\'modifier-text\'>+150 Intelligence</span></td><th><span class=\'r0\'>Grace X</span></th></tr>";_.modifier_text["Grimoire X"]="<tr><td><span class=\'modifier-text\'>+150 Intelligence</span></td><th><span class=\'r0\'>Grimoire X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Maximum MP</span></td></tr>";_.modifier_text["Illumine X"]="<tr><td><span class=\'modifier-text\'>+150 Intelligence</span></td><th><span class=\'r0\'>Illumine X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Magical Attack</span></td></tr>";_.modifier_text["Mind X"]="<tr><td><span class=\'modifier-text\'>+150 Intelligence</span></td><th><span class=\'r0\'>Mind X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Magical defense</span></td></tr>";_.modifier_text["Scholar X"]="<tr><td><span class=\'modifier-text\'>+150 Intelligence</span></td><th><span class=\'r0\'>Scholar X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Maximum HP</span></td></tr>";_.modifier_text["Shield X"]="<tr><td><span class=\'modifier-text\'>+150 Intelligence</span></td><th><span class=\'r0\'>Shield X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Defense</span></td></tr>";_.modifier_text["Darkness VIII"]="<tr><td><span class=\'modifier-text\'>+150 Magical Attack</span></td><th><span class=\'r0\'>Darkness VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Wisdom</span></td></tr>";_.modifier_text["Meteor VIII"]="<tr><td><span class=\'modifier-text\'>+150 Magical Attack</span></td><th><span class=\'r0\'>Meteor VIII</span></th></tr>";_.modifier_text["Warlock VIII"]="<tr><td><span class=\'modifier-text\'>+150 Magical Attack</span></td><th><span class=\'r0\'>Warlock VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Magical defense</span></td></tr>";_.modifier_text["Candle VIII"]="<tr><td><span class=\'modifier-text\'>+150 Maximum HP</span></td><th><span class=\'r0\'>Candle VIII</span></th></tr>";_.modifier_text["Glacier VIII"]="<tr><td><span class=\'modifier-text\'>+150 Maximum HP</span></td><th><span class=\'r0\'>Glacier VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Magical Attack</span></td></tr>";_.modifier_text["Lumen VIII"]="<tr><td><span class=\'modifier-text\'>+150 Maximum HP</span></td><th><span class=\'r0\'>Lumen VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Wisdom</span></td></tr>";_.modifier_text["Paradigm VIII"]="<tr><td><span class=\'modifier-text\'>+150 Maximum HP</span></td><th><span class=\'r0\'>Paradigm VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Maximum MP</span></td></tr>";_.modifier_text["Spring VIII"]="<tr><td><span class=\'modifier-text\'>+150 Maximum HP</span></td><th><span class=\'r0\'>Spring VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Magical defense</span></td></tr>";_.modifier_text["Stone VIII"]="<tr><td><span class=\'modifier-text\'>+150 Maximum HP</span></td><th><span class=\'r0\'>Stone VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Defense</span></td></tr>";_.modifier_text["Vulcano VIII"]="<tr><td><span class=\'modifier-text\'>+150 Maximum HP</span></td><th><span class=\'r0\'>Vulcano VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Physical Attack</span></td></tr>";_.modifier_text["Crystal VIII"]="<tr><td><span class=\'modifier-text\'>+150 Maximum MP</span></td><th><span class=\'r0\'>Crystal VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Defense</span></td></tr>";_.modifier_text["Gunpowder VIII"]="<tr><td><span class=\'modifier-text\'>+150 Maximum MP</span></td><th><span class=\'r0\'>Gunpowder VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Physical Attack</span></td></tr>";_.modifier_text["Mercy VIII"]="<tr><td><span class=\'modifier-text\'>+150 Maximum MP</span></td><th><span class=\'r0\'>Mercy VIII</span></th></tr>";_.modifier_text["Sage VIII"]="<tr><td><span class=\'modifier-text\'>+150 Maximum MP</span></td><th><span class=\'r0\'>Sage VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Wisdom</span></td></tr>";_.modifier_text["Savant VIII"]="<tr><td><span class=\'modifier-text\'>+150 Maximum MP</span></td><th><span class=\'r0\'>Savant VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Magical defense</span></td></tr>";_.modifier_text["Wrath VIII"]="<tr><td><span class=\'modifier-text\'>+150 Maximum MP</span></td><th><span class=\'r0\'>Wrath VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Magical Attack</span></td></tr>";_.modifier_text["Blood VIII"]="<tr><td><span class=\'modifier-text\'>+150 Physical Attack</span></td><th><span class=\'r0\'>Blood VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Magical Attack</span></td></tr>";_.modifier_text["Keen VIII"]="<tr><td><span class=\'modifier-text\'>+150 Physical Attack</span></td><th><span class=\'r0\'>Keen VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Defense</span></td></tr>";_.modifier_text["Authority X"]="<tr><td><span class=\'modifier-text\'>+150 Stamina</span></td><th><span class=\'r0\'>Authority X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Defense</span></td></tr>";_.modifier_text["Endurance X"]="<tr><td><span class=\'modifier-text\'>+150 Stamina</span></td><th><span class=\'r0\'>Endurance X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Maximum HP</span></td></tr>";_.modifier_text["Massif X"]="<tr><td><span class=\'modifier-text\'>+150 Stamina</span></td><th><span class=\'r0\'>Massif X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Maximum MP</span></td></tr>";_.modifier_text["Oppression X"]="<tr><td><span class=\'modifier-text\'>+150 Stamina</span></td><th><span class=\'r0\'>Oppression X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Physical Attack</span></td></tr>";_.modifier_text["Rigor X"]="<tr><td><span class=\'modifier-text\'>+150 Stamina</span></td><th><span class=\'r0\'>Rigor X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Magical defense</span></td></tr>";_.modifier_text["Source X"]="<tr><td><span class=\'modifier-text\'>+150 Stamina</span></td><th><span class=\'r0\'>Source X</span></th></tr>";_.modifier_text["Thunder X"]="<tr><td><span class=\'modifier-text\'>+150 Stamina</span></td><th><span class=\'r0\'>Thunder X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Magical Attack</span></td></tr>";_.modifier_text["Barbarian X"]="<tr><td><span class=\'modifier-text\'>+150 Strength</span></td><th><span class=\'r0\'>Barbarian X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Physical Attack</span></td></tr>";_.modifier_text["Defender X"]="<tr><td><span class=\'modifier-text\'>+150 Strength</span></td><th><span class=\'r0\'>Defender X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Defense</span></td></tr>";_.modifier_text["Dominion X"]="<tr><td><span class=\'modifier-text\'>+150 Strength</span></td><th><span class=\'r0\'>Dominion X</span></th></tr>";_.modifier_text["Ferocity X"]="<tr><td><span class=\'modifier-text\'>+150 Strength</span></td><th><span class=\'r0\'>Ferocity X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Maximum MP</span></td></tr>";_.modifier_text["Hammer X"]="<tr><td><span class=\'modifier-text\'>+150 Strength</span></td><th><span class=\'r0\'>Hammer X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Maximum HP</span></td></tr>";_.modifier_text["Paladin X"]="<tr><td><span class=\'modifier-text\'>+150 Strength</span></td><th><span class=\'r0\'>Paladin X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Magical defense</span></td></tr>";_.modifier_text["Rage X"]="<tr><td><span class=\'modifier-text\'>+150 Strength</span></td><th><span class=\'r0\'>Rage X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Magical Attack</span></td></tr>";_.modifier_text["Breeze X"]="<tr><td><span class=\'modifier-text\'>+150 Wisdom</span></td><th><span class=\'r0\'>Breeze X</span></th></tr>";_.modifier_text["Mystic X"]="<tr><td><span class=\'modifier-text\'>+150 Wisdom</span></td><th><span class=\'r0\'>Mystic X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Magical defense</span></td></tr>";_.modifier_text["Ability X"]="<tr><td><span class=\'modifier-text\'>+16 All attributes</span></td><th><span class=\'r0\'>Ability X</span></th></tr>";_.modifier_text["Element X"]="<tr><td><span class=\'modifier-text\'>+16 All resistances</span></td><th><span class=\'r0\'>Element X</span></th></tr>";_.modifier_text["Dark VI"]="<tr><td><span class=\'modifier-text\'>+16 Dark resistance</span></td><th><span class=\'r0\'>Dark VI</span></th></tr>";_.modifier_text["Earth VI"]="<tr><td><span class=\'modifier-text\'>+16 Earth resistance</span></td><th><span class=\'r0\'>Earth VI</span></th></tr>";_.modifier_text["Flame VI"]="<tr><td><span class=\'modifier-text\'>+16 Fire resistance</span></td><th><span class=\'r0\'>Flame VI</span></th></tr>";_.modifier_text["Light VI"]="<tr><td><span class=\'modifier-text\'>+16 Light resistance</span></td><th><span class=\'r0\'>Light VI</span></th></tr>";_.modifier_text["Mist VI"]="<tr><td><span class=\'modifier-text\'>+16 Water resistance</span></td><th><span class=\'r0\'>Mist VI</span></th></tr>";_.modifier_text["Whiff VI"]="<tr><td><span class=\'modifier-text\'>+16 Wind resistance</span></td><th><span class=\'r0\'>Whiff VI</span></th></tr>";_.modifier_text["Dexterity VII"]="<tr><td><span class=\'modifier-text\'>+17 Dexterity</span></td><th><span class=\'r0\'>Dexterity VII</span></th></tr>";_.modifier_text["Intellect VII"]="<tr><td><span class=\'modifier-text\'>+17 Intelligence</span></td><th><span class=\'r0\'>Intellect VII</span></th></tr>";_.modifier_text["Life II"]="<tr><td><span class=\'modifier-text\'>+17 Maximum HP</span></td><th><span class=\'r0\'>Life II</span></th></tr>";_.modifier_text["Magic II"]="<tr><td><span class=\'modifier-text\'>+17 Maximum MP</span></td><th><span class=\'r0\'>Magic II</span></th></tr>";_.modifier_text["Stamina VII"]="<tr><td><span class=\'modifier-text\'>+17 Stamina</span></td><th><span class=\'r0\'>Stamina VII</span></th></tr>";_.modifier_text["Strength VII"]="<tr><td><span class=\'modifier-text\'>+17 Strength</span></td><th><span class=\'r0\'>Strength VII</span></th></tr>";_.modifier_text["Spirit VII"]="<tr><td><span class=\'modifier-text\'>+17 Wisdom</span></td><th><span class=\'r0\'>Spirit VII</span></th></tr>";_.modifier_text["Life XI"]="<tr><td><span class=\'modifier-text\'>+170 Maximum HP</span></td><th><span class=\'r0\'>Life XI</span></th></tr>";_.modifier_text["Magic XI"]="<tr><td><span class=\'modifier-text\'>+170 Maximum MP</span></td><th><span class=\'r0\'>Magic XI</span></th></tr>";_.modifier_text["Accuracy VI"]="<tr><td><span class=\'modifier-text\'>+19 % accuracy</span></td><th><span class=\'r0\'>Accuracy VI</span></th></tr>";_.modifier_text["Dodge VI"]="<tr><td><span class=\'modifier-text\'>+19 % dodge rate</span></td><th><span class=\'r0\'>Dodge VI</span></th></tr>";_.modifier_text["Ability XI"]="<tr><td><span class=\'modifier-text\'>+19 All attributes</span></td><th><span class=\'r0\'>Ability XI</span></th></tr>";_.modifier_text["Element XI"]="<tr><td><span class=\'modifier-text\'>+19 All resistances</span></td><th><span class=\'r0\'>Element XI</span></th></tr>";_.modifier_text["Defense VI"]="<tr><td><span class=\'modifier-text\'>+19 Defense</span></td><th><span class=\'r0\'>Defense VI</span></th></tr>";_.modifier_text["Energy VI"]="<tr><td><span class=\'modifier-text\'>+19 Magical Attack</span></td><th><span class=\'r0\'>Energy VI</span></th></tr>";_.modifier_text["Barrier VI"]="<tr><td><span class=\'modifier-text\'>+19 Magical defense</span></td><th><span class=\'r0\'>Barrier VI</span></th></tr>";_.modifier_text["Might VI"]="<tr><td><span class=\'modifier-text\'>+19 Physical Attack</span></td><th><span class=\'r0\'>Might VI</span></th></tr>";_.modifier_text["Ability II"]="<tr><td><span class=\'modifier-text\'>+2 All attributes</span></td><th><span class=\'r0\'>Ability II</span></th></tr>";_.modifier_text["Element II"]="<tr><td><span class=\'modifier-text\'>+2 All resistances</span></td><th><span class=\'r0\'>Element II</span></th></tr>";_.modifier_text["Fox I"]="<tr><td><span class=\'modifier-text\'>+2 Dexterity</span></td><th><span class=\'r0\'>Fox I</span></th></tr><tr><td><span class=\'modifier-text\'>+2 Intelligence</span></td></tr>";_.modifier_text["Precision I"]="<tr><td><span class=\'modifier-text\'>+2 Dexterity</span></td><th><span class=\'r0\'>Precision I</span></th></tr><tr><td><span class=\'modifier-text\'>+2 Wisdom</span></td></tr>";_.modifier_text["Elder I"]="<tr><td><span class=\'modifier-text\'>+2 Intelligence</span></td><th><span class=\'r0\'>Elder I</span></th></tr><tr><td><span class=\'modifier-text\'>+2 Stamina</span></td></tr>";_.modifier_text["Genius I"]="<tr><td><span class=\'modifier-text\'>+2 Intelligence</span></td><th><span class=\'r0\'>Genius I</span></th></tr><tr><td><span class=\'modifier-text\'>+2 Wisdom</span></td></tr>";_.modifier_text["Force I"]="<tr><td><span class=\'modifier-text\'>+2 Stamina</span></td><th><span class=\'r0\'>Force I</span></th></tr><tr><td><span class=\'modifier-text\'>+2 Dexterity</span></td></tr>";_.modifier_text["Monk I"]="<tr><td><span class=\'modifier-text\'>+2 Stamina</span></td><th><span class=\'r0\'>Monk I</span></th></tr><tr><td><span class=\'modifier-text\'>+2 Wisdom</span></td></tr>";_.modifier_text["Cougar I"]="<tr><td><span class=\'modifier-text\'>+2 Strength</span></td><th><span class=\'r0\'>Cougar I</span></th></tr><tr><td><span class=\'modifier-text\'>+2 Dexterity</span></td></tr>";_.modifier_text["Moral I"]="<tr><td><span class=\'modifier-text\'>+2 Strength</span></td><th><span class=\'r0\'>Moral I</span></th></tr><tr><td><span class=\'modifier-text\'>+2 Intelligence</span></td></tr>";_.modifier_text["Savage I"]="<tr><td><span class=\'modifier-text\'>+2 Strength</span></td><th><span class=\'r0\'>Savage I</span></th></tr><tr><td><span class=\'modifier-text\'>+2 Stamina</span></td></tr>";_.modifier_text["Dark VII"]="<tr><td><span class=\'modifier-text\'>+20 Dark resistance</span></td><th><span class=\'r0\'>Dark VII</span></th></tr>";_.modifier_text["Soul III"]="<tr><td><span class=\'modifier-text\'>+20 Defense</span></td><th><span class=\'r0\'>Soul III</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Wisdom</span></td></tr>";_.modifier_text["Agility V"]="<tr><td><span class=\'modifier-text\'>+20 Dexterity</span></td><th><span class=\'r0\'>Agility V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Magical defense</span></td></tr>";_.modifier_text["Fang V"]="<tr><td><span class=\'modifier-text\'>+20 Dexterity</span></td><th><span class=\'r0\'>Fang V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Physical Attack</span></td></tr>";_.modifier_text["Fox VI"]="<tr><td><span class=\'modifier-text\'>+20 Dexterity</span></td><th><span class=\'r0\'>Fox VI</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Intelligence</span></td></tr>";_.modifier_text["Observance V"]="<tr><td><span class=\'modifier-text\'>+20 Dexterity</span></td><th><span class=\'r0\'>Observance V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Maximum HP</span></td></tr>";_.modifier_text["Precision VI"]="<tr><td><span class=\'modifier-text\'>+20 Dexterity</span></td><th><span class=\'r0\'>Precision VI</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Wisdom</span></td></tr>";_.modifier_text["Reflex V"]="<tr><td><span class=\'modifier-text\'>+20 Dexterity</span></td><th><span class=\'r0\'>Reflex V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Defense</span></td></tr>";_.modifier_text["Speed V"]="<tr><td><span class=\'modifier-text\'>+20 Dexterity</span></td><th><span class=\'r0\'>Speed V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Maximum MP</span></td></tr>";_.modifier_text["Earth VII"]="<tr><td><span class=\'modifier-text\'>+20 Earth resistance</span></td><th><span class=\'r0\'>Earth VII</span></th></tr>";_.modifier_text["Flame VII"]="<tr><td><span class=\'modifier-text\'>+20 Fire resistance</span></td><th><span class=\'r0\'>Flame VII</span></th></tr>";_.modifier_text["Elder VI"]="<tr><td><span class=\'modifier-text\'>+20 Intelligence</span></td><th><span class=\'r0\'>Elder VI</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Stamina</span></td></tr>";_.modifier_text["Expansion V"]="<tr><td><span class=\'modifier-text\'>+20 Intelligence</span></td><th><span class=\'r0\'>Expansion V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Physical Attack</span></td></tr>";_.modifier_text["Genius VI"]="<tr><td><span class=\'modifier-text\'>+20 Intelligence</span></td><th><span class=\'r0\'>Genius VI</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Wisdom</span></td></tr>";_.modifier_text["Grace V"]="<tr><td><span class=\'modifier-text\'>+20 Intelligence</span></td><th><span class=\'r0\'>Grace V</span></th></tr>";_.modifier_text["Grimoire V"]="<tr><td><span class=\'modifier-text\'>+20 Intelligence</span></td><th><span class=\'r0\'>Grimoire V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Maximum MP</span></td></tr>";_.modifier_text["Illumine V"]="<tr><td><span class=\'modifier-text\'>+20 Intelligence</span></td><th><span class=\'r0\'>Illumine V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Magical Attack</span></td></tr>";_.modifier_text["Mind V"]="<tr><td><span class=\'modifier-text\'>+20 Intelligence</span></td><th><span class=\'r0\'>Mind V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Magical defense</span></td></tr>";_.modifier_text["ScholarV"]="<tr><td><span class=\'modifier-text\'>+20 Intelligence</span></td><th><span class=\'r0\'>ScholarV</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Maximum HP</span></td></tr>";_.modifier_text["Shield V"]="<tr><td><span class=\'modifier-text\'>+20 Intelligence</span></td><th><span class=\'r0\'>Shield V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Defense</span></td></tr>";_.modifier_text["Light VII"]="<tr><td><span class=\'modifier-text\'>+20 Light resistance</span></td><th><span class=\'r0\'>Light VII</span></th></tr>";_.modifier_text["Darkness III"]="<tr><td><span class=\'modifier-text\'>+20 Magical Attack</span></td><th><span class=\'r0\'>Darkness III</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Wisdom</span></td></tr>";_.modifier_text["Meteor III"]="<tr><td><span class=\'modifier-text\'>+20 Magical Attack</span></td><th><span class=\'r0\'>Meteor III</span></th></tr>";_.modifier_text["Warlock III"]="<tr><td><span class=\'modifier-text\'>+20 Magical Attack</span></td><th><span class=\'r0\'>Warlock III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Magical defense</span></td></tr>";_.modifier_text["Resilience IV"]="<tr><td><span class=\'modifier-text\'>+20 Magical defense</span></td><th><span class=\'r0\'>Resilience IV</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Defense</span></td></tr>";_.modifier_text["Candle III"]="<tr><td><span class=\'modifier-text\'>+20 Maximum HP</span></td><th><span class=\'r0\'>Candle III</span></th></tr>";_.modifier_text["Glacier III"]="<tr><td><span class=\'modifier-text\'>+20 Maximum HP</span></td><th><span class=\'r0\'>Glacier III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Magical Attack</span></td></tr>";_.modifier_text["Lumen III"]="<tr><td><span class=\'modifier-text\'>+20 Maximum HP</span></td><th><span class=\'r0\'>Lumen III</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Wisdom</span></td></tr>";_.modifier_text["Paradigm III"]="<tr><td><span class=\'modifier-text\'>+20 Maximum HP</span></td><th><span class=\'r0\'>Paradigm III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Maximum MP</span></td></tr>";_.modifier_text["Spring III"]="<tr><td><span class=\'modifier-text\'>+20 Maximum HP</span></td><th><span class=\'r0\'>Spring III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Magical defense</span></td></tr>";_.modifier_text["Stone III"]="<tr><td><span class=\'modifier-text\'>+20 Maximum HP</span></td><th><span class=\'r0\'>Stone III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Defense</span></td></tr>";_.modifier_text["Vulcano III"]="<tr><td><span class=\'modifier-text\'>+20 Maximum HP</span></td><th><span class=\'r0\'>Vulcano III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Physical Attack</span></td></tr>";_.modifier_text["Crystal III"]="<tr><td><span class=\'modifier-text\'>+20 Maximum MP</span></td><th><span class=\'r0\'>Crystal III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Defense</span></td></tr>";_.modifier_text["Gunpowder III"]="<tr><td><span class=\'modifier-text\'>+20 Maximum MP</span></td><th><span class=\'r0\'>Gunpowder III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Physical Attack</span></td></tr>";_.modifier_text["Mercy III"]="<tr><td><span class=\'modifier-text\'>+20 Maximum MP</span></td><th><span class=\'r0\'>Mercy III</span></th></tr>";_.modifier_text["Sage III"]="<tr><td><span class=\'modifier-text\'>+20 Maximum MP</span></td><th><span class=\'r0\'>Sage III</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Wisdom</span></td></tr>";_.modifier_text["Savant III"]="<tr><td><span class=\'modifier-text\'>+20 Maximum MP</span></td><th><span class=\'r0\'>Savant III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Magical defense</span></td></tr>";_.modifier_text["Wrath III"]="<tr><td><span class=\'modifier-text\'>+20 Maximum MP</span></td><th><span class=\'r0\'>Wrath III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Magical Attack</span></td></tr>";_.modifier_text["Blood III"]="<tr><td><span class=\'modifier-text\'>+20 Physical Attack</span></td><th><span class=\'r0\'>Blood III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Magical Attack</span></td></tr>";_.modifier_text["Keen III"]="<tr><td><span class=\'modifier-text\'>+20 Physical Attack</span></td><th><span class=\'r0\'>Keen III</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Defense</span></td></tr>";_.modifier_text["Authority V"]="<tr><td><span class=\'modifier-text\'>+20 Stamina</span></td><th><span class=\'r0\'>Authority V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Defense</span></td></tr>";_.modifier_text["Endurance V"]="<tr><td><span class=\'modifier-text\'>+20 Stamina</span></td><th><span class=\'r0\'>Endurance V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Maximum HP</span></td></tr>";_.modifier_text["Force VI"]="<tr><td><span class=\'modifier-text\'>+20 Stamina</span></td><th><span class=\'r0\'>Force VI</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Dexterity</span></td></tr>";_.modifier_text["Massif V"]="<tr><td><span class=\'modifier-text\'>+20 Stamina</span></td><th><span class=\'r0\'>Massif V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Maximum MP</span></td></tr>";_.modifier_text["Monk VI"]="<tr><td><span class=\'modifier-text\'>+20 Stamina</span></td><th><span class=\'r0\'>Monk VI</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Wisdom</span></td></tr>";_.modifier_text["Oppression V"]="<tr><td><span class=\'modifier-text\'>+20 Stamina</span></td><th><span class=\'r0\'>Oppression V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Physical Attack</span></td></tr>";_.modifier_text["Rigor V"]="<tr><td><span class=\'modifier-text\'>+20 Stamina</span></td><th><span class=\'r0\'>Rigor V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Magical defense</span></td></tr>";_.modifier_text["Source V"]="<tr><td><span class=\'modifier-text\'>+20 Stamina</span></td><th><span class=\'r0\'>Source V</span></th></tr>";_.modifier_text["Thunder V"]="<tr><td><span class=\'modifier-text\'>+20 Stamina</span></td><th><span class=\'r0\'>Thunder V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Magical Attack</span></td></tr>";_.modifier_text["Barbarian V"]="<tr><td><span class=\'modifier-text\'>+20 Strength</span></td><th><span class=\'r0\'>Barbarian V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Physical Attack</span></td></tr>";_.modifier_text["Cougar VI"]="<tr><td><span class=\'modifier-text\'>+20 Strength</span></td><th><span class=\'r0\'>Cougar VI</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Dexterity</span></td></tr>";_.modifier_text["Defender V"]="<tr><td><span class=\'modifier-text\'>+20 Strength</span></td><th><span class=\'r0\'>Defender V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Defense</span></td></tr>";_.modifier_text["Dominion V"]="<tr><td><span class=\'modifier-text\'>+20 Strength</span></td><th><span class=\'r0\'>Dominion V</span></th></tr>";_.modifier_text["Ferocity V"]="<tr><td><span class=\'modifier-text\'>+20 Strength</span></td><th><span class=\'r0\'>Ferocity V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Maximum MP</span></td></tr>";_.modifier_text["Hammer V"]="<tr><td><span class=\'modifier-text\'>+20 Strength</span></td><th><span class=\'r0\'>Hammer V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Maximum HP</span></td></tr>";_.modifier_text["Moral VI"]="<tr><td><span class=\'modifier-text\'>+20 Strength</span></td><th><span class=\'r0\'>Moral VI</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Intelligence</span></td></tr>";_.modifier_text["Paladin V"]="<tr><td><span class=\'modifier-text\'>+20 Strength</span></td><th><span class=\'r0\'>Paladin V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Magical defense</span></td></tr>";_.modifier_text["Rage V"]="<tr><td><span class=\'modifier-text\'>+20 Strength</span></td><th><span class=\'r0\'>Rage V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Magical Attack</span></td></tr>";_.modifier_text["Savage VI"]="<tr><td><span class=\'modifier-text\'>+20 Strength</span></td><th><span class=\'r0\'>Savage VI</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Stamina</span></td></tr>";_.modifier_text["Mist VII"]="<tr><td><span class=\'modifier-text\'>+20 Water resistance</span></td><th><span class=\'r0\'>Mist VII</span></th></tr>";_.modifier_text["Whiff VII"]="<tr><td><span class=\'modifier-text\'>+20 Wind resistance</span></td><th><span class=\'r0\'>Whiff VII</span></th></tr>";_.modifier_text["Breeze V"]="<tr><td><span class=\'modifier-text\'>+20 Wisdom</span></td><th><span class=\'r0\'>Breeze V</span></th></tr>";_.modifier_text["Mystic V"]="<tr><td><span class=\'modifier-text\'>+20 Wisdom</span></td><th><span class=\'r0\'>Mystic V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Magical defense</span></td></tr>";_.modifier_text["Soul IX"]="<tr><td><span class=\'modifier-text\'>+200 Defense</span></td><th><span class=\'r0\'>Soul IX</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Wisdom</span></td></tr>";_.modifier_text["Darkness IX"]="<tr><td><span class=\'modifier-text\'>+200 Magical Attack</span></td><th><span class=\'r0\'>Darkness IX</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Wisdom</span></td></tr>";_.modifier_text["Meteor IX"]="<tr><td><span class=\'modifier-text\'>+200 Magical Attack</span></td><th><span class=\'r0\'>Meteor IX</span></th></tr>";_.modifier_text["Warlock IX"]="<tr><td><span class=\'modifier-text\'>+200 Magical Attack</span></td><th><span class=\'r0\'>Warlock IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Magical defense</span></td></tr>";_.modifier_text["Resilience X"]="<tr><td><span class=\'modifier-text\'>+200 Magical defense</span></td><th><span class=\'r0\'>Resilience X</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Defense</span></td></tr>";_.modifier_text["Candle IX"]="<tr><td><span class=\'modifier-text\'>+200 Maximum HP</span></td><th><span class=\'r0\'>Candle IX</span></th></tr>";_.modifier_text["Glacier IX"]="<tr><td><span class=\'modifier-text\'>+200 Maximum HP</span></td><th><span class=\'r0\'>Glacier IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Magical Attack</span></td></tr>";_.modifier_text["Lumen IX"]="<tr><td><span class=\'modifier-text\'>+200 Maximum HP</span></td><th><span class=\'r0\'>Lumen IX</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Wisdom</span></td></tr>";_.modifier_text["Paradigm IX"]="<tr><td><span class=\'modifier-text\'>+200 Maximum HP</span></td><th><span class=\'r0\'>Paradigm IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Maximum MP</span></td></tr>";_.modifier_text["Spring IX"]="<tr><td><span class=\'modifier-text\'>+200 Maximum HP</span></td><th><span class=\'r0\'>Spring IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Magical defense</span></td></tr>";_.modifier_text["Stone IX"]="<tr><td><span class=\'modifier-text\'>+200 Maximum HP</span></td><th><span class=\'r0\'>Stone IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Defense</span></td></tr>";_.modifier_text["Vulcano IX"]="<tr><td><span class=\'modifier-text\'>+200 Maximum HP</span></td><th><span class=\'r0\'>Vulcano IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Physical Attack</span></td></tr>";_.modifier_text["Crystal IX"]="<tr><td><span class=\'modifier-text\'>+200 Maximum MP</span></td><th><span class=\'r0\'>Crystal IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Defense</span></td></tr>";_.modifier_text["Gunpowder IX"]="<tr><td><span class=\'modifier-text\'>+200 Maximum MP</span></td><th><span class=\'r0\'>Gunpowder IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Physical Attack</span></td></tr>";_.modifier_text["Mercy IX"]="<tr><td><span class=\'modifier-text\'>+200 Maximum MP</span></td><th><span class=\'r0\'>Mercy IX</span></th></tr>";_.modifier_text["Sage IX"]="<tr><td><span class=\'modifier-text\'>+200 Maximum MP</span></td><th><span class=\'r0\'>Sage IX</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Wisdom</span></td></tr>";_.modifier_text["Savant IX"]="<tr><td><span class=\'modifier-text\'>+200 Maximum MP</span></td><th><span class=\'r0\'>Savant IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Magical defense</span></td></tr>";_.modifier_text["Wrath IX"]="<tr><td><span class=\'modifier-text\'>+200 Maximum MP</span></td><th><span class=\'r0\'>Wrath IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Magical Attack</span></td></tr>";_.modifier_text["Blood IX"]="<tr><td><span class=\'modifier-text\'>+200 Physical Attack</span></td><th><span class=\'r0\'>Blood IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Magical Attack</span></td></tr>";_.modifier_text["Keen IX"]="<tr><td><span class=\'modifier-text\'>+200 Physical Attack</span></td><th><span class=\'r0\'>Keen IX</span></th></tr><tr><td><span class=\'modifier-text\'>+200 Defense</span></td></tr>";_.modifier_text["Life XII"]="<tr><td><span class=\'modifier-text\'>+206 Maximum HP</span></td><th><span class=\'r0\'>Life XII</span></th></tr>";_.modifier_text["Magic XII"]="<tr><td><span class=\'modifier-text\'>+206 Maximum MP</span></td><th><span class=\'r0\'>Magic XII</span></th></tr>";_.modifier_text["Dexterity VIII"]="<tr><td><span class=\'modifier-text\'>+22 Dexterity</span></td><th><span class=\'r0\'>Dexterity VIII</span></th></tr>";_.modifier_text["Intellect VIII"]="<tr><td><span class=\'modifier-text\'>+22 Intelligence</span></td><th><span class=\'r0\'>Intellect VIII</span></th></tr>";_.modifier_text["Stamina VIII"]="<tr><td><span class=\'modifier-text\'>+22 Stamina</span></td><th><span class=\'r0\'>Stamina VIII</span></th></tr>";_.modifier_text["Strength VIII"]="<tr><td><span class=\'modifier-text\'>+22 Strength</span></td><th><span class=\'r0\'>Strength VIII</span></th></tr>";_.modifier_text["Spirit VIII"]="<tr><td><span class=\'modifier-text\'>+22 Wisdom</span></td><th><span class=\'r0\'>Spirit VIII</span></th></tr>";_.modifier_text["Ability XII"]="<tr><td><span class=\'modifier-text\'>+24 All attributes</span></td><th><span class=\'r0\'>Ability XII</span></th></tr>";_.modifier_text["Element XII"]="<tr><td><span class=\'modifier-text\'>+24 All resistances</span></td><th><span class=\'r0\'>Element XII</span></th></tr>";_.modifier_text["Dark VIII"]="<tr><td><span class=\'modifier-text\'>+24 Dark resistance</span></td><th><span class=\'r0\'>Dark VIII</span></th></tr>";_.modifier_text["Earth VIII"]="<tr><td><span class=\'modifier-text\'>+24 Earth resistance</span></td><th><span class=\'r0\'>Earth VIII</span></th></tr>";_.modifier_text["Flame VIII"]="<tr><td><span class=\'modifier-text\'>+24 Fire resistance</span></td><th><span class=\'r0\'>Flame VIII</span></th></tr>";_.modifier_text["Light VIII"]="<tr><td><span class=\'modifier-text\'>+24 Light resistance</span></td><th><span class=\'r0\'>Light VIII</span></th></tr>";_.modifier_text["Mist VIII"]="<tr><td><span class=\'modifier-text\'>+24 Water resistance</span></td><th><span class=\'r0\'>Mist VIII</span></th></tr>";_.modifier_text["Whiff VIII"]="<tr><td><span class=\'modifier-text\'>+24 Wind resistance</span></td><th><span class=\'r0\'>Whiff VIII</span></th></tr>";_.modifier_text["Accuracy VII"]="<tr><td><span class=\'modifier-text\'>+25 % accuracy</span></td><th><span class=\'r0\'>Accuracy VII</span></th></tr>";_.modifier_text["Dodge VII"]="<tr><td><span class=\'modifier-text\'>+25 % dodge rate</span></td><th><span class=\'r0\'>Dodge VII</span></th></tr>";_.modifier_text["Defense VII"]="<tr><td><span class=\'modifier-text\'>+25 Defense</span></td><th><span class=\'r0\'>Defense VII</span></th></tr>";_.modifier_text["Energy VII"]="<tr><td><span class=\'modifier-text\'>+25 Magical Attack</span></td><th><span class=\'r0\'>Energy VII</span></th></tr>";_.modifier_text["Barrier VII"]="<tr><td><span class=\'modifier-text\'>+25 Magical defense</span></td><th><span class=\'r0\'>Barrier VII</span></th></tr>";_.modifier_text["Life III"]="<tr><td><span class=\'modifier-text\'>+25 Maximum HP</span></td><th><span class=\'r0\'>Life III</span></th></tr>";_.modifier_text["Magic III"]="<tr><td><span class=\'modifier-text\'>+25 Maximum MP</span></td><th><span class=\'r0\'>Magic III</span></th></tr>";_.modifier_text["Might VII"]="<tr><td><span class=\'modifier-text\'>+25 Physical Attack</span></td><th><span class=\'r0\'>Might VII</span></th></tr>";_.modifier_text["Dexterity IX"]="<tr><td><span class=\'modifier-text\'>+28 Dexterity</span></td><th><span class=\'r0\'>Dexterity IX</span></th></tr>";_.modifier_text["Intellect IX"]="<tr><td><span class=\'modifier-text\'>+28 Intelligence</span></td><th><span class=\'r0\'>Intellect IX</span></th></tr>";_.modifier_text["Stamina IX"]="<tr><td><span class=\'modifier-text\'>+28 Stamina</span></td><th><span class=\'r0\'>Stamina IX</span></th></tr>";_.modifier_text["Strength IX"]="<tr><td><span class=\'modifier-text\'>+28 Strength</span></td><th><span class=\'r0\'>Strength IX</span></th></tr>";_.modifier_text["Spirit IX"]="<tr><td><span class=\'modifier-text\'>+28 Wisdom</span></td><th><span class=\'r0\'>Spirit IX</span></th></tr>";_.modifier_text["Ability III"]="<tr><td><span class=\'modifier-text\'>+3 All attributes</span></td><th><span class=\'r0\'>Ability III</span></th></tr>";_.modifier_text["Element III"]="<tr><td><span class=\'modifier-text\'>+3 All resistances</span></td><th><span class=\'r0\'>Element III</span></th></tr>";_.modifier_text["Agility I"]="<tr><td><span class=\'modifier-text\'>+3 Dexterity</span></td><th><span class=\'r0\'>Agility I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Magical defense</span></td></tr>";_.modifier_text["Dexterity I"]="<tr><td><span class=\'modifier-text\'>+3 Dexterity</span></td><th><span class=\'r0\'>Dexterity I</span></th></tr>";_.modifier_text["Fang I"]="<tr><td><span class=\'modifier-text\'>+3 Dexterity</span></td><th><span class=\'r0\'>Fang I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Physical Attack</span></td></tr>";_.modifier_text["Fox II"]="<tr><td><span class=\'modifier-text\'>+3 Dexterity</span></td><th><span class=\'r0\'>Fox II</span></th></tr><tr><td><span class=\'modifier-text\'>+3 Intelligence</span></td></tr>";_.modifier_text["Observance I"]="<tr><td><span class=\'modifier-text\'>+3 Dexterity</span></td><th><span class=\'r0\'>Observance I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Maximum HP</span></td></tr>";_.modifier_text["Precision II"]="<tr><td><span class=\'modifier-text\'>+3 Dexterity</span></td><th><span class=\'r0\'>Precision II</span></th></tr><tr><td><span class=\'modifier-text\'>+3 Wisdom</span></td></tr>";_.modifier_text["Reflex I"]="<tr><td><span class=\'modifier-text\'>+3 Dexterity</span></td><th><span class=\'r0\'>Reflex I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Defense</span></td></tr>";_.modifier_text["Speed I"]="<tr><td><span class=\'modifier-text\'>+3 Dexterity</span></td><th><span class=\'r0\'>Speed I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Maximum MP</span></td></tr>";_.modifier_text["Elder II"]="<tr><td><span class=\'modifier-text\'>+3 Intelligence</span></td><th><span class=\'r0\'>Elder II</span></th></tr><tr><td><span class=\'modifier-text\'>+3 Stamina</span></td></tr>";_.modifier_text["Expansion I"]="<tr><td><span class=\'modifier-text\'>+3 Intelligence</span></td><th><span class=\'r0\'>Expansion I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Physical Attack</span></td></tr>";_.modifier_text["Genius II"]="<tr><td><span class=\'modifier-text\'>+3 Intelligence</span></td><th><span class=\'r0\'>Genius II</span></th></tr><tr><td><span class=\'modifier-text\'>+3 Wisdom</span></td></tr>";_.modifier_text["Grace I"]="<tr><td><span class=\'modifier-text\'>+3 Intelligence</span></td><th><span class=\'r0\'>Grace I</span></th></tr>";_.modifier_text["Grimoire I"]="<tr><td><span class=\'modifier-text\'>+3 Intelligence</span></td><th><span class=\'r0\'>Grimoire I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Maximum MP</span></td></tr>";_.modifier_text["Illumine I"]="<tr><td><span class=\'modifier-text\'>+3 Intelligence</span></td><th><span class=\'r0\'>Illumine I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Magical Attack</span></td></tr>";_.modifier_text["Intellect I"]="<tr><td><span class=\'modifier-text\'>+3 Intelligence</span></td><th><span class=\'r0\'>Intellect I</span></th></tr>";_.modifier_text["Mind I"]="<tr><td><span class=\'modifier-text\'>+3 Intelligence</span></td><th><span class=\'r0\'>Mind I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Magical defense</span></td></tr>";_.modifier_text["Scholar I"]="<tr><td><span class=\'modifier-text\'>+3 Intelligence</span></td><th><span class=\'r0\'>Scholar I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Maximum HP</span></td></tr>";_.modifier_text["Shield I"]="<tr><td><span class=\'modifier-text\'>+3 Intelligence</span></td><th><span class=\'r0\'>Shield I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Defense</span></td></tr>";_.modifier_text["Authority I"]="<tr><td><span class=\'modifier-text\'>+3 Stamina</span></td><th><span class=\'r0\'>Authority I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Defense</span></td></tr>";_.modifier_text["Endurance I"]="<tr><td><span class=\'modifier-text\'>+3 Stamina</span></td><th><span class=\'r0\'>Endurance I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Maximum HP</span></td></tr>";_.modifier_text["Force II"]="<tr><td><span class=\'modifier-text\'>+3 Stamina</span></td><th><span class=\'r0\'>Force II</span></th></tr><tr><td><span class=\'modifier-text\'>+3 Dexterity</span></td></tr>";_.modifier_text["Massif I"]="<tr><td><span class=\'modifier-text\'>+3 Stamina</span></td><th><span class=\'r0\'>Massif I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Maximum MP</span></td></tr>";_.modifier_text["Monk II"]="<tr><td><span class=\'modifier-text\'>+3 Stamina</span></td><th><span class=\'r0\'>Monk II</span></th></tr><tr><td><span class=\'modifier-text\'>+3 Wisdom</span></td></tr>";_.modifier_text["Oppression I"]="<tr><td><span class=\'modifier-text\'>+3 Stamina</span></td><th><span class=\'r0\'>Oppression I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Physical Attack</span></td></tr>";_.modifier_text["Rigor I"]="<tr><td><span class=\'modifier-text\'>+3 Stamina</span></td><th><span class=\'r0\'>Rigor I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Magical defense</span></td></tr>";_.modifier_text["Source I"]="<tr><td><span class=\'modifier-text\'>+3 Stamina</span></td><th><span class=\'r0\'>Source I</span></th></tr>";_.modifier_text["Stamina I"]="<tr><td><span class=\'modifier-text\'>+3 Stamina</span></td><th><span class=\'r0\'>Stamina I</span></th></tr>";_.modifier_text["Thunder I"]="<tr><td><span class=\'modifier-text\'>+3 Stamina</span></td><th><span class=\'r0\'>Thunder I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Magical Attack</span></td></tr>";_.modifier_text["Barbarian I"]="<tr><td><span class=\'modifier-text\'>+3 Strength</span></td><th><span class=\'r0\'>Barbarian I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Physical Attack</span></td></tr>";_.modifier_text["Cougar II"]="<tr><td><span class=\'modifier-text\'>+3 Strength</span></td><th><span class=\'r0\'>Cougar II</span></th></tr><tr><td><span class=\'modifier-text\'>+3 Dexterity</span></td></tr>";_.modifier_text["Defender I"]="<tr><td><span class=\'modifier-text\'>+3 Strength</span></td><th><span class=\'r0\'>Defender I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Defense</span></td></tr>";_.modifier_text["Dominion I"]="<tr><td><span class=\'modifier-text\'>+3 Strength</span></td><th><span class=\'r0\'>Dominion I</span></th></tr>";_.modifier_text["Ferocity I"]="<tr><td><span class=\'modifier-text\'>+3 Strength</span></td><th><span class=\'r0\'>Ferocity I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Maximum MP</span></td></tr>";_.modifier_text["Hammer I"]="<tr><td><span class=\'modifier-text\'>+3 Strength</span></td><th><span class=\'r0\'>Hammer I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Maximum HP</span></td></tr>";_.modifier_text["Moral II"]="<tr><td><span class=\'modifier-text\'>+3 Strength</span></td><th><span class=\'r0\'>Moral II</span></th></tr><tr><td><span class=\'modifier-text\'>+3 Intelligence</span></td></tr>";_.modifier_text["Paladin I"]="<tr><td><span class=\'modifier-text\'>+3 Strength</span></td><th><span class=\'r0\'>Paladin I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Magical defense</span></td></tr>";_.modifier_text["Rage I"]="<tr><td><span class=\'modifier-text\'>+3 Strength</span></td><th><span class=\'r0\'>Rage I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Magical Attack</span></td></tr>";_.modifier_text["Savage II"]="<tr><td><span class=\'modifier-text\'>+3 Strength</span></td><th><span class=\'r0\'>Savage II</span></th></tr><tr><td><span class=\'modifier-text\'>+3 Stamina</span></td></tr>";_.modifier_text["Strength I"]="<tr><td><span class=\'modifier-text\'>+3 Strength</span></td><th><span class=\'r0\'>Strength I</span></th></tr>";_.modifier_text["Breeze I"]="<tr><td><span class=\'modifier-text\'>+3 Wisdom</span></td><th><span class=\'r0\'>Breeze I</span></th></tr>";_.modifier_text["Mystic I"]="<tr><td><span class=\'modifier-text\'>+3 Wisdom</span></td><th><span class=\'r0\'>Mystic I</span></th></tr><tr><td><span class=\'modifier-text\'>+10 Magical defense</span></td></tr>";_.modifier_text["Spirit I"]="<tr><td><span class=\'modifier-text\'>+3 Wisdom</span></td><th><span class=\'r0\'>Spirit I</span></th></tr>";_.modifier_text["Dark IX"]="<tr><td><span class=\'modifier-text\'>+30 Dark resistance</span></td><th><span class=\'r0\'>Dark IX</span></th></tr>";_.modifier_text["Soul IV"]="<tr><td><span class=\'modifier-text\'>+30 Defense</span></td><th><span class=\'r0\'>Soul IV</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Wisdom</span></td></tr>";_.modifier_text["Agility VI"]="<tr><td><span class=\'modifier-text\'>+30 Dexterity</span></td><th><span class=\'r0\'>Agility VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Magical defense</span></td></tr>";_.modifier_text["Fang VI"]="<tr><td><span class=\'modifier-text\'>+30 Dexterity</span></td><th><span class=\'r0\'>Fang VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Physical Attack</span></td></tr>";_.modifier_text["Fox VII"]="<tr><td><span class=\'modifier-text\'>+30 Dexterity</span></td><th><span class=\'r0\'>Fox VII</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Intelligence</span></td></tr>";_.modifier_text["Observance VI"]="<tr><td><span class=\'modifier-text\'>+30 Dexterity</span></td><th><span class=\'r0\'>Observance VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Maximum HP</span></td></tr>";_.modifier_text["Precision VII"]="<tr><td><span class=\'modifier-text\'>+30 Dexterity</span></td><th><span class=\'r0\'>Precision VII</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Wisdom</span></td></tr>";_.modifier_text["Reflex VI"]="<tr><td><span class=\'modifier-text\'>+30 Dexterity</span></td><th><span class=\'r0\'>Reflex VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Defense</span></td></tr>";_.modifier_text["Speed VI"]="<tr><td><span class=\'modifier-text\'>+30 Dexterity</span></td><th><span class=\'r0\'>Speed VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Maximum MP</span></td></tr>";_.modifier_text["Earth IX"]="<tr><td><span class=\'modifier-text\'>+30 Earth resistance</span></td><th><span class=\'r0\'>Earth IX</span></th></tr>";_.modifier_text["Flame IX"]="<tr><td><span class=\'modifier-text\'>+30 Fire resistance</span></td><th><span class=\'r0\'>Flame IX</span></th></tr>";_.modifier_text["Elder VII"]="<tr><td><span class=\'modifier-text\'>+30 Intelligence</span></td><th><span class=\'r0\'>Elder VII</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Stamina</span></td></tr>";_.modifier_text["Expansion VI"]="<tr><td><span class=\'modifier-text\'>+30 Intelligence</span></td><th><span class=\'r0\'>Expansion VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Physical Attack</span></td></tr>";_.modifier_text["Genius VII"]="<tr><td><span class=\'modifier-text\'>+30 Intelligence</span></td><th><span class=\'r0\'>Genius VII</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Wisdom</span></td></tr>";_.modifier_text["Grace VI"]="<tr><td><span class=\'modifier-text\'>+30 Intelligence</span></td><th><span class=\'r0\'>Grace VI</span></th></tr>";_.modifier_text["Grimoire VI"]="<tr><td><span class=\'modifier-text\'>+30 Intelligence</span></td><th><span class=\'r0\'>Grimoire VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Maximum MP</span></td></tr>";_.modifier_text["Illumine VI"]="<tr><td><span class=\'modifier-text\'>+30 Intelligence</span></td><th><span class=\'r0\'>Illumine VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Magical Attack</span></td></tr>";_.modifier_text["Mind VI"]="<tr><td><span class=\'modifier-text\'>+30 Intelligence</span></td><th><span class=\'r0\'>Mind VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Magical defense</span></td></tr>";_.modifier_text["Scholar VI"]="<tr><td><span class=\'modifier-text\'>+30 Intelligence</span></td><th><span class=\'r0\'>Scholar VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Maximum HP</span></td></tr>";_.modifier_text["Shield VI"]="<tr><td><span class=\'modifier-text\'>+30 Intelligence</span></td><th><span class=\'r0\'>Shield VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Defense</span></td></tr>";_.modifier_text["Light IX"]="<tr><td><span class=\'modifier-text\'>+30 Light resistance</span></td><th><span class=\'r0\'>Light IX</span></th></tr>";_.modifier_text["Darkness IV"]="<tr><td><span class=\'modifier-text\'>+30 Magical Attack</span></td><th><span class=\'r0\'>Darkness IV</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Wisdom</span></td></tr>";_.modifier_text["Meteor IV"]="<tr><td><span class=\'modifier-text\'>+30 Magical Attack</span></td><th><span class=\'r0\'>Meteor IV</span></th></tr>";_.modifier_text["Warlock IV"]="<tr><td><span class=\'modifier-text\'>+30 Magical Attack</span></td><th><span class=\'r0\'>Warlock IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Magical defense</span></td></tr>";_.modifier_text["Resilience V"]="<tr><td><span class=\'modifier-text\'>+30 Magical defense</span></td><th><span class=\'r0\'>Resilience V</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Defense</span></td></tr>";_.modifier_text["Candle IV"]="<tr><td><span class=\'modifier-text\'>+30 Maximum HP</span></td><th><span class=\'r0\'>Candle IV</span></th></tr>";_.modifier_text["Glacier IV"]="<tr><td><span class=\'modifier-text\'>+30 Maximum HP</span></td><th><span class=\'r0\'>Glacier IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Magical Attack</span></td></tr>";_.modifier_text["Lumen IV"]="<tr><td><span class=\'modifier-text\'>+30 Maximum HP</span></td><th><span class=\'r0\'>Lumen IV</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Wisdom</span></td></tr>";_.modifier_text["Paradigm IV"]="<tr><td><span class=\'modifier-text\'>+30 Maximum HP</span></td><th><span class=\'r0\'>Paradigm IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Maximum MP</span></td></tr>";_.modifier_text["Spring IV"]="<tr><td><span class=\'modifier-text\'>+30 Maximum HP</span></td><th><span class=\'r0\'>Spring IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Magical defense</span></td></tr>";_.modifier_text["Stone IV"]="<tr><td><span class=\'modifier-text\'>+30 Maximum HP</span></td><th><span class=\'r0\'>Stone IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Defense</span></td></tr>";_.modifier_text["Vulcano IV"]="<tr><td><span class=\'modifier-text\'>+30 Maximum HP</span></td><th><span class=\'r0\'>Vulcano IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Physical Attack</span></td></tr>";_.modifier_text["Crystal IV"]="<tr><td><span class=\'modifier-text\'>+30 Maximum MP</span></td><th><span class=\'r0\'>Crystal IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Defense</span></td></tr>";_.modifier_text["Gunpowder IV"]="<tr><td><span class=\'modifier-text\'>+30 Maximum MP</span></td><th><span class=\'r0\'>Gunpowder IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Physical Attack</span></td></tr>";_.modifier_text["Mercy IV"]="<tr><td><span class=\'modifier-text\'>+30 Maximum MP</span></td><th><span class=\'r0\'>Mercy IV</span></th></tr>";_.modifier_text["Sage IV"]="<tr><td><span class=\'modifier-text\'>+30 Maximum MP</span></td><th><span class=\'r0\'>Sage IV</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Wisdom</span></td></tr>";_.modifier_text["Savant IV"]="<tr><td><span class=\'modifier-text\'>+30 Maximum MP</span></td><th><span class=\'r0\'>Savant IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Magical defense</span></td></tr>";_.modifier_text["Wrath IV"]="<tr><td><span class=\'modifier-text\'>+30 Maximum MP</span></td><th><span class=\'r0\'>Wrath IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Magical Attack</span></td></tr>";_.modifier_text["Blood IV"]="<tr><td><span class=\'modifier-text\'>+30 Physical Attack</span></td><th><span class=\'r0\'>Blood IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Magical Attack</span></td></tr>";_.modifier_text["Keen IV"]="<tr><td><span class=\'modifier-text\'>+30 Physical Attack</span></td><th><span class=\'r0\'>Keen IV</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Defense</span></td></tr>";_.modifier_text["Authority VI"]="<tr><td><span class=\'modifier-text\'>+30 Stamina</span></td><th><span class=\'r0\'>Authority VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Defense</span></td></tr>";_.modifier_text["Endurance VI"]="<tr><td><span class=\'modifier-text\'>+30 Stamina</span></td><th><span class=\'r0\'>Endurance VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Maximum HP</span></td></tr>";_.modifier_text["Force VII"]="<tr><td><span class=\'modifier-text\'>+30 Stamina</span></td><th><span class=\'r0\'>Force VII</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Dexterity</span></td></tr>";_.modifier_text["Massif VI"]="<tr><td><span class=\'modifier-text\'>+30 Stamina</span></td><th><span class=\'r0\'>Massif VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Maximum MP</span></td></tr>";_.modifier_text["Monk VII"]="<tr><td><span class=\'modifier-text\'>+30 Stamina</span></td><th><span class=\'r0\'>Monk VII</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Wisdom</span></td></tr>";_.modifier_text["Oppression VI"]="<tr><td><span class=\'modifier-text\'>+30 Stamina</span></td><th><span class=\'r0\'>Oppression VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Physical Attack</span></td></tr>";_.modifier_text["Rigor VI"]="<tr><td><span class=\'modifier-text\'>+30 Stamina</span></td><th><span class=\'r0\'>Rigor VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Magical defense</span></td></tr>";_.modifier_text["Source VI"]="<tr><td><span class=\'modifier-text\'>+30 Stamina</span></td><th><span class=\'r0\'>Source VI</span></th></tr>";_.modifier_text["Thunder VI"]="<tr><td><span class=\'modifier-text\'>+30 Stamina</span></td><th><span class=\'r0\'>Thunder VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Magical Attack</span></td></tr>";_.modifier_text["Barbarian VI"]="<tr><td><span class=\'modifier-text\'>+30 Strength</span></td><th><span class=\'r0\'>Barbarian VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Physical Attack</span></td></tr>";_.modifier_text["Cougar VII"]="<tr><td><span class=\'modifier-text\'>+30 Strength</span></td><th><span class=\'r0\'>Cougar VII</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Dexterity</span></td></tr>";_.modifier_text["Defender VI"]="<tr><td><span class=\'modifier-text\'>+30 Strength</span></td><th><span class=\'r0\'>Defender VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Defense</span></td></tr>";_.modifier_text["Dominion VI"]="<tr><td><span class=\'modifier-text\'>+30 Strength</span></td><th><span class=\'r0\'>Dominion VI</span></th></tr>";_.modifier_text["Ferocity VI"]="<tr><td><span class=\'modifier-text\'>+30 Strength</span></td><th><span class=\'r0\'>Ferocity VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Maximum MP</span></td></tr>";_.modifier_text["Hammer VI"]="<tr><td><span class=\'modifier-text\'>+30 Strength</span></td><th><span class=\'r0\'>Hammer VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Maximum HP</span></td></tr>";_.modifier_text["Moral VII"]="<tr><td><span class=\'modifier-text\'>+30 Strength</span></td><th><span class=\'r0\'>Moral VII</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Intelligence</span></td></tr>";_.modifier_text["Paladin VI"]="<tr><td><span class=\'modifier-text\'>+30 Strength</span></td><th><span class=\'r0\'>Paladin VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Magical defense</span></td></tr>";_.modifier_text["Rage VI"]="<tr><td><span class=\'modifier-text\'>+30 Strength</span></td><th><span class=\'r0\'>Rage VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Magical Attack</span></td></tr>";_.modifier_text["Savage VII"]="<tr><td><span class=\'modifier-text\'>+30 Strength</span></td><th><span class=\'r0\'>Savage VII</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Stamina</span></td></tr>";_.modifier_text["Mist IX"]="<tr><td><span class=\'modifier-text\'>+30 Water resistance</span></td><th><span class=\'r0\'>Mist IX</span></th></tr>";_.modifier_text["Whiff IX"]="<tr><td><span class=\'modifier-text\'>+30 Wind resistance</span></td><th><span class=\'r0\'>Whiff IX</span></th></tr>";_.modifier_text["Breeze VI"]="<tr><td><span class=\'modifier-text\'>+30 Wisdom</span></td><th><span class=\'r0\'>Breeze VI</span></th></tr>";_.modifier_text["Mystic VI"]="<tr><td><span class=\'modifier-text\'>+30 Wisdom</span></td><th><span class=\'r0\'>Mystic VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Magical defense</span></td></tr>";_.modifier_text["Soul X"]="<tr><td><span class=\'modifier-text\'>+300 Defense</span></td><th><span class=\'r0\'>Soul X</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Wisdom</span></td></tr>";_.modifier_text["Darkness X"]="<tr><td><span class=\'modifier-text\'>+300 Magical Attack</span></td><th><span class=\'r0\'>Darkness X</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Wisdom</span></td></tr>";_.modifier_text["Meteor X"]="<tr><td><span class=\'modifier-text\'>+300 Magical Attack</span></td><th><span class=\'r0\'>Meteor X</span></th></tr>";_.modifier_text["Warlock X"]="<tr><td><span class=\'modifier-text\'>+300 Magical Attack</span></td><th><span class=\'r0\'>Warlock X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Magical defense</span></td></tr>";_.modifier_text["Candle X"]="<tr><td><span class=\'modifier-text\'>+300 Maximum HP</span></td><th><span class=\'r0\'>Candle X</span></th></tr>";_.modifier_text["Glacier X"]="<tr><td><span class=\'modifier-text\'>+300 Maximum HP</span></td><th><span class=\'r0\'>Glacier X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Magical Attack</span></td></tr>";_.modifier_text["Lumen X"]="<tr><td><span class=\'modifier-text\'>+300 Maximum HP</span></td><th><span class=\'r0\'>Lumen X</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Wisdom</span></td></tr>";_.modifier_text["Paradigm X"]="<tr><td><span class=\'modifier-text\'>+300 Maximum HP</span></td><th><span class=\'r0\'>Paradigm X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Maximum MP</span></td></tr>";_.modifier_text["Spring X"]="<tr><td><span class=\'modifier-text\'>+300 Maximum HP</span></td><th><span class=\'r0\'>Spring X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Magical defense</span></td></tr>";_.modifier_text["Stone X"]="<tr><td><span class=\'modifier-text\'>+300 Maximum HP</span></td><th><span class=\'r0\'>Stone X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Defense</span></td></tr>";_.modifier_text["Vulcano X"]="<tr><td><span class=\'modifier-text\'>+300 Maximum HP</span></td><th><span class=\'r0\'>Vulcano X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Physical Attack</span></td></tr>";_.modifier_text["Crystal X"]="<tr><td><span class=\'modifier-text\'>+300 Maximum MP</span></td><th><span class=\'r0\'>Crystal X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Defense</span></td></tr>";_.modifier_text["Gunpowder X"]="<tr><td><span class=\'modifier-text\'>+300 Maximum MP</span></td><th><span class=\'r0\'>Gunpowder X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Physical Attack</span></td></tr>";_.modifier_text["Mercy X"]="<tr><td><span class=\'modifier-text\'>+300 Maximum MP</span></td><th><span class=\'r0\'>Mercy X</span></th></tr>";_.modifier_text["Sage X"]="<tr><td><span class=\'modifier-text\'>+300 Maximum MP</span></td><th><span class=\'r0\'>Sage X</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Wisdom</span></td></tr>";_.modifier_text["Savant X"]="<tr><td><span class=\'modifier-text\'>+300 Maximum MP</span></td><th><span class=\'r0\'>Savant X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Magical defense</span></td></tr>";_.modifier_text["Wrath X"]="<tr><td><span class=\'modifier-text\'>+300 Maximum MP</span></td><th><span class=\'r0\'>Wrath X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Magical Attack</span></td></tr>";_.modifier_text["Blood X"]="<tr><td><span class=\'modifier-text\'>+300 Physical Attack</span></td><th><span class=\'r0\'>Blood X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Magical Attack</span></td></tr>";_.modifier_text["Keen X"]="<tr><td><span class=\'modifier-text\'>+300 Physical Attack</span></td><th><span class=\'r0\'>Keen X</span></th></tr><tr><td><span class=\'modifier-text\'>+300 Defense</span></td></tr>";_.modifier_text["Accuracy VIII"]="<tr><td><span class=\'modifier-text\'>+31 % accuracy</span></td><th><span class=\'r0\'>Accuracy VIII</span></th></tr>";_.modifier_text["Dodge VIII"]="<tr><td><span class=\'modifier-text\'>+31 % dodge rate</span></td><th><span class=\'r0\'>Dodge VIII</span></th></tr>";_.modifier_text["Defense VIII"]="<tr><td><span class=\'modifier-text\'>+31 Defense</span></td><th><span class=\'r0\'>Defense VIII</span></th></tr>";_.modifier_text["Energy VIII"]="<tr><td><span class=\'modifier-text\'>+31 Magical Attack</span></td><th><span class=\'r0\'>Energy VIII</span></th></tr>";_.modifier_text["Barrier VIII"]="<tr><td><span class=\'modifier-text\'>+31 Magical defense</span></td><th><span class=\'r0\'>Barrier VIII</span></th></tr>";_.modifier_text["Might VIII"]="<tr><td><span class=\'modifier-text\'>+31 Physical Attack</span></td><th><span class=\'r0\'>Might VIII</span></th></tr>";_.modifier_text["Life IV"]="<tr><td><span class=\'modifier-text\'>+34 Maximum HP</span></td><th><span class=\'r0\'>Life IV</span></th></tr>";_.modifier_text["Magic IV"]="<tr><td><span class=\'modifier-text\'>+34 Maximum MP</span></td><th><span class=\'r0\'>Magic IV</span></th></tr>";_.modifier_text["Dexterity X"]="<tr><td><span class=\'modifier-text\'>+35 Dexterity</span></td><th><span class=\'r0\'>Dexterity X</span></th></tr>";_.modifier_text["Intellect X"]="<tr><td><span class=\'modifier-text\'>+35 Intelligence</span></td><th><span class=\'r0\'>Intellect X</span></th></tr>";_.modifier_text["Stamina X"]="<tr><td><span class=\'modifier-text\'>+35 Stamina</span></td><th><span class=\'r0\'>Stamina X</span></th></tr>";_.modifier_text["Strength X"]="<tr><td><span class=\'modifier-text\'>+35 Strength</span></td><th><span class=\'r0\'>Strength X</span></th></tr>";_.modifier_text["Spirit X"]="<tr><td><span class=\'modifier-text\'>+35 Wisdom</span></td><th><span class=\'r0\'>Spirit X</span></th></tr>";_.modifier_text["Dark X"]="<tr><td><span class=\'modifier-text\'>+36 Dark resistance</span></td><th><span class=\'r0\'>Dark X</span></th></tr>";_.modifier_text["Earth X"]="<tr><td><span class=\'modifier-text\'>+36 Earth resistance</span></td><th><span class=\'r0\'>Earth X</span></th></tr>";_.modifier_text["Flame X"]="<tr><td><span class=\'modifier-text\'>+36 Fire resistance</span></td><th><span class=\'r0\'>Flame X</span></th></tr>";_.modifier_text["Light X"]="<tr><td><span class=\'modifier-text\'>+36 Light resistance</span></td><th><span class=\'r0\'>Light X</span></th></tr>";_.modifier_text["Mist X"]="<tr><td><span class=\'modifier-text\'>+36 Water resistance</span></td><th><span class=\'r0\'>Mist X</span></th></tr>";_.modifier_text["Whiff X"]="<tr><td><span class=\'modifier-text\'>+36 Wind resistance</span></td><th><span class=\'r0\'>Whiff X</span></th></tr>";_.modifier_text["Ability IV"]="<tr><td><span class=\'modifier-text\'>+4 All attributes</span></td><th><span class=\'r0\'>Ability IV</span></th></tr>";_.modifier_text["Element IV"]="<tr><td><span class=\'modifier-text\'>+4 All resistances</span></td><th><span class=\'r0\'>Element IV</span></th></tr>";_.modifier_text["Dexterity II"]="<tr><td><span class=\'modifier-text\'>+4 Dexterity</span></td><th><span class=\'r0\'>Dexterity II</span></th></tr>";_.modifier_text["Intellect II"]="<tr><td><span class=\'modifier-text\'>+4 Intelligence</span></td><th><span class=\'r0\'>Intellect II</span></th></tr>";_.modifier_text["Stamina II"]="<tr><td><span class=\'modifier-text\'>+4 Stamina</span></td><th><span class=\'r0\'>Stamina II</span></th></tr>";_.modifier_text["Strength II"]="<tr><td><span class=\'modifier-text\'>+4 Strength</span></td><th><span class=\'r0\'>Strength II</span></th></tr>";_.modifier_text["Spirit II"]="<tr><td><span class=\'modifier-text\'>+4 Wisdom</span></td><th><span class=\'r0\'>Spirit II</span></th></tr>";_.modifier_text["Accuracy IX"]="<tr><td><span class=\'modifier-text\'>+40 % accuracy</span></td><th><span class=\'r0\'>Accuracy IX</span></th></tr>";_.modifier_text["Dodge IX"]="<tr><td><span class=\'modifier-text\'>+40 % dodge rate</span></td><th><span class=\'r0\'>Dodge IX</span></th></tr>";_.modifier_text["Defense IX"]="<tr><td><span class=\'modifier-text\'>+40 Defense</span></td><th><span class=\'r0\'>Defense IX</span></th></tr>";_.modifier_text["Energy IX"]="<tr><td><span class=\'modifier-text\'>+40 Magical Attack</span></td><th><span class=\'r0\'>Energy IX</span></th></tr>";_.modifier_text["Barrier IX"]="<tr><td><span class=\'modifier-text\'>+40 Magical defense</span></td><th><span class=\'r0\'>Barrier IX</span></th></tr>";_.modifier_text["Might IX"]="<tr><td><span class=\'modifier-text\'>+40 Physical Attack</span></td><th><span class=\'r0\'>Might IX</span></th></tr>";_.modifier_text["Dark XI"]="<tr><td><span class=\'modifier-text\'>+44 Dark resistance</span></td><th><span class=\'r0\'>Dark XI</span></th></tr>";_.modifier_text["Earth XI"]="<tr><td><span class=\'modifier-text\'>+44 Earth resistance</span></td><th><span class=\'r0\'>Earth XI</span></th></tr>";_.modifier_text["Flame XI"]="<tr><td><span class=\'modifier-text\'>+44 Fire resistance</span></td><th><span class=\'r0\'>Flame XI</span></th></tr>";_.modifier_text["Light XI"]="<tr><td><span class=\'modifier-text\'>+44 Light resistance</span></td><th><span class=\'r0\'>Light XI</span></th></tr>";_.modifier_text["Mist XI"]="<tr><td><span class=\'modifier-text\'>+44 Water resistance</span></td><th><span class=\'r0\'>Mist XI</span></th></tr>";_.modifier_text["Whiff XI"]="<tr><td><span class=\'modifier-text\'>+44 Wind resistance</span></td><th><span class=\'r0\'>Whiff XI</span></th></tr>";_.modifier_text["Dexterity XI"]="<tr><td><span class=\'modifier-text\'>+45 Dexterity</span></td><th><span class=\'r0\'>Dexterity XI</span></th></tr>";_.modifier_text["Fox VIII"]="<tr><td><span class=\'modifier-text\'>+45 Dexterity</span></td><th><span class=\'r0\'>Fox VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+45 Intelligence</span></td></tr>";_.modifier_text["Precision VIII"]="<tr><td><span class=\'modifier-text\'>+45 Dexterity</span></td><th><span class=\'r0\'>Precision VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+45 Wisdom</span></td></tr>";_.modifier_text["Elder VIII"]="<tr><td><span class=\'modifier-text\'>+45 Intelligence</span></td><th><span class=\'r0\'>Elder VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+45 Stamina</span></td></tr>";_.modifier_text["Genius VIII"]="<tr><td><span class=\'modifier-text\'>+45 Intelligence</span></td><th><span class=\'r0\'>Genius VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+45 Wisdom</span></td></tr>";_.modifier_text["Intellect XI"]="<tr><td><span class=\'modifier-text\'>+45 Intelligence</span></td><th><span class=\'r0\'>Intellect XI</span></th></tr>";_.modifier_text["Resilience VI"]="<tr><td><span class=\'modifier-text\'>+45 Magical defense</span></td><th><span class=\'r0\'>Resilience VI</span></th></tr><tr><td><span class=\'modifier-text\'>+45 Defense</span></td></tr>";_.modifier_text["Life V"]="<tr><td><span class=\'modifier-text\'>+45 Maximum HP</span></td><th><span class=\'r0\'>Life V</span></th></tr>";_.modifier_text["Magic V"]="<tr><td><span class=\'modifier-text\'>+45 Maximum MP</span></td><th><span class=\'r0\'>Magic V</span></th></tr>";_.modifier_text["Force VIII"]="<tr><td><span class=\'modifier-text\'>+45 Stamina</span></td><th><span class=\'r0\'>Force VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+45 Dexterity</span></td></tr>";_.modifier_text["Monk VIII"]="<tr><td><span class=\'modifier-text\'>+45 Stamina</span></td><th><span class=\'r0\'>Monk VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+45 Wisdom</span></td></tr>";_.modifier_text["Stamina XI"]="<tr><td><span class=\'modifier-text\'>+45 Stamina</span></td><th><span class=\'r0\'>Stamina XI</span></th></tr>";_.modifier_text["Cougar VIII"]="<tr><td><span class=\'modifier-text\'>+45 Strength</span></td><th><span class=\'r0\'>Cougar VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+45 Dexterity</span></td></tr>";_.modifier_text["Moral VIII"]="<tr><td><span class=\'modifier-text\'>+45 Strength</span></td><th><span class=\'r0\'>Moral VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+45 Intelligence</span></td></tr>";_.modifier_text["Savage VIII"]="<tr><td><span class=\'modifier-text\'>+45 Strength</span></td><th><span class=\'r0\'>Savage VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+45 Stamina</span></td></tr>";_.modifier_text["Strength XI"]="<tr><td><span class=\'modifier-text\'>+45 Strength</span></td><th><span class=\'r0\'>Strength XI</span></th></tr>";_.modifier_text["Spirit XI"]="<tr><td><span class=\'modifier-text\'>+45 Wisdom</span></td><th><span class=\'r0\'>Spirit XI</span></th></tr>";_.modifier_text["Accuracy I"]="<tr><td><span class=\'modifier-text\'>+5 % accuracy</span></td><th><span class=\'r0\'>Accuracy I</span></th></tr>";_.modifier_text["Dodge I"]="<tr><td><span class=\'modifier-text\'>+5 % dodge rate</span></td><th><span class=\'r0\'>Dodge I</span></th></tr>";_.modifier_text["Ability V"]="<tr><td><span class=\'modifier-text\'>+5 All attributes</span></td><th><span class=\'r0\'>Ability V</span></th></tr>";_.modifier_text["Element V"]="<tr><td><span class=\'modifier-text\'>+5 All resistances</span></td><th><span class=\'r0\'>Element V</span></th></tr>";_.modifier_text["Dark I"]="<tr><td><span class=\'modifier-text\'>+5 Dark resistance</span></td><th><span class=\'r0\'>Dark I</span></th></tr>";_.modifier_text["Defense I"]="<tr><td><span class=\'modifier-text\'>+5 Defense</span></td><th><span class=\'r0\'>Defense I</span></th></tr>";_.modifier_text["Agility II"]="<tr><td><span class=\'modifier-text\'>+5 Dexterity</span></td><th><span class=\'r0\'>Agility II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Magical defense</span></td></tr>";_.modifier_text["Fang II"]="<tr><td><span class=\'modifier-text\'>+5 Dexterity</span></td><th><span class=\'r0\'>Fang II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Physical Attack</span></td></tr>";_.modifier_text["Observance II"]="<tr><td><span class=\'modifier-text\'>+5 Dexterity</span></td><th><span class=\'r0\'>Observance II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Maximum HP</span></td></tr>";_.modifier_text["Reflex II"]="<tr><td><span class=\'modifier-text\'>+5 Dexterity</span></td><th><span class=\'r0\'>Reflex II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Defense</span></td></tr>";_.modifier_text["Speed II"]="<tr><td><span class=\'modifier-text\'>+5 Dexterity</span></td><th><span class=\'r0\'>Speed II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Maximum MP</span></td></tr>";_.modifier_text["Earth I"]="<tr><td><span class=\'modifier-text\'>+5 Earth resistance</span></td><th><span class=\'r0\'>Earth I</span></th></tr>";_.modifier_text["Flame I"]="<tr><td><span class=\'modifier-text\'>+5 Fire resistance</span></td><th><span class=\'r0\'>Flame I</span></th></tr>";_.modifier_text["Expansion II"]="<tr><td><span class=\'modifier-text\'>+5 Intelligence</span></td><th><span class=\'r0\'>Expansion II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Physical Attack</span></td></tr>";_.modifier_text["Grace II"]="<tr><td><span class=\'modifier-text\'>+5 Intelligence</span></td><th><span class=\'r0\'>Grace II</span></th></tr>";_.modifier_text["Grimoire II"]="<tr><td><span class=\'modifier-text\'>+5 Intelligence</span></td><th><span class=\'r0\'>Grimoire II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Maximum MP</span></td></tr>";_.modifier_text["Illumine II"]="<tr><td><span class=\'modifier-text\'>+5 Intelligence</span></td><th><span class=\'r0\'>Illumine II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Magical Attack</span></td></tr>";_.modifier_text["Mind II"]="<tr><td><span class=\'modifier-text\'>+5 Intelligence</span></td><th><span class=\'r0\'>Mind II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Magical defense</span></td></tr>";_.modifier_text["Scholar II"]="<tr><td><span class=\'modifier-text\'>+5 Intelligence</span></td><th><span class=\'r0\'>Scholar II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Maximum HP</span></td></tr>";_.modifier_text["Shield II"]="<tr><td><span class=\'modifier-text\'>+5 Intelligence</span></td><th><span class=\'r0\'>Shield II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Defense</span></td></tr>";_.modifier_text["Light I"]="<tr><td><span class=\'modifier-text\'>+5 Light resistance</span></td><th><span class=\'r0\'>Light I</span></th></tr>";_.modifier_text["Energy I"]="<tr><td><span class=\'modifier-text\'>+5 Magical Attack</span></td><th><span class=\'r0\'>Energy I</span></th></tr>";_.modifier_text["Barrier I"]="<tr><td><span class=\'modifier-text\'>+5 Magical defense</span></td><th><span class=\'r0\'>Barrier I</span></th></tr>";_.modifier_text["Might I"]="<tr><td><span class=\'modifier-text\'>+5 Physical Attack</span></td><th><span class=\'r0\'>Might I</span></th></tr>";_.modifier_text["Authority II"]="<tr><td><span class=\'modifier-text\'>+5 Stamina</span></td><th><span class=\'r0\'>Authority II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Defense</span></td></tr>";_.modifier_text["Endurance II"]="<tr><td><span class=\'modifier-text\'>+5 Stamina</span></td><th><span class=\'r0\'>Endurance II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Maximum HP</span></td></tr>";_.modifier_text["Massif II"]="<tr><td><span class=\'modifier-text\'>+5 Stamina</span></td><th><span class=\'r0\'>Massif II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Maximum MP</span></td></tr>";_.modifier_text["Oppression II"]="<tr><td><span class=\'modifier-text\'>+5 Stamina</span></td><th><span class=\'r0\'>Oppression II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Physical Attack</span></td></tr>";_.modifier_text["Rigor II"]="<tr><td><span class=\'modifier-text\'>+5 Stamina</span></td><th><span class=\'r0\'>Rigor II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Magical defense</span></td></tr>";_.modifier_text["Source II"]="<tr><td><span class=\'modifier-text\'>+5 Stamina</span></td><th><span class=\'r0\'>Source II</span></th></tr>";_.modifier_text["Thunder II"]="<tr><td><span class=\'modifier-text\'>+5 Stamina</span></td><th><span class=\'r0\'>Thunder II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Magical Attack</span></td></tr>";_.modifier_text["Barbarian II"]="<tr><td><span class=\'modifier-text\'>+5 Strength</span></td><th><span class=\'r0\'>Barbarian II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Physical Attack</span></td></tr>";_.modifier_text["Defender II"]="<tr><td><span class=\'modifier-text\'>+5 Strength</span></td><th><span class=\'r0\'>Defender II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Defense</span></td></tr>";_.modifier_text["Dominion II"]="<tr><td><span class=\'modifier-text\'>+5 Strength</span></td><th><span class=\'r0\'>Dominion II</span></th></tr>";_.modifier_text["Ferocity II"]="<tr><td><span class=\'modifier-text\'>+5 Strength</span></td><th><span class=\'r0\'>Ferocity II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Maximum MP</span></td></tr>";_.modifier_text["Hammer II"]="<tr><td><span class=\'modifier-text\'>+5 Strength</span></td><th><span class=\'r0\'>Hammer II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Maximum HP</span></td></tr>";_.modifier_text["Paladin II"]="<tr><td><span class=\'modifier-text\'>+5 Strength</span></td><th><span class=\'r0\'>Paladin II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Magical defense</span></td></tr>";_.modifier_text["Rage II"]="<tr><td><span class=\'modifier-text\'>+5 Strength</span></td><th><span class=\'r0\'>Rage II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Magical Attack</span></td></tr>";_.modifier_text["Mist I"]="<tr><td><span class=\'modifier-text\'>+5 Water resistance</span></td><th><span class=\'r0\'>Mist I</span></th></tr>";_.modifier_text["Whiff I"]="<tr><td><span class=\'modifier-text\'>+5 Wind resistance</span></td><th><span class=\'r0\'>Whiff I</span></th></tr>";_.modifier_text["Breeze II"]="<tr><td><span class=\'modifier-text\'>+5 Wisdom</span></td><th><span class=\'r0\'>Breeze II</span></th></tr>";_.modifier_text["Mystic II"]="<tr><td><span class=\'modifier-text\'>+5 Wisdom</span></td><th><span class=\'r0\'>Mystic II</span></th></tr><tr><td><span class=\'modifier-text\'>+15 Magical defense</span></td></tr>";_.modifier_text["Accuracy X"]="<tr><td><span class=\'modifier-text\'>+50 % accuracy</span></td><th><span class=\'r0\'>Accuracy X</span></th></tr>";_.modifier_text["Dodge X"]="<tr><td><span class=\'modifier-text\'>+50 % dodge rate</span></td><th><span class=\'r0\'>Dodge X</span></th></tr>";_.modifier_text["Defense X"]="<tr><td><span class=\'modifier-text\'>+50 Defense</span></td><th><span class=\'r0\'>Defense X</span></th></tr>";_.modifier_text["Soul V"]="<tr><td><span class=\'modifier-text\'>+50 Defense</span></td><th><span class=\'r0\'>Soul V</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Wisdom</span></td></tr>";_.modifier_text["Agility VII"]="<tr><td><span class=\'modifier-text\'>+50 Dexterity</span></td><th><span class=\'r0\'>Agility VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Magical defense</span></td></tr>";_.modifier_text["Fang VII"]="<tr><td><span class=\'modifier-text\'>+50 Dexterity</span></td><th><span class=\'r0\'>Fang VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Physical Attack</span></td></tr>";_.modifier_text["Observance VII"]="<tr><td><span class=\'modifier-text\'>+50 Dexterity</span></td><th><span class=\'r0\'>Observance VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Maximum HP</span></td></tr>";_.modifier_text["Reflex VII"]="<tr><td><span class=\'modifier-text\'>+50 Dexterity</span></td><th><span class=\'r0\'>Reflex VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Defense</span></td></tr>";_.modifier_text["Speed VII"]="<tr><td><span class=\'modifier-text\'>+50 Dexterity</span></td><th><span class=\'r0\'>Speed VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Maximum MP</span></td></tr>";_.modifier_text["Expansion VII"]="<tr><td><span class=\'modifier-text\'>+50 Intelligence</span></td><th><span class=\'r0\'>Expansion VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Physical Attack</span></td></tr>";_.modifier_text["Grace VII"]="<tr><td><span class=\'modifier-text\'>+50 Intelligence</span></td><th><span class=\'r0\'>Grace VII</span></th></tr>";_.modifier_text["Grimoire VII"]="<tr><td><span class=\'modifier-text\'>+50 Intelligence</span></td><th><span class=\'r0\'>Grimoire VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Maximum MP</span></td></tr>";_.modifier_text["Illumine VII"]="<tr><td><span class=\'modifier-text\'>+50 Intelligence</span></td><th><span class=\'r0\'>Illumine VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Magical Attack</span></td></tr>";_.modifier_text["Mind VII"]="<tr><td><span class=\'modifier-text\'>+50 Intelligence</span></td><th><span class=\'r0\'>Mind VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Magical defense</span></td></tr>";_.modifier_text["Scholar VII"]="<tr><td><span class=\'modifier-text\'>+50 Intelligence</span></td><th><span class=\'r0\'>Scholar VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Maximum HP</span></td></tr>";_.modifier_text["Shield VII"]="<tr><td><span class=\'modifier-text\'>+50 Intelligence</span></td><th><span class=\'r0\'>Shield VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Defense</span></td></tr>";_.modifier_text["Darkness V"]="<tr><td><span class=\'modifier-text\'>+50 Magical Attack</span></td><th><span class=\'r0\'>Darkness V</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Wisdom</span></td></tr>";_.modifier_text["Energy X"]="<tr><td><span class=\'modifier-text\'>+50 Magical Attack</span></td><th><span class=\'r0\'>Energy X</span></th></tr>";_.modifier_text["Meteor V"]="<tr><td><span class=\'modifier-text\'>+50 Magical Attack</span></td><th><span class=\'r0\'>Meteor V</span></th></tr>";_.modifier_text["Warlock V"]="<tr><td><span class=\'modifier-text\'>+50 Magical Attack</span></td><th><span class=\'r0\'>Warlock V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Magical defense</span></td></tr>";_.modifier_text["Barrier X"]="<tr><td><span class=\'modifier-text\'>+50 Magical defense</span></td><th><span class=\'r0\'>Barrier X</span></th></tr>";_.modifier_text["Candle V"]="<tr><td><span class=\'modifier-text\'>+50 Maximum HP</span></td><th><span class=\'r0\'>Candle V</span></th></tr>";_.modifier_text["Glacier V"]="<tr><td><span class=\'modifier-text\'>+50 Maximum HP</span></td><th><span class=\'r0\'>Glacier V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Magical Attack</span></td></tr>";_.modifier_text["Lumen V"]="<tr><td><span class=\'modifier-text\'>+50 Maximum HP</span></td><th><span class=\'r0\'>Lumen V</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Wisdom</span></td></tr>";_.modifier_text["Paradigm V"]="<tr><td><span class=\'modifier-text\'>+50 Maximum HP</span></td><th><span class=\'r0\'>Paradigm V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Maximum MP</span></td></tr>";_.modifier_text["Spring V"]="<tr><td><span class=\'modifier-text\'>+50 Maximum HP</span></td><th><span class=\'r0\'>Spring V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Magical defense</span></td></tr>";_.modifier_text["Stone V"]="<tr><td><span class=\'modifier-text\'>+50 Maximum HP</span></td><th><span class=\'r0\'>Stone V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Defense</span></td></tr>";_.modifier_text["Vulcano V"]="<tr><td><span class=\'modifier-text\'>+50 Maximum HP</span></td><th><span class=\'r0\'>Vulcano V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Physical Attack</span></td></tr>";_.modifier_text["Crystal V"]="<tr><td><span class=\'modifier-text\'>+50 Maximum MP</span></td><th><span class=\'r0\'>Crystal V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Defense</span></td></tr>";_.modifier_text["Gunpowder V"]="<tr><td><span class=\'modifier-text\'>+50 Maximum MP</span></td><th><span class=\'r0\'>Gunpowder V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Physical Attack</span></td></tr>";_.modifier_text["Mercy V"]="<tr><td><span class=\'modifier-text\'>+50 Maximum MP</span></td><th><span class=\'r0\'>Mercy V</span></th></tr>";_.modifier_text["Sage V"]="<tr><td><span class=\'modifier-text\'>+50 Maximum MP</span></td><th><span class=\'r0\'>Sage V</span></th></tr><tr><td><span class=\'modifier-text\'>+20 Wisdom</span></td></tr>";_.modifier_text["Savant V"]="<tr><td><span class=\'modifier-text\'>+50 Maximum MP</span></td><th><span class=\'r0\'>Savant V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Magical defense</span></td></tr>";_.modifier_text["Wrath V"]="<tr><td><span class=\'modifier-text\'>+50 Maximum MP</span></td><th><span class=\'r0\'>Wrath V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Magical Attack</span></td></tr>";_.modifier_text["Blood V"]="<tr><td><span class=\'modifier-text\'>+50 Physical Attack</span></td><th><span class=\'r0\'>Blood V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Magical Attack</span></td></tr>";_.modifier_text["Keen V"]="<tr><td><span class=\'modifier-text\'>+50 Physical Attack</span></td><th><span class=\'r0\'>Keen V</span></th></tr><tr><td><span class=\'modifier-text\'>+50 Defense</span></td></tr>";_.modifier_text["Might X"]="<tr><td><span class=\'modifier-text\'>+50 Physical Attack</span></td><th><span class=\'r0\'>Might X</span></th></tr>";_.modifier_text["Authority VII"]="<tr><td><span class=\'modifier-text\'>+50 Stamina</span></td><th><span class=\'r0\'>Authority VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Defense</span></td></tr>";_.modifier_text["Endurance VII"]="<tr><td><span class=\'modifier-text\'>+50 Stamina</span></td><th><span class=\'r0\'>Endurance VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Maximum HP</span></td></tr>";_.modifier_text["Massif VII"]="<tr><td><span class=\'modifier-text\'>+50 Stamina</span></td><th><span class=\'r0\'>Massif VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Maximum MP</span></td></tr>";_.modifier_text["Oppression VII"]="<tr><td><span class=\'modifier-text\'>+50 Stamina</span></td><th><span class=\'r0\'>Oppression VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Physical Attack</span></td></tr>";_.modifier_text["Rigor VII"]="<tr><td><span class=\'modifier-text\'>+50 Stamina</span></td><th><span class=\'r0\'>Rigor VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Magical defense</span></td></tr>";_.modifier_text["Source VII"]="<tr><td><span class=\'modifier-text\'>+50 Stamina</span></td><th><span class=\'r0\'>Source VII</span></th></tr>";_.modifier_text["Thunder VII"]="<tr><td><span class=\'modifier-text\'>+50 Stamina</span></td><th><span class=\'r0\'>Thunder VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Magical Attack</span></td></tr>";_.modifier_text["Barbarian VII"]="<tr><td><span class=\'modifier-text\'>+50 Strength</span></td><th><span class=\'r0\'>Barbarian VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Physical Attack</span></td></tr>";_.modifier_text["Defender VII"]="<tr><td><span class=\'modifier-text\'>+50 Strength</span></td><th><span class=\'r0\'>Defender VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Defense</span></td></tr>";_.modifier_text["Dominion VII"]="<tr><td><span class=\'modifier-text\'>+50 Strength</span></td><th><span class=\'r0\'>Dominion VII</span></th></tr>";_.modifier_text["Ferocity VII"]="<tr><td><span class=\'modifier-text\'>+50 Strength</span></td><th><span class=\'r0\'>Ferocity VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Maximum MP</span></td></tr>";_.modifier_text["Hammer VII"]="<tr><td><span class=\'modifier-text\'>+50 Strength</span></td><th><span class=\'r0\'>Hammer VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Maximum HP</span></td></tr>";_.modifier_text["Paladin VII"]="<tr><td><span class=\'modifier-text\'>+50 Strength</span></td><th><span class=\'r0\'>Paladin VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Magical defense</span></td></tr>";_.modifier_text["Rage VII"]="<tr><td><span class=\'modifier-text\'>+50 Strength</span></td><th><span class=\'r0\'>Rage VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Magical Attack</span></td></tr>";_.modifier_text["Breeze VII"]="<tr><td><span class=\'modifier-text\'>+50 Wisdom</span></td><th><span class=\'r0\'>Breeze VII</span></th></tr>";_.modifier_text["Mystic VII"]="<tr><td><span class=\'modifier-text\'>+50 Wisdom</span></td><th><span class=\'r0\'>Mystic VII</span></th></tr><tr><td><span class=\'modifier-text\'>+100 Magical defense</span></td></tr>";_.modifier_text["Dark XII"]="<tr><td><span class=\'modifier-text\'>+53 Dark resistance</span></td><th><span class=\'r0\'>Dark XII</span></th></tr>";_.modifier_text["Earth XII"]="<tr><td><span class=\'modifier-text\'>+53 Earth resistance</span></td><th><span class=\'r0\'>Earth XII</span></th></tr>";_.modifier_text["Flame XII"]="<tr><td><span class=\'modifier-text\'>+53 Fire resistance</span></td><th><span class=\'r0\'>Flame XII</span></th></tr>";_.modifier_text["Light XII"]="<tr><td><span class=\'modifier-text\'>+53 Light resistance</span></td><th><span class=\'r0\'>Light XII</span></th></tr>";_.modifier_text["Mist XII"]="<tr><td><span class=\'modifier-text\'>+53 Water resistance</span></td><th><span class=\'r0\'>Mist XII</span></th></tr>";_.modifier_text["Whiff XII"]="<tr><td><span class=\'modifier-text\'>+53 Wind resistance</span></td><th><span class=\'r0\'>Whiff XII</span></th></tr>";_.modifier_text["Dexterity XII"]="<tr><td><span class=\'modifier-text\'>+56 Dexterity</span></td><th><span class=\'r0\'>Dexterity XII</span></th></tr>";_.modifier_text["Intellect XII"]="<tr><td><span class=\'modifier-text\'>+56 Intelligence</span></td><th><span class=\'r0\'>Intellect XII</span></th></tr>";_.modifier_text["Stamina XII"]="<tr><td><span class=\'modifier-text\'>+56 Stamina</span></td><th><span class=\'r0\'>Stamina XII</span></th></tr>";_.modifier_text["Strength XII"]="<tr><td><span class=\'modifier-text\'>+56 Strength</span></td><th><span class=\'r0\'>Strength XII</span></th></tr>";_.modifier_text["Spirit XII"]="<tr><td><span class=\'modifier-text\'>+56 Wisdom</span></td><th><span class=\'r0\'>Spirit XII</span></th></tr>";_.modifier_text["Life VI"]="<tr><td><span class=\'modifier-text\'>+59 Maximum HP</span></td><th><span class=\'r0\'>Life VI</span></th></tr>";_.modifier_text["Magic VI"]="<tr><td><span class=\'modifier-text\'>+59 Maximum MP</span></td><th><span class=\'r0\'>Magic VI</span></th></tr>";_.modifier_text["Ability VI"]="<tr><td><span class=\'modifier-text\'>+6 All attributes</span></td><th><span class=\'r0\'>Ability VI</span></th></tr>";_.modifier_text["Element VI"]="<tr><td><span class=\'modifier-text\'>+6 All resistances</span></td><th><span class=\'r0\'>Element VI</span></th></tr>";_.modifier_text["Dexterity III"]="<tr><td><span class=\'modifier-text\'>+6 Dexterity</span></td><th><span class=\'r0\'>Dexterity III</span></th></tr>";_.modifier_text["Intellect III"]="<tr><td><span class=\'modifier-text\'>+6 Intelligence</span></td><th><span class=\'r0\'>Intellect III</span></th></tr>";_.modifier_text["Resilience I"]="<tr><td><span class=\'modifier-text\'>+6 Magical defense</span></td><th><span class=\'r0\'>Resilience I</span></th></tr><tr><td><span class=\'modifier-text\'>+6 Defense</span></td></tr>";_.modifier_text["Stamina III"]="<tr><td><span class=\'modifier-text\'>+6 Stamina</span></td><th><span class=\'r0\'>Stamina III</span></th></tr>";_.modifier_text["Strength III"]="<tr><td><span class=\'modifier-text\'>+6 Strength</span></td><th><span class=\'r0\'>Strength III</span></th></tr>";_.modifier_text["Spirit III"]="<tr><td><span class=\'modifier-text\'>+6 Wisdom</span></td><th><span class=\'r0\'>Spirit III</span></th></tr>";_.modifier_text["Fox IX"]="<tr><td><span class=\'modifier-text\'>+60 Dexterity</span></td><th><span class=\'r0\'>Fox IX</span></th></tr><tr><td><span class=\'modifier-text\'>+60 Intelligence</span></td></tr>";_.modifier_text["Precision IX"]="<tr><td><span class=\'modifier-text\'>+60 Dexterity</span></td><th><span class=\'r0\'>Precision IX</span></th></tr><tr><td><span class=\'modifier-text\'>+60 Wisdom</span></td></tr>";_.modifier_text["Elder IX"]="<tr><td><span class=\'modifier-text\'>+60 Intelligence</span></td><th><span class=\'r0\'>Elder IX</span></th></tr><tr><td><span class=\'modifier-text\'>+60 Stamina</span></td></tr>";_.modifier_text["Genius IX"]="<tr><td><span class=\'modifier-text\'>+60 Intelligence</span></td><th><span class=\'r0\'>Genius IX</span></th></tr><tr><td><span class=\'modifier-text\'>+60 Wisdom</span></td></tr>";_.modifier_text["Resilience VII"]="<tr><td><span class=\'modifier-text\'>+60 Magical defense</span></td><th><span class=\'r0\'>Resilience VII</span></th></tr><tr><td><span class=\'modifier-text\'>+60 Defense</span></td></tr>";_.modifier_text["Force IX"]="<tr><td><span class=\'modifier-text\'>+60 Stamina</span></td><th><span class=\'r0\'>Force IX</span></th></tr><tr><td><span class=\'modifier-text\'>+60 Dexterity</span></td></tr>";_.modifier_text["Monk IX"]="<tr><td><span class=\'modifier-text\'>+60 Stamina</span></td><th><span class=\'r0\'>Monk IX</span></th></tr><tr><td><span class=\'modifier-text\'>+60 Wisdom</span></td></tr>";_.modifier_text["Cougar IX"]="<tr><td><span class=\'modifier-text\'>+60 Strength</span></td><th><span class=\'r0\'>Cougar IX</span></th></tr><tr><td><span class=\'modifier-text\'>+60 Dexterity</span></td></tr>";_.modifier_text["Moral IX"]="<tr><td><span class=\'modifier-text\'>+60 Strength</span></td><th><span class=\'r0\'>Moral IX</span></th></tr><tr><td><span class=\'modifier-text\'>+60 Intelligence</span></td></tr>";_.modifier_text["Savage IX"]="<tr><td><span class=\'modifier-text\'>+60 Strength</span></td><th><span class=\'r0\'>Savage IX</span></th></tr><tr><td><span class=\'modifier-text\'>+60 Stamina</span></td></tr>";_.modifier_text["Accuracy XI"]="<tr><td><span class=\'modifier-text\'>+63 % accuracy</span></td><th><span class=\'r0\'>Accuracy XI</span></th></tr>";_.modifier_text["Dodge XI"]="<tr><td><span class=\'modifier-text\'>+63 % dodge rate</span></td><th><span class=\'r0\'>Dodge XI</span></th></tr>";_.modifier_text["Defense XI"]="<tr><td><span class=\'modifier-text\'>+63 Defense</span></td><th><span class=\'r0\'>Defense XI</span></th></tr>";_.modifier_text["Energy XI"]="<tr><td><span class=\'modifier-text\'>+63 Magical Attack</span></td><th><span class=\'r0\'>Energy XI</span></th></tr>";_.modifier_text["Barrier XI"]="<tr><td><span class=\'modifier-text\'>+63 Magical defense</span></td><th><span class=\'r0\'>Barrier XI</span></th></tr>";_.modifier_text["Might XI"]="<tr><td><span class=\'modifier-text\'>+63 Physical Attack</span></td><th><span class=\'r0\'>Might XI</span></th></tr>";_.modifier_text["Accuracy II"]="<tr><td><span class=\'modifier-text\'>+7 % accuracy</span></td><th><span class=\'r0\'>Accuracy II</span></th></tr>";_.modifier_text["Dodge II"]="<tr><td><span class=\'modifier-text\'>+7 % dodge rate</span></td><th><span class=\'r0\'>Dodge II</span></th></tr>";_.modifier_text["Dark II"]="<tr><td><span class=\'modifier-text\'>+7 Dark resistance</span></td><th><span class=\'r0\'>Dark II</span></th></tr>";_.modifier_text["Defense II"]="<tr><td><span class=\'modifier-text\'>+7 Defense</span></td><th><span class=\'r0\'>Defense II</span></th></tr>";_.modifier_text["Earth II"]="<tr><td><span class=\'modifier-text\'>+7 Earth resistance</span></td><th><span class=\'r0\'>Earth II</span></th></tr>";_.modifier_text["Flame II"]="<tr><td><span class=\'modifier-text\'>+7 Fire resistance</span></td><th><span class=\'r0\'>Flame II</span></th></tr>";_.modifier_text["Light II"]="<tr><td><span class=\'modifier-text\'>+7 Light resistance</span></td><th><span class=\'r0\'>Light II</span></th></tr>";_.modifier_text["Energy II"]="<tr><td><span class=\'modifier-text\'>+7 Magical Attack</span></td><th><span class=\'r0\'>Energy II</span></th></tr>";_.modifier_text["Barrier II"]="<tr><td><span class=\'modifier-text\'>+7 Magical defense</span></td><th><span class=\'r0\'>Barrier II</span></th></tr>";_.modifier_text["Might II"]="<tr><td><span class=\'modifier-text\'>+7 Physical Attack</span></td><th><span class=\'r0\'>Might II</span></th></tr>";_.modifier_text["Mist II"]="<tr><td><span class=\'modifier-text\'>+7 Water resistance</span></td><th><span class=\'r0\'>Mist II</span></th></tr>";_.modifier_text["Whiff II"]="<tr><td><span class=\'modifier-text\'>+7 Wind resistance</span></td><th><span class=\'r0\'>Whiff II</span></th></tr>";_.modifier_text["Life VII"]="<tr><td><span class=\'modifier-text\'>+74 Maximum HP</span></td><th><span class=\'r0\'>Life VII</span></th></tr>";_.modifier_text["Magic VII"]="<tr><td><span class=\'modifier-text\'>+74 Maximum MP</span></td><th><span class=\'r0\'>Magic VII</span></th></tr>";_.modifier_text["Soul VI"]="<tr><td><span class=\'modifier-text\'>+75 Defense</span></td><th><span class=\'r0\'>Soul VI</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Wisdom</span></td></tr>";_.modifier_text["Agility VIII"]="<tr><td><span class=\'modifier-text\'>+75 Dexterity</span></td><th><span class=\'r0\'>Agility VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Magical defense</span></td></tr>";_.modifier_text["Fang VIII"]="<tr><td><span class=\'modifier-text\'>+75 Dexterity</span></td><th><span class=\'r0\'>Fang VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Physical Attack</span></td></tr>";_.modifier_text["Fox X"]="<tr><td><span class=\'modifier-text\'>+75 Dexterity</span></td><th><span class=\'r0\'>Fox X</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Intelligence</span></td></tr>";_.modifier_text["Observance VIII"]="<tr><td><span class=\'modifier-text\'>+75 Dexterity</span></td><th><span class=\'r0\'>Observance VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Maximum HP</span></td></tr>";_.modifier_text["Precision X"]="<tr><td><span class=\'modifier-text\'>+75 Dexterity</span></td><th><span class=\'r0\'>Precision X</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Wisdom</span></td></tr>";_.modifier_text["Reflex VIII"]="<tr><td><span class=\'modifier-text\'>+75 Dexterity</span></td><th><span class=\'r0\'>Reflex VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Defense</span></td></tr>";_.modifier_text["Speed VIII"]="<tr><td><span class=\'modifier-text\'>+75 Dexterity</span></td><th><span class=\'r0\'>Speed VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Maximum MP</span></td></tr>";_.modifier_text["Elder X"]="<tr><td><span class=\'modifier-text\'>+75 Intelligence</span></td><th><span class=\'r0\'>Elder X</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Stamina</span></td></tr>";_.modifier_text["Expansion VIII"]="<tr><td><span class=\'modifier-text\'>+75 Intelligence</span></td><th><span class=\'r0\'>Expansion VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Physical Attack</span></td></tr>";_.modifier_text["Genius X"]="<tr><td><span class=\'modifier-text\'>+75 Intelligence</span></td><th><span class=\'r0\'>Genius X</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Wisdom</span></td></tr>";_.modifier_text["Grace VIII"]="<tr><td><span class=\'modifier-text\'>+75 Intelligence</span></td><th><span class=\'r0\'>Grace VIII</span></th></tr>";_.modifier_text["Grimoire VIII"]="<tr><td><span class=\'modifier-text\'>+75 Intelligence</span></td><th><span class=\'r0\'>Grimoire VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Maximum MP</span></td></tr>";_.modifier_text["Illumine VIII"]="<tr><td><span class=\'modifier-text\'>+75 Intelligence</span></td><th><span class=\'r0\'>Illumine VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Magical Attack</span></td></tr>";_.modifier_text["Mind VIII"]="<tr><td><span class=\'modifier-text\'>+75 Intelligence</span></td><th><span class=\'r0\'>Mind VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Magical defense</span></td></tr>";_.modifier_text["Scholar VIII"]="<tr><td><span class=\'modifier-text\'>+75 Intelligence</span></td><th><span class=\'r0\'>Scholar VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Maximum HP</span></td></tr>";_.modifier_text["Shield VIII"]="<tr><td><span class=\'modifier-text\'>+75 Intelligence</span></td><th><span class=\'r0\'>Shield VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Defense</span></td></tr>";_.modifier_text["Darkness VI"]="<tr><td><span class=\'modifier-text\'>+75 Magical Attack</span></td><th><span class=\'r0\'>Darkness VI</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Wisdom</span></td></tr>";_.modifier_text["Meteor VI"]="<tr><td><span class=\'modifier-text\'>+75 Magical Attack</span></td><th><span class=\'r0\'>Meteor VI</span></th></tr>";_.modifier_text["Warlock VI"]="<tr><td><span class=\'modifier-text\'>+75 Magical Attack</span></td><th><span class=\'r0\'>Warlock VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Magical defense</span></td></tr>";_.modifier_text["Resilience VIII"]="<tr><td><span class=\'modifier-text\'>+75 Magical defense</span></td><th><span class=\'r0\'>Resilience VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Defense</span></td></tr>";_.modifier_text["Candle VI"]="<tr><td><span class=\'modifier-text\'>+75 Maximum HP</span></td><th><span class=\'r0\'>Candle VI</span></th></tr>";_.modifier_text["Glacier VI"]="<tr><td><span class=\'modifier-text\'>+75 Maximum HP</span></td><th><span class=\'r0\'>Glacier VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Magical Attack</span></td></tr>";_.modifier_text["Lumen VI"]="<tr><td><span class=\'modifier-text\'>+75 Maximum HP</span></td><th><span class=\'r0\'>Lumen VI</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Wisdom</span></td></tr>";_.modifier_text["Paradigm VI"]="<tr><td><span class=\'modifier-text\'>+75 Maximum HP</span></td><th><span class=\'r0\'>Paradigm VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Maximum MP</span></td></tr>";_.modifier_text["Spring VI"]="<tr><td><span class=\'modifier-text\'>+75 Maximum HP</span></td><th><span class=\'r0\'>Spring VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Magical defense</span></td></tr>";_.modifier_text["Stone VI"]="<tr><td><span class=\'modifier-text\'>+75 Maximum HP</span></td><th><span class=\'r0\'>Stone VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Defense</span></td></tr>";_.modifier_text["Vulcano VI"]="<tr><td><span class=\'modifier-text\'>+75 Maximum HP</span></td><th><span class=\'r0\'>Vulcano VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Physical Attack</span></td></tr>";_.modifier_text["Crystal VI"]="<tr><td><span class=\'modifier-text\'>+75 Maximum MP</span></td><th><span class=\'r0\'>Crystal VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Defense</span></td></tr>";_.modifier_text["Gunpowder VI"]="<tr><td><span class=\'modifier-text\'>+75 Maximum MP</span></td><th><span class=\'r0\'>Gunpowder VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Physical Attack</span></td></tr>";_.modifier_text["Mercy VI"]="<tr><td><span class=\'modifier-text\'>+75 Maximum MP</span></td><th><span class=\'r0\'>Mercy VI</span></th></tr>";_.modifier_text["Sage VI"]="<tr><td><span class=\'modifier-text\'>+75 Maximum MP</span></td><th><span class=\'r0\'>Sage VI</span></th></tr><tr><td><span class=\'modifier-text\'>+30 Wisdom</span></td></tr>";_.modifier_text["Savant VI"]="<tr><td><span class=\'modifier-text\'>+75 Maximum MP</span></td><th><span class=\'r0\'>Savant VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Magical defense</span></td></tr>";_.modifier_text["Wrath VI"]="<tr><td><span class=\'modifier-text\'>+75 Maximum MP</span></td><th><span class=\'r0\'>Wrath VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Magical Attack</span></td></tr>";_.modifier_text["Blood VI"]="<tr><td><span class=\'modifier-text\'>+75 Physical Attack</span></td><th><span class=\'r0\'>Blood VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Magical Attack</span></td></tr>";_.modifier_text["Keen VI"]="<tr><td><span class=\'modifier-text\'>+75 Physical Attack</span></td><th><span class=\'r0\'>Keen VI</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Defense</span></td></tr>";_.modifier_text["Authority VIII"]="<tr><td><span class=\'modifier-text\'>+75 Stamina</span></td><th><span class=\'r0\'>Authority VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Defense</span></td></tr>";_.modifier_text["Endurance VIII"]="<tr><td><span class=\'modifier-text\'>+75 Stamina</span></td><th><span class=\'r0\'>Endurance VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Maximum HP</span></td></tr>";_.modifier_text["Force X"]="<tr><td><span class=\'modifier-text\'>+75 Stamina</span></td><th><span class=\'r0\'>Force X</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Dexterity</span></td></tr>";_.modifier_text["Massif VIII"]="<tr><td><span class=\'modifier-text\'>+75 Stamina</span></td><th><span class=\'r0\'>Massif VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Maximum MP</span></td></tr>";_.modifier_text["Monk X"]="<tr><td><span class=\'modifier-text\'>+75 Stamina</span></td><th><span class=\'r0\'>Monk X</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Wisdom</span></td></tr>";_.modifier_text["Oppression VIII"]="<tr><td><span class=\'modifier-text\'>+75 Stamina</span></td><th><span class=\'r0\'>Oppression VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Physical Attack</span></td></tr>";_.modifier_text["Rigor VIII"]="<tr><td><span class=\'modifier-text\'>+75 Stamina</span></td><th><span class=\'r0\'>Rigor VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Magical defense</span></td></tr>";_.modifier_text["Source VIII"]="<tr><td><span class=\'modifier-text\'>+75 Stamina</span></td><th><span class=\'r0\'>Source VIII</span></th></tr>";_.modifier_text["Thunder VIII"]="<tr><td><span class=\'modifier-text\'>+75 Stamina</span></td><th><span class=\'r0\'>Thunder VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Magical Attack</span></td></tr>";_.modifier_text["Barbarian VIII"]="<tr><td><span class=\'modifier-text\'>+75 Strength</span></td><th><span class=\'r0\'>Barbarian VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Physical Attack</span></td></tr>";_.modifier_text["Cougar X"]="<tr><td><span class=\'modifier-text\'>+75 Strength</span></td><th><span class=\'r0\'>Cougar X</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Dexterity</span></td></tr>";_.modifier_text["Defender VIII"]="<tr><td><span class=\'modifier-text\'>+75 Strength</span></td><th><span class=\'r0\'>Defender VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Defense</span></td></tr>";_.modifier_text["Dominion VIII"]="<tr><td><span class=\'modifier-text\'>+75 Strength</span></td><th><span class=\'r0\'>Dominion VIII</span></th></tr>";_.modifier_text["Ferocity VIII"]="<tr><td><span class=\'modifier-text\'>+75 Strength</span></td><th><span class=\'r0\'>Ferocity VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Maximum MP</span></td></tr>";_.modifier_text["Hammer VIII"]="<tr><td><span class=\'modifier-text\'>+75 Strength</span></td><th><span class=\'r0\'>Hammer VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Maximum HP</span></td></tr>";_.modifier_text["Moral X"]="<tr><td><span class=\'modifier-text\'>+75 Strength</span></td><th><span class=\'r0\'>Moral X</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Intelligence</span></td></tr>";_.modifier_text["Paladin VIII"]="<tr><td><span class=\'modifier-text\'>+75 Strength</span></td><th><span class=\'r0\'>Paladin VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Magical defense</span></td></tr>";_.modifier_text["Rage VIII"]="<tr><td><span class=\'modifier-text\'>+75 Strength</span></td><th><span class=\'r0\'>Rage VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Magical Attack</span></td></tr>";_.modifier_text["Savage X"]="<tr><td><span class=\'modifier-text\'>+75 Strength</span></td><th><span class=\'r0\'>Savage X</span></th></tr><tr><td><span class=\'modifier-text\'>+75 Stamina</span></td></tr>";_.modifier_text["Breeze VIII"]="<tr><td><span class=\'modifier-text\'>+75 Wisdom</span></td><th><span class=\'r0\'>Breeze VIII</span></th></tr>";_.modifier_text["Mystic VIII"]="<tr><td><span class=\'modifier-text\'>+75 Wisdom</span></td><th><span class=\'r0\'>Mystic VIII</span></th></tr><tr><td><span class=\'modifier-text\'>+150 Magical defense</span></td></tr>";_.modifier_text["Accuracy XII"]="<tr><td><span class=\'modifier-text\'>+79 % accuracy</span></td><th><span class=\'r0\'>Accuracy XII</span></th></tr>";_.modifier_text["Dodge XII"]="<tr><td><span class=\'modifier-text\'>+79 % dodge rate</span></td><th><span class=\'r0\'>Dodge XII</span></th></tr>";_.modifier_text["Defense XII"]="<tr><td><span class=\'modifier-text\'>+79 Defense</span></td><th><span class=\'r0\'>Defense XII</span></th></tr>";_.modifier_text["Energy XII"]="<tr><td><span class=\'modifier-text\'>+79 Magical Attack</span></td><th><span class=\'r0\'>Energy XII</span></th></tr>";_.modifier_text["Barrier XII"]="<tr><td><span class=\'modifier-text\'>+79 Magical defense</span></td><th><span class=\'r0\'>Barrier XII</span></th></tr>";_.modifier_text["Might XII"]="<tr><td><span class=\'modifier-text\'>+79 Physical Attack</span></td><th><span class=\'r0\'>Might XII</span></th></tr>";_.modifier_text["Ability VII"]="<tr><td><span class=\'modifier-text\'>+8 All attributes</span></td><th><span class=\'r0\'>Ability VII</span></th></tr>";_.modifier_text["Element VII"]="<tr><td><span class=\'modifier-text\'>+8 All resistances</span></td><th><span class=\'r0\'>Element VII</span></th></tr>";_.modifier_text["Dark III"]="<tr><td><span class=\'modifier-text\'>+8 Dark resistance</span></td><th><span class=\'r0\'>Dark III</span></th></tr>";_.modifier_text["Dexterity IV"]="<tr><td><span class=\'modifier-text\'>+8 Dexterity</span></td><th><span class=\'r0\'>Dexterity IV</span></th></tr>";_.modifier_text["Fox III"]="<tr><td><span class=\'modifier-text\'>+8 Dexterity</span></td><th><span class=\'r0\'>Fox III</span></th></tr><tr><td><span class=\'modifier-text\'>+8 Intelligence</span></td></tr>";_.modifier_text["Precision III"]="<tr><td><span class=\'modifier-text\'>+8 Dexterity</span></td><th><span class=\'r0\'>Precision III</span></th></tr><tr><td><span class=\'modifier-text\'>+8 Wisdom</span></td></tr>";_.modifier_text["Earth III"]="<tr><td><span class=\'modifier-text\'>+8 Earth resistance</span></td><th><span class=\'r0\'>Earth III</span></th></tr>";_.modifier_text["Flame III"]="<tr><td><span class=\'modifier-text\'>+8 Fire resistance</span></td><th><span class=\'r0\'>Flame III</span></th></tr>";_.modifier_text["Elder III"]="<tr><td><span class=\'modifier-text\'>+8 Intelligence</span></td><th><span class=\'r0\'>Elder III</span></th></tr><tr><td><span class=\'modifier-text\'>+8 Stamina</span></td></tr>";_.modifier_text["Genius III"]="<tr><td><span class=\'modifier-text\'>+8 Intelligence</span></td><th><span class=\'r0\'>Genius III</span></th></tr><tr><td><span class=\'modifier-text\'>+8 Wisdom</span></td></tr>";_.modifier_text["Intellect IV"]="<tr><td><span class=\'modifier-text\'>+8 Intelligence</span></td><th><span class=\'r0\'>Intellect IV</span></th></tr>";_.modifier_text["Light III"]="<tr><td><span class=\'modifier-text\'>+8 Light resistance</span></td><th><span class=\'r0\'>Light III</span></th></tr>";_.modifier_text["Force III"]="<tr><td><span class=\'modifier-text\'>+8 Stamina</span></td><th><span class=\'r0\'>Force III</span></th></tr><tr><td><span class=\'modifier-text\'>+8 Dexterity</span></td></tr>";_.modifier_text["Monk III"]="<tr><td><span class=\'modifier-text\'>+8 Stamina</span></td><th><span class=\'r0\'>Monk III</span></th></tr><tr><td><span class=\'modifier-text\'>+8 Wisdom</span></td></tr>";_.modifier_text["Stamina IV"]="<tr><td><span class=\'modifier-text\'>+8 Stamina</span></td><th><span class=\'r0\'>Stamina IV</span></th></tr>";_.modifier_text["Cougar III"]="<tr><td><span class=\'modifier-text\'>+8 Strength</span></td><th><span class=\'r0\'>Cougar III</span></th></tr><tr><td><span class=\'modifier-text\'>+8 Dexterity</span></td></tr>";_.modifier_text["Moral III"]="<tr><td><span class=\'modifier-text\'>+8 Strength</span></td><th><span class=\'r0\'>Moral III</span></th></tr><tr><td><span class=\'modifier-text\'>+8 Intelligence</span></td></tr>";_.modifier_text["Savage III"]="<tr><td><span class=\'modifier-text\'>+8 Strength</span></td><th><span class=\'r0\'>Savage III</span></th></tr><tr><td><span class=\'modifier-text\'>+8 Stamina</span></td></tr>";_.modifier_text["Strength IV"]="<tr><td><span class=\'modifier-text\'>+8 Strength</span></td><th><span class=\'r0\'>Strength IV</span></th></tr>";_.modifier_text["Mist III"]="<tr><td><span class=\'modifier-text\'>+8 Water resistance</span></td><th><span class=\'r0\'>Mist III</span></th></tr>";_.modifier_text["Whiff III"]="<tr><td><span class=\'modifier-text\'>+8 Wind resistance</span></td><th><span class=\'r0\'>Whiff III</span></th></tr>";_.modifier_text["Spirit IV"]="<tr><td><span class=\'modifier-text\'>+8 Wisdom</span></td><th><span class=\'r0\'>Spirit IV</span></th></tr>";_.modifier_text["Accuracy III"]="<tr><td><span class=\'modifier-text\'>+9 % accuracy</span></td><th><span class=\'r0\'>Accuracy III</span></th></tr>";_.modifier_text["Dodge III"]="<tr><td><span class=\'modifier-text\'>+9 % dodge rate</span></td><th><span class=\'r0\'>Dodge III</span></th></tr>";_.modifier_text["Defense III"]="<tr><td><span class=\'modifier-text\'>+9 Defense</span></td><th><span class=\'r0\'>Defense III</span></th></tr>";_.modifier_text["Energy III"]="<tr><td><span class=\'modifier-text\'>+9 Magical Attack</span></td><th><span class=\'r0\'>Energy III</span></th></tr>";_.modifier_text["Barrier III"]="<tr><td><span class=\'modifier-text\'>+9 Magical defense</span></td><th><span class=\'r0\'>Barrier III</span></th></tr>";_.modifier_text["Might III"]="<tr><td><span class=\'modifier-text\'>+9 Physical Attack</span></td><th><span class=\'r0\'>Might III</span></th></tr>";_.modifier_text["Life VIII"]="<tr><td><span class=\'modifier-text\'>+93 Maximum HP</span></td><th><span class=\'r0\'>Life VIII</span></th></tr>";_.modifier_text["Magic VIII"]="<tr><td><span class=\'modifier-text\'>+93 Maximum MP</span></td><th><span class=\'r0\'>Magic VIII</span></th></tr>";_.news_type_id={};_.news_type_id["3"]="Events";_.news_type_id["1"]="News";_.news_type_id["2"]="Official News";_.news_type_id["4"]="Patch Notes";_.npc_aggro_style={};_.npc_aggro_style["1"]="Aggresive";_.npc_attack_style={};_.npc_attack_style["3"]="Magic";_.npc_attack_style["1"]="Melee";_.npc_attack_style["2"]="Ranged";_.npc_race_id={};_.npc_race_id["1"]="Undead";_.permission_sub_type={};_.permission_sub_type["1"]="Add";_.permission_sub_type["4"]="All";_.permission_sub_type["3"]="Delete";_.permission_sub_type["2"]="Edit";_.quest_category={};_.quest_category["6"]="Altgard";_.quest_category["8"]="Beluslan";_.quest_category["26"]="Brusthonin";_.quest_category["21"]="Class Change Quest";_.quest_category["3"]="Eltnen";_.quest_category["9"]="Ereshuranta";_.quest_category["18"]="Grand Abyss";_.quest_category["4"]="Interdiktah";_.quest_category["5"]="Ishalgen";_.quest_category["7"]="Morheim";_.quest_category["20"]="Pandaemonium";_.quest_category["1"]="Poeta";_.quest_category["19"]="Sanctum";_.quest_category["23"]="Stigma Quest";_.quest_category["25"]="Theobomos";_.quest_category["2"]="Verteron";_.quest_dir={};_.quest_dir["102"]="(Epic) Bloody Demon Blade";_.quest_dir["133"]="(Epic) The Seductive Dark Pearl";_.quest_dir["156"]="???";_.quest_dir["157"]="????";_.quest_dir["159"]="????";_.quest_dir["160"]="????";_.quest_dir["158"]="?????";_.quest_dir["126"]="Abandoned Fortress";_.quest_dir["104"]="Ailics Community";_.quest_dir["98"]="Arcane Chamber of Sathkur";_.quest_dir["119"]="Arena";_.quest_dir["65"]="Ashlar Camp";_.quest_dir["15"]="Aslan Valley";_.quest_dir["84"]="Awerka Tundra";_.quest_dir["139"]="Ayak Clan";_.quest_dir["137"]="Ayal Clan";_.quest_dir["136"]="Ayal Outpost";_.quest_dir["141"]="Ayam Clan";_.quest_dir["140"]="Ayat Clan";_.quest_dir["61"]="Ayren Caravan";_.quest_dir["108"]="Barren Caves";_.quest_dir["8"]="Barren Caves";_.quest_dir["7"]="Barrow";_.quest_dir["46"]="Battleground of Heroes";_.quest_dir["124"]="Black Sail Camp";_.quest_dir["149"]="Bloodfang Clan";_.quest_dir["21"]="Bloodhound Mountain";_.quest_dir["152"]="Bloodstained Earth";_.quest_dir["120"]="Bloody Gallery";_.quest_dir["123"]="Calamus Manor";_.quest_dir["106"]="Cavern of Trials";_.quest_dir["18"]="Class Quest";_.quest_dir["16"]="Crafting";_.quest_dir["94"]="Cyclops Lair";_.quest_dir["75"]="Cyclops Stronghold";_.quest_dir["6"]="Dead Tree Cave";_.quest_dir["19"]="Derelict Mine";_.quest_dir["66"]="Dogamor";_.quest_dir["12"]="Dorian\'s Farm";_.quest_dir["80"]="Dragonfang Hills";_.quest_dir["81"]="Dragonfang Ice Plain";_.quest_dir["76"]="Dragonfang Lake";_.quest_dir["69"]="Dragonfang Ridge";_.quest_dir["83"]="Dragonfang Valley";_.quest_dir["41"]="Dust Devil Canyon";_.quest_dir["85"]="Fiergen Tundra";_.quest_dir["142"]="Fish Mouth Bay";_.quest_dir["59"]="Fogur Marsh";_.quest_dir["14"]="Forsaken Abbey";_.quest_dir["53"]="Foxtrack Cave";_.quest_dir["40"]="Frostwood Valley";_.quest_dir["52"]="Frostwood Valley Camp";_.quest_dir["114"]="Fungus Garden";_.quest_dir["132"]="Ghost Town";_.quest_dir["22"]="Goblin Village";_.quest_dir["118"]="Guild Castle";_.quest_dir["60"]="Gurla Caravan";_.quest_dir["148"]="Hardskull Clan";_.quest_dir["32"]="Harf Trading Post";_.quest_dir["48"]="Hawk\'s Cliff";_.quest_dir["153"]="Hero\'s Tomb";_.quest_dir["2"]="Hidden Valley Mine";_.quest_dir["96"]="Howling Mountains";_.quest_dir["90"]="Ice Dwarf Garrison";_.quest_dir["87"]="Ice Dwarf Outpost";_.quest_dir["82"]="Ice Dwarf Valley";_.quest_dir["23"]="Jade Valley";_.quest_dir["151"]="Jungle Marsh";_.quest_dir["72"]="Kadmos Trading Post";_.quest_dir["43"]="Kal Turok Hive";_.quest_dir["49"]="Kalin Shrine";_.quest_dir["44"]="Karzak Camp";_.quest_dir["55"]="Khalara Plateau";_.quest_dir["31"]="Khalara Watchtower";_.quest_dir["62"]="Khant";_.quest_dir["34"]="Khazor\'s Watchtower";_.quest_dir["26"]="Lake of Eternal Silence";_.quest_dir["54"]="Lake Ousul";_.quest_dir["24"]="Lake Qilana";_.quest_dir["3"]="Logar";_.quest_dir["86"]="Lomgart";_.quest_dir["93"]="Lomgart Pass";_.quest_dir["73"]="Lyk";_.quest_dir["11"]="Maidge\'s Farm";_.quest_dir["17"]="Main Line";_.quest_dir["71"]="Marl Outpost";_.quest_dir["101"]="Mentha Caravan";_.quest_dir["45"]="Mesa of the Fallen";_.quest_dir["67"]="Mispel Marsh";_.quest_dir["78"]="Mithur Ruins";_.quest_dir["4"]="Moongorge";_.quest_dir["91"]="Moulton Farm";_.quest_dir["138"]="Mudpond Village";_.quest_dir["147"]="Muttering Forest";_.quest_dir["35"]="Mystic Altar";_.quest_dir["121"]="Nameless Port";_.quest_dir["27"]="Necropolis of Mirrors";_.quest_dir["25"]="New Moon Forest";_.quest_dir["50"]="Obsidian Stronghold";_.quest_dir["155"]="Ocean\'s Heart";_.quest_dir["57"]="Order of Dark Glory Garrison";_.quest_dir["64"]="Order of Dark Glory Vanguard";_.quest_dir["150"]="Panka Lake";_.quest_dir["99"]="Pasper\'s Shrine";_.quest_dir["10"]="Peerston Farm";_.quest_dir["1"]="Pioneers Colony";_.quest_dir["97"]="Plain of Silverspring";_.quest_dir["58"]="Reifort Camp";_.quest_dir["117"]="Residence";_.quest_dir["77"]="Ruins of the Great Gate";_.quest_dir["134"]="Ruins of the Ice Dwarf Kingdom";_.quest_dir["29"]="Rumpus Mine";_.quest_dir["88"]="Rune Circle";_.quest_dir["79"]="Rune Throne";_.quest_dir["125"]="Sailors\' Graveyard";_.quest_dir["127"]="Sand Scorpion Plains";_.quest_dir["68"]="Sascilia Steppes";_.quest_dir["63"]="Sathkur Ruins";_.quest_dir["37"]="Sea of Snow";_.quest_dir["38"]="Sea of Snow Camp";_.quest_dir["70"]="Sergarth Outpost";_.quest_dir["5"]="Sevaida Woods";_.quest_dir["131"]="Shackle Coast";_.quest_dir["130"]="Shadowmoon Cove";_.quest_dir["28"]="Silverfall";_.quest_dir["143"]="Smuggler Camp";_.quest_dir["154"]="Snakemen Outpost";_.quest_dir["74"]="Snow Mountain Logging Area";_.quest_dir["36"]="Snowhorn";_.quest_dir["145"]="Speaking Wind Cliff";_.quest_dir["115"]="Spirit of Tempest Height";_.quest_dir["122"]="Storm Pass";_.quest_dir["110"]="Sunken City - Guardian\'s Walkway";_.quest_dir["111"]="Sunken City - Imperial Refuge";_.quest_dir["109"]="Sunken City - Path of the Reborn";_.quest_dir["13"]="Tagena";_.quest_dir["47"]="Tempest Height";_.quest_dir["89"]="Temple of Mysteries";_.quest_dir["100"]="Temporary use (Hui)";_.quest_dir["0"]="Testing";_.quest_dir["42"]="The Big Dig";_.quest_dir["95"]="The Treasure Trove";_.quest_dir["129"]="Throne of the Wind";_.quest_dir["33"]="Tower of Wailing Wind";_.quest_dir["105"]="Tutorial";_.quest_dir["56"]="Twilight Mine";_.quest_dir["9"]="Varanas City";_.quest_dir["51"]="Vender Caravan Campsite";_.quest_dir["146"]="Water Throne";_.quest_dir["116"]="Wedding Hall";_.quest_dir["135"]="Weeping Coast";_.quest_dir["144"]="Wind Cliff Village";_.quest_dir["112"]="Windmill Basement";_.quest_dir["128"]="Wing Lake";_.quest_dir["39"]="Winternight Valley";_.quest_dir["20"]="Woodland of Qilana";_.quest_dir["92"]="Xoci Village";_.quest_dir["30"]="Ystra Highlands";_.quest_dir["103"]="Ystra Labyrinth";_.quest_dir["107"]="Ystra Labyrinth Chamber of Kings";_.quest_dir["113"]="Zone of Darkness";_.quest_type={};_.quest_type["2"]="General quest";_.quest_type["1"]="Guild Quests";_.quest_type["0"]="None";_.race={};_.race["4"]="Beast";_.race["12"]="Demon";_.race["11"]="Dragon";_.race["8"]="Elemental";_.race["1"]="Elf";_.race["10"]="Fiend";_.race["13"]="God";_.race["9"]="Golem";_.race["0"]="Human";_.race["6"]="Humanoid";_.race["7"]="Magical Creature";_.race["2"]="Obby";_.race["3"]="Shemy";_.race["5"]="Undead";_.race_id={};_.race_id["6"]="Animal";_.race_id["9"]="Animated";_.race_id["72"]="Ape";_.race_id["28"]="Arachnid";_.race_id["11"]="Avatar";_.race_id["12"]="Aviansie";_.race_id["1"]="Beast";_.race_id["17"]="Bird";_.race_id["36"]="Bug";_.race_id["68"]="Cat";_.race_id["27"]="Cyclops";_.race_id["3"]="Demon";_.race_id["53"]="Dog";_.race_id["13"]="Dragon";_.race_id["30"]="Duck";_.race_id["19"]="Dwarf";_.race_id["31"]="Earth Elemental";_.race_id["66"]="Earwig";_.race_id["5"]="Elemental";_.race_id["32"]="Elf";_.race_id["46"]="Energy";_.race_id["67"]="Ent";_.race_id["58"]="Experiment";_.race_id["60"]="Fairy";_.race_id["74"]="Familiar";_.race_id["41"]="Fiend";_.race_id["42"]="Food";_.race_id["26"]="Ghost";_.race_id["69"]="Ghoul";_.race_id["20"]="Giant";_.race_id["15"]="Gnome";_.race_id["8"]="Goblin";_.race_id["16"]="God";_.race_id["18"]="Golem";_.race_id["44"]="Horror";_.race_id["4"]="Human";_.race_id["24"]="Icyene";_.race_id["73"]="Imp";_.race_id["33"]="Insect";_.race_id["54"]="Leprechaun";_.race_id["48"]="Mahjarrat";_.race_id["7"]="Monkey";_.race_id["57"]="Mutation";_.race_id["23"]="Ogre";_.race_id["50"]="Orc";_.race_id["34"]="Ourg";_.race_id["56"]="Plant";_.race_id["51"]="Possessed";_.race_id["22"]="Rat";_.race_id["52"]="Rock";_.race_id["37"]="Rodent";_.race_id["64"]="Scarab";_.race_id["14"]="Snail";_.race_id["38"]="Snake";_.race_id["63"]="Snowman";_.race_id["29"]="Spawn";_.race_id["47"]="Spirit";_.race_id["10"]="Troll";_.race_id["45"]="Tzhaar";_.race_id["2"]="Undead";_.race_id["55"]="Undead Wyvern";_.race_id["25"]="Vampire";_.race_id["40"]="Wolf";_.race_id["65"]="Zombie";_.screenshot_category_id={};_.screenshot_category_id["4"]="Accomplishments";_.screenshot_category_id["3"]="Bugs";_.screenshot_category_id["5"]="Clans";_.screenshot_category_id["1"]="Classic";_.screenshot_category_id["8"]="Events";_.screenshot_category_id["2"]="Fakes";_.screenshot_category_id["11"]="Famous People";_.screenshot_category_id["10"]="Misc";_.screenshot_category_id["6"]="PKing";_.screenshot_category_id["7"]="Quests";_.screenshot_category_id["9"]="Real Life";_.shop_name={};_.shop_name["1"]="Aaron\'s Archery Appendages";_.shop_name["2"]="Agmundi Quality Clothes";_.shop_name["3"]="Al-Kharid General Store";_.shop_name["4"]="Alain\'s Farming Patch";_.shop_name["5"]="Aleck\'s Hunter Emporium";_.shop_name["6"]="Ali\'s Discount Basic Rune Shop";_.shop_name["8"]="Ali\'s Discount Blackjack (d) Shop";_.shop_name["7"]="Ali\'s Discount Blackjack (o) Shop";_.shop_name["9"]="Ali\'s Discount Desert Clothing Shop";_.shop_name["10"]="Ali\'s Discount Menaphite Clothing Shop";_.shop_name["11"]="Ali\'s Discount Rune Shop";_.shop_name["12"]="Ali\'s Discount Wares";_.shop_name["13"]="Ali\'s Water Cart";_.shop_name["14"]="Alice\'s Farming Shop";_.shop_name["15"]="Ardougne Baker\'s Stall";_.shop_name["16"]="Ardougne Fur Stall";_.shop_name["17"]="Ardougne Gem Stall";_.shop_name["18"]="Ardougne Silver Stall";_.shop_name["19"]="Ardougne Spice Stall";_.shop_name["20"]="Arhein Store";_.shop_name["21"]="Armour Shop";_.shop_name["22"]="Armour Store";_.shop_name["23"]="Armoury";_.shop_name["24"]="Aubury\'s Rune Shop";_.shop_name["25"]="Aurel\'s Supplies";_.shop_name["26"]="Ava\'s Odds and Ends";_.shop_name["27"]="Baba Yaga\'s Magic Shop";_.shop_name["28"]="Bandit Duty Free";_.shop_name["29"]="Barkers\' Haberdashery";_.shop_name["220"]="Bedabin Village Bartering";_.shop_name["30"]="Betty\'s Magic Emporium";_.shop_name["31"]="Blackjack Seller";_.shop_name["221"]="Blades by Urbi";_.shop_name["32"]="Blue Moon Inn";_.shop_name["33"]="Blurberry Bar";_.shop_name["222"]="Blurberry\'s Bar";_.shop_name["34"]="Bob\'s Brilliant Axes";_.shop_name["35"]="Bolkoy\'s Village Shop";_.shop_name["36"]="Bolongo\'s Farming Patch";_.shop_name["37"]="Brian\'s Archery Supplies";_.shop_name["38"]="Brian\'s Battleaxe Bazaar";_.shop_name["39"]="Burthorpe Supplies";_.shop_name["40"]="Candle Shop";_.shop_name["41"]="Carefree Crafting Stall";_.shop_name["42"]="Cassie\'s Shield Shop";_.shop_name["43"]="Castle Wars Ticket Exchange";_.shop_name["234"]="Commander Loman\'s reward shop";_.shop_name["44"]="Construction Supplies";_.shop_name["217"]="Contraband Yak Produce";_.shop_name["45"]="Crossbow Shop";_.shop_name["46"]="Crystal Equipment";_.shop_name["47"]="Daga\'s Scimitar Smithy";_.shop_name["48"]="Dancing Donkey Inn";_.shop_name["49"]="Dantaera\'s Farming Patch";_.shop_name["50"]="Darren\'s Wilderness Cape Shop";_.shop_name["51"]="Davon\'s Amulet Store";_.shop_name["52"]="Dead Man\'s Chest";_.shop_name["53"]="Diango\'s Toy Store";_.shop_name["223"]="Dommik\'s Crafting Store";_.shop_name["54"]="Dommiks Crafting Store";_.shop_name["55"]="Dorgesh-Kaan General Supplies";_.shop_name["56"]="Draynor Seed Market";_.shop_name["57"]="Drogo\'s Mining Emporium";_.shop_name["58"]="Dwarven Shopping Store";_.shop_name["59"]="Edgeville General Store";_.shop_name["60"]="Edmond\'s Wilderness Cape Shop";_.shop_name["61"]="Ellena\'s Farming Patch";_.shop_name["224"]="Elstan\'s Farming Patch";_.shop_name["62"]="Etceteria Fish";_.shop_name["63"]="Falador General Store";_.shop_name["232"]="Faruq\'s Tools for Games";_.shop_name["64"]="Fayeth\'s Farming Patch";_.shop_name["65"]="Fine Fashions";_.shop_name["216"]="Fist of Guthix Reward Shop";_.shop_name["66"]="Flying Horse Inn";_.shop_name["67"]="Flynn\'s Mace Market";_.shop_name["69"]="Francis\'s Farming Patch";_.shop_name["70"]="Fremennik Fish Monger";_.shop_name["71"]="Fremennik Fur Trader";_.shop_name["72"]="Frenita\'s Cookery Shop";_.shop_name["212"]="Fresh Meat";_.shop_name["73"]="Frincos Fabulous Herb Store";_.shop_name["74"]="Funch\'s Fine Groceries";_.shop_name["75"]="Gabooty\'s Tai Bwo Wannai Cooperative";_.shop_name["76"]="Gabooty\'s Tai Bwo Wannai Drinky Store";_.shop_name["77"]="Garth\'s Farming Patch";_.shop_name["78"]="General Store";_.shop_name["79"]="Gerrant\'s Fishy Business";_.shop_name["80"]="Gertrude\'s Cats";_.shop_name["213"]="Gift Shop";_.shop_name["81"]="Grand Tree Groceries";_.shop_name["82"]="Green Gemstone Gems";_.shop_name["167"]="Grud\'s Herblore Store";_.shop_name["83"]="Grum\'s Gold Exchange";_.shop_name["84"]="Gulluck and Sons";_.shop_name["85"]="Gunslik\'s Assorted Items";_.shop_name["86"]="Hair of the Dog Tavern";_.shop_name["87"]="Hamab\'s Crafting Emporium";_.shop_name["88"]="Happy Heroes\' H\'emporium";_.shop_name["89"]="Harry\'s Fishing Shop";_.shop_name["90"]="Helmet Shop";_.shop_name["91"]="Herquin\'s Gems";_.shop_name["92"]="Heskel\'s Farming Patch";_.shop_name["93"]="Hicktons Archery Emporium";_.shop_name["94"]="Honest Jimmy\'s House of Stuff";_.shop_name["95"]="Horvik\'s Armour Shop";_.shop_name["96"]="Ifaba\'s General Store";_.shop_name["97"]="Initiate Rank Armory";_.shop_name["98"]="Irksol";_.shop_name["226"]="Irksol\'s Ruby Rings";_.shop_name["99"]="Island Fishmonger";_.shop_name["100"]="Island Greengrocer";_.shop_name["101"]="Jakut";_.shop_name["227"]="Jamila\'s Craft Stall";_.shop_name["102"]="Jatix Herblore Shop";_.shop_name["228"]="Jatix\'s Herblore Shop";_.shop_name["103"]="Karamja General Store";_.shop_name["104"]="Karamja\'s Wines, Spirits, and Beers";_.shop_name["105"]="Kebab Shop";_.shop_name["106"]="Keepa Kettilon\'s store";_.shop_name["107"]="Keldagrim Stonemason";_.shop_name["108"]="Keldagrim\'s Best Bread";_.shop_name["109"]="Khazard General Store";_.shop_name["219"]="King Lathas\'s Armoury";_.shop_name["110"]="King\'s Axe Inn";_.shop_name["111"]="Kragen\'s Farming Patch";_.shop_name["112"]="Lady of the Waves Tickets";_.shop_name["113"]="Larry\'s Wilderness Cape Shop";_.shop_name["114"]="Laughing Miner Pub";_.shop_name["115"]="Legends\' Guild General Store";_.shop_name["116"]="Legends\' Guild Shop of Useful Items";_.shop_name["117"]="Lletya Archery store";_.shop_name["118"]="Lletya Food Store";_.shop_name["119"]="Lletya General Store";_.shop_name["120"]="Lletya Seamstress";_.shop_name["236"]="Lord Marshal Brogan\'s reward shop";_.shop_name["121"]="Louies\' Armoured Legs Bazaar";_.shop_name["211"]="Lovecraft\'s Tackle";_.shop_name["122"]="Lowe\'s Archery Emporium";_.shop_name["238"]="Lumbridge Fishing Supplies";_.shop_name["123"]="Lumbridge General Store";_.shop_name["124"]="Lyra\'s Farming Patch";_.shop_name["125"]="Martin Thwait\'s Lost and Found";_.shop_name["126"]="Miltog\'s Lamps";_.shop_name["127"]="Miscellanian Clothes Shop";_.shop_name["128"]="Miscellanian Food Shop";_.shop_name["129"]="Moon Clan Fine Clothes";_.shop_name["130"]="Nardah General Store";_.shop_name["229"]="Nathifa\'s Bake Stall";_.shop_name["131"]="Neil\'s Wilderness Cape Shop";_.shop_name["132"]="Nurmof\'s Pickaxe Shop";_.shop_name["133"]="Obli\'s General Store";_.shop_name["134"]="Ore Store";_.shop_name["135"]="Oziach";_.shop_name["136"]="Paramaya Inn";_.shop_name["214"]="Pet Shop";_.shop_name["137"]="Pickaxe-Is-Mine";_.shop_name["138"]="Pie Shop";_.shop_name["237"]="Poison Arrow Pub";_.shop_name["139"]="Pollnivneach General Store";_.shop_name["140"]="Port Khazard Bar";_.shop_name["141"]="Quality Armour Shop";_.shop_name["142"]="Quartermaster\'s Store";_.shop_name["230"]="Raetul and Co\'s Cloth Store";_.shop_name["143"]="Ranael\'s Super Skirt Store";_.shop_name["144"]="Rasolo the Wandering Merchant";_.shop_name["145"]="Reldak\'s Leather Armour";_.shop_name["146"]="Rellekka Longhall Bar";_.shop_name["147"]="Rhazien\'s Farming Patch";_.shop_name["148"]="Richard\'s Farming Shop";_.shop_name["149"]="Richard\'s Wilderness Cape Shop";_.shop_name["150"]="Rimmington General Store";_.shop_name["151"]="Rok\'s Chocs Box";_.shop_name["225"]="Rometti\'s Fine Fashions";_.shop_name["152"]="Rommik\'s Crafting Supplies";_.shop_name["153"]="Rufus\' Meat Emporium";_.shop_name["218"]="Runecrafting Guild Rewards";_.shop_name["154"]="Rusty Anchor Inn";_.shop_name["155"]="Sam\'s Wilderness Cape Shop";_.shop_name["156"]="Sarah\'s Farming Shop";_.shop_name["157"]="Seddu\'s Adventurer\'s Shop";_.shop_name["158"]="Selena\'s Farming Patch";_.shop_name["233"]="Serjeant Cole\'s reward shop";_.shop_name["159"]="Shantay Pass Shop";_.shop_name["160"]="Shop of Distaste";_.shop_name["161"]="Sigmund The Merchant";_.shop_name["162"]="Silver Cog Silver Stall";_.shop_name["163"]="Simon\'s Wilderness Cape Shop";_.shop_name["164"]="Slayer Equipment";_.shop_name["165"]="Smithing Smith\'s Shop";_.shop_name["166"]="Snop Dal\'s Ogre General Supplies";_.shop_name["168"]="Solihib\'s Food Stall";_.shop_name["215"]="Summoning Supplies";_.shop_name["169"]="Tamayu\'s Spear Stall";_.shop_name["170"]="Taria\'s Farming Patch";_.shop_name["171"]="The Asp and Snake Bar";_.shop_name["172"]="The Big Heist Lodge";_.shop_name["173"]="The Dragon Inn";_.shop_name["174"]="The Esoterican Arms";_.shop_name["175"]="The Forester\'s Arms";_.shop_name["176"]="The Jolly Boar Inn";_.shop_name["177"]="The Other Inn";_.shop_name["178"]="The Rising Sun Inn";_.shop_name["179"]="The Shrimp and Parrot";_.shop_name["180"]="The Spice Is Right";_.shop_name["181"]="The Toad and Chicken";_.shop_name["182"]="Thessalia Fine Clothes";_.shop_name["183"]="Tiadeche\'s Karambwan Stall";_.shop_name["184"]="Tony\'s Pizza Bases";_.shop_name["185"]="Torrell\'s Farming Patch";_.shop_name["210"]="Trader Sven\'s Black Market Goods";_.shop_name["186"]="Tutab\'s Magical Market";_.shop_name["187"]="Two Feet Charley\'s Fish Shop";_.shop_name["188"]="TzHaar-Hur-Lek\'s Ore and Gem Store";_.shop_name["189"]="TzHaar-Hur-Tel\'s Equipment Store";_.shop_name["190"]="TzHaar-Mej-Roh\'s Rune Store";_.shop_name["209"]="Uglug\'s Stuffsies";_.shop_name["191"]="Vanessa\'s Farming Shop";_.shop_name["192"]="Varrock General Store";_.shop_name["231"]="Varrock Sword Shop";_.shop_name["193"]="Varrock Swordshop";_.shop_name["194"]="Vasquen\'s Farming Patch";_.shop_name["195"]="Vermundi\'s Clothes Stall";_.shop_name["196"]="Vigr\'s Warhammers";_.shop_name["197"]="Void Knight Archery Store";_.shop_name["198"]="Void Knight General Store";_.shop_name["199"]="Void Knight Magic Store";_.shop_name["235"]="War-chief Reeves\'s reward shop";_.shop_name["200"]="Warriors\' Guild Armoury";_.shop_name["201"]="Wayne\'s Chains! - Chainmail Specialist";_.shop_name["202"]="Weapons Galore";_.shop_name["203"]="West Ardougne General Store";_.shop_name["204"]="White Knight Master Armoury";_.shop_name["68"]="Wydin\'s Food Store";_.shop_name["205"]="Yrsa\'s Accoutrements";_.shop_name["206"]="Zaff\'s Superior Staves";_.shop_name["207"]="Zeke\'s Superior Scimitars";_.shop_name["208"]="Zenesha\'s Plate Mail Body Shop";_.skill_type={};_.skill_type["17"]="Agility";_.skill_type["1"]="Attack";_.skill_type["23"]="Construction";_.skill_type["8"]="Cooking";_.skill_type["13"]="Crafting";_.skill_type["2"]="Defence";_.skill_type["20"]="Farming";_.skill_type["12"]="Firemaking";_.skill_type["11"]="Fishing";_.skill_type["10"]="Fletching";_.skill_type["16"]="Herblore";_.skill_type["4"]="Hitpoints";_.skill_type["22"]="Hunter";_.skill_type["7"]="Magic";_.skill_type["15"]="Mining";_.skill_type["6"]="Prayer";_.skill_type["5"]="Ranged";_.skill_type["21"]="Runecrafting";_.skill_type["19"]="Slayer";_.skill_type["14"]="Smithing";_.skill_type["3"]="Strength";_.skill_type["24"]="Summoning";_.skill_type["18"]="Thieving";_.skill_type["9"]="Woodcutting";_.stat_id={};_.stat_id["5"]="Crush Atk";_.stat_id["6"]="Crush Def";_.stat_id["7"]="Magic Atk";_.stat_id["15"]="Magic Damage";_.stat_id["8"]="Magic Def";_.stat_id["14"]="Prayer";_.stat_id["9"]="Range Atk";_.stat_id["10"]="Range Def";_.stat_id["13"]="Ranged Str";_.stat_id["3"]="Slash Atk";_.stat_id["4"]="Slash Def";_.stat_id["1"]="Stab Atk";_.stat_id["2"]="Stab Def";_.stat_id["12"]="Strength";_.stat_id["11"]="Summon Def";_.stuff={};_.stuff["1"]="stuff";_.treasure_clue_type={};_.treasure_clue_type["2"]="Anagrams";_.treasure_clue_type["3"]="Challenges";_.treasure_clue_type["6"]="Coordinates";_.treasure_clue_type["5"]="Emote/Outfit";_.treasure_clue_type["4"]="Riddles";_.treasure_clue_type["1"]="Speak To";_.video_category={};_.video_category["11"]="Areas";_.video_category["2"]="Clan Wars";_.video_category["4"]="Comedy";_.video_category["7"]="Events";_.video_category["13"]="Misc";_.video_category["9"]="Monsters";_.video_category["12"]="Music Videos";_.video_category["6"]="PKing";_.video_category["10"]="Quests";_.weapon_type={};_.weapon_type["11"]="Axe";_.weapon_type["12"]="Fishing Rod";_.weapon_type["10"]="Hoe";_.zone_id={};_.zone_id["0"]="0 - No Specification";_.zone_id["1"]="1 - Howling Mountains";_.zone_id["10"]="10 - Sascilia Steppes";_.zone_id["100"]="100 - Tutorial";_.zone_id["101"]="101 - Cavern of Trials";_.zone_id["102"]="102 - Forsaken Abbey";_.zone_id["103"]="103 - Necropolis";_.zone_id["104"]="104 - Mystic Altar";_.zone_id["105"]="105 - Kal Turok Hive";_.zone_id["106"]="106 - Pasper\'s Shrine";_.zone_id["107"]="107 - Kalin Shrine";_.zone_id["108"]="108 - Treasure Trove";_.zone_id["109"]="109 - Chamber of Kings";_.zone_id["11"]="11 - Dragonfang Ridge";_.zone_id["110"]="110 - Barren Caves";_.zone_id["113"]="113 - Ice Dwarf Kingdom";_.zone_id["114"]="114 - Ice Dwarf (50)";_.zone_id["12"]="12-???";_.zone_id["2"]="2 - Silverspring";_.zone_id["201"]="201 - Bloody Gallery";_.zone_id["202"]="202 - Ystra Labyrinth 1";_.zone_id["203"]="203 - Ystra Labyrinth 2";_.zone_id["204"]="204 - Ystra Labyrinth 3";_.zone_id["250"]="250 - Windmill";_.zone_id["251"]="251 - Arcane Chamber";_.zone_id["252"]="252 - Cyclops Lair";_.zone_id["3"]="3 - Ravenfell";_.zone_id["300"]="300 - Zone of Darkness";_.zone_id["301"]="301 - Fungus Garden";_.zone_id["302"]="302 - Tempest Height";_.zone_id["303"]="303 - Wedding Hall";_.zone_id["350"]="350 - Windrunner Race";_.zone_id["351"]="351 - Malatina\'s Dungeon";_.zone_id["4"]="4 - Aslan";_.zone_id["400"]="400 - Residence";_.zone_id["401"]="401 - Guild Castle";_.zone_id["410"]="410 - 1 vs 1 Arena";_.zone_id["430"]="430 - 3 vs 3 Arena";_.zone_id["450"]="450 - Arena";_.zone_id["460"]="460 - Battleground";_.zone_id["5"]="5 - Ystra Highlands";_.zone_id["6"]="6 - Dust Devil Canyons";_.zone_id["7"]="7 - Weeping Coast";_.zone_id["700"]="700 - Event Related";_.zone_id["701"]="701 - Epic Story 1";_.zone_id["702"]="702 - Item Shop";_.zone_id["703"]="703 - Guild Systems";_.zone_id["704"]="704 - New Tutorial";_.zone_id["802"]="802 - Epic Story 2";_.location_name={};_.location_name["536"]="Agility Dungeon, Yanille";_.location_name["10"]="Al Kharid";_.location_name["568"]="Alternate Abyss";_.location_name["572"]="Ancient Temple";_.location_name["5"]="Ape Atoll";_.location_name["15"]="Ardougne";_.location_name["501"]="Ardougne Sewers";_.location_name["548"]="Azzanadra's Pyramid";_.location_name["35"]="Bandit Camp (Desert)";_.location_name["34"]="Bandit Camp (Wilderness)";_.location_name["590"]="Bandos Throne Room";_.location_name["14"]="Barbarian Village";_.location_name["524"]="Barrows";_.location_name["589"]="Black Knight Fortress Catacombs";_.location_name["7"]="Brimhaven and Musa Point";_.location_name["541"]="Brimhaven Dungeon";_.location_name["577"]="Brine Rat Cave";_.location_name["40"]="Burgh de Rott";_.location_name["26"]="Burthorpe";_.location_name["32"]="Canifis";_.location_name["6"]="Catherby";_.location_name["502"]="Chaos Tower Dungeon";_.location_name["583"]="Chaos Tunnels";_.location_name["560"]="Clock Tower Dungeon";_.location_name["588"]="Desert Slayer Dungeon";_.location_name["563"]="Digsite";_.location_name["49"]="Dorgesh-Kaan";_.location_name["578"]="Dorgesh-Kaan South Dungeon";_.location_name["528"]="Draynor Sewers";_.location_name["19"]="Draynor Village";_.location_name["522"]="Drezel's Basement";_.location_name["558"]="Dungeon of Tolna";_.location_name["527"]="Dwarven Mines";_.location_name["24"]="Edgeville";_.location_name["506"]="Edgeville Dungeon";_.location_name["503"]="Elemental Workshop";_.location_name["571"]="Enakhra's Temple";_.location_name["566"]="Enchanted Valley";_.location_name["9"]="Entrana";_.location_name["511"]="Entrana Dungeon";_.location_name["564"]="Evil Chicken Lair";_.location_name["17"]="Falador";_.location_name["530"]="Fenkenstrain Dungeon";_.location_name["521"]="Fire Giant Dungeon";_.location_name["48"]="Fremennik Isles";_.location_name["519"]="Fremennik Slayer Dungeon";_.location_name["575"]="Giant Mole Den";_.location_name["543"]="Goblin Dungeon";_.location_name["587"]="God Wars Dungeon";_.location_name["569"]="Gorak Lair";_.location_name["525"]="Grand Tree Roots";_.location_name["23"]="Gu'Tanoth";_.location_name["544"]="Gu'Tanoth Dungeon";_.location_name["531"]="H.A.M Hideout";_.location_name["52"]="Harmony Island";_.location_name["545"]="Haunted Mine";_.location_name["533"]="Heroes' Dungeon";_.location_name["510"]="Ice Caves";_.location_name["539"]="Ice Troll Passage";_.location_name["574"]="Jatizso Dungeon";_.location_name["513"]="Kalphite Hive";_.location_name["517"]="Karamja Volcano";_.location_name["30"]="Keldagrim";_.location_name["535"]="Keldagrim City";_.location_name["542"]="Kharazi Jungle Caves";_.location_name["520"]="King Black Dragon Lair";_.location_name["594"]="Lair of Tarn Razorlor";_.location_name["526"]="Lava Maze Dungeon";_.location_name["518"]="Lighthouse Basement";_.location_name["595"]="Living Rock Caverns";_.location_name["51"]="Lletya";_.location_name["4"]="Lumbridge";_.location_name["561"]="Lumbridge Caves";_.location_name["45"]="Lunar Isle";_.location_name["47"]="Meiyerditch";_.location_name["586"]="Meiyerditch Laboratory Dungeon";_.location_name["29"]="Miscellania";_.location_name["562"]="Miscellania Dungeon";_.location_name["25"]="Mort'ton";_.location_name["546"]="Mort'ton Dungeon";_.location_name["38"]="Mos Le'Harmless";_.location_name["573"]="Mos Le'harmless Dungeon";_.location_name["532"]="Myreque Dungeon Shortcut";_.location_name["33"]="Nardah";_.location_name["538"]="Observatory Basement";_.location_name["50"]="Oo'glog";_.location_name["584"]="Ourania Cave (ZMI Altar)";_.location_name["559"]="Phoenix Gang Hideout";_.location_name["593"]="Phoenix Lair Dungeon";_.location_name["44"]="Piscatoris Fishing Colony";_.location_name["28"]="Pollnivneach";_.location_name["21"]="Port Khazard";_.location_name["1"]="Port Phasmatys";_.location_name["11"]="Port Sarim";_.location_name["504"]="Pothole Dungeon";_.location_name["581"]="Realm of the Fisher King";_.location_name["3"]="Rellekka";_.location_name["592"]="Rellekka Hunter Area Cave";_.location_name["20"]="Rimmington";_.location_name["582"]="Scabarite Temple";_.location_name["16"]="Seers' Village";_.location_name["549"]="Shadow Dungeon";_.location_name["2"]="Shilo Village";_.location_name["579"]="Slayer Tower";_.location_name["550"]="Smoke Dungeon";_.location_name["37"]="Sophanem";_.location_name["567"]="Starflower Dimension";_.location_name["591"]="Stronghold of Player Safety";_.location_name["580"]="Stronghold of Security";_.location_name["36"]="Tai Bwo Wannai";_.location_name["18"]="Taverley";_.location_name["540"]="Taverley Dungeon";_.location_name["508"]="Temple of Ikov";_.location_name["8"]="Tirannwn";_.location_name["27"]="Tree Gnome Stronghold";_.location_name["39"]="Tree Gnome Village";_.location_name["537"]="Troll Stronghold";_.location_name["585"]="TzHaar";_.location_name["31"]="TzHaar";_.location_name["523"]="Underground Pass, The";_.location_name["570"]="Uzer Dungeon";_.location_name["22"]="Varrock";_.location_name["512"]="Varrock Sewers";_.location_name["43"]="Void Knights' Outpost";_.location_name["534"]="Waterbirth Island";_.location_name["529"]="Waterfall Dungeon";_.location_name["557"]="White Wolf Mountain";_.location_name["46"]="Witchaven";_.location_name["507"]="Witchaven Dungeon";_.location_name["12"]="Yanille";_.location_name["13"]="Zanaris";_.location_name["547"]="Zogre Dungeon";_.location_name["516"]="Zooknock's Tunnel";_.mod_user_id={};_.mod_user_id["204285"]="AragonR";_.mod_user_id["200630"]="Avicenna";_.mod_user_id["200515"]="Ben Goten78";_.mod_user_id["200520"]="Bse";_.mod_user_id["200486"]="Derek";_.mod_user_id["200537"]="Euro";_.mod_user_id["200587"]="Grc25";_.mod_user_id["204254"]="Holleh";_.mod_user_id["200523"]="iLauren";_.mod_user_id["200479"]="Ile";_.mod_user_id["200531"]="J36";_.mod_user_id["200500"]="Maxman";_.mod_user_id["200563"]="Noble Truce";_.mod_user_id["200521"]="Patben";_.mod_user_id["200508"]="PZ";_.mod_user_id["200485"]="Raashy";_.mod_user_id["174513"]="sanktanglia";_.mod_user_id["199757"]="sanktanglia2";_.mod_user_id["204897"]="Shadow Hunter";_.mod_user_id["200518"]="shauly";_.mod_user_id["200554"]="Sinaria101";_.mod_user_id["200532"]="Slip";_.mod_user_id["200517"]="Syncro";_.mod_user_id["200519"]="Tramp Boy 2";_.mod_user_id["200510"]="Ulk";_.mod_user_id["200471"]="w13";_.mod_user_id["200512"]="Yopper77";_.mod_user_id["203574"]="ZombieInfection";};Curse.Lookup.initialize();var mn_1_$7=[[1,"Submit Your Own","editEntity.aspx?type=7&isNew=1"]];var mn_1_2=[[1,"Head","search.aspx?browse=1.2.1"],[2,"Neck","search.aspx?browse=1.2.2"],[3,"Chest","search.aspx?browse=1.2.3"],[5,"Shield","search.aspx?browse=1.2.5"],[7,"Legs","search.aspx?browse=1.2.7"],[8,"Feet","search.aspx?browse=1.2.8"],[9,"Hands","search.aspx?browse=1.2.9"]];var mn_1_1_1=[[3,"Bronze","search.aspx?browse=1.1.1.3"],[4,"Iron","search.aspx?browse=1.1.1.4"],[5,"Steel","search.aspx?browse=1.1.1.5"],[6,"Mithril","search.aspx?browse=1.1.1.6"],[7,"Adamantite","search.aspx?browse=1.1.1.7"],[8,"Rune","search.aspx?browse=1.1.1.8"],[9,"Dragon","search.aspx?browse=1.1.1.9"]];var mn_1_1_2=[[3,"Bronze","search.aspx?browse=1.1.2.3"],[4,"Iron","search.aspx?browse=1.1.2.4"],[5,"Steel","search.aspx?browse=1.1.2.5"],[6,"Mithril","search.aspx?browse=1.1.2.6"],[7,"Adamantite","search.aspx?browse=1.1.2.7"],[8,"Rune","search.aspx?browse=1.1.2.8"],[9,"Dragon","search.aspx?browse=1.1.2.9"]];var mn_1_1=[[1,"Melee","search.aspx?browse=1.1.1",mn_1_1_1],[2,"Ranged","search.aspx?browse=1.1.2",mn_1_1_2],[3,"Magic","search.aspx?browse=1.1.3"]];var mn_1=[[-7,"Item Sets","search.aspx?browse=7",mn_1_$7],[2,"Armor","search.aspx?browse=1.2",mn_1_2],[3,"Quest Items","search.aspx?browse=1.3"],[4,"Misc","search.aspx?browse=1.4"],[1,"Weapons","search.aspx?browse=1.1",mn_1_1],[6,"Potions & Food","search.aspx?browse=1.6"],[5,"Materials","search.aspx?browse=1.5"]];var mn_6_1=[[508,"Agility","guide.aspx?id=508"],[523,"Construction","guide.aspx?id=523"],[517,"Cooking","guide.aspx?id=517"],[514,"Crafting","guide.aspx?id=514"],[515,"Farming","guide.aspx?id=515"],[501,"Firemaking","guide.aspx?id=501"],[509,"Fishing","guide.aspx?id=509"],[502,"Fletching","guide.aspx?id=502"],[504,"Herblore","guide.aspx?id=504"],[524,"Hunter","guide.aspx?id=524"],[512,"Magic","guide.aspx?id=512"],[506,"Mining","guide.aspx?id=506"],[503,"Prayer","guide.aspx?id=503"],[507,"Ranged","guide.aspx?id=507"],[510,"Runecrafting","guide.aspx?id=510"],[513,"Slayer","guide.aspx?id=513"],[516,"Smithing","guide.aspx?id=516"],[525,"Summoning","guide.aspx?id=525"],[505,"Thieving","guide.aspx?id=505"],[511,"Woodcutting","guide.aspx?id=511"]];var mn_6_2=[[17,"Agility","skillCalc.aspx?category=17"],[1,"Attack","skillCalc.aspx?category=1"],[23,"Construction","skillCalc.aspx?category=23"],[8,"Cooking","skillCalc.aspx?category=8"],[13,"Crafting","skillCalc.aspx?category=13"],[2,"Defence","skillCalc.aspx?category=2"],[20,"Farming","skillCalc.aspx?category=20"],[12,"Firemaking","skillCalc.aspx?category=12"],[11,"Fishing","skillCalc.aspx?category=11"],[10,"Fletching","skillCalc.aspx?category=10"],[16,"Herblore","skillCalc.aspx?category=16"],[4,"Hitpoints","skillCalc.aspx?category=4"],[22,"Hunter","skillCalc.aspx?category=22"],[7,"Magic","skillCalc.aspx?category=7"],[15,"Mining","skillCalc.aspx?category=15"],[6,"Prayer","skillCalc.aspx?category=6"],[5,"Ranged","skillCalc.aspx?category=5"],[21,"Runecrafting","skillCalc.aspx?category=21"],[19,"Slayer","skillCalc.aspx?category=19"],[14,"Smithing","skillCalc.aspx?category=14"],[3,"Strength","skillCalc.aspx?category=3"],[24,"Summoning","skillCalc.aspx?category=24"],[18,"Thieving","skillCalc.aspx?category=18"],[9,"Woodcutting","skillCalc.aspx?category=9"]];var mn_6=[[1,"Guides","search.aspx?browse=133.2",mn_6_1],[2,"Calculators","$nonav$",mn_6_2],[3,"XP Table","guide.aspx?id=3097"],[4,"Stat History","statHistory.aspx"]];var mn_133=[[20,"Quests","search.aspx?browse=4"],[122,"Tomes","search.aspx?browse=122"],[101,"Community Guides","http://www.zybez.net/community/index.php?showforum=317"],[21,"Clue Scroll","guide.aspx?id=57"],[3,"Cities","search.aspx?browse=133.3"],[10,"Dungeon Maps","search.aspx?browse=133.10"],[4,"Guilds","search.aspx?browse=133.4"],[5,"Minigames","search.aspx?browse=133.5"],[9,"Mining Maps","search.aspx?browse=133.9"],[8,"Misc","search.aspx?browse=133.8"],[2,"Skills","search.aspx?browse=133.2"]];var mn_201_2=[[17,"Agility","skillCalc.aspx?category=17"],[1,"Attack","skillCalc.aspx?category=1"],[23,"Construction","skillCalc.aspx?category=23"],[8,"Cooking","skillCalc.aspx?category=8"],[13,"Crafting","skillCalc.aspx?category=13"],[2,"Defence","skillCalc.aspx?category=2"],[20,"Farming","skillCalc.aspx?category=20"],[12,"Firemaking","skillCalc.aspx?category=12"],[11,"Fishing","skillCalc.aspx?category=11"],[10,"Fletching","skillCalc.aspx?category=10"],[16,"Herblore","skillCalc.aspx?category=16"],[4,"Hitpoints","skillCalc.aspx?category=4"],[22,"Hunter","skillCalc.aspx?category=22"],[7,"Magic","skillCalc.aspx?category=7"],[15,"Mining","skillCalc.aspx?category=15"],[6,"Prayer","skillCalc.aspx?category=6"],[5,"Ranged","skillCalc.aspx?category=5"],[21,"Runecrafting","skillCalc.aspx?category=21"],[19,"Slayer","skillCalc.aspx?category=19"],[14,"Smithing","skillCalc.aspx?category=14"],[3,"Strength","skillCalc.aspx?category=3"],[24,"Summoning","skillCalc.aspx?category=24"],[18,"Thieving","skillCalc.aspx?category=18"],[9,"Woodcutting","skillCalc.aspx?category=9"]];var mn_201=[[2,"Skill Calculator","$nonav$",mn_201_2],[60,"Combat Calculator","combatCalc.aspx"],[20,"Item Comparison","itemComparison.aspx?items=733,699"],[21,"Clue Scroll","guide.aspx?id=57"],[10,"Syndication","syndication.aspx"],[-4,"Bug Reporting and Feedback","http://www.zybez.net/community/index.php?showforum=480"],[5,"Latest Comments","latestComments.aspx"],[4,"Latest Users","latestUsers.aspx"],[8,"Latest Screenshots","latestScreenshots.aspx"],[6,"Latest Additions","latestAdditions.aspx"],[15,"World Map","gmapstest.aspx"],[50,"Swiftkit","swiftkit.aspx"],[99,"Stat History","statHistory.aspx"]];var mn_301_2=[[11,"Areas","viewVideos.aspx?id=11"],[2,"Clan Wars","viewVideos.aspx?id=2"],[4,"Comedy","viewVideos.aspx?id=4"],[7,"Events","viewVideos.aspx?id=7"],[13,"Misc","viewVideos.aspx?id=13"],[9,"Monsters","viewVideos.aspx?id=9"],[12,"Music Videos","viewVideos.aspx?id=12"],[6,"PKing","viewVideos.aspx?id=6"],[10,"Quests","viewVideos.aspx?id=10"]];var mn_301_1=[[4,"Accomplishments","viewScreenshots.aspx?id=4"],[3,"Bugs","viewScreenshots.aspx?id=3"],[5,"Clans","viewScreenshots.aspx?id=5"],[1,"Classic","viewScreenshots.aspx?id=1"],[8,"Events","viewScreenshots.aspx?id=8"],[2,"Fakes","viewScreenshots.aspx?id=2"],[11,"Famous People","viewScreenshots.aspx?id=11"],[10,"Misc","viewScreenshots.aspx?id=10"],[6,"PKing","viewScreenshots.aspx?id=6"],[7,"Quests","viewScreenshots.aspx?id=7"],[9,"Real Life","viewScreenshots.aspx?id=9"]];var mn_301_100=[[4,"Guest Articles","search.aspx?browse=133.100.4"],[2,"Runescape General","search.aspx?browse=133.100.2"],[1,"Runescape News","search.aspx?browse=133.100.1"],[3,"Zybez Community","search.aspx?browse=133.100.3"]];var mn_301=[[7,"Runescape Community","http://www.zybez.net/community/"],[2,"Videos","viewVideos.aspx",mn_301_2],[1,"Screenshots","viewScreenshots.aspx",mn_301_1],[100,"Blogs","search.aspx?browse=133.100",mn_301_100],[1,"Forums","http://www.zybez.net/community/"],[5,"IRC Chat","irc.aspx"],[6,"Ventrilo Chat","ventrilo.aspx"],[8,"Zybez Radio","radio.aspx"]];var mn_Main=[[1,"Items",,mn_1],[4,"Quests",],[2,"NPCs",],[6,"Skills",,mn_6],[3,"Locations",],[133,"Guides",,mn_133],[201,"Tools","$nonav$",mn_201],[301,"Community","http://www.zybez.net/community/",mn_301]];Curse.SelectBox=function(args)
{if(typeof args.container=="string")
{this.container=cg_ge(args.container);}
else
{this.container=args.container;}
var a=cg_ce("a");a.className="curse-select-box";a.onclick=this.toggle.bind(this);cg_ds(a);this.aSelectBox=a;if(args.selectedIndex)
{this.selectedIndex=args.selectedIndex}
else
{this.selectedIndex=0;}
cg_ae(this.container,a);var divOptionsContainer=cg_ce("div");divOptionsContainer.className="curse-select-options";divOptionsContainer.style.display="none";cg_ae(divOptionsContainer,cg_ce("var"));this.divOptionsContainer=divOptionsContainer;this.options=args.options;this.divOptions=[];for(var i=0;i<this.options.length;i++)
{var a=cg_ce("a");var value=this.options[i][0];var label=this.options[i][1];a.onclick=this.handleClick.bind(this,args.parent,i,args.onClick,args.onClickArgs);cg_ae(a,cg_ct(label));cg_ae(divOptionsContainer,a);this.divOptions.push(a);}
cg_ae(divOptionsContainer,cg_ce("div"));this.divOptions[this.selectedIndex].className="selected";this.visible=false;this.aSelectBox.innerHTML=args.options[this.selectedIndex][1];cg_ae(this.container,divOptionsContainer);}
Curse.SelectBox.prototype={show:function()
{this.visible=true;this.divOptionsContainer.style.display="block";},hide:function()
{this.visible=false;this.divOptionsContainer.style.display="none";},toggle:function()
{if(this.visible)
{this.hide();}
else
{this.show();}},handleClick:function(parent,index,onClick,onClickArgs)
{this.hide();this.divOptions[this.selectedIndex].className="";this.selectedIndex=index;this.divOptions[this.selectedIndex].className="selected";var value=this.options[index][0];this.aSelectBox.innerHTML=this.options[this.selectedIndex][1];parent[onClick](value,onClickArgs);}}
Curse.TextEditor={currentRange:null,editorNumber:1,getForm:function(formAction,formID,formHiddenFields,formBodyID,formBodyValue,formBodyFocusEvent,formBodyCols,formBodyRows,formEntryLimit,formVerification,formButtons,formAdditionalInput,formInputDisabled,inputExpand,stripExtraLines){var editorDiv=document.createElement("div");editorDiv.id="editor_"+Curse.TextEditor.editorNumber++;editorDiv.className="editor";if(formAction==null||formAction==""){formAction="postComment.aspx";}
if(formID==null||formID==""){formID="formComment";}
var lineCount=0;if(formBodyValue!=null&&formBodyValue!=""){lineCount=formBodyValue.split("\n").length;}
if(lineCount>formBodyRows){formBodyRows=lineCount;}
var textEditorHTML="";if(!formInputDisabled){var expand="";if(inputExpand){expand="|<a onclick='cg_inputExpand(\""+formBodyID+"\")' id='expand_"+formBodyID+"'>Expand</a>";}
textEditorHTML+="<div class=\"editor-mode-links\">"+Localization.mode+":<a class=\"selected\" onclick=\"Curse.TextEditor.toggleMode(this,'edit','"+formBodyID+"');\">"+Localization.edit+"</a>|<a onclick=\"Curse.TextEditor.toggleMode(this,'preview','"+formBodyID+"',"+stripExtraLines+");\">"+Localization.preview+"</a>"+expand+"</div><div class=\"editor-preview\"></div>";}
textEditorHTML+="<div class=\"editor-formatting-buttons\">";textEditorHTML+="<button type=\"button\" style=\"margin-left: 3px;\" onclick=\"Curse.TextEditor.applyTag(this,'b','"+formBodyID+"');\">B</button><button type=\"button\" onclick=\"Curse.TextEditor.applyTag(this,'i','"+formBodyID+"');\"><i>I</i></button><button type=\"button\" onclick=\"Curse.TextEditor.applyTag(this,'u','"+formBodyID+"');\"><u>U</u></button><button type=\"button\" onclick=\"Curse.TextEditor.applyTag(this,'s','"+formBodyID+"');\"><s>"+Localization.strike+"</s></button><button type=\"button\" onclick=\"Curse.TextEditor.applyTag(this,'small','"+formBodyID+"');\"><small>"+Localization.small+"</small></button><button type=\"button\" style=\"background: url(images/button_quote.gif) no-repeat; background-position: center;width: 22px;\"  onclick=\"Curse.TextEditor.applyTag(this,'quote','"+formBodyID+"');\">&nbsp;</button><button type=\"button\" onclick=\"Curse.TextEditor.applyTag(this,'h','"+formBodyID+"');\">"+Localization.header+"</button><button type=\"button\" onclick=\"Curse.TextEditor.applyElement(this,'ul',null,'"+formBodyID+"');\" style=\"background: url(images/button_ul.gif) no-repeat; background-position: center;width: 23px;\">&nbsp;</button><button type=\"button\" onclick=\"Curse.TextEditor.applyElement(this,'ol',null,'"+formBodyID+"');\" style=\"background: url(images/button_ol.gif) no-repeat; background-position: center;width: 23px;\">&nbsp;</button><button type=\"button\" onclick=\"Curse.TextEditor.displayURLPrompt(event,'"+editorDiv.id+"','"+formBodyID+"');\" style=\"background: url(images/button_hyperlink.gif) no-repeat; background-position: center;width: 23px;\">&nbsp;</button><button type=\"button\" onclick=\"Curse.TextEditor.displayImagePrompt(event,'"+editorDiv.id+"','"+formBodyID+"');\" style=\"background: url(images/button_imglink.gif) no-repeat; background-position: center;width: 23px;\">&nbsp;</button>";if(Curse.AION){textEditorHTML+="<button type=\"button\"  onclick=\"displayTooltipLinkPrompt(event,'"+editorDiv.id+"','item','"+Localization.an_item+"','"+Localization.item_id+"','"+formBodyID+"');\" style=\"background: url(images/button_item.gif) no-repeat; background-position: center;width: 24px;\" title=\""+Localization.add_item_tooltip_icon+"\">&nbsp;</button><button type=\"button\" onclick=\"displayTooltipLinkPrompt(event,'"+editorDiv.id+"','itemlink','"+Localization.an_item+"','"+Localization.item_id+"','"+formBodyID+"');\" style=\"background: url(images/button_itemlink.gif) no-repeat; background-position: center;width: 23px;\" title=\""+Localization.add_item_tooltip_no_icon+"\">&nbsp;</button><button type=\"button\" onclick=\"displayTooltipLinkPrompt(event,'"+editorDiv.id+"','spell','"+Localization.a_spell+"','"+Localization.spell_id+"','"+formBodyID+"');\" style=\"background: url(images/button_spell.gif) no-repeat; background-position: center;width: 24px;\" title=\""+Localization.add_spell_tooltip+"\">&nbsp;</button><button type=\"button\" onclick=\"displayTooltipLinkPrompt(event,'"+editorDiv.id+"','spelllink','"+Localization.a_spell+"','"+Localization.spell_id+"','"+formBodyID+"');\" style=\"background: url(images/button_spelllink.gif) no-repeat; background-position: center;width: 29px;\" title=\""+Localization.add_spell_tooltip_no_icon+"\">&nbsp;</button>";}
textEditorHTML+="</div>";if(formInputDisabled){textEditorHTML=textEditorHTML.replace(/\<button/g,"<button disabled");}
if(formAction!="noform"){textEditorHTML+="<form onsubmit=\"return false;\" method=\"post\" action=\""+formAction+"\" name=\""+formID+"\" id=\""+formID+"\">";}
formHiddenFields=formHiddenFields.split(",");for(var i=0;i<formHiddenFields.length;i++){var currentField=formHiddenFields[i].split("=");textEditorHTML+="<input type=\"hidden\" name=\""+currentField[0]+"\" id=\""+currentField[0]+"\" value=\""+currentField[1]+"\"/>";}
textEditorHTML+="<textarea ";if(formInputDisabled){textEditorHTML+="disabled ";}
if(Curse.Browser.ie){textEditorHTML+="onpaste=\"Curse.TextEditor.resize(this);\" onchange=\"Curse.TextEditor.resize(this);\" onkeydown=\"Curse.TextEditor.resize(this, event)\" onkeyup=\"Curse.TextEditor.resize(this)\"";}
else{textEditorHTML+="oninput=\"Curse.TextEditor.resize(this,event)\"";}
if(formBodyFocusEvent!=null&&formBodyFocusEvent!=""){textEditorHTML+=" onfocus=\""+formBodyFocusEvent+"\"";}
textEditorHTML+=" name=\""+formBodyID+"\" id=\""+formBodyID+"\"";if(formBodyCols!=null){textEditorHTML+=" cols=\""+formBodyCols+"\"";}
if(formBodyRows!=null){textEditorHTML+=" rows=\""+formBodyRows+"\"";}
textEditorHTML+=" style=\"overflow: visible;\">";if(formBodyValue!=null&&formBodyValue!=""){textEditorHTML+=formBodyValue;}
textEditorHTML+="</textarea>";if(formEntryLimit!=null&&formEntryLimit!=""){textEditorHTML+="<br/><small> "+Localization.replace("char_enter_note",formEntryLimit)+"</small>";}
if(formAdditionalInput){textEditorHTML+="<div class=\"editor-input\">";textEditorHTML+=formAdditionalInput;textEditorHTML+="</div>";}
if(formVerification){}
if(formAction!="noform"){textEditorHTML+="</form>";}
textEditorHTML+="<div class=\"editor-buttons\">";if(!formButtons){textEditorHTML+="<button class=\"smallButton\" onclick=\"Curse.Comment.handleEditFormSubmit(this)\"><span>"+Localization.save+"</span></button>&nbsp;<button class=\"smallButton\" onclick=\"Curse.Comment.cancelEdit(this)\"><span>"+Localization.cancel+"</span></button>";}
else if(formButtons!="none"){formButtons=formButtons.split("|");for(var i=0;i<formButtons.length;i++){var currentButton=formButtons[i].split("^");textEditorHTML+="<button class=\"smallButton\" ";if(formInputDisabled){textEditorHTML+="Disabled\"";}
else{textEditorHTML+="\" onclick=\""+currentButton[0]+"\"";}
textEditorHTML+="><span>"+currentButton[1]+"</span></button>";}}
textEditorHTML+="</div>";editorDiv.innerHTML=textEditorHTML;return editorDiv;},applyElement:function(source,elementName,elementArguments,inputid){var form=null;var input;if(inputid!=null){input=cg_ge(inputid);}
else{if(source.className=="editor"){form=source.getElementsByTagName("form")[0];}
else{form=source.parentNode.parentNode.getElementsByTagName("form")[0];}
input=form.getElementsByTagName("textarea")[0];}
input.focus();var restoreTop=input.scrollTop;if(typeof document.selection!='undefined'){var range=null;if(Curse.TextEditor.currentRange){range=Curse.TextEditor.currentRange;}
else{range=document.selection.createRange();}
var insText=range.text;newText=Curse.TextEditor.getEditorElement(elementName,insText,elementArguments);if(newText==""){return;}
range.text=newText;range.select();}
else if(typeof input.selectionStart!='undefined'){var start=input.selectionStart;var end=input.selectionEnd;var insText=input.value.substring(start,end);newText=Curse.TextEditor.getEditorElement(elementName,insText,elementArguments);if(newText==""){return;}
input.value=input.value.substr(0,start)+newText+input.value.substr(end);input.selectionStart=end+(newText.length-insText.length);}
if(restoreTop>0){input.scrollTop=restoreTop;}
Curse.TextEditor.resize(input);},applyElementHtml:function(source,elementHTML,inputid){var form=null;var input;if(inputid!=null){input=cg_ge(inputid);}
else{if(source.className=="editor"){form=source.getElementsByTagName("form")[0];}
else{form=source.parentNode.parentNode.getElementsByTagName("form")[0];}
input=form.getElementsByTagName("textarea")[0];}
input.focus();var restoreTop=input.scrollTop;if(typeof document.selection!='undefined'){var range=null;if(Curse.TextEditor.currentRange){range=Curse.TextEditor.currentRange;}
else{range=document.selection.createRange();}
var insText=range.text;if(newText==""){return;}
range.text=elementHTML;range.select();}
else if(typeof input.selectionStart!='undefined'){var start=input.selectionStart;var end=input.selectionEnd;var insText=input.value.substring(start,end);newText=elementHTML;if(newText==""){return;}
input.value=input.value.substr(0,start)+newText+input.value.substr(end);input.selectionStart=end+(newText.length-insText.length);}
if(restoreTop>0){input.scrollTop=restoreTop;}
Curse.TextEditor.resize(input);},applyTag:function(button,tag,inputid){var form;var input;if(inputid==null){var form=button.parentNode.parentNode.getElementsByTagName("form")[0];var input=form.getElementsByTagName("textarea")[0];}
else{input=cg_ge(inputid);}
var aTag='['+tag+']';var eTag='[/'+tag+']';input.focus();var restoreTop=input.scrollTop;if(typeof document.selection!='undefined'){var range=document.selection.createRange();var insText=range.text;if(insText.substr(0,aTag.length).toLowerCase()==aTag&&insText.substr(insText.length-eTag.length).toLowerCase()==eTag){range.text=insText.substring(aTag.length,insText.length-eTag.length);return;}
range.text=aTag+insText+eTag;range=document.selection.createRange();if(insText.length==0){range.move('character',-eTag.length);}
else{range.moveStart('character',aTag.length+insText.length+eTag.length);}
range.select();}
else{if(typeof input.selectionStart!='undefined'){var start=input.selectionStart;var end=input.selectionEnd;var insText=input.value.substring(start,end);if(insText.toLowerCase().indexOf(aTag)>=0&&insText.toLowerCase().indexOf(eTag)>=0){var finished=insText.toLowerCase().indexOf(aTag)==0;var startRegExp=eval("/\\["+tag+"\\]/g");var endRegExp=eval("/\\[\\/"+tag+"\\]/g");insText=insText.replace(startRegExp,"");insText=insText.replace(endRegExp,"");if(finished){input.value=input.value.substr(0,start)+insText+input.value.substr(end);input.selectionStart=end-eTag.length-aTag.length;input.selectionEnd=input.selectionStart;if(restoreTop>0){input.scrollTop=restoreTop;}
return;}
else{input.value=input.value.substr(0,start)+aTag+insText+eTag+input.value.substr(end);input.selectionStart=end;input.selectionEnd=end;if(restoreTop>0){input.scrollTop=restoreTop;}
return;}}
input.value=input.value.substr(0,start)+aTag+insText+eTag+input.value.substr(end);var pos;if(insText.length==0){pos=start+aTag.length+eTag.length;}
else{pos=start+aTag.length+insText.length+eTag.length;}
input.selectionStart=pos;input.selectionEnd=pos;}
if(restoreTop>0){input.scrollTop=restoreTop;}}},resize:function(obj,e){var myEvent=cg_getEvent(e);if(e&&cg_getEventTarget(e)!=null){obj=cg_getEventTarget(myEvent);}
if(myEvent&&myEvent.type=="keydown"&&myEvent.keyCode==13){lineCount=(obj.value+"\n").split("\n").length;}
else{lineCount=obj.value.split("\n").length;}
if(lineCount>20){lineCount=20;}
if(lineCount>8){obj.rows=lineCount;}
else{obj.rows=8;}
if(Curse.Browser.ie){obj.rows+=1;}},getSelectedText:function(input){if(typeof document.selection!='undefined'){input.focus();var range=document.selection.createRange();Curse.TextEditor.currentRange=range;return range.text;}
else if(typeof input.selectionStart!='undefined'){var start=input.selectionStart;var end=input.selectionEnd;return input.value.substring(start,end);}},toggleMode:function(toggleButton,mode,inputid,stripExtraLines){var buttonContainer=toggleButton.parentNode;var formContainer=buttonContainer.parentNode;var formattingButtonsContainer=cg_getElementsByClassName("editor-formatting-buttons","div",formContainer,true);var formPreviewContainer=cg_getElementsByClassName("editor-preview","div",formContainer,true);var form=formContainer.getElementsByTagName("FORM")[0];var buttons=buttonContainer.getElementsByTagName("A");for(var i=0;i<buttons.length;i++){if(buttons[i].className=="selected"){buttons[i].className="";}}
toggleButton.className="selected";if(mode=="preview"){formattingButtonsContainer.style.display="none";if(form!=null){form.style.display="none";var formBody=form.getElementsByTagName("textarea")[0];formPreviewContainer.innerHTML=Curse.TextFormatter.getFormattedText(formBody.value,true);}
else{formPreviewContainer.innerHTML=Curse.TextFormatter.getFormattedText(cg_ge(inputid).value,true,false,stripExtraLines);cg_ge(inputid).style.display="none";}
formPreviewContainer.style.display="block";}
else{formattingButtonsContainer.style.display="block";formPreviewContainer.style.display="none";if(form!=null){form.style.display="block";}
else{cg_ge(inputid).style.display="block";}}},displayURLPrompt:function(e,editorID,inputid){var myEvent=cg_getEvent(e);var src=cg_getEventTarget(e);var srcPosition=cg_getPosition(src);var input;if(inputid!=null){input=cg_ge(inputid);}
else{var form=src.parentNode.parentNode.getElementsByTagName("form")[0];input=form.getElementsByTagName("textarea")[0];}
var defaultLink=Curse.TextEditor.getSelectedText(input);Curse.Alert.show(Localization.enter_hyperlink,Localization.create_hyperlink,Localization.url+"^url^"+defaultLink+"^^^^<small>"+Localization.replace("enter_url","http://</small>")+"^label","Curse.TextEditor.processURLPrompt('"+editorID+"',event,'"+inputid+"')^"+Localization.ok+"|Curse.Alert.close()^"+Localization.cancel,src,srcPosition.y,srcPosition.x+src.offsetWidth+2);},displayImagePrompt:function(e,editorID,inputid){var myEvent=cg_getEvent(e);var src=cg_getEventTarget(e);var srcPosition=cg_getPosition(src);var input;if(inputid!=null){input=cg_ge(inputid);}
else{var form=src.parentNode.parentNode.getElementsByTagName("form")[0];input=form.getElementsByTagName("textarea")[0];}
var defaultLink=Curse.TextEditor.getSelectedText(input);Curse.Alert.show("Please enter the image details","Create Image Link",Localization.url+"^url^"+defaultLink+"^^^^<small>Enter an Armory Screenshot URL. Example: http://www.aionarmory.com/screenshot.aspx?id=56</small>|"+Localization.width_optional+"^width|"+Localization.height_optional+"^height|"+Localization.use_nail+"^full^0^filter_yes_no","Curse.TextEditor.processImagePrompt('"+editorID+"',event,'"+inputid+"')^"+Localization.ok+"|Curse.Alert.close()^"+Localization.cancel,src,srcPosition.y,srcPosition.x+src.offsetWidth+2);},getEditorElement:function(elementName,insText,elementArguments){var editorElement="";if(elementName=="ul"||elementName=="ol"){if(insText.indexOf("[ul]")>=0||insText.indexOf("[ol]")>=0){return"";}
editorElement="["+elementName+"]\n";insTextArray=insText.split("\n");var linesInserted=0;for(var i=0;i<insTextArray.length;i++){if(insTextArray[i]!=""){linesInserted+=1;editorElement+="[li]"+insTextArray[i]+"[/li]\n";}}
if(linesInserted==0){editorElement+="[li][/li]\n";}
editorElement+="[/"+elementName+"]";return editorElement;}
if(elementName=="url"){if(!elementArguments){return;}
if(insText.indexOf("[url]")>=0){return"";}
urlLink=elementArguments.url;if(elementArguments.label!=""){urlLabel=elementArguments.label;}
else{urlLabel=urlLink;}
editorElement="[url=";editorElement+=urlLink;editorElement+="]"+urlLabel+"[/url]";return editorElement;}
if(elementName.indexOf("img")>=0){if(!elementArguments){return;}
if(insText.indexOf("[img]")>=0){return"";}
urlLink=elementArguments.img;editorElement="[img";if(elementArguments.height!=""){editorElement+=" height="+elementArguments.height;}
if(elementArguments.width!=""){editorElement+=" width="+elementArguments.width;}
if(elementArguments.full!=""&&elementArguments.full!=0){editorElement+=" full";}
editorElement+="]"+urlLink+"[/img]";return editorElement;}
if(elementName=="item"||elementName=="itemlink"||elementName=="spell"||elementName=="spelllink"){if(!elementArguments){return;}
if(insText.indexOf("[item]")>=0||insText.indexOf("[itemlink]")>=0){return"";}
tooltipID=elementArguments.tooltipID;editorElement="["+elementName+"]";editorElement+=tooltipID;editorElement+="[/"+elementName+"]";return editorElement;}},processURLPrompt:function(editorID,e,inputid){cg_cancelBubbling(e);var myAlert=cg_ge("alert");var promptForm=myAlert.getElementsByTagName("form")[0];var urlLink=promptForm.url.value;var urlLabel=promptForm.label.value;var editor=cg_ge(editorID);Curse.Alert.close();Curse.TextEditor.applyElement(editor,"url",{"url":urlLink,"label":urlLabel},inputid);},processImagePrompt:function(editorID,e,inputid){cg_cancelBubbling(e);var myAlert=cg_ge("alert");var promptForm=myAlert.getElementsByTagName("form")[0];var urlLink=promptForm.url.value;var width=promptForm.width.value;var height=promptForm.height.value;var full=promptForm.full.value;;var editor=cg_ge(editorID);Curse.Alert.close();Curse.TextEditor.applyElement(editor,"img",{"img":urlLink,"height":height,"width":width,"full":full},inputid);}}
Curse.TextFormatter={causesLineBreak:function(tagName){if(tagName=="[th]"||tagName=="[/th]"||tagName=="[td]"||tagName=="[/td]"||tagName=="[tr]"||tagName=="[/tr]"||tagName=="[table]"||tagName=="[/table]"||tagName=="[h4]"||tagName=="[/h4]"||tagName=="[h]"||tagName=="[/h]"||tagName=="[/li]"||tagName=="[ul]"||tagName=="[/ul]"||tagName=="[ol]"||tagName=="[/ol]"||tagName=="[/quote]"||tagName=="[/item]"||tagName=="[/spell]"||tagName=="[/achievement]"){return true;}
return false;},getFormattedText:function(rawText,previewMode,handleBreaks,stripExtraLines){var startTime=new Date();var newLineCount=0;var noSpacesCount=0;var newText="";var headerCount=0;var newText="";var newTextArray=[];if(handleBreaks==null){handleBreaks=true;}
if(handleBreaks){for(var i=0;i<rawText.length;i++){if(rawText.charAt(i)!=" "&&rawText.charAt(i)!="\n"){noSpacesCount+=1;}
else{noSpacesCount=0;}
if(rawText.charAt(i)=="\n"){newLineCount+=1;if(newLineCount<=2){var lastTag="";var nextTag="";if(i>=1){if(rawText.substr(i-1,1)=="]"){var tagStart=rawText.substr(0,i).lastIndexOf("[");if(tagStart>=0){var tagLength=i-1-tagStart;lastTag=rawText.substr(tagStart,tagLength+1);}}
if(rawText.substr(i+1,1)=="["){var tagEnd=rawText.substring(i+1).indexOf("]");if(tagEnd>=0){nextTag=rawText.substr(i+1,tagEnd+1);}}}
if(i+3<rawText.length&&!Curse.TextFormatter.causesLineBreak(nextTag)&&!Curse.TextFormatter.causesLineBreak(lastTag)){newTextArray.push("<br>");}}}
else{newLineCount=0;newTextArray.push(rawText.charAt(i));}
if(noSpacesCount>200){if(rawText.charAt(i+1)!=";"&&rawText.charAt(i+2)!=";"&&rawText.charAt(i+3)!=";"){newTextArray.push(" ");noSpacesCount=0;}}}
newText=newTextArray.join("");}
else{newText=rawText.replace(/\n\n(?!\[h)/g,"<br><br>");if(stripExtraLines){newText=rawText.replace(/<br><br>(?!\[h)/g,"<br><br>");}}
if(newText.indexOf("[")==-1){return newText;}
if(typeof(getMoneyHTML)!="undefined"){newText=getMoneyHTML(newText);}
if(typeof(getEntityLink)!="undefined"){newText=getEntityLink(newText,"npc");newText=getEntityLink(newText,"itemset");newText=getEntityLink(newText,"faction");newText=getEntityLink(newText,"quest");newText=getEntityLink(newText,"location");newText=getEntityLink(newText,"object");}
if(typeof(getTooltipLinks)!="undefined"){newText=getTooltipLinks(newText,"item",getFullItemLink,previewMode);newText=getTooltipLinks(newText,"itemlink",getTextItemLink,previewMode);newText=getTooltipLinks(newText,"itemicon",getIconItemLink,previewMode);newText=getTooltipLinks(newText,"spell",getFullSpellLink,previewMode);newText=getTooltipLinks(newText,"spelllink",getTextSpellLink,previewMode);newText=getTooltipLinks(newText,"spellicon",getIconSpellLink,previewMode);if(typeof(getIconAchievementLink)!="undefined"){newText=getTooltipLinks(newText,"achievement",getIconAchievementLink,previewMode);}
newText=getTooltipLinks(newText,"quest",getQuestTooltipLink,previewMode);if(typeof(getTextAchievementLink)!="undefined"){newText=getTooltipLinks(newText,"achievementlink",getTextAchievementLink,previewMode);}}
newText=newText.replace(/\[b\]/g,"<b>").replace(/\[\/b\]/g,"</b>");newText=newText.replace(/\[table\]/g,"<table>").replace(/\[\/table\]/g,"</table>");newText=newText.replace(/\[tr\]/g,"<tr>").replace(/\[\/tr\]/g,"</tr>");newText=newText.replace(/\[td\]/g,"<td>").replace(/\[\/td\]/g,"</td>");newText=newText.replace(/\[th\]/g,"<th>").replace(/\[\/th\]/g,"</th>");newText=newText.replace(/\[i\]/g,"<i>").replace(/\[\/i\]/g,"</i>");newText=newText.replace(/\[u\]/g,"<u>").replace(/\[\/u\]/g,"</u>");newText=newText.replace(/\[s\]/g,"<s>").replace(/\[\/s\]/g,"</s>");newText=newText.replace(/\[ul\]/g,"<ul>").replace(/\[\/ul\]/g,"</ul>");newText=newText.replace(/\[ol\]/g,"<ol>").replace(/\[\/ol\]/g,"</ol>");newText=newText.replace(/\[li\]/g,"<li><div>").replace(/\[\/li\]/g,"</div></li>");newText=newText.replace(/\[small\]/g,"<small>").replace(/\[\/small\]/g,"</small>");newText=newText.replace(/\[center\]/g,"<center>").replace(/\[\/center\]/g,"</center>");newText=newText.replace(/\[quote\]/g,"<div class=\"quote\">").replace(/\[\/quote\]/g,"</div>");var headerRegex=/\[(h([0-9])?)\]/;var headerMatch=headerRegex.exec(newText);while(headerMatch!=null){var currentHeaderTag="h3";if(headerMatch[2]!=null){currentHeaderTag="h"+headerMatch[2];}
headerCount+=1;if(headerMatch.index==0&&headerCount==1){newText=newText.replace(headerRegex,"<"+currentHeaderTag+" class=\"first\">");}
else{newText=newText.replace(headerRegex,"<"+currentHeaderTag+">");}
newText=newText.replace(/\[\/h(?:[0-9])?\]/,"</"+currentHeaderTag+">");headerMatch=headerRegex.exec(newText);}
newText=newText.replace(/\[\/span\]/g,"</span>");var spanRegex=/\[span(.*?)\]/;var spanMatch=spanRegex.exec(newText);while(spanMatch!=null){newText=newText.replace(spanRegex,"<span "+spanMatch[1]+">");spanMatch=spanRegex.exec(newText);}
var thRegex=/\[th (.*?)\]/;var thMatch=thRegex.exec(newText);while(thMatch!=null){newText=newText.replace(thRegex,"<th "+thMatch[1]+">");thMatch=thRegex.exec(newText);}
var tdRegex=/\[td (.*?)\]/;var tdMatch=tdRegex.exec(newText);while(tdMatch!=null){newText=newText.replace(tdRegex,"<td "+tdMatch[1]+">");tdMatch=tdRegex.exec(newText);}
var liRegex=/\[li (.*?)\]/;var liMatch=liRegex.exec(newText);while(liMatch!=null){newText=newText.replace(liRegex,"<li "+liMatch[1]+"><div>");liMatch=liRegex.exec(newText);}
var urlRegex=/\[url=(.*?)\](.*?)\[\/url\]/;var urlRegexMatch=urlRegex.exec(newText);while(urlRegexMatch!=null){if(urlRegexMatch[1].indexOf("http://")>0){newText=newText.replace(urlRegex,"<a href=\""+urlRegexMatch[1]+"\">"+urlRegexMatch[2]+"</a>");}
else{newText=newText.replace(urlRegex,"<a target=\"_blank\" href=\""+urlRegexMatch[1]+"\">"+urlRegexMatch[2]+"</a>");}
urlRegexMatch=urlRegex.exec(newText);}
var imageRegex=/\[image](.*?)\[\/image\]/;var imageRegexMatch=imageRegex.exec(newText);while(imageRegexMatch!=null){newText=newText.replace(imageRegex,"<img src=\""+imageRegexMatch[1]+"\"></img>");imageRegexMatch=imageRegex.exec(newText);}
return newText;}}
if(!Curse){var Curse={};}
Curse.Icon=function(size,id,link,relatedID,elementID,overFn,overArgs,outFn,outArgs,num,quantity,showNum,spritePath,spritePosition,baseUrl)
{return this.initialize(size,id,link,relatedID,elementID,overFn,overArgs,outFn,outArgs,num,quantity,showNum,spritePath,spritePosition,baseUrl);}
Curse.Icon.prototype={sizes:["small","medium","large"],paths:["s","m","l"],initialize:function(size,id,link,relatedID,elementID,overFn,overArgs,outFn,outArgs,num,quantity,showNum,spritePath,spritePosition,baseUrl)
{var icon=cg_ce("div");icon.className="icon"+this.sizes[size];var tile=cg_ce("div");tile.className="tile";if(!baseUrl)
{baseUrl="";}
if(elementID)
{icon.id=elementID;}
if(spritePath!=null)
{var sprite=cg_ce("div");sprite.className="sprite";sprite.style.backgroundImage="url("+spritePath+")";if(spritePosition)
{sprite.style.backgroundPosition=spritePosition;}
cg_ae(icon,sprite);var border=cg_ce("var");cg_ae(tile,border);icon.divSprite=sprite;icon.varBorder=border;}
else
{icon.style.backgroundImage="url("+baseUrl+"icons/"+this.paths[size]+"/"+id+"."+Curse.Icon.fileFormat+")";}
if(link||overFn)
{var a=cg_ce("a");if(relatedID)
{a._relatedID=relatedID;icon.aLink=a;}
if(overFn)
{a.onmouseover=overFn.bind(this,a,overArgs);}
if(outFn)
{a.onmouseout=outFn.bind(this,a,outArgs);}
if(link){a.href=link;}
else
{a.href="javascript:;";cg_ds(a);}
cg_ae(tile,a);}
if(showNum||(num!=null&&(num>1||num.length))){var shadowText=cg_getShadowText(num,"r1");shadowText.style.right="0";shadowText.style.bottom="0";shadowText.style.position="absolute";cg_ae(tile,shadowText);}
if(quantity!=null&&quantity>0){var shadowText=cg_getShadowText("("+quantity+")","r");shadowText.style.left="0";shadowText.style.top="0";shadowText.style.position="absolute";cg_ae(tile,shadowText);}
cg_ae(icon,tile);return icon;},over:function(){if(this.relatedTooltip!=null){Tooltip.show(this,this.relatedTooltip,0,0);}},out:function(){Tooltip.hide();}};Curse.Icon.fileFormat="gif";if(!Curse){var Curse={};}
Curse.TabGroup=function(pOptions)
{this.ignoreScroll=false;cg_cO(this,pOptions);if(this.parent)
{this.parent=cg_ge(this.parent);}
else
{return;}
this.selectedTab=-1;this.tabList=[];this.tabs=[];this.shownCount=0;if(this.hasViewstate==null)
{this.hasViewstate=true;}
this.tabWithViewstate=null;if(this.onHide)
{this.onHide=this.onHide.bind(this);}
if(this.onLoad==null)
{this.onLoad=Curse.TabGroup.onLoad.bind(this);}
if(this.onShow==null)
{this.onShow=Curse.TabGroup.onShow.bind(this);}};Curse.TabGroup.prototype={add:function(pLabel,pOptions)
{var index=this.tabs.length;var newTab={label:pLabel,index:index,owner:this};cg_cO(newTab,pOptions);this.tabs.push(newTab);return index;},focus:function(pIndex)
{if(pIndex<0)
{pIndex=this.tabs.length+pIndex;}
this.forceScroll=1;var tabAnchors=cg_gebt(this.tabList,"a");tabAnchors[pIndex].onclick({},true);this.forceScroll=null;},getTabIndex:function(pTabId)
{for(var i=0;i<this.tabs.length;i++)
{if(this.tabs[i].id==pTabId)
{return i;}}},getSelectedTabId:function()
{return this.tabs[this.selectedTab].id;},updateTabLabel:function(pTabId,pTabLabel,pDataCount)
{var tabIndex=this.getTabIndex(pTabId);var b=cg_ce("b");var d=cg_ce("div");b.innerHTML=d.innerHTML=pTabLabel+" ("+pDataCount+")";cg_de(this.tabs[tabIndex]._dLabel);cg_de(this.tabs[tabIndex]._bLabel);cg_ae(this.tabs[tabIndex]._anchor,d);cg_ae(this.tabs[tabIndex]._anchor,b);this.tabs[tabIndex]._bLabel=b;this.tabs[tabIndex]._dLabel=d;},showById:function(pTabId)
{this.show(this.getTabIndex(pTabId));},show:function(pTabIndex,pTab)
{var selectedTab;if(isNaN(pTabIndex)||pTabIndex<0)
{pTabIndex=0;}
else if(pTabIndex>=this.tabs.length){pTabIndex=this.tabs.length-1;}
if(pTab==null&&pTabIndex==this.selectedTab){return;}
if(this.selectedTab!=-1)
{selectedTab=this.tabs[this.selectedTab];if(this.onHide&&!this.onHide(selectedTab))
{return;}
if(selectedTab.onHide&&!selectedTab.onHide())
{return;}}
this.shownCount+=1;selectedTab=cg_gebt(this.tabList,"a");if(this.selectedTab!=-1)
{selectedTab[this.selectedTab].className="";}
selectedTab[pTabIndex].className="selected";selectedTab=this.tabs[pTabIndex];if(selectedTab.onLoad)
{selectedTab.onLoad();selectedTab.onLoad=null;}
this.onShow(this.tabs[pTabIndex],this.tabs[this.selectedTab]);this.selectedTab=pTabIndex;if(selectedTab.onShow)
{selectedTab.onShow(this.tabs[this.selectedTab]);}},render:function(pTabIndex)
{if(this.tabs.length==0)
{return;}
var loadAction,l,a,d,d2;if(this.tabsContainer==null)
{this.tabsContainer=cg_ce("div");this.tabsContainer.className="tabs-container";d=cg_ce("div");this.tabList=cg_ce("ul");this.tabList.className="tabs";cg_ae(d,this.tabList);cg_ae(this.tabsContainer,d);d=cg_ce("div");}
for(var i=0;i<this.tabs.length;i++)
{var tab=this.tabs[i];if(tab._element!=null)
{continue;}
l=cg_ce("li");a=cg_ce("a");b=cg_ce("b");if(this.hasViewstate)
{a.href="#"+tab.id;}
else
{a.href="javascript:;";}
cg_ds(a);a.onclick=Curse.TabGroup.onClick.bind(tab,a);d=cg_ce("div");if(tab.label.indexOf("<")>=0)
{d.innerHTML=b.innerHTML=tab.label;}
else
{cg_ae(d,cg_ct(tab.label));cg_ae(b,cg_ct(tab.label));}
cg_ae(a,d);cg_ae(a,b);cg_ae(l,a);tab._bLabel=b;tab._dLabel=d;tab._anchor=a;tab._element=l;cg_ae(this.tabList,tab._element);}
cg_ae(this.parent,this.tabsContainer);if(this.onLoad)
{loadAction=this.onLoad();if(loadAction!=null)
{this.tabWithViewstate=pTabIndex=loadAction;}}
this.show(pTabIndex);},setTabLabel:function(tabIndex,label)
{var tabAnchors=cg_gebt(this.tabList,"a");cg_setTextNodes(tabAnchors[tabIndex],label);},setTabViewstate:function(pTabIndex,pListViewstate)
{if(!this.hasViewstate)
{return;}
var tabAnchors=cg_gebt(this.tabList,"a");tabAnchors[pTabIndex].href="#"+this.tabs[pTabIndex].id+":"+pListViewstate;}};Curse.TabGroup.onClick=function(a,e,c)
{if(this.index==this.owner.selectedTab&&c==null)
{return;}
e=cg_getEvent(e);if(e.ctrlKey||e.shiftKey)
{return;}
this.owner.show(this.index,c);if(this.owner.hasViewstate)
{var label;var labelIndex=a.href.indexOf("#");if(labelIndex!=-1)
label=a.href.substr(labelIndex+1);var stateArray=self.location.hash.substring(1).split(":");stateArray[0]=label;location.replace("#"+stateArray.join(":"));}
return false;};Curse.TabGroup.onLoad=function()
{if(!this.hasViewstate||!location.hash.length)
{return;}
var loc=location.hash.substr(1).split(":")[0];if(loc)
{return cg_inArray(this.tabs,loc,function(a){return a.id;});}};Curse.TabGroup.onShow=function(selTab,oldTab)
{if(oldTab)
{cg_ge("datagrid-tab-"+oldTab.id).style.display="none";}
var dataContainer=cg_ge("datagrid-tab-"+selTab.id);dataContainer.style.display="";if((!this.ignoreScroll&&this.shownCount==1&&this.tabWithViewstate!=null&&this.tabWithViewstate>=0)||this.forceScroll)
{var scrollToElement=dataContainer;var topPadding;if(this._selectedTab)
{scrollToElement=this._selectedTab;topPadding=15;}
else
{scrollToElement=dataContainer;topPadding=this.parent.offsetHeight+60;}
setTimeout(cg_scrollTo.bind(this,scrollToElement,topPadding),1);}};if(!Curse){var Curse={};}
var cg_datagrids={};Curse.DataGrid=function(settings){cg_cO(this,settings);var elementID="datagrid-tab-"+this.id;if(this.parent){var element=cg_ce("div");element.id=elementID;cg_ae(cg_ge(this.parent),element);this.container=element;}
else{this.container=cg_ge(elementID);}
if(this.template){this.template=Curse.DataGrid.Templates[this.template];this.template.datagrid=this;}
else{return;}
if(!this.data.length&&!this.message&!this.template.noDataMessage){return;}
if(this.hasViewstate==null){if(this.template.hasViewstate!=null){this.hasViewstate=this.template.hasViewstate;}
else{this.hasViewstate=true;}}
cg_datagrids[this.id]=this;if(this.listStyle==null){this.listStyle=this.template.listStyle;}
this.listStyle|=0;this.startingRow=0;if(!this.resultsPerPage){var userPerPage=parseInt(cg_getCookie("_resultsPerPage"));var templatePerPage=this.template.resultsPerPage;if(userPerPage){this.resultsPerPage=userPerPage;}
else{this.resultsPerPage=(templatePerPage!=null?templatePerPage:50);}}
if(this.preProcessing==null&&this.template.preProcessing!=null){this.preProcessing=this.template.preProcessing;}
if(this.onBeforeCreate==null&&this.template.onBeforeCreate!=null){this.onBeforeCreate=this.template.onBeforeCreate;}
if(this.onAfterCreate==null&&this.template.onAfterCreate!=null){this.onAfterCreate=this.template.onAfterCreate;}
if(this.tabGroup){var tabArgs={};if(!settings.tabSettings){settings.tabSettings={}}
settings.tabSettings.id=this.id;settings.tabSettings.onLoad=this.initialize.bind(this);this.tabIndex=this.tabGroup.add(this.getTabName(),settings.tabSettings);}
else{this.initialize();}};Curse.DataGrid.ListStyle={TableRows:0,CommentBox:2,ScreenshotBox:3};Curse.DataGrid.prototype={initialize:function(){cg_ge("resultsContentPanel").style.display="block";while(this.container.firstChild){cg_de(this.container.firstChild);}
if(this.preProcessing!=null){for(var j=0,blen=this.data.length;j<blen;j++){this.preProcessing(this.data[j]);}}
this.initializeColumns();if(!this.data.length&&!this.hideMessage){this.showNoDataMessage();return;}
if(this.tabGroup){this.hasFocus=(this.tabGroup.tabWithViewstate==this.tabIndex);if(this.hasFocus){this.initializeViewstate();}}
else{this.initializeViewstate();}
this.originalData=this.data.slice(0);if(this.sort&&this.template.sort&&this.sort!=this.template.sort){this.applySort();}
this.setSortIndexes();var beforeResult;if(this.onBeforeCreate!=null){beforeResult=this.onBeforeCreate();}
if(this.listStyle==Curse.DataGrid.ListStyle.CommentBox){this.mainDiv=cg_ce("div");this.mainDiv.className="datagrid-style"+this.listStyle;this.renderRows();this.appendWidgets(this.mainDiv);}
else{this.table=cg_ce("table");this.thead=cg_ce("thead");this.tbody=cg_ce("tbody");this.table.className="datagrid-style"+this.listStyle;if(this.template.customClass){this.table.className+=" "+this.template.customClass;}
if(this.listStyle!=Curse.DataGrid.ListStyle.ScreenshotBox){this.appendColumnHeaders();}
cg_ae(this.table,this.thead);cg_ae(this.table,this.tbody);this.renderRows();this.appendWidgets(this.table);if(this.listStyle!=Curse.DataGrid.ListStyle.ScreenshotBox){this.setSortArrow();}}
if(this.onAfterCreate!=null){this.onAfterCreate(beforeResult);}},initializeViewstate:function(){if(!this.hasViewstate||!location.hash.length){return;}
var hashString=location.hash.substr(1);if(this.tabGroup){var n=hashString.indexOf(":");if(n==-1){return;}
hashString=hashString.substr(n+1);}
var hashStartRow=parseInt(hashString);if(!isNaN(hashStartRow)){this.startingRow=hashStartRow;this.validatePage();if(this.hasViewstate){var sort=[];var sortCols=hashString.match(/(\+|\-)[0-9]+/g);if(sortCols!=null){for(var i=sortCols.length-1;i>=0;--i){var currentCol=parseInt(sortCols[i])|0;var colValue=Math.abs(sortCols);if(colValue<=0||colValue>this.columns.length){break;}
this.addSort(sort,currentCol);}
this.setSort(sort,false,false);}}
if(this.tabGroup){this.tabGroup.setTabViewstate(this.tabIndex,this.getTabViewstate());}}},initializeColumns:function(){this.columns=this.template.columns.slice(0);if(Curse.User.isModerator&&cg_moddableTemplates.indexOf(this.id)>=0){this.columns.unshift(Curse.DataGrid.sharedColumns["modTools"]);if(this.displayColumns){this.displayColumns.unshift("modTools");}}
if(Curse.User.isModerator&&cg_modTables.indexOf(this.id)>=0){this.columns.unshift(Curse.DataGrid.sharedColumns["modField"]);if(this.displayColumns){this.displayColumns.unshift("modField");}}
if(Curse.DataGrid.sharedColumns!=null&&this.displayColumns!=null){for(var p in Curse.DataGrid.sharedColumns){var col=Curse.DataGrid.sharedColumns[p];if(this.displayColumns.indexOf(col.id)>=0&&this.columns.indexOf(col)<0){var pos=null;if(pos==null){pos=this.columns.length;}
this.columns.splice(pos,0,col);}}}
if(this.filterColumns!=null&&this.filterColumns!=""){var setSort=false;if(!this.sort||this.length==0){setSort=true;this.sort=[];}
for(var i=0;i<this.filterColumns.length;i++){var exists=false;var col={};col.id=this.filterColumns[i];if(setSort){}
for(var j=0;j<this.columns.length;j++){if(this.columns[j].id==col.id){exists=true;break;}}
if(exists){continue;}
col.value=this.filterColumns[i];var lbl=this.filterColumns[i];if(Curse.Lookup.filter_result_label&&Curse.Lookup.filter_result_label[lbl]){lbl=Curse.Lookup.filter_result_label[lbl];}
var lbl=lbl;col.label=lbl;this.columns.splice(i+2,0,col);}}
else{this.filterColumns=[];}
this.columnsVisible=[];if(this.displayColumns!=null){for(var i=0,len=this.columns.length;i<len;++i){if(!this.columns[i].hidden&&this.filterColumns.indexOf(this.columns[i].id)>=0||(this.displayColumns.indexOf(this.columns[i].id)>=0)){this.columnsVisible.push(i);}}}
else{for(var i=0,len=this.columns.length;i<len;++i){if(!this.columns[i].hidden||this.filterColumns.indexOf(this.columns[i].id)>=0){this.columnsVisible.push(i);}}}
if(this.sort==null&&this.template.sort){this.sort=this.template.sort.slice(0);}
else{if(this.sort!=null){var oldSort=this.sort;this.sort=[];for(var i=0,len=oldSort.length;i<len;++i){var col=parseInt(oldSort[i]);if(isNaN(col)){var desc=0;if(oldSort[i].charAt(0)=="-"){desc=1;oldSort[i]=oldSort[i].substring(1);}
var colIndex=cg_inArray(this.columns,oldSort[i],function(x){return x.id;});if(colIndex!=-1){if(desc){this.sort.push(-(colIndex+1));}
else{this.sort.push(colIndex+1);}}}
else{this.sort.push(col);}}}}},showNoDataMessage:function(){var d=cg_ce("div");d.className="no-data";var message="";if(this.message){message=this.message;}
else{message=this.template.noDataMessage();}
d.innerHTML=message;cg_ae(this.container,d);},focusTab:function(){if(!this.tabGroup){return;}
this.tabGroup.showById(this.id)},getTabName:function(){var name=this.name;var n=this.data.length;if(n>0){name+=" ("+n+")";}
return name;},getTabViewstate:function(){var tabViewstate="";tabViewstate+=this.startingRow;if(this.hasViewstate&&this.sort.length){tabViewstate+=("+"+this.sort.join("+")).replace(/\+\-/g,"-");}
return tabViewstate;},setViewstate:function(){if(!this.hasViewstate){return;}
var tabViewstate=this.getTabViewstate();if(this.tabGroup){this.tabGroup.setTabViewstate(this.tabIndex,tabViewstate);location.replace("#"+this.id+":"+tabViewstate);}
else{location.replace("#"+tabViewstate);}},refreshPagingUI:function(){var resultsPerPage=this.resultsPerPage;var startingRow=this.startingRow;var rowCount=this.data.length;var showFirstPage=false;var showPreviousPage=false;var showNextPage=false;var showLastPage=false;if(resultsPerPage){if(startingRow>0){showPreviousPage=true;if(startingRow>=resultsPerPage+resultsPerPage){showFirstPage=true;}}
if(startingRow+resultsPerPage<rowCount){showNextPage=true;if(startingRow+resultsPerPage+resultsPerPage<rowCount){showLastPage=true;}}}
var pagingControls=[this.pagingTop,this.pagingBottom];for(var i=0;i<2;++i){var pagingElements=pagingControls[i].childNodes;if(showFirstPage){this.enableControl(pagingElements[0]);}
else{this.disableControl(pagingElements[0]);}
if(showPreviousPage){this.enableControl(pagingElements[1]);}
else{this.disableControl(pagingElements[1]);}
if(showNextPage){this.enableControl(pagingElements[3]);}
else{this.disableControl(pagingElements[3]);}
if(showLastPage){this.enableControl(pagingElements[4]);}
else{this.disableControl(pagingElements[4]);}
pageNumbers=pagingElements[2].childNodes;pageNumbers[0].firstChild.nodeValue=startingRow+1;pageNumbers[2].firstChild.nodeValue=resultsPerPage?Math.min(startingRow+resultsPerPage,rowCount):rowCount;pageNumbers[4].firstChild.nodeValue=rowCount;}},disableControl:function(pControl){cg_addClass(pControl,"disabled");},enableControl:function(pControl){cg_removeClass(pControl,"disabled");},getStartingRow:function(pStartingRow){var resultsPerPage=this.resultsPerPage;return(resultsPerPage>0&&pStartingRow>0?Math.floor(pStartingRow/resultsPerPage)*resultsPerPage:0);},validatePage:function(){var resultsPerPage=this.resultsPerPage,startingRow=this.startingRow,resultsCount=this.data.length;if(startingRow<0){this.startingRow=0;}
else{this.startingRow=this.getStartingRow(startingRow+resultsPerPage>resultsCount?resultsCount-1:startingRow);}},changePage:function(){this.validatePage();this.renderRows();this.refreshPagingUI();var scrollPosition=cg_getScroll();var listPosition=cg_getPosition(this.container);if(scrollPosition.y>listPosition.y){scrollTo(0,listPosition.y);}
this.setViewstate();if(this.callBack){this.callBack(false);}},pageNext:function(){this.startingRow+=this.resultsPerPage;this.changePage();},pageFirst:function(){this.startingRow=0;this.changePage();},pageLast:function(){this.startingRow=1000000;this.changePage();},pagePrevious:function(){this.startingRow-=this.resultsPerPage;this.changePage();},getPagingUI:function(){var div=cg_ce("div");div.className="datagrid-paging";var aFirst=cg_ce("a");aFirst.className="datagrid-paging-first";var aPrevious=cg_ce("a");aPrevious.className="datagrid-paging-previous";var aNext=cg_ce("a");aNext.className="datagrid-paging-next";var aLast=cg_ce("a");aLast.className="datagrid-paging-last";aFirst.href=aPrevious.href=aNext.href=aLast.href="javascript:;";cg_ae(aFirst,cg_ct(Localization.first));cg_ae(aPrevious,cg_ct(Localization.previous));cg_ae(aNext,cg_ct(Localization.next));cg_ae(aLast,cg_ct(Localization.last));cg_ds(aFirst);cg_ds(aPrevious);cg_ds(aNext);cg_ds(aLast);aFirst.onclick=this.pageFirst.bind(this);aPrevious.onclick=this.pagePrevious.bind(this);aNext.onclick=this.pageNext.bind(this);aLast.onclick=this.pageLast.bind(this);var span=cg_ce("span");var b1=cg_ce("b"),b2=cg_ce("b"),b3=cg_ce("b");cg_ae(b1,cg_ct("a"));cg_ae(b2,cg_ct("a"));cg_ae(b3,cg_ct("a"));cg_ae(span,b1);cg_ae(span,cg_ct(" - "));cg_ae(span,b2);cg_ae(span,cg_ct(" of "));cg_ae(span,b3);cg_ae(div,aFirst);cg_ae(div,aPrevious);cg_ae(div,span);cg_ae(div,aNext);cg_ae(div,aLast);return div;},refine:function(){this.showResults();var refineValue=this.refineInput.value.toLowerCase();if(refineValue==""){if(this.data.length==this.originalData.length){return true;}
this.data=this.originalData.slice(0);this.applySort();this.renderRows();this.refreshPagingUI();}
var refineLength=refineValue.length;var useContainsFilter=this.refineContains.checked;var dataValue="";var refineColumn=this.template.refineColumn;this.data=[];for(var i=0,len=this.originalData.length;i<len;i++){dataValue=this.originalData[i][refineColumn];if(useContainsFilter){if(dataValue.toLowerCase().indexOf(refineValue)>=0){this.data.push(this.originalData[i]);}}
else{if(dataValue.substring(0,refineLength).toLowerCase()==refineValue){this.data.push(this.originalData[i]);}}}
if(this.data.length<this.startingRow){this.startingRow=0;}
this.applySort();this.renderRows();this.refreshPagingUI();return true;},setRefineBox:function(){var lbl=cg_ce("label");lbl.className="tip";lbl.innerHTML=Localization.refine_by_name+":";lbl.htmlFor="datagrid-refine-"+this.tabIndex;lbl.onmouseover=Curse.Tooltip.showTip.bind(this,Localization.type_to_update);lbl.onmouseout=Curse.Tooltip.hide;var rfi=cg_ce("input");rfi.type="text";rfi.maxLength=24;rfi.onkeyup=this.refine.bind(this);rfi.id="datagrid-refine-"+this.tabIndex;this.refineInput=rfi;var rfs=null;try{rfs=document.createElement("<input type=\"radio\" name=\"datagrid-refine"+this.tabIndex+"\" />");}
catch(err){rfs=document.createElement('input');}
rfs.id="datagrid-refine-starts"+this.tabIndex;rfs.type="radio";rfs.name="datagrid-refine"+this.tabIndex;rfs.onclick=this.refine.bind(this);this.refineStarts=rfs;var lbl2=cg_ce("label");lbl2.innerHTML=Localization.starts_with;lbl2.htmlFor="datagrid-refine-starts"+this.tabIndex;var rfc=null;try{rfc=document.createElement("<input checked type=\"radio\" name=\"datagrid-refine"+this.tabIndex+"\" />");}
catch(err){rfc=document.createElement('input');}
rfc.id="datagrid-refine-contains"+this.tabIndex;rfc.type="radio";rfc.name="datagrid-refine"+this.tabIndex;rfc.onclick=this.refine.bind(this);rfc.checked=true;this.refineContains=rfc;var lbl3=cg_ce("label");lbl3.innerHTML=Localization.contains;lbl3.htmlFor="datagrid-refine-contains"+this.tabIndex;cg_ae(this.refineBox,lbl);cg_ae(this.refineBox,this.refineInput);cg_ae(this.refineBox,this.refineStarts);cg_ae(this.refineBox,lbl2);cg_ae(this.refineBox,this.refineContains);cg_ae(this.refineBox,lbl3);},showFindLinks:function(){if(Curse.User.isPremium){var optSelect=cg_ce("select");this.premSelect=optSelect;var findItems=cg_ce("option");var blankOption=cg_ce("option");var saveList=cg_ce("option");optSelect.id="itemToolSelect";optSelect.onchange=cg_handleItemPremSelect.bind(this,this.id);blankOption.value="0";blankOption.innerHTML="Premium Options";findItems.value="1";findItems.innerHTML="Find These Items";saveList.value="2";saveList.innerHTML="Save to Wishlist";cg_ae(optSelect,blankOption);cg_ae(optSelect,findItems);cg_ae(optSelect,saveList);optSelect.className="itemToolSelect";cg_ae(this.refineBox,optSelect);}},showModLinks:function(){if(Curse.User.isModerator&&cg_modTables.indexOf(this.id)>=0){var optSelect=cg_ce("select");var blankOption=cg_ce("option");var deleteSel=cg_ce("option");var deleteAll=cg_ce("option");optSelect.id="modToolSelect";optSelect.onchange=cg_handleModToolSelect.bind(this,this.id);blankOption.value="0";blankOption.innerHTML="Mod Options";deleteSel.value="1";deleteSel.innerHTML="Delete Selected";deleteAll.value="2";deleteAll.innerHTML="Delete All";cg_ae(optSelect,blankOption);cg_ae(optSelect,deleteSel);optSelect.className="modToolSelect";cg_ae(this.refineBox,optSelect);}},appendWidgets:function(dataContainer){var widgetTop=cg_ce("div");widgetTop.className="datagrid-widget-top";var widgetBottom=cg_ce("div");widgetBottom.className="datagrid-widget-bottom";this.refineBox=cg_ce("div");this.refineBox.className="datagrid-refine";if(!this.hideRefineBox&&this.template.showRefineBox){this.setRefineBox();}
else{this.refineBox.innerHTML="&nbsp;";}
if(this.template.showFindLinks){this.showFindLinks();}
if(this.template.optionsMenu){this.template.optionsMenu(this.refineBox,this);}
this.showModLinks();this.pagingTop=this.getPagingUI();this.pagingBottom=this.getPagingUI();var widgetSummaryTop=cg_ce("div");var widgetSummaryBottom=cg_ce("div");widgetSummaryTop.className=widgetSummaryBottom.className="datagrid-summary";if(this.count){var countDiv=cg_ce("div");countDiv.className="count";var countLabel=this.name;if(this.entityType){countLabel=Curse.Lookup.entity_label_plural[this.entityType];}
countDiv.innerHTML=cg_formatNumber(this.count)+" "+countLabel+Localization.were_found;if(cg_ge("searchFilterForm")){countDiv.innerHTML+=" "+Localization.get_fewer+" <span class=\"tip\" onmouseout=\"Curse.Tooltip.hide();\" onmouseover=\"Curse.Tooltip.showTip('"+Localization.by_filtering.replace(/'/g,"\\'")+"');\">"+Localization.filtering+"</span> "+Localization.your_results+" <button onclick=\"Curse.Searchfilter.toggle(null);\" id=\"datagrid-filter-toggle\"><span>"+Localization.create_filter+"</span></button>";}
cg_ae(widgetSummaryTop,countDiv);widgetSummaryTop.style.display="block";}
if(this.summary){widgetSummaryTop.innerHTML="<div class=\""+this.summary.cssClass+"\">"+this.summary.text+"</div>";widgetSummaryTop.style.display="block";}
cg_ae(widgetTop,widgetSummaryTop);cg_ae(widgetTop,this.pagingTop);if(!this.disablePerPage){cg_ae(widgetTop,this.getPerPageUI());}
cg_ae(widgetTop,this.refineBox);cg_ae(widgetBottom,this.pagingBottom);cg_ae(widgetBottom,widgetSummaryBottom);this.widgetTop=widgetTop;this.widgetBottom=widgetBottom;this.refreshPagingUI();if(this.hideWidgets){widgetTop.style.display=widgetBottom.style.display="none";}
cg_ae(this.container,this.widgetTop);cg_ae(this.container,dataContainer);cg_ae(this.container,this.widgetBottom);},updatePerPage:function(sel){var perpage=sel.options[sel.selectedIndex].value;cg_setCookie("_resultsPerPage",perpage);this.resultsPerPage=parseInt(perpage);this.validatePage();this.renderRows();this.refreshPagingUI();if(this.callBack){this.callBack(false);}},getPerPageUI:function(){var cont=cg_ce("div");cont.className="datagrid-perpage";var perpage=[15,30,50,100];var sel=cg_ce("select");for(var i=0;i<perpage.length;i++){var opt=cg_ce("option");sel.options.add(opt);opt.text=perpage[i];opt.value=perpage[i];if(this.resultsPerPage==perpage[i]){opt.selected=true;}}
sel.onchange=this.updatePerPage.bind(this,sel);cg_ae(cont,cg_ct(Localization.per_page+" "));cg_ae(cont,sel);return cont;},appendColumnHeaders:function(){var tr=cg_ce("tr");if(this.listStyle==Curse.DataGrid.ListStyle.CommentBox){var th=cg_ce("th");var div=cg_ce("div");var a=cg_ce("a");th.style.width="33px";if(this.hasViewstate){a.style.cursor="default";a.style.backgroundColor="#585858";}
a.href="javascript:;";a.className="datagrid-cb";cg_ds(a);cg_ae(a,cg_ct(String.fromCharCode(160)));cg_ae(div,a);cg_ae(th,div);cg_ae(tr,th);}
for(var i=0,len=this.columnsVisible.length;i<len;++i){var colIndex=this.columnsVisible[i];var col=this.columns[colIndex];var th=cg_ce("th");var div=cg_ce("div");var a=cg_ce("a");var labelContainer=cg_ce("span");var corner=cg_ce("var");var label=cg_ce("span");if(col.sortable==null){col.sortable=true;}
if(!col.sortable){a.style.cursor="default";}
else{a.href="javascript:;";a.onclick=this.sortBy.bind(this,colIndex+1);}
cg_ds(a);if(col.width!=null){th.style.width=col.width;}
if(col.halign!=null){th.style.textAlign=col.halign;}
else if(col.align!=null){th.style.textAlign=col.align;}
if(col.span!=null){th.colSpan=col.span;}
if(col.html){label.innerHTML=col.label;}
else{cg_ae(label,cg_ct(col.label));}
cg_ae(labelContainer,label);cg_ae(a,labelContainer);cg_ae(a,corner);cg_ae(div,a);cg_ae(th,div);cg_ae(tr,th);}
cg_ae(this.thead,tr);},removeRows:function(){var rowContainer=(this.listStyle==2?this.mainDiv:this.tbody);while(rowContainer.firstChild){rowContainer.removeChild(rowContainer.firstChild);}},renderRows:function(){var totalCount=this.data.length;this.removeRows();if(totalCount>0){var beginIndex;var endIndex;var func;if(this.resultsPerPage>0){beginIndex=this.startingRow;endIndex=Math.min(totalCount,this.startingRow+this.resultsPerPage);}
else{beginIndex=0;endIndex=totalCount;}
if(this.listStyle==Curse.DataGrid.ListStyle.CommentBox){for(var i=beginIndex;i<endIndex;++i){cg_ae(this.mainDiv,this.getDiv(i));}}
else{if(this.listStyle==Curse.DataGrid.ListStyle.ScreenshotBox){var j=0;var tr=cg_ce("tr");for(var i=beginIndex;i<endIndex;++i){cg_ae(tr,this.getCell(i));if(++j==this.template.recordsPerRow){cg_ae(this.tbody,tr);if(i+1<endIndex){tr=cg_ce("tr");}
j=0;}}
if(j!=this.template.recordsPerRow){for(;j<this.template.recordsPerRow;++j){var cell=cg_ce("td");cell.className="empty-cell";cg_ae(tr,cell);}
cg_ae(this.tbody,tr);}}
else{var docFragment=document.createDocumentFragment();for(var i=beginIndex;i<endIndex;++i){docFragment.appendChild(this.getRow(i));}
this.tbody.appendChild(docFragment);}}}
else{this.hideResults();}},hideResults:function(message){if(message==null){message=Localization.no_results_matching+"<b>"+this.refineInput.value+"</b>";if(this.template.nameSearchUrl!=null){message+="<br><a href='search.aspx?browse="+this.template.nameSearchUrl+this.refineInput.value+"'>Click</a> to search for <b>"+this.refineInput.value+"</b>";}}
if(this.listStyle==Curse.DataGrid.ListStyle.CommentBox){this.mainDiv.style.display="none";return;}
var tr=cg_ce("tr");var td=cg_ce("td");var colspan=0;var header=this.thead.firstChild;for(var i=0;i<header.cells.length;i++){if(header.cells[i].colSpan){colspan+=header.cells[i].colSpan;}
else{colspan+=1;}}
td.colSpan=colspan;td.style.borderRight="none";td.innerHTML=message;cg_ae(tr,td);cg_ae(this.tbody,tr);this.pagingTop.style.display="none";this.pagingBottom.style.display="none";},showResults:function(){this.pagingTop.style.display="block";this.pagingBottom.style.display="block";if(this.listStyle==2){this.mainDiv.style.display="";}
else{this.table.style.display="";}},setSortArrow:function(){if(!this.sort.length){return;}
var i=cg_inArray(this.columnsVisible,Math.abs(this.sort[0])-1);if(i==-1){return;}
if(this.listStyle==1){++i;}
var anchor=this.thead.firstChild.childNodes[i].firstChild.firstChild;var span=anchor.firstChild;if(this.lastSortedAnchor&&this.lastSortedAnchor!=anchor){this.lastSortedAnchor.className="";this.lastSortedAnchor.firstChild.className="";}
anchor.className="selected";if(!this.columns[i].html){span.className=(this.sort[0]<0?"sortdesc":"sortasc");}
this.lastSortedAnchor=anchor;},setSortIndexes:function(){var ldata=this.data;for(var i=0,len=ldata.length;i<len;++i){ldata[i].sortIndex=i;}
this.indexCreated=true;},sortBy:function(args){if(!this.hasViewstate||args<=0||args>this.columns.length){return;}
if(Math.abs(this.sort[0])==args){this.sort[0]=-this.sort[0];}
else{this.addSort(this.sort,args);}
this.applySort();if(this.template.onSort){(this.template.onSort.bind(this))();}
this.renderRows();if(this.listStyle!=2){this.setSortArrow();}
this.setViewstate();if(this.callBack){this.callBack(false);}},addSort:function(pSort,pArgs){var i=cg_inArray(pSort,pArgs,function(x){return Math.abs(x);});if(i!=-1){pArgs=pSort[i];pSort.splice(i,1);}
pSort.splice(0,0,pArgs);},applySort:function(){Curse.DataGrid.sort=this.sort;Curse.DataGrid.columns=this.columns;if(Curse.DataGrid.Templates[this.id])
{Curse.DataGrid.defaultSort=Curse.DataGrid.Templates[this.id].defaultSort;}
if(this.indexCreated){this.data.sort(Curse.DataGrid.sortIndexedRows);}
else{this.data.sort(Curse.DataGrid.sortRows);}
this.setSortIndexes();},setSort:function(pSort,pRenderRows,pRefreshViewstate){if(this.sort.toString()!=pSort.toString()){this.sort=pSort;this.applySort();if(pRenderRows){this.renderRows();}
if(pRefreshViewstate){this.setViewstate();}}},getDiv:function(i){var record=this.data[i];if(record.__div==null){this.createDiv(record,i);}
return record.__div;},createDiv:function(record,i){var div=cg_ce("div");record.__div=div;(this.template.render.bind(this,record,div,i))();},getCell:function(pIndex){var record=this.data[pIndex];if(record.__td==null){this.createCell(record);}
return record.__td;},recordClick:function(record,e){location.href=this.template.getRecordLink(record);},createCell:function(record){var td=cg_ce("td");record.__td=td;var click=true;if(this.template.noClick){click=false;}
(this.template.render.bind(this,record,td))();if(this.template.getRecordLink&&!Curse.User.isModerator&&click){td.onclick=this.recordClick.bind(this,pCell);}},getRow:function(pIndex){var row=this.data[pIndex];if(row.__tr==null){this.createRow(row);}
return row.__tr;},createRow:function(pRow){var tr=cg_ce("tr");pRow.__tr=tr;for(var i=0,len=this.columnsVisible.length;i<len;++i){var colIndex=this.columnsVisible[i];var col=this.columns[colIndex];var td=cg_ce("td");if(col.align!=null){td.style.textAlign=col.align;}
var renderedResult=null;if(col.render){renderedResult=(col.render.bind(this,pRow,td,tr))();}
else{if(pRow[col.value]!=null){cg_ae(td,cg_ct(pRow[col.value]));}
else{renderedResult=-1;}}
if(renderedResult!=-1&&renderedResult!=null){td.insertBefore(cg_ct(renderedResult),td.firstChild);}
cg_ae(tr,td);}
var click=true;if(this.template.noClick){click=false;}
if(this.template.getRecordLink&&!Curse.User.isModerator&&click){tr.onclick=this.recordClick.bind(this,pRow);}}};Curse.DataGrid.sortIndexedRows=function(a,b){var sort=Curse.DataGrid.sort;var cols=Curse.DataGrid.columns;var res;if(sort.length==0){if(Curse.DataGrid.defaultSort){return Curse.DataGrid.defaultSort(a,b);}
sort.push(1);}
var scol=cols[Math.abs(sort[0])-1];if(scol.sortFunc){res=scol.sortFunc(a,b,sort[0]);}
else{res=cg_strcmp(a[scol.value],b[scol.value]);}
if(res!=0){return res*sort[0];}
return a.sortIndex-b.sortIndex;};Curse.DataGrid.sortRows=function(a,b){var sort=Curse.DataGrid.sort;var cols=Curse.DataGrid.columns;for(var i=0,len=sort.length;i<len;++i){var res;var scol=cols[Math.abs(sort[i])-1];if(scol.sortFunc){res=scol.sortFunc(a,b,sort[i]);}
else{res=cg_strcmp(a[scol.value],b[scol.value]);}
if(res!=0){return res*sort[i];}}
return 0;};Curse.DataGrid.Utility={createNumericRange:function(min,max){max|=0;min|=0;if(min>1||max>1){if(min!=max&&max>0){return min+"-"+max;}
else{return min+"";}}
return null;},processCounts:function(record){if(this.totalLootCount!=null){record.percent=record.lootCount/this.totalLootCount;}
else{record.percent=record.lootCount/record.totalLootCount;}
record.percent*=100;},assocArrCmp:function(a,b,arr){if(a==null){return-1;}
else{if(b==null){return 1;}}
var n=Math.max(a.length,b.length);for(var i=0;i<n;++i){if(a[i]==null){return-1;}
else{if(b[i]==null){return 1;}}
var res=cg_strcmp(arr[a[i]],arr[b[i]]);if(res!=0){return res;}}
return 0;},appendFloatingIcons:function(container,arr,label,iconSize,limit,limitMessage,iconWidth){if(arr==null){return;}
if(!iconSize){iconSize=0;}
if(!iconWidth){iconWidth=26;}
var numIcon=0;var d=cg_ce("div");var d2=cg_ce("div");d.className="floating-icons";if(label){var d3=cg_ce("div");d3.style.position="relative";d3.style.width="1px";var d4=cg_ce("div");d4.className="r0";d4.style.position="absolute";d4.style.right="2px";d4.style.lineHeight="26px";d4.style.fontSize="11px";d4.style.whiteSpace="nowrap";cg_ae(d4,cg_ct(label));cg_ae(d3,d4);cg_ae(d,d3);}
var showElipses=false;if(cg_isArray(arr)){numIcons=arr.length;for(var i=0,len=arr.length;i<len;++i){if(limit&&(i+1)>limit){showElipses=true;continue;}
var id,num;if(typeof arr[i]=="object"){id=arr[i][0];num=arr[i][1];}
else{id=arr[i];}
if(id==0){continue;}
var item=cg_items[id];var iconid,icon;if(!item){icon=new Curse.Icon(iconSize,3677);}
else{icon=cg_items[id].createIcon(iconSize,num);}
icon.style.cssFloat=icon.style.styleFloat="left";cg_ae(d,icon);}}
else{numIcons=1;var item=cg_items[arr];var iconid,icon;if(!item){icon=new Curse.Icon(0,3677);}
else{icon=cg_items[item.id].createIcon(iconSize,num);}
icon.style.cssFloat=icon.style.styleFloat="left";cg_ae(d,icon);}
d.style.margin="0 auto";d.style.textAlign="left";if(showElipses){d.style.width=(iconWidth*(limit+.6))+"px";}
else{d.style.width=(iconWidth*numIcons)+"px";}
if(showElipses){var elp=cg_ce("a");elp.style.padding="7px";elp.style.fontWeight="bold";cg_ae(elp,cg_ct("..."));elp.onmouseover=Curse.Tooltip.showTip.bind(elp,limitMessage);elp.onmouseout=Curse.Tooltip.hide;cg_ae(d,elp);}
d2.className="clear";cg_ae(container,d);cg_ae(container,d2);return true;},appendPrice:function(container,coin,honor,arena,items){var s,a;if(coin>=10000){s=cg_ce("span");s.className="moneygold";cg_ae(s,cg_ct(Math.floor(coin/10000)));cg_ae(container,s);coin%=10000;}
if(coin>=100){s=cg_ce("span");s.className="moneysilver";cg_ae(s,cg_ct(" "+Math.floor(coin/100)));cg_ae(container,s);coin%=100;}
if(coin>=1){s=cg_ce("span");s.className="moneycopper";cg_ae(s,cg_ct(" "+coin));cg_ae(container,s);}
if(honor&&honor>0){s=cg_ce("span");s.className="moneyhorde";cg_ae(s,cg_ct(" "+honor));cg_ae(container,s);}
if(arena&&arena>0){s=cg_ce("span");s.className="moneyarena";cg_ae(s,cg_ct(" "+arena));cg_ae(container,s);}
if(items&&items.length>0){for(i=0;i<items.length;i++){var currentItemPrice=items[i];var costItem=cg_items[currentItemPrice[0]];if(!costItem){continue;}
a=cg_ce("a");a.href="item.aspx?id="+costItem.id;a.className="moneyitem";a.style.backgroundImage="url(icons/t/"+costItem.icon+".gif)";a._relatedID=costItem.id;a.onmouseover=Curse.Tooltip.handleItemLinkOver.bind(this,a);a.onmouseout=Curse.Tooltip.hide.bind(this);cg_ae(a,cg_ct(" "+currentItemPrice[1]));cg_ae(container,a);}}},processDates:function(record){record.date=new Date(record.date).getTime();},setConditionalMessage:function(datagrid){alert(datagrid.message);}};Curse.DataGrid.getDataByType=function(datagridid,entityid){var dg=cg_datagrids[datagridid];if(!dg){return null;}
for(var i=0;i<dg.data.length;i++){if(dg.data[i].id==entityid){return dg.data[i];}}
return null;};Curse.DataGrid.addOrReplaceData=function(args){var dg=cg_datagrids[args.id];if(args.onLoad){args.onLoad();}
if(!dg){if(!args.tabGroup){args.tabGroup=cg_primaryTabGroup;}
dg=new Curse.DataGrid(args);args.tabGroup.render(0);}
else{dg.message=args.message;dg.data=args.data;dg.startingRow=0;dg.hideMessage=args.hideMessage;dg.initialize();dg.tabGroup.updateTabLabel(dg.id,dg.name,dg.data.length);}};Curse.DataGrid.handleAjaxLoad=function(data,args){if(data==""){if(args.hideEmpty){return;}
var cg_json_1=[];}
else{eval(data);}
if(!cg_json_1){return;}
if(cg_filterColumns){if(args.filterColumns){args.filterColumns+=","+cg_filterColumns;}
else{args.filterColumns=cg_filterColumns;}}
args.parent="results";args.data=cg_json_1;Curse.DataGrid.addOrReplaceData(args);};Curse.SearchAssistant={initialized:false,processing:false,lastTerm:null,selectionIndex:-1,table:null,container:null,input:null,entityType:null,oldInput:null,exampleMode:null,attach:function(id,focus,eType,eMode){var input=cg_ge(id);if(Curse.SearchAssistant.oldInput!=null){if(Curse.SearchAssistant.oldInput.oldonclick!=null)
{Curse.SearchAssistant.oldInput.onclick=Curse.SearchAssistant.oldInput.oldonclick;}}
Curse.SearchAssistant.oldInput=input;if(Curse.SearchAssistant.oldInput.onclick!=null){Curse.SearchAssistant.oldInput.oldonclick=Curse.SearchAssistant.oldInput.onclick;}
if(eMode!=null){Curse.SearchAssistant.exampleMode=eMode;}
input.setAttribute("autocomplete","off");if(focus){input.focus();}
if(eType){Curse.SearchAssistant.entityType=eType;}
else{Curse.SearchAssistant.entityType=null;}
var container=cg_ce("div");container.className="wowdb-ac-container";var table=cg_ce("table");table.className="wowdb-ac-m";cg_ae(container,table);var tbody=cg_ce("tbody");cg_ae(table,tbody);var d=document.createElement("div");d.className="wowdb-ac-bg";cg_ae(container,d);var d=document.createElement("em");cg_ae(container,d);var d=document.createElement("var");cg_ae(container,d);var d=document.createElement("strong");cg_ae(container,d);cg_ae(document.body,container);Curse.SearchAssistant.input=input;Curse.SearchAssistant.container=container;Curse.SearchAssistant.table=table;Curse.SearchAssistant.tbody=tbody;var form=input.parentNode;while(form.tagName!="FORM"){form=form.parentNode;}
Curse.SearchAssistant.form=form;Curse.SearchAssistant.initialized=true;input.onkeyup=Curse.SearchAssistant.handleKeyUp;input.onkeydown=Curse.SearchAssistant.handleKeyDown;input.onclick=Curse.SearchAssistant.handleInputClick.bind(this,input);input.onblur=Curse.SearchAssistant.handleInputBlur.bind(this,input);document.onclick=Curse.SearchAssistant.handleDocumentClick.bind(this);},updatePosition:function(){var pos=cg_getPosition(Curse.SearchAssistant.input);Curse.SearchAssistant.container.style.top=pos.y+Curse.SearchAssistant.input.offsetHeight+1+"px";Curse.SearchAssistant.container.style.left=pos.x+1+"px";if(Curse.SearchAssistant.table.offsetWidth<Curse.SearchAssistant.input.offsetWidth){Curse.SearchAssistant.table.style.width=Curse.SearchAssistant.input.offsetWidth-1+"px";}
else{Curse.SearchAssistant.table.style.width="auto";}},show:function(){if(!Curse.SearchAssistant.container){return;}
Curse.SearchAssistant.container.style.visibility="visible";},hide:function(){if(Curse.SearchAssistant.selectionIndex>=0&&Curse.SearchAssistant.selectionIndex<Curse.SearchAssistant.table.rows.length){Curse.SearchAssistant.table.rows[Curse.SearchAssistant.selectionIndex].className="wowdb-ac-a";}
Curse.SearchAssistant.selectionIndex=-1;Curse.SearchAssistant.container.style.visibility="hidden";},populate:function(matches){Curse.SearchAssistant.clear();if(matches==""){Curse.SearchAssistant.hide();return;}
var oSearchAssistantTable=cg_ge("completeTable");var searchTerm=Curse.SearchAssistant.input.value;if(Curse.SearchAssistant.entityType){var cursorIndex=Curse.SearchAssistant.input.selectionStart;var seps=new RegExp(';',"g");var sepMatches=seps.exec(Curse.SearchAssistant.input.value);if(sepMatches!=null){for(var i=0;i<sepMatches.length;i++){}}}
var arrMatches=matches.split("^");for(i=0;i<arrMatches.length;i++){var arrCurrentMatch=arrMatches[i].split("|");var matchName=arrCurrentMatch[0];var iconID=arrCurrentMatch[1];var arrMatchCount=arrCurrentMatch[2].split(",");var row=cg_ce("tr");row.onclick=Curse.SearchAssistant.handleRowClick.bind(this,row);row.onmouseover=Curse.SearchAssistant.handleMouseOver;row.onmouseout=Curse.SearchAssistant.handleMouseOut;row.className="wowdb-ac-a";var cell=cg_ce("td");cell.className="wowdb-ac-icon";var iconHTML="";if(iconID!=-1){iconHTML="<div class=\"iconsmall\" style=\"background-image:url(icons/s/"+iconID+"."+Curse.Icon.fileFormat+");\">";iconHTML+="<div class=\"tile\"></div></div>";}
cell.innerHTML=iconHTML;cg_ae(row,cell);cell=cg_ce("td");cell.className="wowdb-ac-c";cell.innerHTML=Curse.SearchAssistant.getHighlightedName(searchTerm,matchName);cg_ae(row,cell);cell=cg_ce("td");cell.className="wowdb-ac-d";var matchCountHTML="";for(j=0;j<arrMatchCount.length;j+=2){if(Curse.SearchAssistant.entityType!=null){if(arrMatchCount[j]!=Curse.SearchAssistant.entityType){continue;}}
var entityLabel=Curse.Lookup.entity_label[arrMatchCount[j]];var entityCount=arrMatchCount[j+1];matchCountHTML+=", "+entityLabel+": "+entityCount;}
cell.innerHTML=matchCountHTML.substring(2);cg_ae(row,cell);cg_ae(Curse.SearchAssistant.tbody,row);}
Curse.SearchAssistant.updatePosition();Curse.SearchAssistant.show();},getHighlightedName:function(searchTerm,matchingName){searchTerm=searchTerm.toLowerCase();if(searchTerm.length>matchingName.length){return matchingName;}
if(searchTerm.toLowerCase()==matchingName){return"<b>"+matchingName+"</b>";}
for(var i=0;i<searchTerm.length;i++){if(searchTerm[i]!=matchingName[i]){break;}}
var highlightedName=new String();return"<b>"+matchingName.substring(0,i)+"</b>"+matchingName.substring(i);},setSelectionIndex:function(newIndex){if(newIndex<-1){return;}
if(newIndex>=Curse.SearchAssistant.table.rows.length){newIndex=0;}
else if(newIndex==-1){newIndex=Curse.SearchAssistant.table.rows.length-1;}
if(Curse.SearchAssistant.selectionIndex>=0&&Curse.SearchAssistant.selectionIndex<Curse.SearchAssistant.table.rows.length){Curse.SearchAssistant.table.rows[Curse.SearchAssistant.selectionIndex].className="wowdb-ac-a";}
Curse.SearchAssistant.selectionIndex=newIndex;if(Curse.SearchAssistant.selectionIndex>=0&&Curse.SearchAssistant.selectionIndex<Curse.SearchAssistant.table.rows.length){Curse.SearchAssistant.table.rows[Curse.SearchAssistant.selectionIndex].className="wowdb-ac-b";Curse.SearchAssistant.input.value=cg_getTextValue(Curse.SearchAssistant.table.rows[Curse.SearchAssistant.selectionIndex].cells[1]);Curse.SearchAssistant.input.selectionStart=Curse.SearchAssistant.input.selectionEnd=Curse.SearchAssistant.input.value.length;}},process:function(target){var table=Curse.SearchAssistant.table;if(table.style.visbility=="hidden"){return;}
if(Curse.SearchAssistant.selectionIndex<-1){return;}
if(Curse.SearchAssistant.selectionIndex>table.rows.length){return;}
if(target&&target!=table&&!table.contains(target)){return;}
var searchValue;if(Curse.SearchAssistant.selectionIndex==-1){var searchValue=Curse.SearchAssistant.input.value;}
else{var searchValue=cg_getTextValue(table.rows[Curse.SearchAssistant.selectionIndex].cells[1]);}
searchValue=searchValue.replace(/\'/g,"").replace(/\?/g,"");Curse.SearchAssistant.hide();Curse.SearchAssistant.input.value=searchValue;},clear:function(){var rowContainer=Curse.SearchAssistant.tbody;if(!rowContainer){return;}
while(rowContainer.firstChild){rowContainer.removeChild(rowContainer.firstChild);}},handleRowClick:function(row,e){Curse.SearchAssistant.process(row);Curse.SearchAssistant.hide();if(Curse.SearchAssistant.entityType==null){Curse.SearchAssistant.form.submit();}},handleInputBlur:function(input,e){if(Curse.SearchAssistant.exampleMode==false&&Curse.SearchAssistant.input.value==""){cg_initSearchExamples(false);Curse.SearchAssistant.exampleMode=true;}},handleInputClick:function(input,e){if(Curse.SearchAssistant.exampleMode){cg_cancelExamples();Curse.SearchAssistant.exampleMode=false;}
if(Curse.SearchAssistant.table.rows.length>0){Curse.SearchAssistant.show();}},handleDocumentClick:function(e){e=cg_getEvent(e);var targetObj=cg_getEventTarget(e);if(targetObj==Curse.SearchAssistant.input){return;}
Curse.SearchAssistant.hide();},handleMouseOver:function(e){e=cg_getEvent(e);var targetObj=cg_getEventTarget(e);while(targetObj.tagName!="TR"){targetObj=targetObj.parentNode;}
targetObj.className="wowdb-ac-b";Curse.SearchAssistant.selectionIndex=targetObj.rowIndex;},handleMouseOut:function(e){e=cg_getEvent(e);var targetObj=cg_getEventTarget(e);while(targetObj.tagName!="TR"){targetObj=targetObj.parentNode;}
targetObj.className="wowdb-ac-a";},handleKeyDown:function(e){e=cg_getEvent(e);if(Curse.SearchAssistant.exampleMode){cg_cancelExamples();Curse.SearchAssistant.exampleMode=false;}
if(e.keyCode==38||e.keyCode==40){cg_cancelBubbling(e);return false;}},handleKeyUp:function(e){e=cg_getEvent(e);if(e.keyCode==38){if(Curse.SearchAssistant.container.style.visibility=="hidden"){Curse.SearchAssistant.consumeKeys();return;}
Curse.SearchAssistant.setSelectionIndex(Curse.SearchAssistant.selectionIndex-1);cg_cancelBubbling(e);return false;}
else if(e.keyCode==40){if(Curse.SearchAssistant.container.style.visibility=="hidden"){Curse.SearchAssistant.consumeKeys();return;}
Curse.SearchAssistant.setSelectionIndex(Curse.SearchAssistant.selectionIndex+1);cg_cancelBubbling(e);return false;}
else if(e.keyCode==27){Curse.SearchAssistant.hide();cg_cancelBubbling(e);return false;}
else if(e.keyCode==13){Curse.SearchAssistant.container.style.visibility="hidden";cg_cancelBubbling(e);return false;}
if(Curse.SearchAssistant.lastTerm&&e&&(e.keyCode==38||e.keyCode==40||e.keyCode==27)){return false;}
Curse.SearchAssistant.consumeKeys();},consumeKeys:function(){var newTerm=Curse.SearchAssistant.input.value.toLowerCase();if(newTerm==Curse.SearchAssistant.lastTerm){if(Curse.SearchAssistant.tbody.rows.length>0){Curse.SearchAssistant.show();}
return false;}
if(newTerm.length<3){Curse.SearchAssistant.lastTerm=null;Curse.SearchAssistant.hide();Curse.SearchAssistant.clear();return false;}
Curse.SearchAssistant.processing=true;Curse.SearchAssistant.lastTerm=newTerm;if(Curse.SearchAssistant.input.id=="home-search-input"){Curse.SearchAssistant.input.style.backgroundImage="url(images/spinner.gif)";}
if(Curse.SearchAssistant.entityType!=null){newTerm+="&type="+Curse.SearchAssistant.entityType;}
Curse.Ajax.load("ajaxSearchAssistant.aspx?s="+newTerm,processData,"text","get",true);function processData(data){if(Curse.SearchAssistant.input.id=="home-search-input"){Curse.SearchAssistant.input.style.backgroundImage="none";}
Curse.SearchAssistant.populate(data);Curse.SearchAssistant.processing=false;}}};Curse.Tooltip={gameContainers:[],gameTooltips:[],gameIcons:[],currentGame:"none",getCurrentGame:function(){return this.currentGame;},getGame:function(game){if(Curse.WOWDB){if(Curse.WOWDB.Site){return"wow";}}
if(Curse.WHO){if(Curse.WHO.Site){return"war";}}
if(Curse.ROM){if(Curse.ROM.Site){return"rom";}}
if(Curse.AION){if(Curse.AION.Site){return"aion";}}
if(Curse.ZYBEZ){if(Curse.ZYBEZ.Site){return"zybez";}}
if(game==null){return this.currentGame;}
if(game.clientX!=null){return this.currentGame;}
this.currentGame=game;return game;},getPrefix:function(game){if(game=="none"){return"";}
else{return game+"_";}},initialize:function(game){var currentContainer;var currentPrefix="";var currentTooltips;var currentIcons;if(game==null){game="none";}
if(Curse.Tooltip.gameContainers[game]){return;}
if(game!="none"){currentPrefix=game+"_";}
Curse.Tooltip.gameContainers[game]=cg_ce("div");Curse.Tooltip.gameContainers[game].className=currentPrefix+"tooltip-container";Curse.Tooltip.gameIcons[game]=[];Curse.Tooltip.gameTooltips[game]=[];for(var i=0;i<3;i++){Curse.Tooltip.gameIcons[game][i]=cg_ce("div");Curse.Tooltip.gameIcons[game][i].className="tooltip-icon";var iconFrame=cg_ce("div");cg_ae(Curse.Tooltip.gameIcons[game][i],iconFrame);cg_ae(Curse.Tooltip.gameContainers[game],Curse.Tooltip.gameIcons[game][i]);Curse.Tooltip.gameTooltips[game][i]=cg_ce("div");Curse.Tooltip.gameTooltips[game][i].className=currentPrefix+"tooltip";var td;Curse.Tooltip.gameTooltips[game][i]._text=td=cg_ce("td");var t=cg_ce("table"),tb=cg_ce("tbody"),tr1=cg_ce("tr"),tr2=cg_ce("tr"),th1=cg_ce("th"),th2=cg_ce("th"),th3=cg_ce("th");th1.style.backgroundPosition="top right";th2.style.backgroundPosition="bottom left";th3.style.backgroundPosition="bottom right";cg_ae(tr1,td);cg_ae(tr1,th1);cg_ae(tb,tr1);cg_ae(tr2,th2);cg_ae(tr2,th3);cg_ae(tb,tr2);cg_ae(t,tb);cg_ae(Curse.Tooltip.gameTooltips[game][i],t);cg_ae(Curse.Tooltip.gameContainers[game],Curse.Tooltip.gameTooltips[game][i]);}
cg_ae(document.body,Curse.Tooltip.gameContainers[game]);},showTip:function(text,className,game){game=Curse.Tooltip.getGame(game);currentGame=game;if(typeof(className)=="object"||className==null){className="r";}
text="<span class="+className+">"+text+"</span>";Curse.Tooltip.show(text,null,null,game);Curse.Tooltip.updateSize(game);Curse.Tooltip.updatePosition(game);},hide:function(){Curse.Tooltip.currentTooltipId=null;for(var p in Curse.Tooltip.gameContainers){if(p=="indexOf"){continue;}
if(Curse.Tooltip.gameContainers[p]){Curse.Tooltip.hideIcons(p);Curse.Tooltip.gameContainers[p].style.display="none";Curse.Tooltip.gameContainers[p].style.width="auto";for(var i=0;i<Curse.Tooltip.gameTooltips[p].length;i++){Curse.Tooltip.gameTooltips[p][i]._text.innerHTML="";Curse.Tooltip.gameTooltips[p][i].style.display="none";}}}},hideIcons:function(game){game=Curse.Tooltip.getGame(game);for(var i=0,len=Curse.Tooltip.gameIcons[game].length;i<len;i++){Curse.Tooltip.gameIcons[game][i].style.backgroundImage="";Curse.Tooltip.gameIcons[game][i].style.display="none";}},show:function(text1,text2,text3,game){game=Curse.Tooltip.getGame(game);currentGame=game;if(Curse.Tooltip.gameContainers[game]==null){Curse.Tooltip.initialize(game);}
Curse.Tooltip.gameTooltips[game][0]._text.innerHTML=text1;Curse.Tooltip.gameTooltips[game][0].style.display="block";if(text2!=null){Curse.Tooltip.gameTooltips[game][1]._text.innerHTML=text2;Curse.Tooltip.gameTooltips[game][1].style.display="block";}
if(text3!=null){Curse.Tooltip.gameTooltips[game][2]._text.innerHTML=text3;Curse.Tooltip.gameTooltips[game][2].style.display="block";}
Curse.Tooltip.gameContainers[game].style.visibility="hidden";Curse.Tooltip.gameContainers[game].style.display="block";Curse.Tooltip.updateSize(game);Curse.Tooltip.updatePosition(game);Curse.Tooltip.gameContainers[game].style.visibility="visible";},updatePosition:function(game){game=Curse.Tooltip.getGame(game);if(!Curse.Tooltip.gameContainers[game]){return;}
if(Curse.Tooltip.gameContainers[game].style.display!="block"){return;}
var paddingWidth=15,paddingHeight=20,scrollPad=20,viewportHeight=Curse.Client.viewportHeight(),viewportWidth=Curse.Client.viewportWidth()-scrollPad,boundTop=Curse.Client.scrollTop(),boundBottom=viewportHeight+boundTop,tooltipHeight=Curse.Tooltip.gameContainers[game].offsetHeight,tooltipWidth=Curse.Tooltip.gameContainers[game].offsetWidth,boundLeft=0,boundRight=viewportWidth,mousePos={x:Curse.Mouse.x,y:Curse.Mouse.y},newTop=mousePos.y+paddingHeight,newLeft=mousePos.x+paddingWidth,inversePosition=false;Curse.Tooltip.orientation="bottom";if(Curse.Tooltip.inversed){Curse.Tooltip.orientation="top";paddingWidth=10;}
if(Curse.Tooltip.inversed||(newTop+tooltipHeight)>=boundBottom){Curse.Tooltip.orientation="top";newTop=mousePos.y-tooltipHeight-paddingHeight;if(newTop<0){newTop=(viewportHeight-tooltipHeight)/2;}}
else{newTop=mousePos.y+paddingHeight;}
if(Curse.Tooltip.inversed||(newLeft+tooltipWidth)>=boundRight){newLeft=boundRight-Curse.Tooltip.gameContainers[game].offsetWidth;newLeft=mousePos.x-paddingWidth-Curse.Tooltip.gameContainers[game].offsetWidth;}
if(newTop<boundTop){newTop=boundTop;Curse.Tooltip.orientation="top";}
if(newLeft<boundLeft){newLeft=boundLeft;}
Curse.Tooltip.gameContainers[game].style.top=newTop+"px";Curse.Tooltip.gameContainers[game].style.left=newLeft+"px";Curse.Tooltip.updateOrientation(game);},updateOrientation:function(game){game=Curse.Tooltip.getGame(game);if(Curse.Tooltip.orientation=="top"&&Curse.Tooltip.gameContainers[game].offsetHeight>Curse.Tooltip.gameTooltips[game][0].offsetHeight){for(var i=0,len=Curse.Tooltip.gameTooltips[game].length;i<len;i++){if(Curse.Tooltip.gameTooltips[game][i].style.display=="block"){Curse.Tooltip.gameTooltips[game][i].style.top="auto";Curse.Tooltip.gameTooltips[game][i].style.bottom=(Curse.Tooltip.gameTooltips[game][i].offsetHeight-Curse.Tooltip.gameTooltips[game].offsetHeight)+"px";}}}
else{for(var i=0,len=Curse.Tooltip.gameTooltips[game].length;i<len;i++){Curse.Tooltip.gameTooltips[game][i].style.top=Curse.Tooltip.gameTooltips[game][i].style.bottom="auto";}}},updateSize:function(game){game=Curse.Tooltip.getGame(game);var width=0;for(var i=0;i<3;i++){width+=Curse.Tooltip.gameTooltips[game][i].offsetWidth+Curse.Tooltip.gameIcons[game][i].offsetWidth;}
Curse.Tooltip.gameContainers[game].style.width=width+5+"px";},setIcons:function(args,game){game=Curse.Tooltip.getGame(game);var prefix=this.getPrefix(game);Curse.Tooltip.initialize(game);for(var i=0,len=args.length;i<len;i++){if(args[i]==null){continue;}
if(args[i].customClass){Curse.Tooltip.gameIcons[game][args[i].index].className="tooltip-icon "+args[i].customClass;}
else{Curse.Tooltip.gameIcons[game][args[i].index].className="tooltip-icon";}
Curse.Tooltip.gameIcons[game][args[i].index].style.backgroundImage="url("+args[i].image+")";Curse.Tooltip.gameIcons[game][args[i].index].style.display="block";}},updateTooltip:function(index,text,game){game=Curse.Tooltip.getGame(game);Curse.Tooltip.gameTooltips[game][index]._cell.innerHTML=text;},setCurrentTooltip:function(id){Curse.Tooltip.currentTooltipId=id;},getCurrentTooltip:function(){return Curse.Tooltip.currentTooltipId;},setCurrentTooltipLink:function(link){Curse.Tooltip.CurrentTooltipLink=link;},getCurrentTooltipLink:function(){return Curse.Tooltip.CurrentTooltipLink;}};cg_addEventListener(document,"mousemove",Curse.Tooltip.updatePosition);function makeTooltipBorder(div){div.className="tooltip-container";var tooltip=cg_ce("div");tooltip.className="tooltip";tooltip.style.display="block";var td;tooltip._text=td=cg_ce("td");var t=cg_ce("table"),tb=cg_ce("tbody"),tr1=cg_ce("tr"),tr2=cg_ce("tr"),th1=cg_ce("th"),th2=cg_ce("th"),th3=cg_ce("th");th1.style.backgroundPosition="top right";th2.style.backgroundPosition="bottom left";th3.style.backgroundPosition="bottom right";cg_ae(tr1,td);cg_ae(tr1,th1);cg_ae(tb,tr1);cg_ae(tr2,th2);cg_ae(tr2,th3);cg_ae(tb,tr2);cg_ae(t,tb);cg_ae(tooltip,t);cg_ae(div,tooltip);return tooltip._text;}
Curse.Searchfilter={presetWeightScales:[[1,"Test Preset","1=2;2=6;3=2.5"]],userPresetWeightScales:[],disable:function(){cg_ge("divBrowsePathRight").innerHTML="";},showButtonLabel:null,initialize:function(showByDefault){if(cg_getQueryStringParam("sf")=="1"){showByDefault=true;}
var objFilterForm=cg_ge("searchFilterForm");if(!objFilterForm){return;}
var filtersParam=cg_getQueryStringParam("filters");var weightString=cg_getQueryStringParam("weights");var baseFilterHTML="";var entityType=cg_getQueryStringParam("browse").split(".")[0];var entityLabel=Curse.Lookup.entity_label[entityType];Curse.Searchfilter.showButtonLabel=Localization.replace("create_filter",entityLabel);Curse.Searchfilter.parseSavedStatPresets();Curse.Searchfilter.loadStatPresets();if(filtersParam==""&&weightString==""&&!showByDefault){cg_ge("divBrowsePathRight").innerHTML=baseFilterHTML+"<button id=\"btnToggleFilter\" onclick=\"Curse.Tooltip.hide();Curse.Searchfilter.toggle(this)\" onmouseover=\"Curse.Tooltip.showTip('"+Localization.provide_search_criteria+"');\" onmouseout=\"Curse.Tooltip.hide();\"><span>"+Curse.Searchfilter.showButtonLabel+"</span></button><button id=\"bookmarkButton\" style=\"display:none;\" onclick=\"Curse.Tooltip.hide();saveSearch_prompt(this)\" onmouseover=\"Curse.Tooltip.showTip('"+Localization.click_bookmark+"');\" onmouseout=\"Curse.Tooltip.hide();\"><span>"+Localization.bookmark_search+"</span></button>";return;}
cg_ge("divBrowsePathRight").innerHTML=baseFilterHTML+"<button id=\"btnToggleFilter\" onclick=\"Curse.Searchfilter.toggle(this)\"><span>"+Localization.hide_filter_form+"</span></button><button onclick=\"Curse.Tooltip.hide();saveSearch_prompt(this)\" onmouseover=\"Curse.Tooltip.showTip('"+Localization.click_bookmark+"');\" onmouseout=\"Curse.Tooltip.hide();\"><span>"+Localization.bookmark_search+"</span></button><button style=\"display:none;\" onclick=\"Curse.Tooltip.hide();saveSearch_prompt(this)\" onmouseover=\"Curse.Tooltip.showTip('"+Localization.click_bookmark+"');\" onmouseout=\"Curse.Tooltip.hide();\"><span>"+Localization.bookmark_search+"</span></button>";Curse.Searchfilter.resetAdditionalFilters();Curse.Searchfilter.show();if(filtersParam!=""){var filterArray=filtersParam.split(";");for(var i=0;i<filterArray.length;i++){var currentFilter=filterArray[i].split("=");var currentFilterName=currentFilter[0];var currentFilterValue=currentFilter[1];Curse.Searchfilter.setFilterElement(currentFilterName,currentFilterValue);}}
if(weightString!=""){Curse.Searchfilter.parseWeightString(weightString);}},parseWeightString:function(str){var weights=str.split(";");var weightTable=cg_ge("item-weights");while(weightTable.rows[5]!=null){weightTable.deleteRow(5);}
for(var i=0;i<weights.length;i++){var vals=weights[i].split("=");if(i==0){var row=weightTable.rows[4];row.cells[1].childNodes[0].value=vals[1];var sel=row.cells[0].childNodes[0].childNodes[0];for(var j=0;j<sel.options.length;j++){if(sel.options[j].value==vals[0]){sel.selectedIndex=j;j=sel.options.length;}}}
else{Curse.Searchfilter.addStatWeight(vals[0],vals[1]);}}
var compareString=cg_getQueryStringParam("compare");if(compareString!=null&&compareString!=""){var cString=compareString.split("-");var compareSel=cg_ge("pinnedCompareSelect");for(var i=0;i<compareSel.childNodes.length;i++){var parts=compareSel.childNodes[i].value.split("-");if(parts[0]==cString[0]){compareSel.selectedIndex=i;break;}}}},parseSavedStatPresets:function(){var weightCookie=cg_getCookie("Login.SavedWeights");if(weightCookie!=""&&weightCookie!=null){var orig=weightCookie;weightCookie=weightCookie.replace(/\|/g,";");var weightLists=weightCookie.split(",");for(var i=0;i<weightLists.length;i++){var weightParts=weightLists[i].split("^");var weightName=weightParts[0];var weightScale=weightParts[1];if(weightName==""||weightScale==""){continue;}
Curse.Searchfilter.userPresetWeightScales.push([i,weightName,weightScale]);}}},loadStatPresets:function(){if(cg_ge("item-stat-weights")!=null){var presets=cg_ge("item-weight-presets");for(var i=0;i<Curse.Searchfilter.presetWeightScales.length;i++){var opt=cg_ce("option");opt.value=Curse.Searchfilter.presetWeightScales[i][0];opt.innerHTML=Curse.Searchfilter.presetWeightScales[i][1];cg_ae(presets,opt);}}
if(cg_ge("item-saved-weights")!=null){var presets=cg_ge("item-saved-weights");for(var i=0;i<Curse.Searchfilter.userPresetWeightScales.length;i++){var opt=cg_ce("option");opt.value=Curse.Searchfilter.userPresetWeightScales[i][0];opt.innerHTML=Curse.Searchfilter.userPresetWeightScales[i][1];cg_ae(presets,opt);}}
if(cg_ge("pinnedCompareRow")!=null){var hasPins=false;var compareSel=cg_ge("pinnedCompareSelect");for(var k in Curse.Lookup.item_slot){if(k=="indexOf"){continue;}
var cookie=cg_getCookie("Settings.PinnedItem.item_"+k);if(cookie!=null&&cookie!="null"){hasPins=true;var parts=cookie.split("|");for(var i=0;i<parts.length;i++){var cval=parts[i];if(cval==""){continue;}
var opt=cg_ce("option");opt.value=cval;opt.innerHTML="Item "+cval;cg_ae(compareSel,opt);function handleNameLookupPostback(data){var parts=data.split("|");var compareSel=cg_ge("pinnedCompareSelect");for(var i=0;i<compareSel.childNodes.length;i++){if(compareSel.childNodes[i].value==parts[1]){compareSel.childNodes[i].innerHTML=parts[0];compareSel.childNodes[i].value=compareSel.childNodes[i].value+"-"+parts[2];break;}}};cg_queueAjaxRequest("ajaxDataLookup.aspx?type=1&id="+cval,handleNameLookupPostback,'text','post');}}}
if(hasPins){cg_ge("pinnedCompareRow").style.display="table-row";}}},selectStatPreset:function(type){var selected;var preset;var weightTable=cg_ge("item-weights");var scales;if(type==1){scales=Curse.Searchfilter.presetWeightScales;selected=cg_ge("item-weight-presets");cg_ge("item-saved-weights").selectedIndex=0;}else{scales=Curse.Searchfilter.userPresetWeightScales;selected=cg_ge("item-saved-weights");cg_ge("item-weight-presets").selectedIndex=0;}
var selOption=selected.options[selected.selectedIndex];for(var i=0;i<scales.length;i++){if(scales[i][0]==selOption.value){preset=scales[i];break;}}
if(selected.selectedIndex==0){while(weightTable.rows[5]!=null){weightTable.deleteRow(5);}
var row=weightTable.rows[4];row.cells[1].childNodes[0].value="";var sel=row.cells[0].childNodes[0].childNodes[0];sel.selectedIndex=0;return;}
Curse.Searchfilter.parseWeightString(preset[2]);},render:function(){if(Curse.Searchfilter.rendered){return;}
var f=cg_ge("searchFilterForm");var t=cg_ge("tableAdditionalFilters");var colFc=cg_getElementsByClassName("fc","DIV",f);var eventsToHandle=[];for(var i=0;i<colFc.length;i++){if(colFc[i].id){var lookupDef=colFc[i].id.split(".");var lookupOnChange=null;if(colFc[i].getAttribute("curseonchange")){lookupOnChange=colFc[i].getAttribute("curseonchange");}
var newSelectBox=cg_getLookupSelectBox(lookupDef[1],lookupDef[2],colFc[i],false,lookupOnChange);if(lookupOnChange){eventsToHandle.push(newSelectBox);}}}
for(var i=0;i<eventsToHandle.length;i++){}
Curse.Searchfilter.rendered=true;},show:function(){Curse.Searchfilter.render();var searchFilterForm=cg_ge("searchFilterForm");searchFilterForm.style.display="block";},toggle:function(btn){var searchFilterForm=cg_ge("searchFilterForm");if(!btn){btn=cg_ge("btnToggleFilter");}
if(!searchFilterForm){return;}
if(searchFilterForm.style.display!="block"||!btn){Curse.Searchfilter.show();if(btn)
btn.childNodes[0].innerHTML=Localization.hide_filter_form;if(cg_ge("bookmarkButton")!=null){cg_ge("bookmarkButton").style.display="";}
if(cg_ge("datagrid-filter-toggle")!=null){cg_ge("datagrid-filter-toggle").childNodes[0].innerHTML=Localization.hide_filter_form;}}
else{searchFilterForm.style.display="none";if(btn)
btn.childNodes[0].innerHTML=Curse.Searchfilter.showButtonLabel;if(cg_ge("bookmarkButton")!=null){cg_ge("bookmarkButton").style.display="none";}
if(cg_ge("datagrid-filter-toggle")!=null)
cg_ge("datagrid-filter-toggle").childNodes[0].innerHTML=Curse.Searchfilter.showButtonLabel;}},promptSavedWeights:function(){var pophtml="<table><tr><td class=\"label\">Weight Scale Name</td><td><input id=\"savedSearchName\"></td></tr></table>";Curse.Alert.show(pophtml,"Save Weight Scale","","Curse.Searchfilter.saveWeights()^"+Localization.ok+"|Curse.Alert.close()^"+Localization.cancel,null,null,null,true);},saveWeights:function(){var name=cg_ge("savedSearchName").value;var weights=Curse.Searchfilter.getSavedWeights();var url="ajaxSearchWeight.aspx?name="+name+"&weights="+weights;Curse.Ajax.load(url,Curse.Searchfilter.handleSavedWeights,'text','post');Curse.Searchfilter.lastName=name;Curse.Alert.close();},handleSavedWeights:function(data){var postResult=data.split("|");Curse.Alert.show(postResult[1]);if(postResult[0]=="0"){Curse.Searchfilter.userPresetWeightScales.push([Curse.Searchfilter.userPresetWeightScales.length+1,Curse.Searchfilter.lastName,Curse.Searchfilter.getSavedWeights()]);var presets=cg_ge("item-saved-weights");var opt=cg_ce("option");opt.value=Curse.Searchfilter.userPresetWeightScales.length;opt.innerHTML=Curse.Searchfilter.lastName;cg_ae(presets,opt);}},getSavedWeights:function(){var objFilterForm=document.getElementById("searchFilterForm");var searchFilterCollection=objFilterForm.elements;var weights="";for(var i=0;i<searchFilterCollection.length;i++){if(searchFilterCollection[i].name!="-1"){continue;}
weights+=searchFilterCollection[i].value+"="+searchFilterCollection[i].parentNode.parentNode.nextSibling.firstChild.value+";";}
return weights;},getFilterString:function(){var filterString="";var objFilterForm=document.getElementById("searchFilterForm");var searchFilterCollection=objFilterForm.elements;var filtersProcessed=[];for(var i=0;i<searchFilterCollection.length;i++){if(searchFilterCollection[i].name==""||searchFilterCollection[i].name=="-1"){continue;}
if(filtersProcessed.indexOf(searchFilterCollection[i].name)>=0&&searchFilterCollection[i].type!="radio"){continue;}
if(searchFilterCollection[i].multiple){var multiSelectValues="";for(var j=0;j<searchFilterCollection[i].options.length;j++){if(searchFilterCollection[i].options[j].selected&&searchFilterCollection[i].options[j].value!=""){multiSelectValues+=","+searchFilterCollection[i].options[j].value;}}
if(multiSelectValues!=""){multiSelectValues=multiSelectValues.substring(1);filterString+=";"+searchFilterCollection[i].name+"="+multiSelectValues;}}
else{if((searchFilterCollection[i].type=="radio"&&searchFilterCollection[i].checked)||(searchFilterCollection[i].type=="checkbox"&&searchFilterCollection[i].checked)||(searchFilterCollection[i].type!="checkbox"&&searchFilterCollection[i].type!="radio"&&searchFilterCollection[i].value!="")){filterString+=";"+searchFilterCollection[i].name+"="+searchFilterCollection[i].value;}}
filtersProcessed.push(searchFilterCollection[i].name);}
var weights=Curse.Searchfilter.getWeights(true);if(cg_ge("pinnedCompareRow")!=null){var compareSel=cg_ge("pinnedCompareSelect");if(compareSel.selectedIndex!=0){weights+="&compare="+compareSel.value;}}
filterString=filterString.substring(1)+weights;return filterString;},getWeights:function(includeWeights){var weights="";var objFilterForm=document.getElementById("searchFilterForm");var searchFilterCollection=objFilterForm.elements;for(var i=0;i<searchFilterCollection.length;i++){if(searchFilterCollection[i].name!="-1"){continue;}
if(searchFilterCollection[i].selectedIndex==0){continue;}
if(weights==""&&includeWeights){weights="&weights=";}
weights+=searchFilterCollection[i].value+"="+searchFilterCollection[i].parentNode.parentNode.nextSibling.firstChild.value+";";}
return weights;},submitFilter:function(){var filterString=Curse.Searchfilter.getFilterString();if(filterString!=""){filterString="&filters="+filterString;}
var browseKey=cg_getQueryStringParam("browse");if(!browseKey){return;}
self.location="search.aspx?browse="+browseKey+filterString;},removeFilter:function(){var browseKey=cg_getQueryStringParam("browse");if(!browseKey){return;}
self.location="search.aspx?browse="+browseKey;},addSearchFilterInput:function(selectObj){var selectedOption=selectObj.options[selectObj.selectedIndex];var searchFilterID=selectedOption.value;var cellInputContainer=selectObj.parentNode.parentNode.cells[1];var cellLinkContainer=selectObj.parentNode.parentNode.cells[2];var numChildNodes=cellInputContainer.childNodes.length;for(var i=0;i<numChildNodes;i++){cellInputContainer.removeChild(cellInputContainer.childNodes[0]);}
if(selectObj.selectedIndex==0){cellLinkContainer.innerHTML="";return;}
if(selectedOption.className=="inputRange"){var minRangeID=searchFilterID.split(",")[0];var maxRangeID=searchFilterID.split(",")[1];var minRangeInput=document.createElement("input");minRangeInput.type="text";minRangeInput.name=minRangeID;minRangeInput.size="4";minRangeInput.style.textAlign="center";minRangeInput.value="1";cellInputContainer.appendChild(minRangeInput);var rangeLabel=document.createElement("span");rangeLabel.innerHTML=" to ";cellInputContainer.appendChild(rangeLabel);var maxRangeInput=document.createElement("input");maxRangeInput.type="text";maxRangeInput.name=maxRangeID;maxRangeInput.size="4";maxRangeInput.style.textAlign="center";cellInputContainer.appendChild(maxRangeInput);}
else if(selectedOption.className=="inputLookup"){cellInputContainer.appendChild(cg_getLookupSelectBox(selectedOption.id,selectedOption.value,null,true));}
else if(selectedOption.className=="inputText"){var textInput=document.createElement("input");textInput.type="text";textInput.name=searchFilterID;textInput.size="20";cellInputContainer.appendChild(textInput);}
cellLinkContainer.innerHTML="<button class=\"smallButton\" onclick=\"return Curse.Searchfilter.removeSearchFilter(this);\"><span>"+Localization.remove+"</span></button>";},toggleModeBox:function(locationBox,modeBoxID){var lookupList=Curse.Lookup.location_has_modes;var currentLocationID=locationBox.options[locationBox.selectedIndex].value;var locationFound=false;for(var p in lookupList){if(lookupList[p].indexOf&&lookupList[p].indexOf(currentLocationID)>=0){locationFound=true;break;}}
if(!locationFound&&currentLocationID!=""){cg_ge("fi_"+modeBoxID).selectedIndex=-1;cg_ge("fi_"+modeBoxID).disabled=true;}
else{cg_ge("fi_"+modeBoxID).style.display="inline";cg_ge("fi_"+modeBoxID).disabled=false;}},reloadSelectBox:function(sourceBox,affectedBoxName,baseLookup){var lookupList=Curse.Lookup[baseLookup+sourceBox.options[sourceBox.selectedIndex].value];var affectedBox=cg_ge("fi_"+affectedBoxName);while(affectedBox.firstChild){cg_de(affectedBox.firstChild);}
var objOption=cg_ce("option");objOption.text="";objOption.value="";affectedBox.options.add(objOption)
for(var p in lookupList){if(typeof p=='string'&&p!="indexOf"){objOption=cg_ce("option");objOption.text=lookupList[p].replace("<br>"," - ");objOption.value=p;affectedBox.options.add(objOption)}}},getFilterValue:function(id){var filtersParam=cg_getQueryStringParam("filters");var filterArray=filtersParam.split(";");for(var i=0;i<filterArray.length;i++){var currentFilter=filterArray[i].split("=");if(currentFilter[0]==id){return currentFilter[1];}}
return null;},addSearchFilter:function(){var objFilterTable=document.getElementById("tableAdditionalFilters");var cloneFilterRow=objFilterTable.rows[0].cloneNode(true);objFilterTable.tBodies[0].appendChild(cloneFilterRow);cloneFilterRow.cells[1].innerHTML="";return cloneFilterRow.cells[0];},addStatWeight:function(index,val){var objFilterTable=document.getElementById("item-weights");var cloneFilterRow=objFilterTable.rows[4].cloneNode(true);objFilterTable.tBodies[0].appendChild(cloneFilterRow);if(index!=null){var sel=cloneFilterRow.cells[0].childNodes[0].childNodes[0];for(var i=0;i<sel.options.length;i++){if(sel.options[i].value==index){sel.selectedIndex=i;break;}}}
if(val!=null){cloneFilterRow.cells[1].childNodes[0].value=val;}
else{cloneFilterRow.cells[1].childNodes[0].value="0";}
var removeCell=cloneFilterRow.insertCell(2);removeCell.innerHTML="<button class=\"smallButton\" onclick=\"return Curse.Searchfilter.removeWeight(this);\"><span>"+Localization.remove+"</span></button>";return cloneFilterRow.cells[0];},removeSearchFilter:function(removeLink){var objFilterTable=document.getElementById("tableAdditionalFilters");if(objFilterTable.rows.length==1){objFilterTable.rows[0].cells[0].childNodes[0].selectedIndex=0;Curse.Searchfilter.addSearchFilterInput(objFilterTable.rows[0].cells[0].childNodes[0]);}
else{var parentRow=removeLink.parentNode.parentNode;objFilterTable.deleteRow(parentRow.rowIndex);}
return false;},removeWeight:function(removeLink){var weightsTable=cg_ge("item-weights");var parentRow=removeLink.parentNode.parentNode;weightsTable.deleteRow(parentRow.rowIndex);return false;},resetAdditionalFilters:function(){var objTbl=cg_ge("tableAdditionalFilters");if(!objTbl){return;}
var oSel=objTbl.getElementsByTagName("select")[0];oSel.selectedIndex=0;},setFilterElement:function(name,values){var objFilterForm=cg_ge("searchFilterForm");var objElements=objFilterForm.elements;var elementFound=false;for(var i=0;i<objElements.length;i++){if(objElements[i].name==name){if(Curse.Searchfilter.setFilterElementValue(objElements[i],values)){elementFound=true;break;}}}
if(elementFound){return;}
var objTbl=cg_ge("tableAdditionalFilters");var colSel=cg_getElementsByClassName("filters-add","select",objTbl);var oLastSel=colSel[colSel.length-1];if(oLastSel.selectedIndex>0){Curse.Searchfilter.addSearchFilter();colSel=cg_getElementsByClassName("filters-add","select",objTbl);oLastSel=colSel[colSel.length-1];}
var colOptions=oLastSel.options;for(var i=0;i<colOptions.length;i++){var filterName=colOptions[i].value;var filterNameArray=filterName.split(",");if(filterNameArray[0]==name||filterNameArray[1]==name){var index=0;if(filterNameArray[1]==name){index=1;}
oLastSel.selectedIndex=i;Curse.Searchfilter.setAdditionalFilterValue(oLastSel,values,index);break;}}},setAdditionalFilterValue:function(parentSel,values,index){Curse.Searchfilter.addSearchFilterInput(parentSel);var inputContainer=parentSel.parentNode.parentNode.cells[1];if(inputContainer.childNodes[0].tagName=="SELECT"){Curse.Searchfilter.setFilterElementValue(inputContainer.childNodes[0],values);return;}
var input=inputContainer.getElementsByTagName("input")[index];input.value=values;},setFilterElementValue:function(objElement,values){if(objElement.tagName=="INPUT"){if(objElement.type=="checkbox"){if(objElement.value==values){objElement.checked=true;return true;}}
else if(objElement.type=="radio"){if(objElement.value==values){objElement.checked=true;return true;}}
else{objElement.value=unescape(values);return true;}}
else if(objElement.tagName=="SELECT"){if(objElement.multiple){var valuesArray=values.split(",");}
else{var valuesArray=values.split(" ");}
var objOptions=objElement.options;for(var i=0;i<valuesArray.length;i++){for(var j=0;j<objOptions.length;j++){if(objOptions[j].value==valuesArray[i]){objOptions[j].selected=true;break;}}}
return true;}
return false;}}
Curse.Comment={ratingThreshold:-4,rate:function(record,rating){var formString="?comment_entity_type_id="+Curse.Comment.subjectTypeID+"&comment_entity_id="+Curse.Comment.subjectID+"&comment_id="+record.id+"&comment_rating="+rating;var ratingContainer=cg_getElementsByClassName("comment-rating","DIV",record.divHeader,true);ratingContainer=ratingContainer.getElementsByTagName("b")[0];var tmpRating=record.rating+rating;var ratingValueContainer=ratingContainer.lastChild.firstChild;ratingValueContainer.nodeValue=(tmpRating>0?"+":"")+tmpRating;record.spanRating.style.display="none";Curse.Ajax.load("postComment.aspx"+formString,handleCommentRatingPostback,'text','post');function handleCommentRatingPostback(data){var postResult=data.split("|");if(postResult[0]==0){record.rating=tmpRating;cg_de(record.spanRating);}
else{ratingValueContainer.nodeValue=(record.rating>0?"+":"")+record.rating;record.spanRating.style.display="inline";Curse.Alert.show(postResult[1]);}}},toggleDisplay:function(record){this.firstChild.nodeValue=(cg_toggleDisplay(record.divBody)?Localization.hide_comment:Localization.show_comment);if(record.allowRating){record.divHeader.firstChild.lastChild.style.display="";}
cg_toggleDisplay(record.divLinks);if(record.lastEdit!=null){cg_toggleDisplay(record.divLastEdit);}},cancelEdit:function(cancelButton){Curse.Comment.removeEditForm(cancelButton.parentNode.parentNode);},removeEditForm:function(editorContainer){var commentContainer=editorContainer.parentNode;var commentBody=cg_getElementsByClassName("comment-body","div",commentContainer,true);var editButtonContainer=cg_getElementsByClassName("comment-links","div",commentContainer,true);commentContainer.removeChild(editorContainer);if(editorContainer&&commentBody==null){editorContainer.ascBodyContainer.style.display="inline";editorContainer.ascEditButtonContainer.style.display="inline";if(editorContainer.ascHiddenElements&&editorContainer.ascHiddenElements.length>0){for(var i=0;i<editorContainer.ascHiddenElements.length;i++){editorContainer.ascHiddenElements[i].style.display="block";}}}
else{editButtonContainer.style.display="block";commentBody.style.display="block";}},edit:function(record){record.divBody.style.display="none";record.divLinks.style.display="none";var editorDiv=Curse.TextEditor.getForm("postComment.aspx","formCommentEditor","ajax_action=edit_comment,comment_entity_type_id="+Curse.Page.entityTypeID+",comment_entity_id="+Curse.Page.entityID+",comment_id="+record.id,"comment_body",record.body,null,null,8,"8,000");editorDiv.className="editor";record.__div.insertBefore(editorDiv,record.divBody);},report:function(record){Curse.Ajax.load("postComment.aspx?report=1&report_comment_id="+record.id,handleCommentReportingPostback,'text','post');function handleCommentReportingPostback(data){var postResult=data.split("|");Curse.Alert.show(postResult[1]);}},del:function(record){if(!window.confirm(Localization.confirm_delete)){return;}
var formString="?comment_entity_type_id="+Curse.Page.entityTypeID;formString+="&comment_entity_id="+Curse.Page.entityID;formString+="&delete_comment_id="+record.id;Curse.Ajax.load("postComment.aspx"+formString,handleDeleteCommentPostback,'text','post');record.divContainer.style.display="none";function handleDeleteCommentPostback(data){var postResult=data.split("|");if(postResult[0]==0){Curse.Alert.show(postResult[1]);}
else{Curse.Alert.show(postResult[1]);record.divContainer.style.display="block";}}},setLastEdited:function(record){var divLastEdit=cg_ce("div");divLastEdit.className="comment-lastedit";if(record.lastEdited){cg_ae(divLastEdit,cg_ct(Localization.last_edited_by));var a=cg_ce("a");a.href="user.aspx?id="+record.lastEdited[0];cg_ae(a,cg_ct(record.lastEdited[1]));cg_ae(divLastEdit,cg_ct(" "));cg_ae(divLastEdit,a);cg_ae(divLastEdit,cg_ct(" "));var s=cg_ce("span");var editDate=new Date(record.lastEdited[2]);var localEditTime=cg_getShortFriendlyTime(editDate);cg_ae(s,cg_ct(localEditTime));cg_ae(divLastEdit,s);cg_ae(divLastEdit,cg_ct(" "));}
if(record.divLastEdit!=null){record.divContainer.replaceChild(divLastEdit,record.divLastEdit);}
else{cg_ae(record.divContainer,divLastEdit);}
record.divLastEdit=divLastEdit;},handleAjaxLoad:function(data,args){eval(data);if(!cg_comments){var cg_comments=[];}
var args={};args.parent="results";args.data=cg_comments;args.id="comments";args.name="Comments";args.template="comments";Curse.DataGrid.addOrReplaceData(args);},showCaptcha:function(e){return;var objCommentPoster=cg_ge("divCommentPoster");if(objCommentPoster.style.display=="block"){return;}
var objVerificationImage=cg_ge("verificationImage");objVerificationImage.src="getVerificationImage.aspx";objCommentPoster.style.display="block";},handleEditFormSubmit:function(saveButton){var editorContainer=saveButton.parentNode.parentNode;var commentForm=editorContainer.getElementsByTagName("form")[0];var commentID=commentForm.comment_id.value;Curse.Ajax.load(cg_getFormAsString(commentForm),handleEditCommentPostback,'text','post');function handleEditCommentPostback(data){var postResult=data.split("|");if(postResult[0]==0){if(commentForm.comment_body.value.indexOf("[item")>=0||commentForm.comment_body.value.indexOf("[spell")>=0){window.location.reload(false);}
Curse.Comment.removeEditForm(editorContainer);var comment=Curse.DataGrid.getDataByType("comments",commentID);comment.body=commentForm.comment_body.value;cg_refreshDate();var editDate=new Date();editDate=editDate.getTime();comment.lastEdited=[Curse.User.id,Curse.User.displayName,editDate];comment.divBody.innerHTML=Curse.TextFormatter.getFormattedText(comment.body);comment.divLinks.style.display="";Curse.Comment.setLastEdited(comment);}
else{Curse.Alert.show(postResult[1]);}}},handleFormSubmit:function(e){var myEvent=cg_getEvent(e);var targetObj=cg_getEventTarget(myEvent);var editorContainer=targetObj;while(editorContainer.className!="editor"){editorContainer=editorContainer.parentNode;}
var submitButton=cg_getElementsByClassName("smallButton","button",editorContainer,true);var commentForm=editorContainer.getElementsByTagName("form")[0];if(commentForm.comment_body.value.length<10){Curse.Alert.show(Localization.replace("enter_at_least_x_chars",10));return;}
Curse.Ajax.load(cg_getFormAsString(commentForm),handleCommentSubmitPostback,'text','post');submitButton.disabled=true;function handleCommentSubmitPostback(data){var postResult=data.split("|");submitButton.disabled=false;if(postResult[0]==0){var commentRecord=eval("("+postResult[1]+")");if(commentRecord.body.indexOf("[item")>=0||commentRecord.body.indexOf("[spell")>=0){window.location.reload(false);}
cg_ge("divPostConfirmation").innerHTML=Localization.your_comment_posted;cg_ge("divPostConfirmation").style.display="block";commentForm.reset();var comment={};cg_cO(comment,commentRecord);comment.userAvatar=Curse.User.avatar;cg_datagrids["comments"].focusTab();if(cg_datagrids["comments"].data.length==0){cg_datagrids["comments"].data.push(comment);cg_datagrids["comments"].initialize();}
else{cg_datagrids["comments"].data.push(comment);cg_datagrids["comments"].renderRows();}}
else if(postResult[0]=="2"){commentForm.reset();Curse.Alert.show(postResult[1]);}
else{Curse.Alert.show(postResult[1]);}}},handleKeyPress:function(e){e=cg_getEvent(e);if(e.keyCode==13){Curse.Comment.handleFormSubmit(e);return;}},scrollToForm:function(){cg_contributeTabs.show(0);var objCommentInput=Curse.Comment.formContainer.getElementsByTagName("textarea")[0];Curse.Comment.formContainer.scrollIntoView();objCommentInput.focus();},formContainer:null,updateForm:function(){Curse.Comment.subjectTypeID=Curse.Page.entityTypeID;Curse.Comment.subjectID=Curse.Page.entityID;cg_ge("comment_entity_type_id").value=Curse.Comment.subjectTypeID
cg_ge("comment_entity_id").value=Curse.Comment.subjectID;},initializeForm:function(args){var container=Curse.Comment.formContainer=cg_ge(args.container);if(Curse.User.id==null&&container){var loginDiv=document.createElement("DIV");loginDiv.className="contribute-login";loginDiv.innerHTML=Localization.replace("login_register_to_comment","<a href=\"javascript:cg_navToLogin();\">","</a>","<a href=\"register.aspx\">","</a>");container.insertBefore(loginDiv,container.childNodes[0]);}
var formDisabled=Curse.User.id==null;var editorDiv=Curse.TextEditor.getForm("postComment.aspx","formCommentEditor","ajax_action=add_comment,comment_entity_type_id="+args.subjectTypeId+",comment_entity_id="+args.subjectId,"comment_body",null,"Curse.Comment.showCaptcha(event)",null,8,"8,000",true,"Curse.Comment.handleFormSubmit(event)^"+Localization.add_comment,null,formDisabled);editorDiv.className="editor";container.appendChild(editorDiv);Curse.Comment.updateForm();}};Curse.Screenshot={screenIndex:0,initializeForm:function(args){var container=Curse.Screenshot.formContainer=cg_ge(args.container);document.forms.screenshotForm.entity_id.value=Curse.Page.entityID;document.forms.screenshotForm.entity_type_id.value=Curse.Page.entityTypeID;document.forms.screenshotForm.viewport_height.value=Curse.Client.viewportHeight();document.forms.screenshotForm.viewport_width.value=Curse.Client.viewportWidth();if(Curse.User.id==null&&container){var loginDiv=document.createElement("DIV");loginDiv.className="contribute-login";loginDiv.innerHTML=Localization.replace("login_register_to_screenshot","<a href=\"javascript:cg_navToLogin();\">","</a>","<a href=\"register.aspx\">","</a>");container.insertBefore(loginDiv,container.childNodes[0]);var inputs=container.getElementsByTagName("input");for(var i=0;i<inputs.length;i++){inputs[i].disabled=true;}
var buttons=container.getElementsByTagName("button");for(var i=0;i<buttons.length;i++){buttons[i].disabled=true;}}},validatePost:function(){var screenshotFile=cg_ge("inputScreenshotFile").value.toLowerCase();if(screenshotFile==""){Curse.Alert.show(Localization.select_valid_screenshot,Localization.submit_a_screenshot);return false;}
if(!cg_endsWith(screenshotFile,".jpg")&&!cg_endsWith(screenshotFile,".png")){Curse.Alert.show(Localization.unsupported_screenshot,Localization.submit_a_screenshot);return false;}
return true;},buildTable:function(startingIndex){Curse.Screenshot.screenIndex=startingIndex;var topTable=document.getElementById("tableScreenshotInfoTop");var bottomTable=document.getElementById("tableScreenshotInfoBottom");var row2=topTable.insertRow(topTable.rows.length);var lcell=row2.insertCell(row2.cells.length);lcell.align="left";var lAnchor=document.createElement("A");cg_ds(lAnchor);lAnchor.id="screenshotBackCell";lAnchor.className="btnPaging btnPrev";lAnchor.onclick=function(){Curse.Screenshot.screenIndex--;Curse.Screenshot.setCurrentImage()};var lAnchorLabel=document.createTextNode("Previous Screenshot");lAnchor.appendChild(lAnchorLabel);if(cg_screenshots.length>1){lcell.appendChild(lAnchor);}
var ccell=row2.insertCell(row2.cells.length);ccell.align="center";ccell.id="screenshotIndexCell";var rcell=row2.insertCell(row2.cells.length);rcell.align="right";var rAnchor=document.createElement("A");cg_ds(rAnchor);rAnchor.id="screenshotForwardCell";rAnchor.className="btnPaging btnNext";rAnchor.onclick=function(){Curse.Screenshot.screenIndex++;Curse.Screenshot.setCurrentImage()};var rAnchorLabel=document.createTextNode(Localization.next_screenshot);rAnchor.appendChild(rAnchorLabel);if(cg_screenshots.length>1){rcell.appendChild(rAnchor);}
var brow=bottomTable.insertRow(bottomTable.rows.length);var bcell=brow.insertCell(brow.cells.length);bcell.align="center";bcell.id="userCell";var brow2=bottomTable.insertRow(bottomTable.rows.length);var bcell2=brow2.insertCell(brow2.cells.length);bcell2.align="center";bcell2.id="origLinkContainer";var olink=document.createElement('a');olink.innerHTML=Localization.view_original_image;olink.id="origLink";bcell2.appendChild(olink);if((cg_getViewState(0)!="")&&(cg_getViewState(0)!=null))
Curse.Screenshot.screenIndex=Curse.Screenshot.findImageId(cg_getViewState(0));Curse.Screenshot.setCurrentImage();},findImageId:function(id){for(var i=0;i<cg_screenshots.length;i++){if(cg_screenshots[i].id==id)
return i;}
return 0;},updateViewstate:function(screenshotID){location.replace("#"+screenshotID);},setCurrentImage:function(){if(Curse.Screenshot.screenIndex==-1)
Curse.Screenshot.screenIndex=cg_screenshots.length-1;if(Curse.Screenshot.screenIndex==cg_screenshots.length)
Curse.Screenshot.screenIndex=0;var screen=cg_screenshots[Curse.Screenshot.screenIndex];Curse.Screenshot.updateViewstate(screen.id);cg_ge("userCell").innerHTML="<div class=\"ss-caption\">"+screen.caption+"</div><div class=\"ss-from\">"+Localization.posted_by+" <a href=\"user.aspx?id="+screen.userid+"\">"+screen.user+"</a> "+cg_getShortFriendlyTime(screen.date)+"</div>";cg_ge("screenshotIndexCell").innerHTML="<b>"+(Curse.Screenshot.screenIndex+1)+"</b> of <b>"+cg_screenshots.length+"</b>";var next=(Curse.Screenshot.screenIndex+1)+1;if(Curse.Screenshot.screenIndex==cg_screenshots.length-1)
next=1;var prev=Curse.Screenshot.screenIndex;if(Curse.Screenshot.screenIndex==0)
prev=cg_screenshots.length;if(cg_screenshots.length>1){cg_ge("screenshotForwardCell").innerHTML=Localization.next_screenshot+" ("+next+" of "+cg_screenshots.length+")";cg_ge("screenshotBackCell").innerHTML=Localization.previous_screen+" ("+prev+" of "+cg_screenshots.length+")";}
cg_ge("origLinkContainer").innerHTML="<button class=\"smallButton\" onclick=\"self.location='screenshots/"+screen.id+".jpg';\"><span>"+Localization.view_original_image+"</span></button>&nbsp;&nbsp;<small>"+Localization.size_colon+" "+screen.width+" X "+screen.height+"</small>";var maxwidth=800.0;var maxheight=600.0;cg_ge("screenImage").src="screenshots/"+screen.id+".jpg";cg_ge("screenImage").onclick=function(){self.location="screenshots/"+screen.id+".jpg";};if(screen.width>maxwidth){var ratio=screen.width/maxwidth;var nheight=screen.height/ratio;cg_ge("screenImage").width=maxwidth;cg_ge("screenImage").height=nheight;}
else if(screen.height>maxheight){var ratio=screen.height/maxheight;var nwidth=screen.width/ratio;cg_ge("screenImage").width=nwidth;cg_ge("screenImage").height=maxheight;}
else{cg_ge("screenImage").width=screen.width;cg_ge("screenImage").height=screen.height;}},scrollToForm:function(){cg_contributeTabs.show(1);}}
Curse.User={getLanguage:function(){if(this.language!=null){return this.language;}
var navigatorLanguage=null;if(Curse.Browser.ie){navigatorLanguage=navigator.userLanguage;}
else{navigatorLanguage=navigator.language;}
if(navigatorLanguage.indexOf("-")>=0){navigatorLanguage=navigatorLanguage.split("-")[0];}
navigatorLanguage=navigatorLanguage.toLowerCase();this.language=navigatorLanguage;return this.language;},getPreferredLanguage:function(){var preferredLanguage=cg_getCookie("_language");if(preferredLanguage!=null){return preferredLanguage;}
return Curse.User.getLanguage();},setPreferredLanguage:function(language){cg_setCookie("_language",language);Curse.User.navToPreferredSite();},navToPreferredSite:function(){var siteUrl=Curse.Lookup.site_url[Curse.User.getPreferredLanguage()];if(siteUrl==null){siteUrl=Curse.Lookup.site_url["en"];}
var relativeLocation=cg_getRelativeLocation(true);if(relativeLocation!=""){relativeLocation="/"+relativeLocation;}
self.location="http://"+siteUrl+relativeLocation;},initialize:function(){var userID=cg_getCookie("Login.UserID");if(userID!=null&&!isNaN(userID)){Curse.User.id=parseInt(userID);}
else{Curse.User.id=0;}
var userDisplayName=cg_getCookie("Login.UserDisplayName");if(userDisplayName!=null){Curse.User.displayName=cg_utf8Decode(userDisplayName).replace("+"," ");}
var userAvatar=cg_getCookie("Login.UserAvatar");if(userAvatar!=null){Curse.User.avatar=userAvatar;}
var userIsMod=cg_getCookie("Login.UserIsMod");if((userIsMod!=null&&userIsMod=="1")){Curse.User.isModerator=true;}
var userIsGuildManager=cg_getCookie("Login.UserIsGuildManager");if(userIsGuildManager!=null&&userIsGuildManager=="1"){Curse.User.isGuildManager=true;}
var userSubscriptionStatus=cg_getCookie("Login.UserPremiumStatus");if(userSubscriptionStatus!=null){Curse.User.subscriptionStatus=userSubscriptionStatus;Curse.User.isPremium=userSubscriptionStatus=="1";}}}
Curse.User.initialize();Curse.ZYBEZ={userInitialized:false,Site:true,initialize:function(){},handleInitSession:function(status){Curse.ZYBEZ.setUser();},SetTooltips:function(){Curse.ZYBEZ.Tooltip.showTip=Curse.Tooltip.showTip;Curse.ZYBEZ.Tooltip.initialize=Curse.Tooltip.initialize;Curse.ZYBEZ.Tooltip.hide=Curse.Tooltip.hide;Curse.ZYBEZ.Tooltip.hideIcons=Curse.Tooltip.hideIcons;Curse.ZYBEZ.Tooltip.show=Curse.Tooltip.show;Curse.ZYBEZ.Tooltip.updatePosition=Curse.Tooltip.updatePosition;Curse.ZYBEZ.Tooltip.updateOrientation=Curse.Tooltip.updateOrientation;Curse.ZYBEZ.Tooltip.updateSize=Curse.Tooltip.updateSize;Curse.ZYBEZ.Tooltip.setIcons=Curse.Tooltip.setIcons;Curse.ZYBEZ.Tooltip.updateSize=Curse.Tooltip.updateSize;Curse.ZYBEZ.Tooltip.updateTooltip=Curse.Tooltip.updateTooltip;Curse.ZYBEZ.Tooltip.setCurrentTooltip=Curse.Tooltip.setCurrentTooltip;Curse.ZYBEZ.Tooltip.getCurrentTooltip=Curse.Tooltip.getCurrentTooltip;Curse.ZYBEZ.Tooltip.setCurrentTooltipLink=Curse.Tooltip.setCurrentTooltipLink;Curse.ZYBEZ.Tooltip.getCurrentTooltipLink=Curse.Tooltip.getCurrentTooltipLink;Curse.ZYBEZ.Tooltip.getGame=Curse.Tooltip.getGame;Curse.ZYBEZ.Tooltip.getPrefix=Curse.Tooltip.getPrefix;Curse.ZYBEZ.Tooltip.gameContainers=Curse.Tooltip.gameContainers;Curse.ZYBEZ.Tooltip.gameTooltips=Curse.Tooltip.gameTooltips;Curse.ZYBEZ.Tooltip.gameIcons=Curse.Tooltip.gameIcons;Curse.Tooltip=Curse.ZYBEZ.Tooltip;},setUser:function(){if(!cg_ge("loginMenu")){return;}
Curse.ZYBEZ.userInitialized=true;Curse.User.initialize();if(Curse.User.displayName!=null&&Curse.User.displayName!=""){mn_200_2=[[1,Localization.account_settings,"account.aspx"],[2,Localization.my_profile,"user.aspx?id="+Curse.User.id],[4,Localization.logout,"login.aspx?action=logout"]];if(Curse.User.isModerator){mn_200_2.push([6,"Staff","admin.aspx"]);}
if(cg_getCookie("Login.DJStatus")=="1"){mn_200_2.push([9,"DJ Staff","adminRadio.aspx"]);}
if(cg_getCookie("Login.Wishlist")){mn_200_2.push([8,Localization.wishlists,"wishlist.aspx?id="+Curse.User.id]);}
mn_200=[[1,Localization.welcome+" <b>"+Curse.User.displayName+"</b>","$nonav$",null,"welcome"],[2,Localization.my_account,"account.aspx",mn_200_2]];cg_ge("loginMenu").style.display="none";cg_ge("userMenu").innerHTML="";Curse.Menu.addMainMenu("userMenu",mn_200);setUserBookmarks();}
else{cg_ge("loginMenu").style.display="block";}},initHeader:function(){this.SetTooltips();Curse.Menu.setStaticMenu(mn_Main);}};var cg_session=new Curse.Session(Curse.ZYBEZ.handleInitSession);function cg_setSearchText(text){var input=cg_ge("main-search-input");if(!input){return;}
input.value=text;}
if(!Curse.ZYBEZ){Curse.ZYBEZ={};}
if(!Curse.ZYBEZ.Tooltip){Curse.ZYBEZ.Tooltip={};}
Curse.ZYBEZ.Tooltip.baseURL="";Curse.ZYBEZ.FileFormat="gif";function roundNumber(num,decimals){var result=Math.round(num*Math.pow(10,decimals))/Math.pow(10,decimals);return result;}
function roundperc(val){return roundNumber((val*100.0)/100,2);}
Curse.ZYBEZ.Tooltip.handleItemLinkOver=function(link,args,e){if(!link._relatedID){var lpattern=new RegExp("(item|spell|npc)\\.aspx\\?id=(\\d+)");var match=lpattern.exec(link.href);if(!match){return;}
link._relatedID=match[2];}
var item=cg_zybez_items[link._relatedID];if(!item||!item.tooltip){Curse.Tooltip.setCurrentTooltip(link._relatedID);Curse.ZYBEZ.Tooltip.loadAsync(link._relatedID,link,Curse.ZYBEZ.Tooltip.handleAjaxItem);return;}
var hideIcon,character,isEquipped;if(args){hideIcon=args["hideIcon"];character=args["relatedCharacter"];isEquipped=args["isEquipped"];}
var cids=Curse.ZYBEZ.Tooltip.getComparisonItems(item.id,item.slot,character,isEquipped);if(!args){args={};}
args.relatedLink=link;Curse.ZYBEZ.Tooltip.showItemTooltip(cids,args);}
Curse.ZYBEZ.Tooltip.handleNPCLinkOver=function(link,args,e){if(args==null){args={};}
if(!link._relatedID){var lpattern=new RegExp("(item|spell|npc)\\.aspx\\?id=(\\d+)");var match=lpattern.exec(link.href);if(!match){return;}
link._relatedID=match[2];}
args.relatedLink=link;Curse.ZYBEZ.Tooltip.showNPCTooltip(link._relatedID,args,e);}
Curse.ZYBEZ.Tooltip.showNPCTooltip=function(id,args,e){var npc=cg_zybez_npcs[id];if(!npc||!npc.tooltip){Curse.Tooltip.setCurrentTooltip(id);Curse.ZYBEZ.Tooltip.loadAsync(id,args.relatedLink,Curse.ZYBEZ.Tooltip.handleAjaxNPC);return;}
if(args){var hideIcon=args["hideIcon"];}
else{args={};}
Curse.Tooltip.show(npc.tooltip,null,null,"zybez");}
Curse.ZYBEZ.Tooltip.handleAjaxSpell=function(data,link){cg_zybez_spells.addData(eval("("+data+")"));if(Curse.Tooltip.getCurrentTooltip()==link._relatedID){link.onmouseover();}
return;}
Curse.ZYBEZ.Tooltip.handleAjaxNPC=function(data,link){cg_zybez_npcs.addData(eval("("+data+")"));if(Curse.Tooltip.getCurrentTooltip()==link._relatedID){link.onmouseover();}
return;}
Curse.ZYBEZ.Tooltip.handleQuestLinkOver=function(link,e){Curse.ZYBEZ.Tooltip.showQuestTooltip(link._relatedID,link);}
Curse.ZYBEZ.Tooltip.showQuestTooltip=function(questid,link){var quest=cg_zybez_quests[questid];if(quest!=null&&quest.tooltip){Curse.Tooltip.show(quest.tooltip,null,null,"zybez");}
else{Curse.Tooltip.setCurrentTooltip(link._relatedID);Curse.ZYBEZ.Tooltip.loadAsync(questid,link,Curse.ZYBEZ.Tooltip.handleAjaxQuest);}};Curse.ZYBEZ.Tooltip.handleAjaxQuest=function(data,link){var newQuest=eval('('+data+')');cg_zybez_quests.addData(newQuest);if(Curse.Tooltip.getCurrentTooltip()==link._relatedID){link.onmouseover();}
return;}
Curse.ZYBEZ.Tooltip.handleSpellLinkOver=function(link,args,e){if(args==null){args={};}
if(!link._relatedID){var lpattern=new RegExp("(item|spell)\\.aspx\\?id=(\\d+)");var match=lpattern.exec(link.href);if(!match){return;}
link._relatedID=match[2];}
args.relatedLink=link;Curse.ZYBEZ.Tooltip.showSpellTooltip(link._relatedID,args,e);}
Curse.ZYBEZ.Tooltip.showSpellTooltip=function(id,args,e){var spell=cg_zybez_spells[id];if(!spell||!spell.tooltip){Curse.Tooltip.setCurrentTooltip(id);Curse.ZYBEZ.Tooltip.loadAsync(id,args.relatedLink,Curse.ZYBEZ.Tooltip.handleAjaxSpell);return;}
if(args){var hideIcon=args["hideIcon"];}
else{args={};}
if(!hideIcon){Curse.Tooltip.setIcons([{index:0,customClass:args.customClass,image:Curse.ZYBEZ.Tooltip.baseURL+"icons/m/"+spell.icon+"."+Curse.ZYBEZ.FileFormat}],"zybez");}
Curse.Tooltip.show(spell.tooltip,null,null,"zybez");}
Curse.ZYBEZ.Tooltip.handleAjaxSpell=function(data,link){cg_zybez_spells.addData(eval("("+data+")"));if(Curse.Tooltip.getCurrentTooltip()==link._relatedID){link.onmouseover();}
return;}
Curse.ZYBEZ.Tooltip.handleAjaxItem=function(data,link){if(data=="")
return;var newItem=eval('('+data+')');cg_zybez_items.addData(newItem);if(Curse.Tooltip.getCurrentTooltip()==link._relatedID){link.onmouseover();}
return;}
Curse.ZYBEZ.Tooltip.loadAsync=function(id,relatedLink,handler){if(cg_isDefined(window,'cg_zybezdbsyndication')){cg_zybezdbsyndication.addExternalReference(id,relatedLink,handler,true);return;}
var url="ajaxTooltip.aspx?id="+id;if(handler==Curse.ZYBEZ.Tooltip.handleAjaxQuest){url+="&type=4";}
else if(handler==Curse.ZYBEZ.Tooltip.handleAjaxSpell){url+="&type=6";}
else if(handler==Curse.ZYBEZ.Tooltip.handleAjaxNPC){url+="&type=2";}
cg_queueAjaxRequest(url,handler,"text","get",relatedLink,true);}
Curse.ZYBEZ.Tooltip.getComparisonItems=function(itemID,itemSlot,character,isEquippedItem){var cids=new Array(3);cids[0]=itemID;if(isEquippedItem!=null||cg_isDefined(window,'cg_zybezdbsyndication')){return cids;}
if(cg_isDefined(window,'cg_profileEditor')){character=cg_profileEditor.character;}
if(character){var itSlot=character.itemsByCSlot[cg_profileEditor.currentSlot];if(itSlot!=null){cids[1]=itSlot.id;return cids;}
else{cids[1]=null;}
return cids;}
else{var citem=cg_buildTooltipIds(itemID,itemSlot)+"";cids=citem.split("|");if(cids[1]&&cids[1]=="null"){cids[1]=null;}
if(cids[2]&&cids[2]=="null"){cids[2]=null;}
return cids;}
return cids;}
function cg_buildWeaponTooltipIds(id,slot){var txt=id;if((cg_getCookie("Settings.PinnedItem.item_"+slot)!=null)&&(cg_getCookie("Settings.PinnedItem.item_"+slot)!="null")){vals=cg_getCookie("Settings.PinnedItem.item_"+slot).split("|");if((vals[0]!=null)&&(vals[0]!="")&&(vals[0]!="null"))
txt+="|"+vals[0];if((vals[1]!=null)&&(vals[1]!="")&&(vals[1]!="null"))
txt+="|"+vals[1];}
if(slot=="9"){if(cg_getCookie("Settings.PinnedItem.item_1")!=null){vals=cg_getCookie("Settings.PinnedItem.item_1").split("|");if((vals[1]!=null)&&(vals[1]!="")&&(vals[1]!="null"))
txt+="|"+vals[1];}
return txt;}
else if(slot=="2")
{if(cg_getCookie("Settings.PinnedItem.item_1")!=null){vals=cg_getCookie("Settings.PinnedItem.item_1").split("|");if((vals[0]!=null)&&(vals[0]!="")&&(vals[0]!="null"))
txt+="|"+vals[0];}
return txt;}
else if(slot=="1")
{if(cg_getCookie("Settings.PinnedItem.item_2")!=null){vals=cg_getCookie("Settings.PinnedItem.item_2").split("|");if((vals[0]!=null)&&(vals[0]!="")&&(vals[0]!="null"))
txt+="|"+vals[0];}
if(cg_getCookie("Settings.PinnedItem.item_9")!=null){vals=cg_getCookie("Settings.PinnedItem.item_9").split("|");if((vals[0]!=null)&&(vals[0]!="")&&(vals[0]!="null"))
txt+="|"+vals[0];}
return txt;}}
function cg_buildTooltipIds(id,slot){if((cg_getCookie("Settings.PinnedItem.item_"+slot)!=null)&&(cg_getCookie("Settings.PinnedItem.item_"+slot)!="null")){var txt=id;vals=cg_getCookie("Settings.PinnedItem.item_"+slot).split("|");if((vals[0]!=null)&&(vals[0]!="")&&(vals[0]!="null"))
txt+="|"+vals[0];if((vals[1]!=null)&&(vals[1]!="")&&(vals[1]!="null"))
txt+="|"+vals[1];return txt;}
else{return id;}}
Curse.ZYBEZ.Tooltip.showItemTooltip=function(itemids,args){var item,desc2,desc3;if(args==null){args={};}
if(args.relatedCharacter!=null){var item=args.relatedCharacter.itemsById[itemids[0]];}
else{var item=cg_zybez_items[itemids[0]];if(!item||!item.tooltip){args.relatedLink._relatedID=itemids[0];Curse.Tooltip.setCurrentTooltip(args.relatedLink._relatedID);Curse.ZYBEZ.Tooltip.loadAsync(args.relatedLink._relatedID,args.relatedLink,Curse.ZYBEZ.Tooltip.handleAjaxItem);return;}}
if(item==null){return;}
var icons=[];var text=[];for(var i=0,len=itemids.length;i<len;i++){if(itemids[i]==null){continue;}
if(i>0&&args.noCompare){continue;}
if(i==0&&args.relatedCharacter!=null){var item=args.relatedCharacter.itemsById[itemids[i]];}
else{var item=cg_zybez_items[itemids[i]];}
if(item!=null&&item.tooltip){if(i>0||!args.hideIcon){icons[i]={index:i,image:Curse.ZYBEZ.Tooltip.baseURL+"icons/m/"+item.icon+"."+Curse.ZYBEZ.FileFormat}}
text[i]=item.tooltip;if(i>0){text[i]+=Curse.ZYBEZ.Tooltip.getStatDiffsHTML(cg_zybez_items[itemids[0]],item);}}
else{Curse.ZYBEZ.Tooltip.loadAsync(itemids[i],args.relatedLink,Curse.ZYBEZ.Tooltip.handleAjaxItem);}}
if(icons.length>0){Curse.Tooltip.setIcons(icons,"zybez");}
Curse.Tooltip.show(text[0],text[1],text[2],"zybez");};Curse.ZYBEZ.Tooltip.getStatDiffs=function(compareToItem,masterItem){function calculateStatDiffs(stat1,stat2){function getCStat(stat,id){for(var i=0;i<stat.length;i++){if(stat[i].id==id)
return stat[i].val;}
return 0;}
var sdifs=[];var sdone=[];for(var i=0;i<stat1.length;i++){var stat=stat1[i];if(stat.id==0)
continue;if(!sdone[stat.id]){var val=0;var sname;var compVal=getCStat(stat2,stat.id);val=roundperc(stat.val-compVal);sname=Curse.Lookup.stat_id[stat.id];sdifs.push({name:sname,val:val});sdone[stat.id]=true;}}
for(var i=0;i<stat2.length;i++){var stat=stat2[i];if(stat.id==0)
continue;if(sdone[stat.id]==null){var val=getCStat(stat1,stat.id)-stat.val;sdifs.push({name:Curse.Lookup.stat_id[stat.id],val:val});sdone[stat.id]=1;}}
return sdifs;}
var masterStats=masterItem.stats;if(!masterStats){return;}
var compareToStats=compareToItem.stats;if(!compareToStats){return;}
if(masterStats==null||compareToStats==null){return null;}
return calculateStatDiffs(masterStats,compareToStats);};Curse.ZYBEZ.Tooltip.getStatDiffsHTML=function(masterItem,compareToItem){if(masterItem.id==compareToItem.id){return"";}
var arrStatDiffs=Curse.ZYBEZ.Tooltip.getStatDiffs(compareToItem,masterItem);if(arrStatDiffs==null){return"";}
var tooltipHTML="<div class=\"itemTooltipStatChangeList\">"+Localization.if_equip+" "+masterItem.getNameWithStyle();var statGainsHTML=[];var statLossesHTML=[];for(var j=0;j<arrStatDiffs.length;j++){var sdif=arrStatDiffs[j];if(sdif.val<=0)
continue;statGainsHTML.push("<span class=r"+((sdif.val>0)?('2'):('ed'))+">"+((sdif.val>0)?('+'):(''))+sdif.val+" "+sdif.name+"</span>");}
var ret=false;for(var j=0;j<arrStatDiffs.length;j++){var sdif=arrStatDiffs[j];if(sdif.val>=0)
continue;statLossesHTML.push("<span class=r"+((sdif.val>0)?('2'):('ed'))+">"+((sdif.val>0)?('+'):(''))+(sdif.val*-1)+" "+sdif.name+"</span>");}
if(statGainsHTML.length>0){ret=true;tooltipHTML+="<br>"+Localization.you_will_gain+" "+statGainsHTML.join(", ");}
if(statLossesHTML.length>0){ret=true;tooltipHTML+="<br>"+Localization.you_will_lose+" "+statLossesHTML.join(", ");}
tooltipHTML+="</div>";if(ret)
return tooltipHTML;else
return"";};function findXp(level){level--;var xp=0;var num=1;while(level>0){var a=num/7;xp=xp+Math.floor(num+300*Math.pow(2,a));num++;level--;}
xp=Math.floor(xp/4);return xp;}
function findLevel(xp){if(xp>=200000000)
var level=126;else{var level=0;var points=0;var check=0;var num=1;while(check<=xp){var a=num/7;points=points+Math.floor(num+300*Math.pow(2,a));check=Math.floor(points/4);num++;level++;}}
return level;}
var cg_modTables=["dropped-by","sold-by","drops","sells"];var cg_exampleSearches=["Dragon 2h sword","While Guthix Sleeps","TzTok-Jad","Ardougne","Fairy Rings","How many cannons does Lumbridge Castle have?"];var cg_exampleIndex=0;var cg_exampleInterval;var imageUploader;var STAT_ATK_STAB=1;var STAT_DEF_STAB=2;var STAT_ATK_SLASH=3;var STAT_DEF_SLASH=4;var STAT_ATK_CRUSH=5;var STAT_DEF_CRUSH=6;var STAT_ATK_MAGIC=7;var STAT_DEF_MAGIC=8;var STAT_ATK_RANGE=9;var STAT_DEF_RANGE=10;var STAT_DEF_SUMMON=11;var STAT_STRENGTH=12;var STAT_RANGE_STRENGTH=13;var STAT_PRAYER=14;var cg_tickerData=null;var cg_tickerStep=0;function setUserBookmarks(){if(!cg_ge("spanBookmarks")){return;}
if(cg_getCookie("Login.SavedSearches.1")==""||cg_getCookie("Login.SavedSearches.1")==null){if(!Curse.User.id){cg_ge("spanBookmarks").innerHTML=Localization.replace("register_to_bookmark","<a href=\"register.aspx\">","</a>","<span class=\"tip\" onmouseout=\"Curse.Tooltip.hide();\" onmouseover=\"Curse.Tooltip.showTip('"+Localization.with_wowdb_account+"', event,'r')\">","</span>")}
else{cg_ge("spanBookmarks").innerHTML=Localization.replace("bookmarks_appear_here","<span class=\"tip\" onmouseout=\"Curse.Tooltip.hide();\" onmouseover=\"Curse.Tooltip.showTip('"+Localization.replace("to_retreive_search","&quot;","&quot;")+"', event,'r')\">","</span>");}
return;}
var savedSearchSel=cg_getLookupSelectBox("SavedSearches.1","selBookmarks",null,false,"handleBookmarkChange()",true,"~~","||");var currentBookmark=cg_getQueryStringParam("browse")+"@@"+cg_getQueryStringParam("filters").replace(/;/g,"!!");savedSearchSel.value=currentBookmark;for(var i=0;i<savedSearchSel.options.length;i++){}
cg_ge("spanBookmarks").innerHTML="<small>"+Localization.bookmarks+":</small>&nbsp;";cg_ge("spanBookmarks").appendChild(savedSearchSel);}
function roundPerc(val){return roundNumber((val*100.0)/100,2);}
function getGlowHTML(amount,className){var amountHTML="";if(!className){className="glow r1";}
amountHTML="<span class=\""+className+"\" style=\"position: absolute; right: 0pt; bottom: 0pt;\">";amountHTML+="<div style=\"position: absolute; white-space: nowrap; left: -1px; top: -1px; color: black; z-index: 2;\">"+amount+"</div>";amountHTML+="<div style=\"position: absolute; white-space: nowrap; left: -1px; top: 0px; color: black; z-index: 2;\">"+amount+"</div>";amountHTML+="<div style=\"position: absolute; white-space: nowrap; left: -1px; top: 1px; color: black; z-index: 2;\">"+amount+"</div>";amountHTML+="<div style=\"position: absolute; white-space: nowrap; left: 0px; top: -1px; color: black; z-index: 2;\">"+amount+"</div>";amountHTML+="<div style=\"position: absolute; white-space: nowrap; left: 0px; top: 0px; z-index: 4;\">"+amount+"</div>";amountHTML+="<div style=\"position: absolute; white-space: nowrap; left: 0px; top: 1px; color: black; z-index: 2;\">"+amount+"</div>";amountHTML+="<div style=\"position: absolute; white-space: nowrap; left: 1px; top: -1px; color: black; z-index: 2;\">"+amount+"</div>";amountHTML+="<div style=\"position: absolute; white-space: nowrap; left: 1px; top: 0px; color: black; z-index: 2;\">"+amount+"</div>";amountHTML+="<div style=\"position: absolute; white-space: nowrap; left: 1px; top: 1px; color: black; z-index: 2;\">"+amount+"</div>";amountHTML+="<span style=\"visibility: hidden;\">"+amount+"</span>";amountHTML+="</span>";return amountHTML;}
function setPinItemButton(){var pincontainer=cg_ge("divPinItemContainer");if(!pincontainer){return;}
var it=cg_items[Curse.Page.entityID];if(!it.slot){return;}
if(it.slot==15||it.slot==-1){return;}
var slotName=Curse.Lookup.item_slot[it.slot];var buttonEvents=" onclick=\"Curse.Tooltip.hide();pinItem();\" onmouseover=\"Curse.Tooltip.showTip('"+Localization.replace("click_see_side_by_side",slotName)+"')\" onmouseout=\"Curse.Tooltip.hide();\"";if(cg_getCookie("Settings.PinnedItem.item_"+it.slot)!=null){if(cg_getCookie("Settings.PinnedItem.item_"+it.slot).indexOf(Curse.Page.entityID)!=-1){pincontainer.innerHTML="<button class=\"smallButton\" onclick=\"unpinItem()\"><span>"+Localization.unpin_item+"</span></button>";}
else{var txt="<button class=\"smallButton\""+buttonEvents+"><span>"+Localization.pin_item+"</span></button>";if(it.slot==1){txt+="<div style=\"padding-top: 4px;\"><small>"+Localization._in+"</small>&nbsp;<select id=\"pinSideSelect\"><option value=\"0\">"+Curse.Lookup.item_slot[2]+"</option><option value=\"1\">"+Curse.Lookup.item_slot[9]+"</option></select></div>"}
else if(it.slot==12||it.slot==16||it.slot==10){txt+="<div style=\"padding-top: 4px;\"><small>"+Localization._in+"</small>&nbsp;<select id=\"pinSideSelect\"><option value=\"0\">"+Localization.left+"</option><option value=\"1\">"+Localization.right+"</option></select></div>"}
pincontainer.innerHTML=txt;}}
else{var txt="<button class=\"smallButton\""+buttonEvents+"><span>"+Localization.pin_item+"</span></button>";if(it.slot==1){txt+="<div><small>"+Localization._in+"</small> &nbsp;<select id=\"pinSideSelect\"><option value=\"0\">"+Curse.Lookup.item_slot[2]+"</option><option value=\"1\">"+Curse.Lookup.item_slot[9]+"</option></select></div>";}
else if(it.slot==12||it.slot==16||it.slot==10){txt+="<div><small>"+Localization._in+"</small> &nbsp;<select id=\"pinSideSelect\"><option value=\"0\">"+Localization.left+"</option><option value=\"1\">"+Localization.right+"</option></select></div>";}
pincontainer.innerHTML=txt;}}
function pinItem(){var it=cg_items[Curse.Page.entityID];cg_setCookie("Settings.PinnedItem.item_"+it.slot,Curse.Page.entityID);var pincontainer=cg_ge("divPinItemContainer");pincontainer.innerHTML="<button class=\"smallButton\" onclick=\"unpinItem()\" ><span>"+Localization.unpin_item+"</span></button>";}
function unpinItem(itemID){if(!itemID){itemID=Curse.Page.entityID;}
var it=cg_items[itemID];cg_setCookie("Settings.PinnedItem.item_"+it.slot,cg_getCookie("Settings.PinnedItem.item_"+it.slot).replace(itemID,"").replace("|",""));if(Curse.Page.entityID){setPinItemButton();}}
function cg_loadWornBy(itemID,chk){var realmFilter="";if(chk){cg_primaryTabGroup.showById("wornby");if(chk.checked){realmFilter=cg_getString(cg_getCookie("Settings.Profile.CharacterServers"));}}
cg_queueAjaxRequest("ajaxWornBy.aspx?item_id="+itemID+"&realm_ids="+realmFilter,Curse.DataGrid.handleAjaxLoad,'text','get',{hideEmpty:true,message:"No one currently has this item equipped.",template:"profiles",id:'wornby',name:"Worn By"},true);}
function cg_loadCraftedByRecipe(recipeID){cg_queueAjaxRequest("ajaxCraftedBy.aspx?recipe_id="+recipeID+"&realm_ids="+cg_getString(cg_getCookie("Settings.Profile.CharacterServers")),Curse.DataGrid.handleAjaxLoad,'text','get',{hideEmpty:true,message:"No one can currently craft this.",template:"profiles",id:'craftedby',name:'Crafted By'},true);}
function cg_loadCraftedByItem(itemID){cg_queueAjaxRequest("ajaxCraftedBy.aspx?item_id="+itemID+"&realm_ids="+cg_getString(cg_getCookie("Settings.Profile.CharacterServers")),Curse.DataGrid.handleAjaxLoad,'text','get',{hideEmpty:true,message:"No one can currently craft this.",template:"profiles",id:'craftedby',name:'Crafted By'},true);}
function saveSearch(browseKey,filterKey,e){var formString="?search_browse_key="+browseKey;formString+="&search_filter_key="+filterKey;var searchName=cg_ge("save_search_name").value;if(searchName==""){return;}
formString+="&search_name="+searchName;formString+="&ajax_action=save_search";Curse.Alert.close();Curse.Ajax.load("ajaxSaveSearch.aspx"+formString,handleSaveSearchPostback,'text','post');function handleSaveSearchPostback(data){var postResult=data.split("|");if(postResult[0]==0){Curse.Alert.show(postResult[1]);setUserBookmarks();}
else{Curse.Alert.show(postResult[1]);}}}
function saveSearch_prompt(btn){var browseKey=cg_getQueryStringParam("browse");var filterKey=cg_getQueryStringParam("filters");Curse.Alert.show(Localization.enter_bookmark_search,Localization.bookmark_search,Localization.name+":^save_search_name^^^20^20^<small>"+Localization.replace("enter_to_x_chars",20)+"</small>","saveSearch('"+browseKey+"','"+filterKey+"',event)^"+Localization.save+"|Curse.Alert.close()^"+Localization.cancel,null,null,null,true);}
function handleBookmarkChange(e){var savedSearchSel=cg_ge("fi_selBookmarks");var savedSearchValue=savedSearchSel.value;if(savedSearchValue==""){return;}
savedSearchValue=savedSearchValue.split("@@");var browseKey=savedSearchValue[0];var filterKey=savedSearchValue[1].replace(/\!\!/g,";");setTimeout("self.location = 'search.aspx?browse="+browseKey+"&filters="+filterKey+"'",1);}
function removeFromWishList(e,anchor,entityID,entityTypeID,wishlistContainerID){cg_cancelBubbling(e);if(!window.confirm(Localization.remove_from_wishlist)){return;}
anchor.style.visibility="hidden";var formString="?wishlist_entity_type_id="+entityTypeID;formString+="&wishlist_entity_id="+entityID;formString+="&wishlist_container_id="+wishlistContainerID;formString+="&ajax_action=remove_wishlist";var rowObject=anchor.parentNode;while(rowObject.tagName!="TR"){rowObject=rowObject.parentNode;}
Curse.Ajax.load("editWishlist.aspx"+formString,handleRemoveFromWishListPostback,'text','post');function handleRemoveFromWishListPostback(data){var postResult=data.split("|");if(postResult[0]==0){Curse.Alert.show(postResult[1]);var oContainer=rowObject.parentNode;oContainer.removeChild(rowObject);}
else{anchor.style.visibility="visible";Curse.Alert.show(postResult[1]);}}}
function deleteWishlistContainer(wishlistContainerID){if(!window.confirm(Localization.delete_wishlist)){return;}
var formString="?wishlist_container_id="+wishlistContainerID;formString+="&ajax_action=delete_wishlist";Curse.Ajax.load("editWishlist.aspx"+formString,handleDeleteWishlistPostback,'text','post');function handleDeleteWishlistPostback(data){var postResult=data.split("|");if(postResult[0]==0){window.location.reload(false);}
else{Curse.Alert.show(postResult[1]);}}}
function addToWishlist_prompt(anchor,entityID,entityTypeID){Curse.Alert.show(Localization.choose_wishlist,Localization.add_to_wishlist,Localization.existing+"^wishlist_container_id^^WishlistContainers."+entityTypeID+"|"+Localization.new_list+"^wishlist_container_name^^^^16^"+Localization.replace("enter_to_x_chars",16),"addToWishlist('"+entityID+"')^"+Localization.add+"|Curse.Alert.close()^"+Localization.cancel,null,null,null,true);}
function navToWishlist(){self.location="wishlist.aspx?id="+Curse.User.id;}
function navToLogin(){var relativeLocation=cg_getRelativeLocation();if(relativeLocation.toLowerCase().indexOf("login.aspx")>=0){self.location="login.aspx";}
else{self.location="login.aspx?referrer="+relativeLocation;}}
function addToWishlist(entityID){var formString="?wishlist_entity_type_id="+Curse.Page.entityTypeID;formString+="&wishlist_entity_id="+entityID;var oContainerID=cg_ge("wishlist_container_id");var wishlistContainerID=oContainerID.options[oContainerID.selectedIndex].value;var wishlistContainerName=cg_ge("wishlist_container_name").value;if(wishlistContainerID==""&&wishlistContainerName==""){return;}
var anchor=null;if(cg_ge("divWishlistButtonContainer")){anchor=cg_ge("divWishlistButtonContainer").childNodes[0];if(anchor){anchor.style.visibility="hidden";}}
formString+="&wishlist_container_id="+wishlistContainerID;formString+="&wishlist_container_name="+wishlistContainerName;formString+="&ajax_action=add_wishlist";Curse.Alert.close();Curse.Ajax.load("editWishlist.aspx"+formString,handleAddToWishlistPostback,'text','post');function handleAddToWishlistPostback(data){var postResult=data.split("|");if(postResult[0]==0){Curse.Alert.show(postResult[1]);var oContainer=anchor.parentNode;oContainer.innerHTML="<button class=\"smallButtonDisabled\" onclick=\"navToWishlist();\"><span>"+Localization.in_your_wishlist+"</span></button>";}
else{if(anchor){anchor.style.visibility="visible";}
Curse.Alert.show(postResult[1]);}}}
function setWishlistButton(){var buttonContainer=cg_ge("divWishlistButtonContainer");if(!buttonContainer){return;}
if(!Curse.User.id){buttonContainer.innerHTML="<button class=\"smallButton\" onmouseover=\"Curse.Tooltip.showTip('"+Localization.requires_account+"')\" onmouseout=\"Curse.Tooltip.hide();\" onclick=\"navToLogin()\" ><span>"+Localization.add_to_wishlist+"</span></button>";return;}
var currentWishlist=cg_getCookie("Login.Wishlist");if(currentWishlist){var arrCurrentWishlist=currentWishlist.split(",");if(arrCurrentWishlist.indexOf(Curse.Page.entityID+"")>=0){buttonContainer.innerHTML="<button class=\"smallButton\" onclick=\"navToWishlist();\"><span>"+Localization.in_your_wishlist+"</span></button>";return;}}
var entityLabel=Localization["this_entity"+Curse.Page.entityTypeID].toLowerCase();var tooltipHelp=" onmouseover=\"Curse.Tooltip.showTip('"+Localization.replace("click_here_add_wishlist",entityLabel)+"')\" onmouseout=\"Curse.Tooltip.hide();\"";buttonContainer.innerHTML="<button class=\"smallButton\""+tooltipHelp+"onclick=\"Curse.Tooltip.hide();addToWishlist_prompt(this,"+Curse.Page.entityID+","+Curse.Page.entityTypeID+")\"><span>"+Localization.add_to_wishlist+"</span></button>";}
function cg_showUpgradeTooltip(){if(!cg_ge("pinnedCompareSelect")._relatedID){cg_changeUpgradeRelatedID();}
Curse.AION.Tooltip.handleItemLinkOver(cg_ge("pinnedCompareSelect"),{noCompare:true});}
function cg_changeUpgradeRelatedID(){var selVal=cg_ge("pinnedCompareSelect").value;var itemids=selVal.split("-");cg_ge("pinnedCompareSelect")._relatedID=itemids[0];}
function cg_findWishlist(wishlistID){var dg=cg_datagrids["wishlist-"+wishlistID];var url="finder.aspx?idList=";for(var i=0;i<dg.data.length;i++){url+=dg.data[i].id+",1|"}
document.location=url;}
function cg_itemList(dgid,override){var dg=cg_datagrids[dgid];if(override==null&dg.data.length>25){Curse.Alert.show(Localization.only_find_25,Localization.finder_limit,"","cg_itemList('"+dgid+"',true)^"+Localization.ok+"|Curse.Alert.close()^"+Localization.cancel,null,null,null,true);return;}
var url="finder.aspx?idList=";for(var i=0;i<dg.data.length&&i<25;i++){url+=dg.data[i].id+",1|"}
document.location=url;}
function cg_itemListRecipe(e,type,override){var data;if(type==null){type=1;}
var inp=cg_ge("recipeIncludeSubs");if(inp.checked){type=2;}
if(type==1){data=cg_recipeList;}
else{data=cg_recipeListSubs;}
if(override==null&data.length>25){Curse.Alert.show(Localization.only_find_25,Localization.finder_limit,"","cg_itemListRecipe(null,"+type+",true)^"+Localization.ok+"|Curse.Alert.close()^"+Localization.cancel,null,null,null,true);return;}
var url="finder.aspx?idList=";for(var i=0;i<data.length&&i<25;i++){url+=data[i]+",1|"}
document.location=url;}
function cg_itemWishList(dgid,override){var dg=cg_datagrids[dgid];if(override==null&dg.data.length>25){Curse.Alert.show(Localization.only_save_25,Localization.wishlist_limit,"","cg_itemWishList('"+dgid+"',true)^"+Localization.ok+"|Curse.Alert.close()^"+Localization.cancel,null,null,null,true);return;}
var entityList="";for(var i=0;i<dg.data.length&&i<25;i++){entityList+=dg.data[i].id+";"}
addToWishlist_prompt(null,entityList,1);}
function cg_handleItemPremSelect(dgid,evt){if(cg_datagrids[dgid]==null){return;}
var optSelect=cg_datagrids[dgid].premSelect;if(optSelect!=null){if(optSelect.value=="1"){cg_itemList(dgid);}
else if(optSelect.value=="2"){cg_itemWishList(dgid);}}}
function setEditButton(){if(Curse.User.isModerator){var container=cg_ge("divEditButtonContainer");var button=cg_ce("button");button.onclick=goToEdit;var sp=cg_ce("span");sp.innerHTML=Localization.edit_this_entry;cg_ae(button,sp);cg_ae(container,button);}}
function goToEdit(){document.location="editEntity.aspx?type="+Curse.Page.entityTypeID+"&id="+Curse.Page.entityID;}
function cg_handleModClick(dataid,record){if(!cg_mods[dataid]){cg_mods[dataid]=[];}
if(cg_mods[dataid].indexOf(record.id)==-1){cg_mods[dataid].push(record.id);}
else{cg_mods[dataid].splice(cg_mods[dataid].indexOf(record.id),1);}}
function cg_handleModToolSelect(optid){var url="ajaxModEdit.aspx?editType="+cg_ge("modToolSelect").value;url+="&table="+optid+"&idList=";for(var i=0;i<cg_mods[optid].length;i++){url+=cg_mods[optid][i]+";";}
url+="&entityid="+Curse.Page.entityID;Curse.Ajax.load(url,cg_handleModEdit,'text','post');}
function cg_handleModEdit(data){Curse.Alert.show(data);}
function attachAssistant(id,type){Curse.SearchAssistant.attach(id,false,type);}
function cg_showFindRecipe(){if(Curse.User.isPremium){var div=cg_ge("divFindComponents");var btn=cg_ce("button");var sp=cg_ce("span");btn.onclick=cg_itemListRecipe.bind();sp.innerHTML=Localization.find_mats;cg_ae(btn,sp);cg_ae(div,btn);var inp=cg_ce("input");inp.id="recipeIncludeSubs";inp.type="checkbox";var sp2=cg_ce("span");sp2.innerHTML=Localization.include_sub_mats;sp2.className="include-mats-span";cg_ae(div,inp);cg_ae(div,sp2);}}
function setSelectedLink(linkContainer,link,tagName,regState,selState){if(regState==null){regState="";}
if(selState==null){selState="selected";}
if(tagName==null){tagName="A";}
links=linkContainer.getElementsByTagName(tagName);for(i=0;i<links.length;i++){links[i].className=regState;}
link.className=selState;}
function cg_pinScale(){var scale=Curse.Searchfilter.getWeights(false);cg_setCookie("Settings.PinnedScale",scale);Curse.Alert.show("Scale Pinned");}
function cg_loadUpgrades(itemid,itemslot){if(cg_getCookie("Settings.PinnedScale")!=null){var sortColumns=['-weightScore'];cg_queueAjaxRequest("ajaxupgrade.aspx?id="+itemid+"-"+itemslot+"&weights="+cg_getCookie("Settings.PinnedScale"),Curse.DataGrid.handleAjaxLoad,'text','get',{hideEmpty:true,message:Localization.no_upgrades_scale,displayColumns:['name'],sort:sortColumns,template:"items",id:'upgrades',name:Localization.upgrades},true);}}
function cg_loadEnchants(){if(cg_getCookie("Settings.PinnedScale")!=null){var sortColumns=['-weightScore'];cg_queueAjaxRequest("ajaxupgrade.aspx?&weights="+cg_getCookie("Settings.PinnedScale"),Curse.DataGrid.handleAjaxLoad,'text','get',{hideEmpty:true,message:Localization.no_stones_found,displayColumns:['name'],sort:sortColumns,template:"items",id:'enchants',name:Localization.manastones},true);}}
function SetEditor(obj,rows,cols,name,val,stripExtraLines){var container=cg_ge(obj);val=val.replace("<br>","\n","g");var editorDiv=Curse.TextEditor.getForm("noform","formCommentEditor","",name,val,"",70,15,null,true,"none",null,false,true,stripExtraLines);editorDiv.className="editor";container.appendChild(editorDiv);}
function processTooltipLinkPrompt(editorID,tag,e,inputid){var myAlert=cg_ge("alert");var promptForm=myAlert.getElementsByTagName("form")[0];var tooltipID=promptForm.ID.value;var editor=cg_ge(editorID);Curse.Alert.close();Curse.TextEditor.applyElement(editor,tag,{"tooltipID":tooltipID},inputid);}
function displayTooltipLinkPrompt(e,editorID,tag,tooltipDescription,inputLabel,inputid){var myEvent=cg_getEvent(e);var src=cg_getEventTarget(e);var srcPosition=cg_getPosition(src);var input;var defaultID;if(inputid!=null){input=cg_ge(inputid);}
else{var form=src.parentNode.parentNode.getElementsByTagName("form")[0];input=form.getElementsByTagName("textarea")[0];}
defaultID=Curse.TextEditor.getSelectedText(input);Curse.Alert.show(Localization.enter_tooltip_id,Localization.replace("create_tooltip",tooltipDescription),inputLabel+"^ID^"+defaultID,"processTooltipLinkPrompt('"+editorID+"','"+tag+"',event,'"+inputid+"')^"+Localization.ok+"|Curse.Alert.close()^"+Localization.cancel,src,srcPosition.y,srcPosition.x+src.offsetWidth+2);}
function cg_inputExpand(inputid){var inp=cg_ge("input-box-"+inputid);var button=cg_ge("expand_"+inputid);if(inp!=null){if(button.innerHTML==Localization.expand){inp.parentNode.style.width="200%";button.innerHTML=Localization.contract;}
else{inp.parentNode.style.width="473px";button.innerHTML=Localization.expand;}}}
function hideEditLink(userid,link){if((!Curse.User.isModerator)&&(Curse.User.id!=userid)){cg_ge(link).style.display="none";}
if(Curse.User.id==0){cg_ge(link).style.display="none";}}
function deleteScreenshot(sid){Curse.Ajax.load("ajaxDeleteScreenshot.aspx?id="+sid,handleScreenshotDelete,'text','post');function handleScreenshotDelete(data){Curse.Alert.show(data);}}
function cg_moveMapPointPrompt(e,id){var elemPos=cg_getPosition(cg_ge("map_"+id));var y=Math.floor(Math.round(((Curse.Mouse.y-elemPos.y)/(cg_ge("map_"+id).offsetHeight*1.0))*10.0*100.0)/10.0);var x=Math.floor(Math.round(((Curse.Mouse.x-elemPos.x)/(cg_ge("map_"+id).offsetWidth*1.0))*10.0*100.0)/10.0);Curse.Alert.show("Are you sure you want to edit this Map's location?","Edit Map Location","","cg_moveMapPoint('"+id+"',"+x+","+y+")^"+Localization.ok+"|Curse.Alert.close()^"+Localization.cancel);}
function cg_moveMapPoint(id,x,y){Curse.Alert.close();cg_ge(id+"_1").value=x;cg_ge(id+"_2").value=y;cg_ge("pin_"+id).style.left=x+"%";cg_ge("pin_"+id).style.top=y+"%";}
function cg_getTextCutoff(text,length){}
var cg_TextPages={};function cg_showQuest(otext,title,type,page,e){Curse.Alert.show("<div class='questDialogPane'><div class='questDialogText' id='questText'>"+otext+"</div></div>",title,"");if(cg_TextPages[type]==null){cg_TextPages[type]={};}
if(cg_TextPages[type][page]!=null){var ntext=otext.substring(cg_TextPages[type][page].start,cg_TextPages[type][page].end);cg_ge("questText").innerHTML=ntext;if(cg_TextPages[type][page].start>0){var buttonContainer=cg_ge("alertButtonContainer");var next=cg_ce("button");next.onclick=cg_showQuest.bind(next,otext,title,type,page-1);next.className="smallButton";var nextText=cg_ce("span");nextText.innerHTML="Previous";cg_ae(next,nextText);buttonContainer.insertBefore(next,buttonContainer.firstChild);}
if(cg_TextPages[type][page].end<otext.length){var buttonContainer=cg_ge("alertButtonContainer");var next=cg_ce("button");next.onclick=cg_showQuest.bind(next,otext,title,type,page+1);next.className="smallButton";var nextText=cg_ce("span");nextText.innerHTML="Next";cg_ae(next,nextText);cg_ae(buttonContainer,next);}}
else{cg_TextPages[type][page]={};var text=cg_ge("questText");var fullText=text.innerHTML;var len=fullText.length;var page1=text.innerHTML;var start=0;var end=0;if(page!=1){start=cg_TextPages[type][page-1].end;len-=start;}
text.innerHTML=page1.substring(start);page1=text.innerHTML;while(text.clientHeight>=330){page1=page1.substring(0,page1.length-50);var endingNewLine=page1.lastIndexOf("<br>");if(endingNewLine>0){page1=page1.substring(0,endingNewLine+4);}
text.innerHTML=page1;}
end=start+page1.length;cg_TextPages[type][page].text=page1;cg_TextPages[type][page].start=start;cg_TextPages[type][page].end=end;if(text.innerHTML.length<len){var buttonContainer=cg_ge("alertButtonContainer");var next=cg_ce("button");next.onclick=cg_showQuest.bind(next,otext,title,type,page+1);next.className="smallButton";var nextText=cg_ce("span");nextText.innerHTML="Next";cg_ae(next,nextText);cg_ae(buttonContainer,next);}
if(start>0){var buttonContainer=cg_ge("alertButtonContainer");var next=cg_ce("button");next.onclick=cg_showQuest.bind(next,otext,title,type,page-1);next.className="smallButton";var nextText=cg_ce("span");nextText.innerHTML="Previous";cg_ae(next,nextText);buttonContainer.insertBefore(next,buttonContainer.firstChild);}}}
function cg_updateMap(inputID){if(cg_isNumeric(cg_ge(inputID+"_3").value)){cg_ge("map_"+inputID).firstChild.style.background=" transparent url(maps/en/"+cg_ge(inputID+"_3").value+"-1.jpeg)";}
else{var mapID=cg_getLookupValue("location_name",cg_ge(inputID+"_3").value);if(mapID!=""){cg_ge("map_"+inputID).firstChild.style.background=" transparent url(maps/en/"+mapID+"-1.jpeg)";}}}
var cg_itemFilterValue="0";function cg_handleItemOptionSelect(grid,id){if(grid.oldData==null){grid.oldData=grid.data;}
var id=cg_ge("itemFilterSelect").value;var newData=[];if(id=="1"){for(var i=0;i<grid.oldData.length;i++){var item=cg_items[grid.oldData[i].id];if(item!=null){if(item.reqs!=null){if(hasReq(item.reqs)&&memberCheck(grid.oldData[i].members)){newData.push(grid.oldData[i]);}}}}}
else{newData=grid.oldData;}
cg_itemFilterValue=id;Curse.DataGrid.addOrReplaceData({data:newData,hideMessage:true,parent:"results",id:grid.id,message:"You do not have the requirements for any items shown"});}
var SKILL_DEFENSE=2;var SKILL_HITPOINTS=4;var SKILL_PRAYER=6;var SKILL_SUMMONING=24;var SKILL_ATTACK=1;var SKILL_STRENGTH=3;var SKILL_RANGED=5;var SKILL_MAGIC=7;var NPCLevel_Low=1;var NPCLevel_Almost=2;var NPCLevel_Equal=3;var NPCLevel_Hard=4;var NPCLevel_VeryHard=5;function getNPCCombatColor(combatLevel,npcLevel){var diff=npcLevel-combatLevel;if(diff>6){return 5;}
if(diff>0){return 4;}
if(diff==0){return 3;}
if(diff>=-6){return 2;}
return 1;}
var cg_combatLevel=null;function calculateCombatLevel(){if(cg_combatLevel!=null){return cg_combatLevel;}
var a=getSkillLevel(SKILL_DEFENSE)*100;var b=getSkillLevel(SKILL_HITPOINTS)*100;var c;var d;var prayer=getSkillLevel(SKILL_PRAYER);var summon=getSkillLevel(SKILL_SUMMONING);if(isOdd(prayer))
{c=(prayer-1)*50;}
else
{c=prayer*50;}
if(isOdd(summon))
{d=(summon-1)*50;}
else
{d=summon*50;}
var baseCombat=(a+b+c+d)/400;var e=getSkillLevel(SKILL_ATTACK)*130;var g=getSkillLevel(SKILL_STRENGTH)*130;var h;var i;var ranged=getSkillLevel(SKILL_RANGED);var magic=getSkillLevel(SKILL_MAGIC);if(isOdd(ranged)){h=(ranged*195)-65;}
else{h=ranged*195;}
if(isOdd(magic)){i=(magic*195)-65;}
else{i=magic*195;}
var meleeLevel=(e+g)/400;var rangedLevel=h/400;var magicLevel=i/400;var finalLevel=meleeLevel;if(rangedLevel>finalLevel){finalLevel=rangedLevel;}
if(magicLevel>finalLevel){finalLevel=magicLevel;}
finalLevel+=baseCombat;cg_combatLevel=Math.floor(finalLevel);return Math.floor(finalLevel);}
function isOdd(num){if((num%2)==0)
{return false;}
return true;}
function getSkillLevel(skill)
{var value=getSkillValue(skill);if(value==null)
{return 1;}
return value*1;}
var cg_hiddenQuests;function updateHiddenQuests(data,func){eval(data);if(func){func();}}
function addHiddenQuest(questid,event){cg_cancelBubbling(event);if(cg_hiddenQuests==null){cg_hiddenQuests=questid.toString();}
else if(cg_hiddenQuests==''){cg_hiddenQuests=questid.toString();}
else{cg_hiddenQuests+=","+questid;}
sendHiddenQuests();cg_ge("itemFilterSelect").onchange();}
function sendHiddenQuests(){var url="ajaxQuestHider.aspx?action=update&quests="+cg_hiddenQuests;Curse.Ajax.load(url,function(data){},'text','post');}
function removeHiddenQuest(questid,event){Curse.Tooltip.hide();cg_cancelBubbling(event);if(cg_hiddenQuests==null){return;}
var questList=cg_hiddenQuests.split(",");if(questList.indexOf(questid.toString())>=0)
{questList.splice(questList.indexOf(questid.toString()),1);cg_hiddenQuests=questList.join(",");sendHiddenQuests();}
var hideLink=cg_ge("hide-link-"+questid);if(hideLink){hideLink.src="img/hide.gif";hideLink.onmouseover=Curse.Tooltip.showTip.bind(hideLink,"Hide this Quest");hideLink.onmouseout=Curse.Tooltip.hide;hideLink.onclick=addHiddenQuest.bind(hideLink,questid);}
cg_ge("itemFilterSelect").onchange();}
function questIsHidden(questid){if(cg_hiddenQuests==null){if(cg_hiddenQuests==null){return false;}}
var questList=cg_hiddenQuests.split(",");return(questList.indexOf(questid.toString())>=0);}
function cg_handleQuestOptionSelect(grid,id){if(grid.oldData==null){grid.oldData=grid.data;}
var id=cg_ge("itemFilterSelect").value;var newData=[];if(id=="1"){for(var i=0;i<grid.oldData.length;i++){if(grid.oldData[i].reqs!=null){if(hasReq(grid.oldData[i].reqs)&&memberCheck(grid.oldData[i].members)&&!questIsHidden(grid.oldData[i].id)){newData.push(grid.oldData[i]);}}}}
else if(id=="2"){if(cg_hiddenQuests!=null){for(var i=0;i<grid.oldData.length;i++){if(questIsHidden(grid.oldData[i].id)){newData.push(grid.oldData[i]);}}}}
else if(id=="3"){cg_hiddenQuests="";sendHiddenQuests();cg_itemFilterValue="0";newData=grid.oldData;Curse.DataGrid.addOrReplaceData({data:newData,hideMessage:true,parent:"results",id:grid.id,message:"You do not have the requirements for any quests shown"});return;}
else{if(cg_hiddenQuests!=null){for(var i=0;i<grid.oldData.length;i++){if(!questIsHidden(grid.oldData[i].id)){newData.push(grid.oldData[i]);}}}
else{newData=grid.oldData;}}
cg_itemFilterValue=id;Curse.DataGrid.addOrReplaceData({data:newData,hideMessage:true,parent:"results",id:grid.id,message:"You do not have the requirements for any quests shown"});if(id=="2")
{for(var i=0;i<grid.oldData.length;i++){if(questIsHidden(grid.oldData[i].id)){newData.push(grid.oldData[i]);var hideLink=cg_ge("hide-link-"+grid.oldData[i].id);if(hideLink){hideLink.src="img/unhide.gif";hideLink.onmouseover=Curse.Tooltip.showTip.bind(hideLink,"Unhide this Quest");hideLink.onmouseout=Curse.Tooltip.hide;hideLink.onclick=removeHiddenQuest.bind(hideLink,grid.oldData[i].id);}}}}}
function cg_handleNPCOptionSelect(grid,id){if(grid.oldData==null){grid.oldData=grid.data;}
var id=cg_ge("itemFilterSelect").value;var newData=[];if(id=="1"){for(var i=0;i<grid.oldData.length;i++){if(!grid.oldData[i].members){newData.push(grid.oldData[i]);}}}
else{newData=grid.oldData;}
cg_itemFilterValue=id;Curse.DataGrid.addOrReplaceData({data:newData,hideMessage:true,parent:"results",id:grid.id,message:"You do not have the requirements for any monsters shown"});}
function memberCheck(members){if(members&&cg_getCookie("Login.MemberStatus")!="1"){return false;}
return true;}
function hasReq(reqs){for(var i=0;i<reqs.length;i++){var reqCookie=getSkillValue(reqs[i].id);if(reqCookie==null){return false;}
if((reqCookie*1)<reqs[i].val){return false;}}
return true;}
function item_extraMenu(refineBox,grid){var optSelect=cg_ce("select");var findItems=cg_ce("option");var blankOption=cg_ce("option");optSelect.id="itemFilterSelect";optSelect.onchange=cg_handleItemOptionSelect.bind(optSelect,grid);blankOption.value="0";if(cg_itemFilterValue=="0"){blankOption.selected=true;}
blankOption.innerHTML="Options";findItems.value="1";if(cg_itemFilterValue=="1"){findItems.selected=true;}
findItems.innerHTML="Filter Out Unusable Items";cg_ae(optSelect,blankOption);cg_ae(optSelect,findItems);optSelect.className="itemToolSelect";cg_ae(refineBox,optSelect);}
var questLoaded=false;var questOptSelect;function quest_extraMenu(refineBox,grid){var optSelect=cg_ce("select");questOptSelect=optSelect;var findItems=cg_ce("option");var showHidden=cg_ce("option");var blankOption=cg_ce("option");var unhideAll=cg_ce("option");optSelect.id="itemFilterSelect";optSelect.onchange=cg_handleQuestOptionSelect.bind(optSelect,grid);blankOption.value="0";if(cg_itemFilterValue=="0"){blankOption.selected=true;}
blankOption.innerHTML="Options";findItems.value="1";if(cg_itemFilterValue=="1"){findItems.selected=true;}
findItems.innerHTML="Filter Out Unusable Quests";showHidden.value="2";showHidden.innerHTML="Show Hidden Quests";if(cg_itemFilterValue=="2"){showHidden.selected=true;}
unhideAll.value="3";unhideAll.innerHTML="Unhide All Quests";if(cg_itemFilterValue=="3"){unhideAll.selected=true;}
cg_ae(optSelect,blankOption);if(cg_getCookie("Login.SkillData")!=null){cg_ae(optSelect,findItems);}
cg_ae(optSelect,showHidden);cg_ae(optSelect,unhideAll);optSelect.className="itemToolSelect";cg_ae(refineBox,optSelect);if(!questLoaded&&document.location.toString().indexOf("search.aspx?browse=4")>=0)
{}}
function npc_extraMenu(refineBox,grid){var optSelect=cg_ce("select");var findItems=cg_ce("option");var blankOption=cg_ce("option");optSelect.id="itemFilterSelect";optSelect.onchange=cg_handleNPCOptionSelect.bind(optSelect,grid);blankOption.value="0";if(cg_itemFilterValue=="0"){blankOption.selected=true;}
blankOption.innerHTML="Options";findItems.value="1";if(cg_itemFilterValue=="1"){findItems.selected=true;}
findItems.innerHTML="Hide Member Monsters";cg_ae(optSelect,blankOption);cg_ae(optSelect,findItems);optSelect.className="itemToolSelect";cg_ae(refineBox,optSelect);}
function location_extraMenu(refineBox,grid){if(cg_getCookie("Login.MemberStatus")=="0"){var optSelect=cg_ce("select");var findItems=cg_ce("option");var blankOption=cg_ce("option");optSelect.id="itemFilterSelect";optSelect.onchange=cg_handleNPCOptionSelect.bind(optSelect,grid);blankOption.value="0";if(cg_itemFilterValue=="0"){blankOption.selected=true;}
blankOption.innerHTML="Options";findItems.value="1";if(cg_itemFilterValue=="1"){findItems.selected=true;}
findItems.innerHTML="Hide Member Monsters";cg_ae(optSelect,blankOption);cg_ae(optSelect,findItems);optSelect.className="itemToolSelect";cg_ae(refineBox,optSelect);}}
var cg_skillData=null;function getSkillData(charName,func){var url="ajaxCharStats.aspx?name="+charName;Curse.Ajax.load(url,function(data){handlecharStats(data,func);},'text','post');function handlecharStats(data,func){eval("cg_skillData = "+data);func();}}
function getSkillValue(skill,type){if(cg_skillData==null){if(cg_getCookie("Login.SkillData")==null){return 1;}
eval("cg_skillData = "+cg_getCookie("Login.SkillData"));}
if(cg_skillData[skill]==null){return 1;}
if(type=="xp"){if(cg_skillData[skill].xp==-1){return 0;}
return cg_skillData[skill].xp;}
if(cg_skillData[skill].level==-1){return 1;}
return cg_skillData[skill].level;}
function cg_deleteEntity(entityID,entityTypeID,template){if(!window.confirm("Are you sure you want to delete this entity?")){return;}
var url="ajaxDeleteEntity.aspx?type="+entityTypeID+"&id="+entityID;Curse.Ajax.load(url,function(data){handleEntityDelete(data,entityID,template);},'text','post');function handleEntityDelete(data,entityID,template){var dataParts=data.split("|");if(dataParts[0]=="0"||dataParts[0]==""){Curse.Alert.show(dataParts[1]);return;}
Curse.Alert.show(dataParts[1]);if(template!=""){var spliceIndex=-1;var grid=cg_datagrids[template];for(var i=0;i<grid.data.length;i++){if(grid.data[i].id==entityID){spliceIndex=i;break;}}
if(spliceIndex>=0){grid.data.splice(spliceIndex,1);}
grid.renderRows();}}}
function cg_insertHtml(containerID,text){Curse.TextEditor.applyElementHtml(null,text,containerID);cg_ge(containerID).innerHTML+=text;}
function cg_createDirectory(){var dir="";if(cg_ge("directorySelect").value!=""){dir=cg_ge("directorySelect").value+"\\";}
dir+=cg_ge("newDirectoryName").value;var url="ajaxUpload.aspx?newDirectoryName="+dir;Curse.Ajax.load(url,handleDirectoryCreate,'text','post');function handleDirectoryCreate(data){var dataparts=data.split("|");if(dataparts[0]=="1"){var opt=cg_ce("option");opt.value=cg_ge("directorySelect").value+"\\"+cg_ge("newDirectoryName").value;opt.innerHTML=cg_ge("directorySelect").value+"\\"+cg_ge("newDirectoryName").value;cg_ae(cg_ge("directorySelect"),opt);cg_ge("newDirectoryName").value="";Curse.Alert.show(dataparts[1]);}
else{Curse.Alert.show(dataparts[1]);}}}
function cg_handleFileUpload(file,response){var dataParts=response.split("|");Curse.Alert.show(dataParts[1]);}
function cg_getStat(stats,id){if(stats==null){return 0;}
for(var i=0;i<stats.length;i++)
{if(stats[i].id==id)
{return stats[i].val;}}
return 0;}
function cg_compareStat(a,b,stat){var astat=0;var bstat=0;if(a.stats!=null){astat=cg_getStat(a.stats,stat);}else{var aitem=cg_items[a.id];if(aitem!=null){astat=cg_getStat(aitem.stats,stat);}}
if(b.stats!=null){bstat=cg_getStat(b.stats,stat);}else{var bitem=cg_items[b.id];if(bitem!=null){bstat=cg_getStat(bitem.stats,stat);}}
return astat-bstat;}
function cg_formatNumber(number){var millions=null;var thousands=null;var others=null;if(number>=1000*1000){millions=Math.floor(number/(1000*1000));number-=millions*(1000*1000);thousands=0;}
if(number>=1000){thousands=Math.floor(number/1000);number-=thousands*1000;}
var ret="";if(millions!=null){ret=millions+",";}
if(thousands!=null){if(millions!=null){if(thousands<100){ret+="0";}
if(thousands<10){ret+="0";}}
ret+=thousands+",";if(number<100){ret+="0";}
if(number<10){ret+="0";}}
ret+=number;return ret;}
function cg_compareItemPrompt(){var pophtml="Please enter in a Comma seperated list of item names, or ids to compare this item to<br><br><form onkeydown=\"checkCompareEnter(event);\" onsubmit=\"return false;\"\"><table><tr><td class=\"label\">Item Name</td><td><td class=\"alertInput\"><input type=\"text\"  id=\"item_name_input\"></td></tr></table></form>";Curse.Alert.show(pophtml,"Item Comparison","","cg_navToItemComparison()^Submit|Curse.Alert.close()^"+Localization.cancel,null,null,null,true);cg_ge("item_name_input").onclick=attachAssistant.bind(cg_ge("item_name_input"),"item_name_input",1);}
function checkCompareEnter(event){if(event.keyCode==13){cg_navToItemComparison();}}
function cg_navToItemComparison()
{var items=cg_ge("item_name_input").value;document.location="itemComparison.aspx?items="+Curse.Page.entityID+","+items;}
function cg_cluePrompt(){var pophtml="Please enter the clue text you were given.<br><br><form id='clueForm'><table><tr><td class=\"label\">Clue</td><td><td class=\"alertInput\"><input type=\"text\" id=\"clue_name_input\"></td></tr></table></form>";Curse.Alert.show(pophtml,"Clue Search","","cg_clueSearch()^Submit|Curse.Alert.close()^"+Localization.cancel+"|cg_navToClueGuide()^Puzzles and Maps",null,null,null,true);cg_ge("clue_name_input").onclick=attachAssistant.bind(cg_ge("clue_name_input"),"clue_name_input",140);}
function cg_setClueAssist(){cg_ge("clue_name_input").onclick=attachAssistant.bind(cg_ge("clue_name_input"),"clue_name_input",140);}
function cg_navToClueGuide()
{document.location="guide.aspx?id=57";}
function cg_testClue(event){if(event.keyCode==13){cg_clueSearch()}}
function cg_clueSearch(){if(cg_ge("clue_name_input").value==""){Curse.Alert.show("You must enter a clue","Clue Search","","cg_cluePrompt()^Ok|Curse.Alert.close()^"+Localization.cancel,null,null,null,true);}
var url="ajaxClueSearch.aspx?clue="+cg_ge("clue_name_input").value.replace("?","|");Curse.Ajax.load(url,handleClueData,'text','post');}
function handleClueData(data){var dataParts=data.split("|");if(dataParts[0]!="0"){document.location="treasureClue.aspx?id="+dataParts[0];}
else{Curse.Alert.show(dataParts[1]);}}
function cg_displayNewsCat(catid){for(var i=1;i<5;i++){cg_ge("news-box-"+i).style.display="none";cg_ge("news-tab-"+i).className="uncap";}
cg_ge("news-box-"+catid).style.display="block";cg_ge("news-tab-"+catid).className="selected";}
function cg_initTicker(){var url="ajaxTicker.aspx";Curse.Ajax.load(url,handleTickerData,'text','post');function handleTickerData(data){eval(data);if(cg_tickerData!=null){if(cg_tickerData.length>0){cg_startTicker(true);setInterval("cg_startTicker(true)",5000);}}}}
function cg_startTicker(forward){if(cg_tickerData.length==0){return;}
if(forward){cg_tickerStep++;}
else{cg_tickerStep--;}
if(cg_tickerStep>=cg_tickerData.length){cg_tickerStep=0;}
if(cg_tickerStep<0)
{cg_tickerStep=cg_tickerData.length-1;}
cg_ge("tickerText").innerHTML=cg_tickerData[cg_tickerStep];}
function cg_navToCorrection(){if(Curse.Page)
{var url="submitCorrection.aspx?entityType="+Curse.Page.entityTypeID+"&entityID="+Curse.Page.entityID;document.location=url;}}
function cg_displayTime(time){var timeParts=time.split(" ");var spTime=timeParts[1].split(":");var d=new Date();var lTime=d.getTime();var toff=d.getTimezoneOffset();spTime[0]=(spTime[0]*1)-(toff/60);if(spTime[0]<0){spTime[0]=12-(spTime[0]*-1);}
return spTime[0]+":"+spTime[1];}
function cg_searchExample(){cg_ge("input-search-zybez").value=cg_exampleSearches[cg_exampleIndex];cg_exampleIndex++;if(cg_exampleIndex>=cg_exampleSearches.length){cg_exampleIndex=0;}}
function cg_initSearchExamples(start){if(start){cg_searchExample();}
cg_exampleInterval=setInterval("cg_searchExample()",1500);}
function cg_cancelExamples(){cg_ge("input-search-zybez").value="";clearInterval(cg_exampleInterval);}
function cg_initHiddenQuests(func){var url="ajaxQuestHider.aspx?action=get";Curse.Ajax.load(url,function(data){updateHiddenQuests(data,func);},'text','post');}
function cg_startQuestHiding(){if(document.location.toString().indexOf("search.aspx?browse=4")>=0&&questOptSelect!=null){questLoaded=true;cg_initHiddenQuests(questOptSelect.onchange);}}
var cg_mods={};var cg_moddableTemplates=["items","npcs","quests","locations","guides","calc_infos","calcs","itemsets","tomes","clues","field_edits"];var stripLinkRegex=/<a.*?>/;Curse.DataGrid.sharedColumns={dropCount:{id:"dropCount",label:Localization.count,width:"10%",value:"lootCount",render:function(record,td){if(record.totalLootCount){var d=cg_ce("div");d.className="small r0";cg_ae(d,cg_ct(" "+Localization.of+" "+record.totalLootCount));cg_ae(td,d);}
return record.lootCount;}},dropRate:{id:"dropRate",label:"Drop Rate",width:"10%",value:"percent",render:function(record,td){var formattedPercent;if(record.percent<0.01){formattedPercent=record.percent.toFixed(4);}
else if(record.percent<1.0){formattedPercent=record.percent.toFixed(2);}
else if(record.percent>=1.95){formattedPercent=record.percent.toFixed(0);}
else{formattedPercent=parseFloat(record.percent.toFixed(1));}
var count=this.totalLootCount||record.totalLootCount;td.innerHTML=formattedPercent+"%<br><small>"+record.lootCount+" of "+count+"</small>";}},wishlistDate:{id:"wishlistDate",label:Localization.added,width:"15%",value:"wishlistDate",render:function(record,td,tr){return cg_getShortFriendlyTime(record.wishlistDate);}},userName:{id:"userName",label:"User Name",value:"userName",render:function(record,td,tr){if(cg_ventUserData[record.id].userName!=null){return cg_ventUserData[record.id].userName;}}},date:{id:"date",label:Localization.added,width:"15%",value:"date",render:function(record,td,tr){if(record.date!=null){return cg_getShortFriendlyTime(record.date);}}},wishlistEdit:{id:"wishlistEdit",label:"",width:"100px",value:"percent",sortable:false,render:function(record,td,tr){td.innerHTML="<button class=\"smallButton\" onclick=\"removeFromWishList(event,this,"+record.id+","+this.wishlistType+","+record.wishlistContainer+");\"><span>"+Localization.remove+"</span></button>";}},firstSeen:{id:"firstSeen",label:Localization.patch,width:"80px",value:"firstSeen",render:function(record,td,tr){return Curse.Lookup.patch_label[record.firstSeen];}},updateDate:{id:"updateDate",label:Localization.updated,width:"15%",value:"date",render:function(record,td,tr){return cg_getShortFriendlyTime(record.date);}},modField:{id:"modField",label:"Select",width:"15%",render:function(record,td,tr){var inp=cg_ce("input");inp.type="checkbox";inp.onclick=cg_handleModClick.bind(null,this.id,record);cg_ae(td,inp);}},approve:{id:"approve",label:"Approve",render:function(record,td,tr){var button=cg_ce("button");var sp=cg_ce("span");sp.innerHTML="Approve";var entityType=record.entityType;if(entityType==null){entityType=this.template.entityType;}
button.onclick=sendSubmission.bind(sp,"approve",entityType,this.id,record.id);cg_ae(button,sp);cg_ae(td,button);}},correctiondelete:{id:"correctiondelete",label:"Deny",render:function(record,td,tr){var button=cg_ce("button");var sp=cg_ce("span");sp.innerHTML="Deny";var entityType=record.entityType;if(entityType==null){entityType=this.template.entityType;}
button.onclick=sendSubmission.bind(sp,"deny",entityType,this.id,record.id);button.onmouseover=Curse.Tooltip.showTip.bind(button,Localization.deny_correction);button.onmouseout=Curse.Tooltip.hide;cg_ae(button,sp);cg_ae(td,button);}},deny:{id:"deny",label:"Complete",render:function(record,td,tr){var button=cg_ce("button");var sp=cg_ce("span");sp.innerHTML="Fixed";var entityType=record.entityType;if(entityType==null){entityType=this.template.entityType;}
button.onclick=sendSubmission.bind(sp,"complete",entityType,this.id,record.id);cg_ae(button,sp);cg_ae(td,button);}},entitydeny:{id:"entitydeny",label:"Deny",render:function(record,td,tr){var button=cg_ce("button");var sp=cg_ce("span");sp.innerHTML="Deny";var entityType=record.entityType;if(entityType==null){entityType=this.template.entityType;}
button.onclick=sendSubmission.bind(sp,"deny",entityType,this.id,record.id);cg_ae(button,sp);cg_ae(td,button);}},deletebyip:{id:"deletebyip",label:"Delete all by IP",render:function(record,td,tr){var button=cg_ce("button");var sp=cg_ce("span");sp.innerHTML="Delete by IP";button.onclick=sendDeleteByIP.bind(this,record.ip,this.id);cg_ae(button,sp);cg_ae(td,button);}},todo:{id:"todo",label:"Save For Later",render:function(record,td,tr){var button=cg_ce("button");var sp=cg_ce("span");sp.innerHTML="Save";button.onclick=createTodo.bind(this,record.id,this.id);button.onmouseover=Curse.Tooltip.showTip.bind(button,Localization.correction_save);button.onmouseout=Curse.Tooltip.hide;cg_ae(button,sp);cg_ae(td,button);}},activityCount:{id:"activityCount",label:"# of Actions",sortFunc:function(a,b){var ascore=0;var bscore=0;if(cg_userStats[a.id]){ascore=cg_userStats[a.id].activityCount;}
if(cg_userStats[b.id]){bscore=cg_userStats[b.id].activityCount;}
return ascore-bscore;},render:function(record,td,tr){if(cg_userStats[record.id]){return cg_userStats[record.id].activityCount;}}},activityScore:{id:"activityPoints",label:"Action Score",sortFunc:function(a,b){var ascore=0;var bscore=0;if(cg_userStats[a.id]){ascore=cg_userStats[a.id].activityScore;}
if(cg_userStats[b.id]){bscore=cg_userStats[b.id].activityScore;}
return ascore-bscore;},render:function(record,td,tr){if(cg_userStats[record.id]){return cg_userStats[record.id].activityScore;}}},percentActivity:{id:"percentActivity",label:"% Team Score",sortFunc:function(a,b){var ascore=0;var bscore=0;if(cg_userStats[a.id]){var team=cg_userStats[a.id].team;if(cg_teamStats[team]!=null){var perc=roundperc(((cg_userStats[a.id].activityScore)/(cg_teamStats[team].activityScore))*100.0);ascore=perc;}}
if(cg_userStats[b.id]){var team=cg_userStats[b.id].team;if(cg_teamStats[team]!=null){var perc=roundperc(((cg_userStats[b.id].activityScore)/(cg_teamStats[team].activityScore))*100.0);ascore=perc;}}
return ascore-bscore;},render:function(record,td,tr){if(cg_userStats[record.id]){var team=cg_userStats[record.id].team;if(cg_teamStats[team]!=null){var perc=roundperc(((cg_userStats[record.id].activityScore)/(cg_teamStats[team].activityScore))*100.0);return perc;}}}},activityCountMonth:{id:"activityCountMonth",label:"# of Actions(Last Fortnight)",sortFunc:function(a,b){var ascore=0;var bscore=0;if(cg_userStats[a.id]){ascore=cg_userStats[a.id].monthActivityCount;}
if(cg_userStats[b.id]){bscore=cg_userStats[b.id].monthActivityCount;}
return ascore-bscore;},render:function(record,td,tr){if(cg_userStats[record.id]){return cg_userStats[record.id].monthActivityCount;}}},pass:{id:"pass",label:"Password",sortFunc:function(a,b){var ascore="";var bscore="";if(cg_ventUserData[a.id]){ascore=cg_ventUserData[a.id].pass;}
if(cg_ventUserData[b.id]){bscore=cg_ventUserData[b.id].pass;}
return cg_strcmp(ascore,bscore);},render:function(record,td,tr){if(cg_ventUserData[record.id]){return cg_ventUserData[record.id].pass;}}},email:{id:"email",label:"Email",sortFunc:function(a,b){var ascore="";var bscore="";if(cg_ventUserData[a.id]){ascore=cg_ventUserData[a.id].email;}
if(cg_ventUserData[b.id]){bscore=cg_ventUserData[b.id].email;}
return cg_strcmp(ascore,bscore);},render:function(record,td,tr){if(cg_ventUserData[record.id]){return cg_ventUserData[record.id].email;}}},registerdate:{id:"registerdate",label:"Last Action",sortFunc:function(a,b){var ascore=0;var bscore=0;if(cg_ventUserData[a.id]){ascore=cg_ventUserData[a.id].last_date;}
if(cg_ventUserData[b.id]){bscore=cg_ventUserData[b.id].last_date;}
return ascore-bscore;},render:function(record,td,tr){if(cg_ventUserData[record.id]){return cg_getShortFriendlyTime(cg_ventUserData[record.id].last_date);}}},ventip:{id:"ventip",label:"IP",sortFunc:function(a,b){var ascore=0;var bscore=0;if(cg_ventUserData[a.id]){ascore=cg_ventUserData[a.id].ip;}
if(cg_ventUserData[b.id]){bscore=cg_ventUserData[b.id].ip;}
return cg_strcmp(ascore,bscore);},render:function(record,td,tr){if(cg_ventUserData[record.id]){return cg_ventUserData[record.id].ip;}}},vent_action:{id:"vent_action",label:"Action",render:function(record,td,tr){if(this.id=="new-users"){var app=cg_ce("a");app.href="javascript:approveUser("+record.id+")";app.innerHTML="Approve";cg_ae(td,app);cg_ae(td,cg_ct(" / "));var deny=cg_ce("a");deny.href="javascript:denyUser("+record.id+")";deny.innerHTML="Reject";cg_ae(td,deny);}
else if(this.id=="rejected-users"){var app=cg_ce("a");app.href="javascript:approveUser("+record.id+")";app.innerHTML="Approve";cg_ae(td,app);cg_ae(td,cg_ct(" / "));var deny=cg_ce("a");deny.href="javascript:deleteUser("+record.id+")";deny.innerHTML="Delete";cg_ae(td,deny);}
else if(this.id=="approved-users"){var app=cg_ce("a");app.href="javascript:denyUser("+record.id+")";app.innerHTML="Approve";cg_ae(td,app);cg_ae(td,cg_ct(" / "));var deny=cg_ce("a");deny.href="javascript:denyUser("+record.id+")";deny.innerHTML="Reject";cg_ae(td,deny);cg_ae(td,cg_ct(" / "));var deny=cg_ce("a");deny.href="javascript:markInactiveUser("+record.id+")";deny.innerHTML="Inactive";cg_ae(td,deny);}
else if(this.id=="deleted-users"){var app=cg_ce("a");app.href="javascript:undeleteUser("+record.id+")";app.innerHTML="Un-Delete";cg_ae(td,app);}
else if(this.id=="inactive-users"){var app=cg_ce("a");app.href="javascript:markActiveUser("+record.id+")";app.innerHTML="Active";cg_ae(td,app);}}},activityScoreMonth:{id:"activityPoints",label:"Action Score(Last Fortnight)",sortFunc:function(a,b){var ascore=0;var bscore=0;if(cg_userStats[a.id]){ascore=cg_userStats[a.id].monthActivityScore;}
if(cg_userStats[b.id]){bscore=cg_userStats[b.id].monthActivityScore;}
return ascore-bscore;},render:function(record,td,tr){if(cg_userStats[record.id]){return cg_userStats[record.id].monthActivityScore;}}},percentActivityMonth:{id:"percentActivity",label:"% Team Score(Last Fortnight)",sortFunc:function(a,b){var ascore=0;var bscore=0;if(cg_userStats[a.id]){var team=cg_userStats[a.id].team;if(cg_teamStats[team]!=null){var perc=roundperc(((cg_userStats[a.id].monthActivityScore)/(cg_teamStats[team].monthActivityScore))*100.0);ascore=perc;}}
if(cg_userStats[b.id]){var team=cg_userStats[b.id].team;if(cg_teamStats[team]!=null){var perc=roundperc(((cg_userStats[b.id].monthActivityScore)/(cg_teamStats[team].monthActivityScore))*100.0);ascore=perc;}}
return ascore-bscore;},render:function(record,td,tr){if(cg_userStats[record.id]){var team=cg_userStats[record.id].team;if(cg_teamStats[team]!=null){var perc=roundperc(((cg_userStats[record.id].monthActivityScore)/(cg_teamStats[team].monthActivityScore))*100.0);return perc;}}}},modTools:{id:"modTools",label:"Edit",width:"1%",render:function(record,td,tr){var edit=cg_ce("div");edit.className="edit-button";var hiddenA=cg_ce("a");hiddenA.target="_blank";hiddenA.href="editEntity.aspx?type="+this.template.entityType+"&id="+record.id;edit.onmouseover=Curse.Tooltip.showTip.bind(edit,"Edit");edit.onmouseout=Curse.Tooltip.hide;cg_ae(hiddenA,edit);var sp=cg_ce("span");sp.innerHTML=" / ";var deleteLink=cg_ce("div");deleteLink.className="delete-button";deleteLink.onmouseover=Curse.Tooltip.showTip.bind(edit,"Delete");deleteLink.onmouseout=Curse.Tooltip.hide;deleteLink.onclick=cg_deleteEntity.bind(this,record.id,this.template.entityType,this.id);cg_ae(td,hiddenA);cg_ae(td,deleteLink);}}};Curse.DataGrid.Utility.appendLocation=function(record,td)
{if(record.locs==null)
{return-1;}
for(var i=0,len=record.locs.length;i<len;++i)
{if(i>0)
{cg_ae(td,cg_ct(", "));}
var cloc=record.locs[i];if(cloc==-1)
{cg_ae(td,cg_ct("..."));}
else if(Curse.Lookup.location_name[cloc]!=null)
{var a=cg_ce("a");a.className="r1";a.href="location.aspx?id="+cloc;cg_ae(a,cg_ct(Curse.Lookup.location_name[cloc]));cg_ae(td,a);}}};Curse.DataGrid.Utility.appendWHOPrice=function(container,price)
{var s,a;if(typeof(price)=="object")
{var coin=price[0];}
else
{var coin=price;}
if(coin>=10000)
{s=cg_ce("span");s.className="moneygold";cg_ae(s,cg_ct(Math.floor(coin/10000)));cg_ae(container,s);coin%=10000;}
if(coin>=100)
{s=cg_ce("span");s.className="moneysilver";cg_ae(s,cg_ct(" "+Math.floor(coin/100)));cg_ae(container,s);coin%=100;}
if(coin>=1)
{s=cg_ce("span");s.className="moneycopper";cg_ae(s,cg_ct(" "+coin));cg_ae(container,s);}
for(var i=1;i<price.length;i+=2)
{if(price[i]>0)
{a=cg_ce("a");a.className="moneyitem";a.style.backgroundImage="url(icons/t/"+price[i+1]+".png)";cg_ae(a,cg_ct(" "+price[i]));cg_ae(container,a);}}};Curse.DataGrid.Templates={guides:{sort:[1],hasViewstate:true,showRefineBox:true,refineColumn:"name",entityType:133,getRecordLink:function(record){return"guide.aspx?id="+record.id;},columns:[{id:"name",label:Localization.name,align:"left",value:"name",sortFunc:function(a,b){return cg_strcmp(a.name,b.name);},render:function(record,td,tr){var a=cg_ce("a");a.className="result-entity-name";a.href=this.template.getRecordLink(record);cg_ae(a,cg_ct(record.name));cg_ae(td,a);}},{id:"category",label:"Category",align:"left",value:"category",sortFunc:function(a,b){return cg_strcmp(a.category,b.category);},render:function(record,td,tr){var label=Curse.Lookup.guide_category_id[record.category];if(label==null){label="-";}
if(record.blog_type!=null&&record.blog_type!=0){label=Curse.Lookup.blog_type[record.blog_type];}
return label;}},{id:"members",label:"Members",align:"left",value:"category",sortFunc:function(a,b){return cg_strcmp(a.members,b.members);},render:function(record,td,tr){if(record.members){return"Members Only";}
else{return"Free";}}},{id:"author",label:"Authors",align:"left",value:"author",sortFunc:function(a,b){return cg_strcmp(a.author,b.author);},render:function(record,td,tr){return record.author;}}]},clues:{sort:[1],hasViewstate:true,showRefineBox:true,refineColumn:"name",entityType:140,getRecordLink:function(record){return"treasureClue.aspx?id="+record.id;},columns:[{id:"name",label:Localization.name,align:"left",value:"name",sortFunc:function(a,b){return cg_strcmp(a.name,b.name);},render:function(record,td,tr){var a=cg_ce("a");a.className="result-entity-name";a.href=this.template.getRecordLink(record);cg_ae(a,cg_ct(record.name.replace(stripLinkRegex,"").replace("</a>","")));cg_ae(td,a);}},{id:"type",label:"Type",align:"left",value:"type",sortFunc:function(a,b){return cg_strcmp(Curse.Lookup.treasure_clue_type[a.type],Curse.Lookup.treasure_clue_type[b.type]);},render:function(record,td,tr){var label=Curse.Lookup.treasure_clue_type[record.type];if(label==null){return"-";}
return label;}}]},field_edits:{sort:[1],hasViewstate:true,showRefineBox:true,refineColumn:"name",entityType:144,getRecordLink:function(record){return"editEntity.aspx?type=144&id="+record.id;},columns:[{id:"id",label:"ID",align:"left",value:"id",render:function(record,td,tr){return record.id;}},{id:"name",label:Localization.name,align:"left",value:"name",sortFunc:function(a,b){return cg_strcmp(a.name,b.name);},render:function(record,td,tr){var a=cg_ce("a");a.className="result-entity-name";a.href=this.template.getRecordLink(record);cg_ae(a,cg_ct(record.name));cg_ae(td,a);}},{id:"column",label:"Column",align:"left",value:"column",render:function(record,td,tr){return record.column;}}]},item_compare:{sort:[1],hasViewstate:true,showRefineBox:true,refineColumn:"name",entityType:1,noClick:true,getRecordLink:function(record){return"item.aspx?id="+record.id;},onBeforeCreate:function(){if(cg_getCookie("Login.CharacterName")!=null){if(this.displayColumns){if(this.displayColumns.indexOf("usable")<0){this.displayColumns.unshift("usable");}}
for(var i=0;i<this.columns.length;i++){if(this.columns[i].id=="usable"&&this.columnsVisible.indexOf(i)<0){this.columnsVisible.push(i);}}
for(var i=0;i<this.data.length;i++){var item=cg_items[this.data[i].id];if(item){this.data[i].usable=hasReq(item.reqs)&&memberCheck(this.data[i].members);}}}},columns:[{id:"name",label:Localization.name,align:"left",value:"name",span:3,sortFunc:function(a,b){if(!a.nameSort){a.nameSort=cg_reverseAlphaArray[a.rarity]+a.name;}
if(!b.nameSort){b.nameSort=cg_reverseAlphaArray[b.rarity]+b.name;}
return cg_strcmp(a.nameSort,b.nameSort);},render:function(record,td,tr){var rem=cg_ce("td");var edit=cg_ce("div");edit.className="delete-button";edit.onmouseover=Curse.Tooltip.showTip.bind(edit,"Remove");edit.onmouseout=Curse.Tooltip.hide;edit.onclick=removeItem.bind(edit,record.id);cg_ae(rem,edit);cg_ae(tr,rem);var i=cg_ce("td");i.style.width="1px";i.style.padding="2px";i.style.borderRight="none";var item=cg_items[record.id];if(item){var num=null;if(record.stack!=null){num=Curse.DataGrid.Utility.createNumericRange(record.stack[0],record.stack[1]);}
cg_ae(i,item.createIcon(1,num));}
cg_ae(tr,i);var item=cg_items[record.id];var a=cg_ce("a");a.className="r"+record.rarity+" result-entity-name";a._relatedID=record.id;a.onmouseover=Curse.Tooltip.handleItemLinkOver.bind(this,a);a.onmouseout=Curse.Tooltip.hide;a.href=this.template.getRecordLink(record);cg_ae(a,cg_ct(record.name));cg_ae(td,a);}},{id:"stab_atk",label:"<div class='statIcon statIcon-stabatk' onmouseover='Curse.Tooltip.showTip(Curse.Lookup.stat_id[STAT_ATK_STAB]);' onmouseout='Curse.Tooltip.hide();'></div>",align:"center",html:true,sortFunc:function(a,b){return cg_compareStat(a,b,STAT_ATK_STAB);},render:function(record,td,tr){if(record.stats!=null){return cg_getStat(record.stats,STAT_ATK_STAB);}
var item=cg_items[record.id];if(item!=null){return cg_getStat(item.stats,STAT_ATK_STAB);}
return 0;}},{id:"stab_def",label:"<div class='statIcon statIcon-stabdef' onmouseover='Curse.Tooltip.showTip(Curse.Lookup.stat_id[STAT_DEF_STAB]);' onmouseout='Curse.Tooltip.hide();'></div>",align:"center",html:true,sortFunc:function(a,b){return cg_compareStat(a,b,STAT_DEF_STAB);},render:function(record,td,tr){if(record.stats!=null){return cg_getStat(record.stats,STAT_DEF_STAB);}
var item=cg_items[record.id];if(item!=null){return cg_getStat(item.stats,STAT_DEF_STAB);}
return 0;}},{id:"slash_atk",label:"<div class='statIcon statIcon-slashatk' onmouseover='Curse.Tooltip.showTip(Curse.Lookup.stat_id[STAT_ATK_SLASH]);' onmouseout='Curse.Tooltip.hide();'></div>",align:"center",html:true,sortFunc:function(a,b){return cg_compareStat(a,b,STAT_ATK_SLASH);},render:function(record,td,tr){if(record.stats!=null){return cg_getStat(record.stats,STAT_ATK_SLASH);}
var item=cg_items[record.id];if(item!=null){return cg_getStat(item.stats,STAT_ATK_SLASH);}
return 0;}},{id:"slash_def",label:"<div class='statIcon statIcon-slashdef' onmouseover='Curse.Tooltip.showTip(Curse.Lookup.stat_id[STAT_DEF_SLASH]);' onmouseout='Curse.Tooltip.hide();'></div>",align:"center",html:true,sortFunc:function(a,b){return cg_compareStat(a,b,STAT_DEF_SLASH);},render:function(record,td,tr){if(record.stats!=null){return cg_getStat(record.stats,STAT_DEF_SLASH);}
var item=cg_items[record.id];if(item!=null){return cg_getStat(item.stats,STAT_DEF_SLASH);}
return 0;}},{id:"crush_atk",label:"<div class='statIcon statIcon-crushatk' onmouseover='Curse.Tooltip.showTip(Curse.Lookup.stat_id[STAT_ATK_CRUSH]);' onmouseout='Curse.Tooltip.hide();'></div>",align:"center",html:true,sortFunc:function(a,b){return cg_compareStat(a,b,STAT_ATK_CRUSH);},render:function(record,td,tr){if(record.stats!=null){return cg_getStat(record.stats,STAT_ATK_CRUSH);}
var item=cg_items[record.id];if(item!=null){return cg_getStat(item.stats,STAT_ATK_CRUSH);}
return 0;}},{id:"crush_def",label:"<div class='statIcon statIcon-crushdef' onmouseover='Curse.Tooltip.showTip(Curse.Lookup.stat_id[STAT_DEF_CRUSH]);' onmouseout='Curse.Tooltip.hide();'></div>",align:"center",html:true,sortFunc:function(a,b){return cg_compareStat(a,b,STAT_DEF_CRUSH);},render:function(record,td,tr){if(record.stats!=null){return cg_getStat(record.stats,STAT_DEF_CRUSH);}
var item=cg_items[record.id];if(item!=null){return cg_getStat(item.stats,STAT_DEF_CRUSH);}
return 0;}},{id:"magic_atk",label:"<div class='statIcon statIcon-magicatk' onmouseover='Curse.Tooltip.showTip(Curse.Lookup.stat_id[STAT_ATK_MAGIC]);' onmouseout='Curse.Tooltip.hide();'></div>",align:"center",html:true,sortFunc:function(a,b){return cg_compareStat(a,b,STAT_ATK_MAGIC);},render:function(record,td,tr){if(record.stats!=null){return cg_getStat(record.stats,STAT_ATK_MAGIC);}
var item=cg_items[record.id];if(item!=null){return cg_getStat(item.stats,STAT_ATK_MAGIC);}
return 0;}},{id:"magic_def",label:"<div class='statIcon statIcon-magicdef' onmouseover='Curse.Tooltip.showTip(Curse.Lookup.stat_id[STAT_DEF_MAGIC]);' onmouseout='Curse.Tooltip.hide();'></div>",align:"center",html:true,sortFunc:function(a,b){return cg_compareStat(a,b,STAT_DEF_MAGIC);},render:function(record,td,tr){if(record.stats!=null){return cg_getStat(record.stats,STAT_DEF_MAGIC);}
var item=cg_items[record.id];if(item!=null){return cg_getStat(item.stats,STAT_DEF_MAGIC);}
return 0;}},{id:"range_atk",label:"<div class='statIcon statIcon-rangedatk' onmouseover='Curse.Tooltip.showTip(Curse.Lookup.stat_id[STAT_ATK_RANGE]);' onmouseout='Curse.Tooltip.hide();'></div>",align:"center",html:true,sortFunc:function(a,b){return cg_compareStat(a,b,STAT_ATK_RANGE);},render:function(record,td,tr){if(record.stats!=null){return cg_getStat(record.stats,STAT_ATK_RANGE);}
var item=cg_items[record.id];if(item!=null){return cg_getStat(item.stats,STAT_ATK_RANGE);}
return 0;}},{id:"range_def",label:"<div class='statIcon statIcon-rangeddef' onmouseover='Curse.Tooltip.showTip(Curse.Lookup.stat_id[STAT_DEF_RANGE]);' onmouseout='Curse.Tooltip.hide();'></div>",align:"center",html:true,sortFunc:function(a,b){return cg_compareStat(a,b,STAT_DEF_RANGE);},render:function(record,td,tr){if(record.stats!=null){return cg_getStat(record.stats,STAT_DEF_RANGE);}
var item=cg_items[record.id];if(item!=null){return cg_getStat(item.stats,STAT_DEF_RANGE);}
return 0;}},{id:"summon",label:"<div class='statIcon statIcon-summondef' onmouseover='Curse.Tooltip.showTip(Curse.Lookup.stat_id[STAT_DEF_SUMMON]);' onmouseout='Curse.Tooltip.hide();'></div>",align:"center",html:true,sortFunc:function(a,b){return cg_compareStat(a,b,STAT_DEF_SUMMON);},render:function(record,td,tr){if(record.stats!=null){return cg_getStat(record.stats,STAT_DEF_SUMMON);}
var item=cg_items[record.id];if(item!=null){return cg_getStat(item.stats,STAT_DEF_SUMMON);}
return 0;}},{id:"strength",label:"<div class='statIcon statIcon-strength' onmouseover='Curse.Tooltip.showTip(Curse.Lookup.stat_id[STAT_STRENGTH]);' onmouseout='Curse.Tooltip.hide();'></div>",align:"center",html:true,sortFunc:function(a,b){return cg_compareStat(a,b,STAT_STRENGTH);},render:function(record,td,tr){if(record.stats!=null){return cg_getStat(record.stats,STAT_STRENGTH);}
var item=cg_items[record.id];if(item!=null){return cg_getStat(item.stats,STAT_STRENGTH);}
return 0;}},{id:"range_strength",label:"<div class='statIcon statIcon-ranged-strength' onmouseover='Curse.Tooltip.showTip(Curse.Lookup.stat_id[STAT_RANGE_STRENGTH]);' onmouseout='Curse.Tooltip.hide();'></div>",align:"center",html:true,sortFunc:function(a,b){return cg_compareStat(a,b,STAT_RANGE_STRENGTH);},render:function(record,td,tr){if(record.stats!=null){return cg_getStat(record.stats,STAT_RANGE_STRENGTH);}
var item=cg_items[record.id];if(item!=null){return cg_getStat(item.stats,STAT_RANGE_STRENGTH);}
return 0;}},{id:"prayer",label:"<div class='statIcon statIcon-prayer' onmouseover='Curse.Tooltip.showTip(Curse.Lookup.stat_id[STAT_PRAYER]);' onmouseout='Curse.Tooltip.hide();'></div>",align:"center",html:true,sortFunc:function(a,b){return cg_compareStat(a,b,STAT_PRAYER);},render:function(record,td,tr){if(record.stats!=null){return cg_getStat(record.stats,STAT_PRAYER);}
var item=cg_items[record.id];if(item!=null){return cg_getStat(item.stats,STAT_PRAYER);}
return 0;}},{id:"price",label:"Price",align:"center",value:"price",render:function(record,td){if(record.price!=null&&record.price!=0)
return cg_formatNumber(record.price)+"gp";else
return"-";}}]},mod_logs:{sort:[-4],hasViewstate:true,showRefineBox:true,refineColumn:"name",entityType:138,getRecordLink:function(record){return"user.aspx?id="+record.userID;},columns:[{id:"name",label:Localization.name,align:"left",value:"name",sortFunc:function(a,b){return cg_strcmp(a.user,b.user);},render:function(record,td,tr){var a=cg_ce("a");a.className="result-entity-name";a.href=this.template.getRecordLink(record);cg_ae(a,cg_ct(record.user));cg_ae(td,a);}},{id:"action",label:"action",align:"left",value:"action",sortFunc:function(a,b){return cg_strcmp(a.actionType,b.actionType);},render:function(record,td,tr){var label=Curse.Lookup.mod_action_type[record.actionType];if(label==null){label="-";}
return label;}},{id:"link",label:"Link",align:"left",value:"link",sortFunc:function(a,b){return cg_strcmp(a.link,b.link);},render:function(record,td,tr){if(record.link!=""){td.innerHTML=record.link;}}},{id:"date",label:"Date",align:"left",value:"date",render:function(record,td,tr){return cg_getShortFriendlyTime(record.date);}}]},tomes:{sort:[1],hasViewstate:true,showRefineBox:true,refineColumn:"name",entityType:122,getRecordLink:function(record){return"tome.aspx?id="+record.id;},columns:[{id:"name",label:Localization.name,align:"left",value:"name",sortFunc:function(a,b){return cg_strcmp(a.name,b.name);},render:function(record,td,tr){var a=cg_ce("a");a.className="result-entity-name";a.href=this.template.getRecordLink(record);cg_ae(a,cg_ct(record.name));cg_ae(td,a);}},{id:"author",label:"Author",align:"left",value:"author",sortFunc:function(a,b){return cg_strcmp(a.author,b.author);},render:function(record,td,tr){return record.author;}},{id:"item",label:"Item",align:"left",value:"itemName",sortFunc:function(a,b){return cg_strcmp(a.itemName,b.itemName);},render:function(record,td,tr){return record.itemName;}}]},edits:{sort:[1],hasViewstate:true,showRefineBox:true,refineColumn:"name",columns:[{id:"entity",label:"Entity",align:"left",value:"entity",render:function(record,td,tr){td.innerHTML=record.entity;}},{id:"edits",label:"Edits",align:"left",value:"edits",render:function(record,td,tr){td.innerHTML=record.edits;}}]},corrections:{sort:[1],hasViewstate:true,showRefineBox:true,refineColumn:"name",entityType:136,columns:[{id:"entity",label:"Entity",align:"left",value:"link",render:function(record,td,tr){td.innerHTML=record.link;}},{id:"ip",label:"IP",align:"left",value:"ip",render:function(record,td,tr){td.innerHTML=record.ip;}},{id:"text",label:"Text",align:"left",value:"text",render:function(record,td,tr){return record.text;}}]},titles:{sort:[1],hasViewstate:true,showRefineBox:true,refineColumn:"name",columns:[{id:"name",label:Localization.name,align:"left",value:"name",span:1,sortFunc:function(a,b){return cg_strcmp(a.name,b.name);},render:function(record,td,tr){var sp=cg_ce("span");sp.innerHTML=record.name;sp.onmouseover=Curse.Tooltip.showTip.bind(sp,record.tooltip);sp.onmouseout=Curse.Tooltip.hide;cg_ae(td,sp);}},{id:"race",label:"Race",align:"center",value:"race",render:function(record,td,tr){var label=Curse.Lookup.race_id[record.race];if(label!=null){return label;}
return"-";},sortFunc:function(a,b){return cg_strcmp(a.race,b.race);}},{id:"source",label:"Source",align:"center",value:"source",render:function(record,td,tr){if(record.source!=null){td.innerHTML=record.source;}
else{td.innerHTML="???";}}},{id:"stats",label:"Stats",align:"center",value:"stats",render:function(record,td,tr){return record.stats;},sortFunc:function(a,b){return cg_strcmp(a.stats,b.stats);}}]},objects:{sort:[1],hasViewstate:true,showRefineBox:true,refineColumn:"name",getRecordLink:function(record){return"object.aspx?id="+record.id;},columns:[{id:"name",label:Localization.name,align:"left",value:"name",span:1,sortFunc:function(a,b){return cg_strcmp(a.name,b.name);},render:function(record,td,tr){var a=cg_ce("a");a.className="result-entity-name";a.href=this.template.getRecordLink(record);cg_ae(a,cg_ct(record.name));cg_ae(td,a);}},{id:"level",label:"Skill Level",align:"center",value:"level",render:function(record,td,tr){return record.level;},sortFunc:function(a,b){return cg_strcmp(a.level,b.level);}},{id:"type",label:"Type",align:"center",value:"type",render:function(record,td,tr){var label=Curse.Lookup.object_type[record.type];if(label==null){label="-";}
return label;},sortFunc:function(a,b){return cg_strcmp(a.type,b.type);}},{id:"items",label:"Items",align:"center",value:"items",render:function(record,td,tr){Curse.DataGrid.Utility.appendFloatingIcons(td,record.items,null,0,6,"",30);}}]},itemUpgrades:{sort:[1],hasViewstate:true,columns:[{id:"name",label:Localization.name,align:"left",span:2,value:"name",sortFunc:function(a,b){return cg_strcmp(cg_reverseAlphaArray[a.rarity]+a.name,cg_reverseAlphaArray[b.rarity]+b.name);},render:function(record,td,tr){var i=cg_ce("td");i.style.width="1px";i.style.padding="0";i.style.borderRight="none";var item=cg_items[record.id];if(item){var icon=item.createIcon(0,null,null,null,"javascript:;");icon.onclick=cg_profileEditor.swapItem.bind(cg_profileEditor,record.id);cg_ae(i,icon);}
cg_ae(tr,i);td.style.borderLeft="none";var a=cg_ce("a");a.className="r"+record.rarity;a.style.fontFamily="Verdana,sans-serif";a._relatedID=record.id;a.onmouseover=Curse.Tooltip.handleItemLinkOver.bind(this,a);a.onmouseout=Curse.Tooltip.hide;a.onclick=cg_profileEditor.swapItem.bind(cg_profileEditor,record.id);cg_ae(a,cg_ct(record.name));cg_ae(td,a);}},{id:"level",label:Localization.level,width:"10%",value:"level",render:function(record,td,tr){return record.level;}},{id:"type",label:Localization.type,width:"18%",value:"type",render:function(record,td,tr){var lbl=Curse.Lookup.item_type[record.type];if(lbl==""){lbl="-";}
td.className="small r1";cg_ae(td,cg_ct(lbl));}}]},items:{sort:[],hasViewstate:true,showRefineBox:true,entityType:1,refineColumn:"name",optionsMenu:item_extraMenu,nameSearchUrl:"1&filters=1=",getRecordLink:function(record){return"item.aspx?id="+record.id;},onBeforeCreate:function(){if(cg_getCookie("Login.CharacterName")!=null){if(this.displayColumns){if(this.displayColumns.indexOf("usable")<0){this.displayColumns.unshift("usable");}}
for(var i=0;i<this.columns.length;i++){if(this.columns[i].id=="usable"&&this.columnsVisible.indexOf(i)<0){this.columnsVisible.push(i);}}
for(var i=0;i<this.data.length;i++){var item=cg_items[this.data[i].id];if(item){this.data[i].usable=hasReq(item.reqs)&&memberCheck(this.data[i].members);}}}},columns:[{id:"name",label:Localization.name,align:"left",value:"name",span:2,sortFunc:function(a,b){if(!a.nameSort){a.nameSort=cg_reverseAlphaArray[a.rarity]+a.name;}
if(!b.nameSort){b.nameSort=cg_reverseAlphaArray[b.rarity]+b.name;}
return cg_strcmp(a.nameSort,b.nameSort);},render:function(record,td,tr){var i=cg_ce("td");i.style.width="1px";i.style.padding="2px";i.style.borderRight="none";var item=cg_items[record.id];if(item){var num=null;if(record.stack!=null){num=Curse.DataGrid.Utility.createNumericRange(record.stack[0],record.stack[1]);}
cg_ae(i,item.createIcon(1,num));}
cg_ae(tr,i);var item=cg_items[record.id];var a=cg_ce("a");a.className="r"+record.rarity+" result-entity-name";a._relatedID=record.id;a.onmouseover=Curse.Tooltip.handleItemLinkOver.bind(this,a);a.onmouseout=Curse.Tooltip.hide;a.href=this.template.getRecordLink(record);cg_ae(a,cg_ct(record.name));cg_ae(td,a);}},{id:"level",label:Localization.req_level,align:"center",value:"level",render:function(record,td){if(record.level>0)
return record.level;else
return"-";}},{id:"price",label:"Price",align:"center",value:"price",render:function(record,td){if(record.price!=null&&record.price!=0)
return cg_formatNumber(record.price)+"gp";else
return"-";}},{id:"source",label:Localization.source,width:"12%",render:function(record,td){td.className="small r2";if(record.source!=null){for(var i=0,len=record.source.length;i<len;++i){if(i>0){cg_ae(td,cg_ct(", "));}
cg_ae(td,cg_ct(Curse.Lookup.item_source_id[record.source[i]]));}}},sortFunc:function(a,b){return Curse.DataGrid.Utility.assocArrCmp(a.source,b.source,Curse.Lookup.item_source_id);}},{id:"slot",label:Localization.slot,width:"10%",value:"slot",render:function(record,td){var lbl;lbl=Curse.Lookup.item_slot[record.slot];if(lbl==null){lbl="-";}
return lbl;}},{id:"clientVersion",label:Localization.patch,align:"center",value:"clientVersion",render:function(record,td){if(record.clientVersion==null){return"-";}
var patch=Curse.Lookup.client_version[record.clientVersion];if(patch==null){return"-";}
return patch;}},{id:"tradeCount",label:"Cost",align:"center",value:"tradeCount",render:function(record,td){return record.tradeCount;}},{id:"dps",label:"DPS",align:"center",value:"dps",render:function(record,td){return record.dps;}},{id:"cost",label:"Cost",align:"center",value:"cost",render:function(record,td){var costLabel="";if(record.itemCost!=null){costLabel+=record.itemCost;}
if(record.costType!=null){var costTypeLabel=Curse.Lookup.cost_type[record.costType];if(costTypeLabel!=null){costLabel+=" "+costTypeLabel;}}
return costLabel;}},{id:"members",label:"Members",value:"members",width:"10%",sortFunc:function(a,b){return cg_strcmp(a.members,b.members);},render:function(record,td){if(!record.members){return"Free";}
else{return"Members Only";}}},{id:"usable",label:"Usable?",value:"usable",width:"10%",sortFunc:function(a,b){return cg_strcmp(a.usable,b.usable);},render:function(record,td){if(record.usable){return"Yes";}
else{return"No";}}}]},vendors:{sort:[1],hasViewstate:true,showRefineBox:true,entityType:109,refineColumn:"name",columns:[{id:"name",label:Localization.name,align:"left",value:"name",sortFunc:function(a,b){return cg_strcmp(a.id,b.id)},render:function(record,td){var itemDiv=cg_ce("div");itemDiv.innerHTML=record.itemlink;var npcDiv=cg_ce("div");npcDiv.innerHTML=record.npclink;cg_ae(td,npcDiv);cg_ae(td,cg_ct(" sells "));cg_ae(td,itemDiv);}}]},videos:{sort:[-1],hasViewstate:true,showRefineBox:false,recordsPerRow:4,listStyle:Curse.DataGrid.ListStyle.ScreenshotBox,noDataMessage:function(){var message=Localization.replace("no_screenshots","<b>"+Curse.Page.entityName+"</b>");if(!Curse.User.id){message+="<br><br>"+Localization.replace("login_register_to_screenshot","<a href=\"javascript:cg_navToLogin();\">","</a>","<a href=\"register.aspx\">","</a>");}
else{message+=" "+Localization.replace("first_to_submit","<a onclick=\"Curse.Screenshot.scrollToForm();\">","</a>");}
return message;},render:function(record,cell){var tab=cg_ce("table");tab.className="video";var topRow=tab.insertRow(0);var headCell=topRow.insertCell(0);headCell.className="video-header";headCell.colSpan="2";var headDiv=cg_ce("div");headDiv.className="videoheader";var viewsIcon=cg_ce("img");viewsIcon.src="img/videos/views_icon.gif";var commentsIcon=cg_ce("img");commentsIcon.src="img/videos/comment_icon.gif";var timeIcon=cg_ce("img");timeIcon.src="img/videos/runtime_icon.gif";cg_ae(headCell,headDiv);cg_ae(headDiv,viewsIcon);cg_ae(headDiv,cg_ct(record.views));cg_ae(headDiv,timeIcon);cg_ae(headDiv,cg_ct(record.length));var videoRow=tab.insertRow(1);var videoCell=videoRow.insertCell(0);videoCell.className="videomiddle";videoCell.colSpan="2";var videoDiv=cg_ce("div");videoDiv.className="videomiddle";var videoLink=cg_ce("a");videoLink.href="video.aspx?id="+record.id;var videoIMG=cg_ce("img");videoIMG.src=record.thumb;videoIMG.className="video-img";cg_ae(videoLink,videoIMG);cg_ae(videoDiv,videoLink);cg_ae(videoCell,videoDiv);var descRow=tab.insertRow(2);var descCell=descRow.insertCell(0);descCell.colSpan="2";descCell.className="videomaintext";var titleDiv=cg_ce("div");titleDiv.className="videomaintext1";titleDiv.innerHTML=record.name;if(Curse.User.isModerator){titleDiv.innerHTML=record.name+" <a href='editEntity.aspx?type=141&id="+record.id+"'>Edit</a>";}
var textDiv=cg_ce("div");textDiv.className="videomaintext2";if(record.desc!=null){textDiv.innerHTML=record.desc;}
cg_ae(descCell,titleDiv);cg_ae(descCell,textDiv);var creditsRow=tab.insertRow(3);var submissionCell=creditsRow.insertCell(0);submissionCell.className="videolowleft";var submissionDiv=cg_ce("div");submissionDiv.className="videolowleft";cg_ae(submissionCell,submissionDiv);submissionDiv.innerHTML="Submitted by: "+record.author;var ratingCell=creditsRow.insertCell(1);ratingCell.className="videostars";var i=0;for(i=0;i<record.rating;i++){var star=cg_ce("img");star.src="img/videos/active_star.gif";cg_ae(ratingCell,star);}
for(;i<5;i++){var star=cg_ce("img");star.src="img/videos/inactive_star.gif";cg_ae(ratingCell,star);}
cg_ae(cell,tab);if(this.columns.length>1){var ntab=cg_ce("table");cg_ae(cell,ntab);record.entityType=141;var approveRow=ntab.insertRow(0);var approveCell=approveRow.insertCell(0);this.columns[1].render(record,approveCell,approveRow);var denyCell=approveRow.insertCell(1);this.columns[2].render(record,denyCell,approveRow);}},columns:[{id:"name",label:Localization.name,align:"left",value:"date",sortFunc:function(a,b){return cg_strcmp(a.date,b.date);}}]},itemsets:{sort:[1],hasViewstate:true,showRefineBox:true,refineColumn:"name",entityType:7,getRecordLink:function(record){return"itemset.aspx?id="+record.id;},columns:[{id:"name",label:Localization.name,align:"left",value:"name",sortFunc:function(a,b){return cg_strcmp(cg_reverseAlphaArray[a.rarity]+a.name,cg_reverseAlphaArray[b.rarity]+b.name);},render:function(record,td){var a=cg_ce("a");a.className="r"+record.rarity+" result-entity-name";a.href=this.template.getRecordLink(record);cg_ae(a,cg_ct(record.name));cg_ae(td,a);}},{id:"user",label:"Submitter",value:"userid",render:function(record,td){if(record.userid!=null){var a=cg_ce("a");a.href="user.aspx?id="+record.userid;cg_ae(a,cg_ct(record.username));cg_ae(td,a);}}},{id:"price",label:"Price",value:"min_price",render:function(record,td){if(record.min_price!=null){return cg_formatNumber((record.min_price+record.max_price)/2)+"gp";}
return"-";},sortFunc:function(a,b){return a.min_price-b.min_price;}},{id:"items",label:Localization.items,value:"items",width:"20%",render:function(record,td){if(record.items!=null){if(record.items.length>0){Curse.DataGrid.Utility.appendFloatingIcons(td,record.items,null);return;}}
return"";}}]},recipes:{sort:[1],hasViewstate:true,showRefineBox:true,refineColumn:"name",entityType:131,getRecordLink:function(record){return"recipe.aspx?id="+record.id;},columns:[{id:"name",label:Localization.name,align:"left",value:"name",span:2,width:"25%",sortFunc:function(a,b){if(!a.nameSort){a.nameSort=cg_reverseAlphaArray[a.rarity]+a.name;}
if(!b.nameSort){b.nameSort=cg_reverseAlphaArray[b.rarity]+b.name;}
return cg_strcmp(a.nameSort,b.nameSort);},render:function(record,td,tr){var i=cg_ce("td");i.style.width="1px";i.style.padding="0";i.style.borderRight="none";var a=cg_ce("a");if(record.produces!=null){var item=cg_items[record.produces[0]];if(item!=null){a.className="r"+record.rarity;cg_ae(i,item.createIcon(1,record.produces[1]));cg_ae(tr,i);td.style.borderLeft="none";a.style.fontFamily="Verdana,sans-serif";a._relatedID=record.produces[0];a.onmouseover=Curse.Tooltip.handleItemLinkOver.bind(this,a);a.onmouseout=Curse.Tooltip.hide;a.href=this.template.getRecordLink(record);cg_ae(a,cg_ct(record.name));cg_ae(td,a);}}}},{id:"skill",label:"Skill",align:"center",value:"skill",width:"10%",sortFunc:function(a,b){return cg_strcmp(a.skill,b.skill);},render:function(record,td,tr){var label=Curse.Lookup.skill_type[record.skill];if(label==null){label="-";}
return label;}},{id:"level",label:Localization.level,align:"center",value:"level",width:"10%",sortFunc:function(a,b){return cg_strcmp(a.level,b.level);},render:function(record,td,tr){return record.level;}},{id:"xp",label:"XP",align:"center",value:"xp",width:"10%",sortFunc:function(a,b){return cg_strcmp(a.xp,b.xp);},render:function(record,td,tr){return record.xp;}},{id:"reagents",label:"Reagents",align:"left",width:"40%",render:function(record,td){if(record.reagents!=null){td.style.padding="0";var d=cg_ce("div");d.style.width=(44*record.reagents.length)+"px";for(var i=0,len=record.reagents.length;i<len;++i){if(cg_items[record.reagents[i][0]]){var icon=cg_items[record.reagents[i][0]].createIcon(1,record.reagents[i][1]);icon.style.cssFloat=icon.style.styleFloat="left";cg_ae(d,icon);}}
cg_ae(td,d);}},sortFunc:function(a,b){var lena=(a.reagents!=null?a.reagents.length:0);var lenb=(b.reagents!=null?b.reagents.length:0);return cg_strcmp(lena,lenb);}}]},calc_infos:{sort:[1],hasViewstate:true,showRefineBox:true,refineColumn:"name",entityType:6,columns:[{id:"name",label:Localization.name,align:"left",value:"name",span:3,width:"25%",sortFunc:function(a,b){return cg_strcmp(a.name,b.name);},render:function(record,td,tr){if(record.icon){var i=cg_ce("td");i.style.width="1px";i.style.padding="2px";i.style.borderRight="none";cg_ae(i,new Curse.Icon(1,record.icon,"",0,null,null,{},Curse.Tooltip.hide,null,null,null,false,null,null,""));cg_ae(tr,i);}
else{var i=cg_ce("td");cg_ae(tr,i);}
if(record.link!=null){var dv=cg_ce("td");dv.innerHTML=record.link;cg_ae(tr,dv);}
else{var dv=cg_ce("td");cg_ae(dv,cg_ct(record.name));cg_ae(tr,dv);}}},{id:"level",label:Localization.level,align:"center",value:"level",width:"10%",sortFunc:function(a,b){return cg_strcmp(a.level,b.level);},render:function(record,td,tr){return record.level;}},{id:"xp",label:"XP",align:"center",value:"xp",width:"10%",sortFunc:function(a,b){return cg_strcmp(a.xp,b.xp);},render:function(record,td,tr){var sp=cg_ce("span");sp.id="xp_"+record.id;if(record.xp){sp.innerHTML=roundPerc(record.xp);}
cg_ae(td,sp);}},{id:"number",label:"Number",align:"center",value:"number",width:"10%",sortFunc:function(a,b){return cg_strcmp(a.xp,b.xp);},render:function(record,td,tr){var sp=cg_ce("span");sp.id="count_"+record.id;if(record.count){sp.innerHTML=record.count;}
cg_ae(td,sp);}},{id:"member",label:"Member",align:"center",value:"member",width:"10%",sortFunc:function(a,b){return cg_strcmp(a.member,b.member);},render:function(record,td,tr){if(record.members){return"Members Only";}
return"Free";}}]},npcs:{sort:[],hasViewstate:true,showRefineBox:true,entityType:2,refineColumn:"name",optionsMenu:npc_extraMenu,nameSearchUrl:"2&filters=200=",getRecordLink:function(record){return"npc.aspx?id="+record.id;},onBeforeCreate:function(){if(cg_getCookie("Login.CharacterName")!=null){var combatLevel=calculateCombatLevel();for(var i=0;i<this.data.length;i++){var diff=getNPCCombatColor(combatLevel,this.data[i].combat);this.data[i].diff=diff;}}},columns:[{id:"name",label:Localization.name,align:"left",value:"name",render:function(record,td){var a=cg_ce("a");if(record.diff==null){a.className="result-entity-name";}
else{a.className="npc-name"+record.diff;}
a.href=this.template.getRecordLink(record);a._relatedID=record.id;a.onmouseover=Curse.Tooltip.handleNPCLinkOver.bind(this,a);a.onmouseout=Curse.Tooltip.hide;cg_ae(a,cg_ct(record.name));cg_ae(td,a);if(record.shop!=null){var d=cg_ce("div");d.className="small";cg_ae(d,cg_ct(Curse.Lookup.shop_name[record.shop]));cg_ae(td,d);}}},{id:"combat",label:"Combat",value:"combat",width:"10%",sortFunc:function(a,b){return cg_strcmp(a.combat,b.combat);},render:function(record,td){if(record.combat!=null){return record.combat;}
return 0;}},{id:"members",label:"Members",value:"members",width:"10%",sortFunc:function(a,b){return cg_strcmp(a.members,b.members);},render:function(record,td){if(!record.members){return"Free";}
else{return"Members Only";}}},{id:"hp",label:"HP",value:"hp",width:"10%",sortFunc:function(a,b){return cg_strcmp(a.hp,b.hp);},render:function(record,td){if(record.hp!=null){return record.hp;}
return 0;}},{id:"attack_style",label:"Attack Style",value:"attack_style",width:"10%",sortFunc:function(a,b){return Curse.DataGrid.Utility.assocArrCmp(a.attack_style,b.attack_style,Curse.Lookup.npc_attack_style);},render:function(record,td){td.className="small";if(record.attack_style!=null){for(var i=0,len=record.attack_style.length;i<len;++i){if(i>0){cg_ae(td,cg_ct(", "));}
cg_ae(td,cg_ct(Curse.Lookup.npc_attack_style[record.attack_style[i]]));}}}},{id:"location",label:Localization.location,render:function(record,td){if(record.locs!=null){var tstring=record.locstring;for(var i=0;i<record.locs.length;i++){var lname=Curse.Lookup.location_name[record.locs[i]];tstring=tstring.replace(new RegExp(lname,"i"),"<a href='location.aspx?id="+record.locs[i]+"'>"+lname+"</a>");}
var sp=cg_ce("div");sp.innerHTML=tstring;cg_ae(td,sp);}
else if(record.locstring!=null){var sp=cg_ce("div");sp.innerHTML=record.locstring;cg_ae(td,sp);}},sortFunc:function(a,b){return Curse.DataGrid.Utility.assocArrCmp(a.locs,b.locs,Curse.Lookup.location_name);}},{id:"clientVersion",label:Localization.patch,align:"center",value:"clientVersion",render:function(record,td){if(record.clientVersion==null){return"-";}
var patch=Curse.Lookup.client_version[record.clientVersion];if(patch==null){return"-";}
return patch;}},{id:"cost",label:"Cost",align:"center",value:"cost",render:function(record,td){var costLabel="";if(record.itemCost!=null){costLabel+=record.itemCost;}
if(record.costType!=null){var costTypeLabel=Curse.Lookup.cost_type[record.costType];if(costTypeLabel!=null){costLabel+=" "+costTypeLabel;}}
return costLabel;}}]},quests:{sort:[],hasViewstate:true,showRefineBox:true,refineColumn:"name",entityType:4,optionsMenu:quest_extraMenu,nameSearchUrl:"4&filters=300=",getRecordLink:function(record){return"quest.aspx?id="+record.id;},onBeforeCreate:function(){if(cg_getCookie("Login.CharacterName")!=null){if(this.displayColumns){if(this.displayColumns.indexOf("usable")<0){this.displayColumns.unshift("usable");}}
for(var i=0;i<this.columns.length;i++){if(this.columns[i].id=="usable"&&this.columnsVisible.indexOf(i)<0){this.columnsVisible.push(i);}}
for(var i=0;i<this.data.length;i++){this.data[i].usable=hasReq(this.data[i].reqs)&&memberCheck(this.data[i].members);}}},defaultSort:function(a,b){return b.id-a.id;},columns:[{id:"name",label:Localization.name,align:"left",value:"name",render:function(record,td){var a=cg_ce("a");a.className="result-entity-name";a._relatedID=record.id;a.href=this.template.getRecordLink(record);cg_ae(a,cg_ct(record.name));cg_ae(td,a);}},{id:"members",label:"Members",align:"left",value:"members",render:function(record,td){if(record.members){return"Members Only";}
else{return"Free";}}},{id:"qp",label:"QP",align:"center",value:"qp",render:function(record,td){return record.qp;}},{id:"date",label:"Date",align:"center"},{id:"difficulty",label:"Difficulty",align:"left",value:"difficulty",render:function(record,td){var img=cg_ce("img");img.src="images/questbar/"+record.difficulty+".gif";cg_ae(td,img);}},{id:"length",label:"Length",align:"left",value:"length",render:function(record,td){var img=cg_ce("img");img.src="images/questbar/"+record.length+".gif";cg_ae(td,img);}},{id:"hide",label:"Hide/Unhide",width:"10%",render:function(record,td){var hideLink=cg_ce("img");hideLink.src="img/hide.gif";hideLink.id="hide-link-"+record.id;if(cg_itemFilterValue=="2"){hideLink.src="img/unhide.gif";}
hideLink.onmouseover=Curse.Tooltip.showTip.bind(hideLink,"Hide this Quest");hideLink.onmouseout=Curse.Tooltip.hide;hideLink.onclick=addHiddenQuest.bind(hideLink,record.id);cg_ae(td,hideLink);}},{id:"usable",label:"Usable?",value:"usable",width:"10%",sortFunc:function(a,b){return cg_strcmp(a.usable,b.usable);},render:function(record,td){if(record.usable){return"Yes";}
else{return"No";}}}]},news:{sort:[1],hasViewstate:true,showRefineBox:true,refineColumn:"name",getRecordLink:function(record){return"newsItem.aspx?id="+record.id;},columns:[{id:"name",label:Localization.name,align:"left",value:"name",render:function(record,td){var a=cg_ce("a");a.className="result-entity-name";a._relatedID=record.id;a.href=this.template.getRecordLink(record);cg_ae(a,cg_ct(record.title));cg_ae(td,a);}}]},locations:{sort:[1],hasViewstate:true,showRefineBox:true,refineColumn:"name",entityType:3,optionsMenu:location_extraMenu,getRecordLink:function(record){return"location.aspx?id="+record.id;},columns:[{id:"name",label:Localization.name,align:"left",value:"name",render:function(record,td){var a=cg_ce("a");a.className="result-entity-name";a.href=this.template.getRecordLink(record);cg_ae(a,cg_ct(record.name));cg_ae(td,a);}},{id:"members",label:"Members",align:"left",value:"members",render:function(record,td){if(record.members){return"Members Only";}
else{return"Free";}}},{id:"category",label:Localization.type,align:"left",value:"category",render:function(record,td){var label=Curse.Lookup.location_category_id[record.category];return label;}}]},comments:{sort:[1],hasViewstate:true,showRefineBox:false,listStyle:Curse.DataGrid.ListStyle.CommentBox,onBeforeCreate:function(){if(location.hash.match(/comments:id=([0-9]+)/)!=null){var index=cg_inArray(this.data,parseInt(RegExp.$1),function(x){return x.id;});this.startingRow=this.getStartingRow(index);return this.data[index];}},onAfterCreate:function(record){if(record!=null){var div=record.__div;this.tabGroup.__st=div;}},noDataMessage:function(){var message=Localization.replace("no_comments","<b>"+Curse.Page.entityName+"</b>");if(!Curse.User.id){message+="<br><br>"+Localization.replace("login_register_to_comment","<a href=\"javascript:cg_navToLogin();\">","</a>","<a href=\"register.aspx\">","</a>");}
else{message+=" "+Localization.replace("first_to_submit","<a onclick=\"Curse.Comment.scrollToForm();\">","</a>");}
return message;},render:function(record,container,rownum){record.divContainer=container;var localTime=cg_getShortFriendlyTime(record.date);var allowEdit=Curse.User.isModerator||record.userid==Curse.User.id;var formattedBody=Curse.TextFormatter.getFormattedText(record.body);if(record.raters==""){record.raters=[];}
else{record.raters=record.raters.split(",");for(var i=0;i<record.raters.length;i++){record.raters[i]=record.raters[i].split("&");}}
var hideComment=record.rating<Curse.Comment.ratingThreshold;record.allowRating=record.userid!=Curse.User.id&&cg_inArray(record.raters,Curse.User.id,function(a){return a[0];})==-1;var showRating=record.rating>=0&&(Curse.User.id||record.allowRating);container.className="comment";var divHeader=cg_ce("div");var divBody=cg_ce("div");var divLinks=cg_ce("div");var divAvatar=cg_ce("div");divHeader.className=(hideComment?"comment-header-dis":"comment-header");divAvatar.className=(hideComment?"comment-avatar-dis":"comment-avatar");var img=cg_ce("img");img.src="avatars/"+record.userAvatar+".gif";cg_ae(divAvatar,img);if(record.userstatus){divAvatar.className+=" userstatus"+record.userstatus}
cg_ae(divHeader,divAvatar);var divRating=cg_ce("div");divRating.className="comment-rating";if(hideComment){var a=cg_ce("a");a.href="javascript:;";a.onclick=Curse.Comment.toggleDisplay.bind(a,record);cg_ae(a,cg_ct(Localization.show_comment));cg_ae(divRating,a);cg_ae(divRating,cg_ct(" "+String.fromCharCode(160)+" "));divBody.style.display="none";}
var b=cg_ce("b");cg_ae(b,cg_ct(Localization.rating+": "));var s=cg_ce("span");cg_ae(s,cg_ct((record.rating>0?"+":"")+record.rating));cg_ae(b,s);if(record.allowRating){var spanRating=cg_ce("span");var aRateUp=cg_ce("a");var aRateDown=cg_ce("a");if(Curse.User.id){aRateUp.href=aRateDown.href="javascript:;";aRateUp.onclick=Curse.Comment.rate.bind(aRateUp,record,1);aRateDown.onclick=Curse.Comment.rate.bind(aRateDown,record,-1);}
else{aRateUp.href=aRateDown.href="javascript:;";aRateUp.onmouseover=Curse.Tooltip.showTip.bind(aRateUp,Localization.login_rate_comments);aRateUp.onmouseout=Curse.Tooltip.hide;aRateDown.onmouseover=Curse.Tooltip.showTip.bind(aRateUp,Localization.login_rate_comments);aRateDown.onmouseout=Curse.Tooltip.hide;aRateUp.onclick=cg_navToLogin.bind();aRateDown.onclick=cg_navToLogin.bind();}
aRateUp.className="up";aRateDown.className="down";cg_ae(spanRating,aRateUp);cg_ae(spanRating,cg_ct(" "));cg_ae(spanRating,aRateDown);cg_ae(divRating,spanRating);record.spanRating=spanRating;}
cg_ae(divRating,b);cg_ae(divHeader,divRating);var aUser=cg_ce("a");aUser.href="user.aspx?id="+record.userid;cg_ae(aUser,cg_ct(record.user));cg_ae(divHeader,aUser);cg_ae(divHeader,cg_ct(" "));var divDate=cg_ce("div");divDate.className="comment-date";var aDate=cg_ce("a");aDate.className="r0";aDate.href="#comments:id="+record.id;cg_ae(aDate,cg_ct(localTime));aDate.style.cursor="pointer";cg_ae(divDate,aDate);record.divHeader=divHeader;cg_ae(container,divHeader);cg_ae(container,divDate);divBody.className="comment-body";divBody.innerHTML=Curse.TextFormatter.getFormattedText(record.body);record.divBody=divBody;cg_ae(container,divBody);Curse.Comment.setLastEdited(record);if(hideComment){record.divLastEdit.style.display="none";}
divLinks.className="comment-links";if(allowEdit){var hlink=cg_ce("a");hlink.className="edit";cg_ae(hlink,cg_ct(Localization.edit));hlink.onclick=Curse.Comment.edit.bind(this,record);cg_ds(hlink);hlink.href="javascript:;";cg_ae(divLinks,hlink);hlink=cg_ce("a");hlink.className="delete";cg_ae(hlink,cg_ct(Localization._delete));hlink.onclick=Curse.Comment.del.bind(this,record);cg_ds(hlink);hlink.href="javascript:;";cg_ae(divLinks,hlink);}
var aReply=cg_ce("a");aReply.className="reply";cg_ae(aReply,cg_ct(Localization.reply));if(Curse.User.id){aReply.onclick=Curse.Comment.scrollToForm.bind(this);aReply.href="javascript:;";}
else{aReply.onclick=cg_navToLogin.bind(this);aReply.href="javascript:;";aReply.onmouseover=Curse.Tooltip.showTip.bind(aRateUp,Localization.login_rate_comments);aReply.onmouseout=Curse.Tooltip.hide;}
cg_ae(divLinks,aReply);var aReport=cg_ce("a");aReport.className="reply";cg_ae(aReport,cg_ct("Report"));if(Curse.User.id){aReport.onclick=Curse.Comment.report.bind(this,record);aReport.href="javascript:;";}
else{aReport.onclick=cg_navToLogin.bind(this);aReport.href="javascript:;";aReport.onmouseover=Curse.Tooltip.showTip.bind(aRateUp,"You must login to report comments");aReport.onmouseout=Curse.Tooltip.hide;}
cg_ae(divLinks,aReport);record.divLinks=divLinks;cg_ae(container,divLinks);if(hideComment){divLinks.style.display="none";}},columns:[{id:"name",label:Localization.name,align:"left",value:"body",sortFunc:function(a,b){return cg_strcmp(a.date,b.date);}}]}};var cg_zybez_items={};cg_zybez_items.addData=function(data){if(data.length==null){dataArray=[];dataArray[0]=data;}
else{dataArray=data;}
for(var i=0,len=dataArray.length;i<len;i++){cg_zybez_items[dataArray[i].id]=dataArray[i];cg_zybez_items[dataArray[i].id].getName=Curse.ZYBEZ.Item.getName;cg_zybez_items[dataArray[i].id].createIcon=Curse.ZYBEZ.Item.createIcon;cg_zybez_items[dataArray[i].id].getNameWithRarity=Curse.ZYBEZ.Item.getNameWithRarity;cg_zybez_items[dataArray[i].id].getNameWithStyle=Curse.ZYBEZ.Item.getNameWithStyle;cg_zybez_items[dataArray[i].id].getStat=Curse.ZYBEZ.Item.getStat;}}
if(!Curse.ZYBEZ){Curse.ZYBEZ={};}
Curse.ZYBEZ.Item={};Curse.ZYBEZ.Item.createIcon=function(size,num,showNum,baseURL){if(!baseURL){baseURL="";}
return new Curse.Icon(size,this.icon,baseURL+"item.aspx?id="+this.id,this.id,null,Curse.Tooltip.handleItemLinkOver,{hideIcon:true},Curse.Tooltip.hide,null,num,null,showNum,null,null,baseURL);};Curse.ZYBEZ.Item.getStat=function(statid){if(this.stats==null){return 0;}
for(var i=0;i<this.stats.length;i++){if(this.stats[i].id==statid)
return this.stats[i].val;}
return 0;};Curse.ZYBEZ.Item.getName=function(){if(this.name){return this.name;}
var name=this.tooltip.substring(52,this.tooltip.indexOf("</span>"))
name=name.substring(name.indexOf(">")+1);this.name=name;return this.name;};Curse.ZYBEZ.Item.getNameWithRarity=function(){if(!this.name){name=this.getName();}
if(!this.rarity){var rindex=this.tooltip.indexOf('class="r');this.rarity=this.tooltip.substring(rindex+8,rindex+9);}
return{name:this.name,rarity:this.rarity};};Curse.ZYBEZ.Item.getNameWithStyle=function(){if(this.nameWithStyle){return this.nameWithStyle;}
var name="<span "+this.tooltip.substring(this.tooltip.indexOf("class"),this.tooltip.indexOf("</span>"))+"</span>";this.nameWithStyle=name;return this.nameWithStyle;};if(Curse.ZYBEZ.Site){cg_items=cg_zybez_items;}
var cg_zybez_quests={};cg_zybez_quests.addData=function(data){if(data.length==null){dataArray=[];dataArray[0]=data;}
else{dataArray=data;}
for(var i=0,len=dataArray.length;i<len;i++){cg_zybez_quests[dataArray[i].id]=dataArray[i];}}
if(Curse.ZYBEZ.Site){cg_quests=cg_zybez_quests;}
if(!Curse)
{var Curse={};}
var cg_news={};cg_news.data={};cg_news.addData=function(data)
{if(data.length==null)
{dataArray=[];dataArray[0]=data;}
else
{dataArray=data;}
for(var i=0,len=dataArray.length;i<len;i++)
{cg_news.data[dataArray[i].id]=dataArray[i];var postDate=new Date(dataArray[i].postedTime);cg_news.data[dataArray[i].id].postedTime=cg_getShortFriendlyTime(cg_getLocalDateFromTime(postDate.getTime()));}}
Curse.news={showNews:function()
{var container=cg_ge("divNewsContainer");var first=true;for(id in cg_news.data)
{var newsEntry=cg_news.data[id];if(first)
{cg_setBrowseMenu([[11,"News","news.aspx"],[12,newsEntry.title,"newsItem.aspx?id="+id]]);first=false;}
var newsCont=cg_ce("div");var headLine=cg_ce("h2");var sm=cg_ce("small");sm.innerHTML=" posted "+newsEntry.postedTime+" by "+newsEntry.userName;var link=cg_ce("a");link.href="newsItem.aspx?id="+newsEntry.id;link.innerHTML=newsEntry.title;cg_ae(headLine,link);cg_ae(headLine,sm);cg_ae(container,newsCont);cg_ae(newsCont,headLine);cg_ae(newsCont,document.createTextNode(newsEntry.text));}}}
Curse.StaticMap={isShaded:false,divContainer:null,zoomLevel:1,maxZoom:3,currentLocationId:0,currentMapIndex:0,allowZoom:true};Curse.StaticMap.toggleZoom=function(){if(!Curse.StaticMap.allowZoom){return;}
if(Curse.StaticMap.zoomLevel==Curse.StaticMap.maxZoom){Curse.StaticMap.zoomLevel=1;}
else{Curse.StaticMap.zoomLevel+=1;}
if(Curse.StaticMap.zoomLevel==1){cg_ge("mapContainer").style.clear="none";}
else{cg_ge("mapContainer").style.clear="both";}
updateMap();}
Curse.StaticMap.toggleShade=function(){if(!Curse.StaticMap.divContainer){return;}
var divShade=cg_getElementsByClassName("map-shade","div",Curse.StaticMap.divContainer,true);if(!divShade){return;}
Curse.StaticMap.isShaded=!Curse.StaticMap.isShaded;if(Curse.StaticMap.isShaded){divShade.style.display="block";}
else{divShade.style.display="none";}}
var _mapLocations=null;var _mapCurrentIndex=0;var _mapCurrentZoom=1;var isMapEdit=true;var _mapHideTabs=false;var _mapWidth=new Array();var _mapHeight=new Array();var _mapX=new Array();var _mapY=new Array();var cg_mapIcons={};cg_mapIcons[1]="map-icon-start";cg_mapIcons[2]="map-icon-end";cg_mapIcons[3]="map-icon-lumber";cg_mapIcons[4]="map-icon-mining";cg_mapIcons[5]="map-icon-herbs";function addMapLocations(data){_mapLocations=data;if(data&&data[0]==null)
return;_mapHideTabs=data[0].hideTabs;if(data){processMap(data);}
else{var mapContainer=cg_ge("mapContainer");mapContainer.innerHTML=Localization.replace("location_unknown",detailsEntityTypeLabel.toLowerCase());}}
function processMap(data){var mapContainer=cg_ge("mapContainer");var mapTabs=document.createElement("div");mapTabs.className="map-tabs";var tabLabels=[];var tabValues=[];for(var i=0;i<_mapLocations.length;i++){tabLabels.push(_mapLocations[i].mapLabel+" ("+_mapLocations[i].coords.length+")");tabValues.push(i);_mapWidth.push(_mapLocations[i].mapWidth);_mapHeight.push(_mapLocations[i].mapHeight);_mapX.push(_mapLocations[i].originX);_mapY.push(_mapLocations[i].originY);}
if(tabLabels.length>0){mapTabs.id="tabGroupMap";mapContainer.appendChild(mapTabs);if(tabLabels.length<=5){createTabGroup(mapTabs,"tabGroupMap",tabLabels.join("|"),tabValues.join("|"),0,"updateMapIndex");}
else{createLinkGroup(mapTabs,"tabGroupMap",tabLabels.join("|"),tabValues.join("|"),0,"updateMapIndex");}
var locationLinks=mapTabs.getElementsByTagName("A");var firstLocationIndex=0;for(i=0;i<locationLinks.length;i++){if(locationLinks[i].onclick){locationLinks[i].onclick();break;}}}
var noMapLinks=[];for(var i=0;i<_mapLocations.length;i++){if(_mapLocations[i].coords.length==0){noMapLinks.push("<a href=\"location.aspx?id="+_mapLocations[i].locationID+"\">"+_mapLocations[i].mapLabel+"</a>");}}
if(Curse.Page.entityTypeID==3){var editMapInfo=document.createElement('div');editMapInfo.id="editMapInfo";mapContainer.appendChild(editMapInfo);mapContainer.insertBefore(editMapInfo,cg_ge("tabGroupMap"));editMapClick();}}
function createTabGroup(objTabContainer,tabGroupName,tabLabels,tabValues,tabSelectedIndex,onClick){var containerDiv=document.createElement("DIV");var elUL=document.createElement("UL");elUL.className="tabs";var elClassName="selected";var resultsDescriptor;var resultsDescriptorLabel;var resultsCount;var arrTabLabels=tabLabels.split("|");var arrTabValues=tabValues.split("|");var selectedTabAnchor=null;for(var i=0;i<arrTabLabels.length;i++){if(i==tabSelectedIndex){elClassName="selected";}
else{elClassName="";}
var eLI=document.createElement("LI");var currentTabHTML="";currentTabHTML="<a ";if(onClick){currentTabHTML+="onclick=\""+onClick+"(this,"+i+",'"+arrTabValues[i]+"')\"";}
currentTabHTML+=" class=\""+elClassName+"\"><div id=\""+tabGroupName+"_"+i+"\">"+arrTabLabels[i]+"</div><b>"+arrTabLabels[i]+"</b></a></li>";eLI.innerHTML=currentTabHTML;eLI.firstChild.ascRelatedContainerID=arrTabValues[i];elUL.appendChild(eLI);if(i==tabSelectedIndex){selectedTabAnchor=eLI.childNodes[0];}}
containerDiv.appendChild(elUL);objTabContainer.appendChild(containerDiv);if(!_mapHideTabs){objTabContainer.style.display="block";}
if(selectedTabAnchor&&selectedTabAnchor.onclick){selectedTabAnchor.onclick();}}
function createLinkGroup(objTabContainer,tabGroupName,tabLabels,tabValues,tabSelectedIndex,onClick){var containerDiv=document.createElement("DIV");var elClassName="selected";var resultsDescriptor;var resultsDescriptorLabel;var resultsCount;var arrTabLabels=tabLabels.split("|");var arrTabValues=tabValues.split("|");for(var i=0;i<arrTabLabels.length;i++){if(i==tabSelectedIndex){elClassName="selected";}
else{elClassName="";}
var currentTabHTML="";if(i>0){currentTabHTML=" | ";}
currentTabHTML+="<a ";if(onClick){currentTabHTML+="onclick=\""+onClick+"(this,"+i+",'"+arrTabValues[i]+"')\"";}
currentTabHTML+=" class=\""+elClassName+"\">"+arrTabLabels[i]+"</a>";containerDiv.innerHTML+=currentTabHTML;}
objTabContainer.appendChild(containerDiv);objTabContainer.style.display="inline";}
function setMapLinks(mapIndex){clearMapLinks();if(_mapLocations[mapIndex].mapType=="quest"){}
else if(_mapLocations[mapIndex].mapType=="objects"){setMapLinks_Herbs_Minerals(mapIndex);}}
function getDistinctFilterValues(mapIndex,filterName){var mapCoords=_mapLocations[mapIndex].coords;var distinctValues=[];for(var i=0;i<mapCoords.length;i++){var currentValue=getMapFilterValue(mapCoords[i],filterName);if(cg_isArray(currentValue)){for(var j=0;j<currentValue.length;j++){var index=distinctValues.indexOf(currentValue[j]);if(index==null||index<0){distinctValues.push(currentValue[j]);}}}
else{if(distinctValues.indexOf(currentValue)<0){distinctValues.push(currentValue);}}}
return distinctValues;}
function getMapFilterCount(mapIndex,filterName,filterValueArray){var mapCoords=_mapLocations[mapIndex].coords;var newCoords=[];var filterCount=0;for(i=0;i<mapCoords.length;i++){if(getMatchStatus(filterValueArray,getMapFilterValue(mapCoords[i],filterName))){filterCount+=1;}}
return filterCount;}
function clearMapFilters(link,mapIndex){var mapCoords=_mapLocations[mapIndex].coords;var newCoords=[];for(i=0;i<mapCoords.length;i++){mapCoords[i].IsHidden=false;}
updateMap(null,link,_mapLocations[mapIndex].locationID,null,mapIndex);}
function filterMapLocations(link,mapIndex,filterName,filterValues){var mapCoords=_mapLocations[mapIndex].coords;var newCoords=[];for(i=0;i<mapCoords.length;i++){if(getMatchStatus(filterValues,getMapFilterValue(mapCoords[i],filterName))){mapCoords[i].IsHidden=false;}
else{mapCoords[i].IsHidden=true;}}
updateMap(null,link,_mapLocations[mapIndex].locationID,null,mapIndex);}
function getMatchStatus(searchValueArray,pointValueArray){if(cg_isArray(pointValueArray)){for(var i=0;i<pointValueArray.length;i++){if(searchValueArray.indexOf(pointValueArray[i])>=0){return true;}}
return false;}
else{return searchValueArray.indexOf(pointValueArray)>=0;}}
function getMapFilterLinks(filterLabelArray,filterValueArray,mapIndex,filterName){var mapFilterLinks=[];mapFilterLinks.push("<button class=\"smallTab\" onclick=\"this.blur();clearMapFilters(this, "+mapIndex+");\"><span>"+Localization.any+" ("+_mapLocations[mapIndex].coords.length+")</span></button>");for(var i=0;i<filterLabelArray.length;i++){var currentValueArray=filterValueArray[i];var currentFilterCount=getMapFilterCount(mapIndex,filterName,currentValueArray);if(currentFilterCount<=0){continue;}
var currentLabel=filterLabelArray[i];for(var j=0;j<currentValueArray.length;j++){if(currentValueArray[j].constructor.toString().indexOf("String")>0){currentValueArray[j]="'"+currentValueArray[j].replace(/'/g,"\\'")+"'";}}
mapFilterLinks.push("<button class=\"smallTab\" onclick=\"this.blur();filterMapLocations(this, "+mapIndex+",'"+filterName+"',["+currentValueArray+"]);\"><span>"+currentLabel+" ("+currentFilterCount+")</span></button>");}
return mapFilterLinks.join(" ");}
function getMapFilterValue(mapRecord,filterName){switch(filterName){case"territoryID":return mapRecord[4].territoryID;break;case"entityNames":return mapRecord[4].entityNames;break;}}
function setMapLinks_Herbs_Minerals(mapIndex){var distinctEntitySearchValues=[];var distinctEntityValues=getDistinctFilterValues(mapIndex,"entityNames");for(var i=0;i<distinctEntityValues.length;i++){var currentFilter=distinctEntityValues[i].split("|");distinctEntitySearchValues.push(currentFilter);}
var mapLinks=getMapFilterLinks(distinctEntityValues,distinctEntitySearchValues,mapIndex,"entityNames");var mapContainer=cg_ge("mapContainer");var locationLinks=getMapLinks(mapContainer);if(!locationLinks){locationLinks=document.createElement("div");locationLinks.className="map-links";mapContainer.appendChild(locationLinks);}
locationLinks.innerHTML=mapLinks;locationLinks.style.display="block";var locationLinks=cg_getElementsByClassName("map-links","div",mapContainer,true).getElementsByTagName("button");var firstLocationLink=locationLinks[0];if(firstLocationLink){firstLocationLink.onclick();}}
function clearMapLinks(){var mapContainer=cg_ge("mapContainer");var locationLinks=cg_getElementsByClassName("map-links","div",mapContainer,true);if(locationLinks!=""){locationLinks.style.display="none";locationLinks.innerHTML="";}}
function getMapLinks(mapContainer){var locationLinks=cg_getElementsByClassName("map-links","div",mapContainer,true);if(!locationLinks||locationLinks.length==0){return null;}
else{return locationLinks;}}
function setCurrentTab(tabsContainer,newTabIndex){var tabsCollection=tabsContainer.getElementsByTagName("A");if(tabsCollection.length==0){return;}
for(var i=0;i<tabsCollection.length;i++){if(i==newTabIndex){tabsCollection[i].className="selected";if(tabsCollection[i].ascRelatedContainerID&&cg_ge(tabsCollection[i].ascRelatedContainerID)){showElementByID(tabsCollection[i].ascRelatedContainerID);}}
else{tabsCollection[i].className="";if(tabsCollection[i].ascRelatedContainerID&&cg_ge(tabsCollection[i].ascRelatedContainerID)){cg_ge(tabsCollection[i].ascRelatedContainerID).style.display="none";}}}}
function setMapLinks_Quest(mapIndex){var mapContainer=cg_ge("mapContainer");var locationLinks=getMapLinks(mapContainer);if(!locationLinks){locationLinks=document.createElement("div");locationLinks.className="map-links";mapContainer.appendChild(locationLinks);}
else{locationLinks.innerHTML="";}
var mapLinks;var nCount=getMapFilterCount(mapIndex,"territoryID",[1]);var aCount=getMapFilterCount(mapIndex,"territoryID",[2]);var hCount=getMapFilterCount(mapIndex,"territoryID",[4]);if(aCount>0&&hCount>0){mapLinks=Localization.show_quest_givers_for+getMapFilterLinks(["Alliance","Horde"],[[1,2],[1,4]],0,"territoryID");}
else if(hCount>0){mapLinks="";}
else if(aCount>0){mapLinks=Localization.replace("zone_npc_count",aCount);}
else if(nCount>0){mapLinks=Localization.replace("zone_neutral_count",nCount);}
locationLinks.innerHTML="<div>"+mapLinks+"</div>";locationLinks.style.display="block";var locationLinks=cg_getElementsByClassName("map-links","div",mapContainer,true).getElementsByTagName("button");var firstLocationLink=locationLinks[0];if(firstLocationLink){firstLocationLink.onclick();}
else{updateMap(null,null,_mapLocations[0].locationID);}}
function getMapLocations(locationID,mapIndex){for(i=0;i<_mapLocations.length;i++){if(_mapLocations[i].locationID==locationID){return _mapLocations[i];}}}
function updateCoordinateDisplay(){var elemPos=cg_getPosition(cg_ge("mapSpan"));var y=Math.round(((Curse.Mouse.y-elemPos.y)/(cg_ge("mapSpan").offsetHeight*1.0))*10.0*100.0)/10.0;var x=Math.round(((Curse.Mouse.x-elemPos.x)/(cg_ge("mapSpan").offsetWidth*1.0))*10.0*100.0)/10.0;x=(x/100.0)*_mapWidth[_mapCurrentIndex]+_mapX[_mapCurrentIndex];y=(y/100.0)*_mapHeight[_mapCurrentIndex]+_mapY[_mapCurrentIndex];cg_ge("mapCoords").innerHTML=Math.round(x)+" , "+Math.round(y);}
function updateMap(e,link,locationID,mapIndex){if(locationID!=null){Curse.StaticMap.currentLocationId=locationID;}
else{locationID=Curse.StaticMap.currentLocationId;}
if(mapIndex!=null){Curse.StaticMap.currentMapIndex=mapIndex;}
else{mapIndex=Curse.StaticMap.currentMapIndex;}
Curse.Tooltip.hide();e=cg_getEvent(e);var targetObj=cg_getEventTarget(e);if(targetObj&&targetObj.parentNode&&targetObj.parentNode.tagName=="A"&&targetObj.parentNode.parentNode.tagName!="LI"){return;}
if(link){if(link.className=="selected"){return;}
setSelectedLink(link.parentNode,link,"button","smallTab","smallTabSelected");}
var mapContainer=cg_ge("mapContainer");Curse.StaticMap.divContainer=mapContainer;var map=cg_ge("map");if(!map){var panel=cg_ce("div");panel.className="panel";var panelL=cg_ce("div");panelL.className="panel-l";cg_ae(panel,panelL);var panelR=cg_ce("div");panelR.className="panel-r";cg_ae(panel,panelR);var panelT=cg_ce("div");panelT.className="panel-t";cg_ae(panel,panelT);var panelB=cg_ce("div");panelB.className="panel-b";cg_ae(panel,panelB);var panelTL=cg_ce("div");panelTL.className="panel-tl";cg_ae(panel,panelTL);var panelTR=cg_ce("div");panelTR.className="panel-tr";cg_ae(panel,panelTR);var panelBL=cg_ce("div");panelBL.className="panel-bl";cg_ae(panel,panelBL);var panelBR=cg_ce("div");panelBR.className="panel-br";cg_ae(panel,panelBR);map=document.createElement("DIV");map.id="map";map.className="map panel-content";cg_ae(panel,map);cg_ae(mapContainer,panel);}
var mapCache=cg_getElementsByClassName("map-cache","DIV",mapContainer,true);if(mapCache==""){mapCache=document.createElement("DIV");mapCache.className="map-cache";mapContainer.appendChild(mapCache);}
var zoomLevel=Curse.StaticMap.zoomLevel;var mapLocations=null;if(mapIndex!=null){mapLocations=_mapLocations[mapIndex];}
else{mapLocations=getMapLocations(locationID);}
var clickZoom=2;var iconScale=1;var linkWidth;if(zoomLevel==1){mapWidth="512px";mapHeight="405px";linkWidth="528px";iconScale=.46;}
else if(zoomLevel==2){mapWidth="768px";mapHeight="608px";linkWidth="784px";clickZoom=3;iconScale=.70;}
else if(zoomLevel==3){mapWidth="1092px";mapHeight="864px";linkWidth="1108px";clickZoom=1;}
var mapLinks=getMapLinks(mapContainer);if(mapLinks){mapLinks.style.width=linkWidth;}
mapCache.innerHTML="<img src=\"maps/"+mapLocations.locale+"/"+locationID+"-"+clickZoom+".jpeg>";map.style.width=mapWidth;map.style.height=mapHeight;var mapCoords=mapLocations.coords;var mapCoordsHTML=[];var mapShaded=true;mapCoordsHTML.push("<div class=\"map-tools\"><var></var>")
if(Curse.StaticMap.allowZoom){mapCoordsHTML.push("<button onclick=\"Curse.StaticMap.toggleZoom();\" class=\"smallButton\"><span>Zoom</span></button>");}
mapCoordsHTML.push(" <button class=\"smallButton\" onmouseout=\"Curse.Tooltip.hide()\" onmouseover=\"Curse.Tooltip.showTip('"+Localization.click_toggle_map+"');\" onclick=\"Curse.StaticMap.toggleShade();\"><span>Shade</span></button></div>");mapCoordsHTML.push("<span id=\"mapSpan\" class=\"map-bg\" style=\"background: transparent url(maps/"+mapLocations.locale+"/"+locationID+"-"+zoomLevel+".jpeg) repeat scroll 0%;width:"+mapWidth+";height:"+mapHeight+";\"><span id=\"mapCoords\" class=\"map-coords\"></span><div class=\"map-cover\"></div>");if(mapShaded){mapCoordsHTML.push("<div class=\"map-shade\"");if(Curse.StaticMap.isShaded){mapCoordsHTML.push(" style=\"display:block;\"");}
mapCoordsHTML.push("></div>");}
for(var i=0;i<mapCoords.length;i++){var currentCoord=mapCoords[i];var currentCoordTooltip="";var currentCoordLink="";var currentCoordClass="";var currentCoordStyle="";if(currentCoord==null)
continue;if(currentCoord.IsHidden){continue;}
if(currentCoord.length>2){currentCoordTooltip=currentCoord[2];if(currentCoordTooltip){currentCoordTooltip=currentCoordTooltip.replace(/'/g,"\\'");currentCoordTooltip=currentCoordTooltip.replace(/"/g,"\\'");}
else{currentCoordTooltip=currentCoord[0]+", "+currentCoord[1];}}
else{currentCoordTooltip=currentCoord[0]+", "+currentCoord[1];}
if(currentCoord.length>3){currentCoordLink=currentCoord[3];}
var mclass="map-pin";var iconmap=false;var trans=true;var alimit="";var modIcon=false;var scale=false;if(currentCoord.length>5&&currentCoord[5]!=""){iconmap=true;}
if(iconmap){var left=currentCoord[0];var top=currentCoord[1];if(trans){}
var iconId=currentCoord[5];var icon=cg_mapIcons[iconId];if(!icon){icon="map-icon";}
var width=14;var height=16;var offsetX=-1*(width/2);var offsetY=-1*(height/2);var limit=mapGetCustomIconSize(currentCoord[5],zoomLevel);mapCoordsHTML.push("<div class=\"map-icon-container\" style=\"left: "+left+"%; top: "+top+"%\">");mapCoordsHTML.push("<a class=\"map-link\" style=\""+alimit+"\" onmouseover=\"Curse.Tooltip.show('"+currentCoordTooltip+"')\" onmouseout=\"Curse.Tooltip.hide();\" ");if(currentCoordLink!=""){mapCoordsHTML.push(" href=\""+currentCoordLink+"\"");}
mapCoordsHTML.push("><img style=\"width:"+width+"px;height:"+height+"px;top:"+offsetY+"px;left:"+offsetX+"px;\" class=\"map-landmark-icon\" src=\"images/"+icon+".png\" ></a>");mapCoordsHTML.push("</div>");}
else{mapCoordsHTML.push("<div class=\""+mclass+""+currentCoordClass+"\" style=\"left: "+currentCoord[0]+"%; top: "+currentCoord[1]+"%;\"><a id=\"mPin-"+mapIndex+"-"+i+"\" onmouseover=\"Curse.Tooltip.show('"+currentCoordTooltip+"')\" style=\""+currentCoordStyle+";\" onmouseout=\"Curse.Tooltip.hide();\"");if(currentCoordLink==""){mapCoordsHTML.push(" style=\"cursor: default;\"");}
else{mapCoordsHTML.push(" href=\""+currentCoordLink+"\"");}
mapCoordsHTML.push("></a></div>");}}
mapCoordsHTML.push("</span>");map.innerHTML=mapCoordsHTML.join("");}
function mapGetCustomIconSize(iconID,zoomLevel){var size=0;if(zoomLevel==1){size=70;}
else if(zoomLevel==2){size=90;}
else if(zoomLevel==3){size=100;}
switch(parseInt(iconID)){case 6:size=55;break;case 19:size=55;break;case 20:size=55;break;case 27:size=55;break;case 27:size=55;break;}
if(size==0){return"";}
else{return"style=\"width:"+size+"%;height:"+size+"%;\"";}}
function updateMapIndex(link,tabIndex,newIndex){_mapCurrentIndex=newIndex;if(_mapLocations[newIndex]){setMapLinks(newIndex);setCurrentTab(cg_ge("tabGroupMap"),tabIndex);updateMap(null,null,_mapLocations[newIndex].locationID,newIndex);}
else{updateMap(null,null,_detailsEntityID,0);}}
function editMapClick(){if(!Curse.User.isModerator){return;}
isMapEdit=!isMapEdit;if(isMapEdit){cg_ge("editMapInfo").innerHTML="<table style=\"width: 486px;\"><tr><td class=small>This map is currently being edited. Click the Cancel button to exit edit mode.</td><td align=right><button class=\"smallButton\" onclick=\"editMapClick();\"><span>Cancel</span></button></td></tr></table>";cg_ge("mapSpan").onclick=null;cg_addEventListener(cg_ge("mapSpan"),"click",addUserLocation);cg_ge("mapSpan").style.cursor="crosshair";}
else{cg_ge("editMapInfo").innerHTML="<table style=\"width: 486px;\"><tr><td class=small>"+Localization.replace("to_edit_this_map","<span class=\"tip\" onmouseover=\"Curse.Tooltip.showTip('"+Localization.locations_you_add+"');\" onmouseout=\"Curse.Tooltip.hide();\">","</span>")+"</td><td><button  class=\"smallButton\" onclick=\"editMapClick();\"><span>"+Localization.edit_map+"</span></button></td></tr></table>";cg_removeEventListener(cg_ge("mapSpan"),"click",addUserLocation);cg_ge("mapSpan").style.cursor="default";var currentLocationID=_mapLocations[_mapCurrentIndex].locationID;var newZoomLevel=_mapCurrentZoom+1;if(newZoomLevel==4){newZoomLevel=1;}
if(cg_ge("mapSpan").onclick==null){var fn=new Function("updateMap(window.event, null,'"+currentLocationID+"',"+_mapCurrentIndex+")");cg_ge("mapSpan").onclick=fn;}}}
function addUserLocation(e){var elemPos=cg_getPosition(cg_ge("mapSpan"));var y=Math.round(((Curse.Mouse.y-elemPos.y)/(cg_ge("mapSpan").offsetHeight*1.0))*10.0*100.0)/10.0;var x=Math.round(((Curse.Mouse.x-elemPos.x)/(cg_ge("mapSpan").offsetWidth*1.0))*10.0*100.0)/10.0;var pophtml=Localization.select_location_type+"<form><br><br><input type=\"hidden\" id=\"posX\" value=\""+x+"\"><input type=\"hidden\" id=\"posY\" value=\""+y+"\"><table><tr><td class=\"label\">"+Localization.type+":</td><td class=\"alertInput\"><select id=\"locTypeSelect\" onchange=\"setTypeAssist();\"><option value=\"-1\"></option><option value=\"5\">Objects</option><option value=\"2\">"+Localization.npc+"</option></select><br><span align=\"top\"></td></tr><tr><td class=\"label\">"+Localization.name+":</td><td class=\"alertInput\"><input type=\"text\" id=\"locEntityName\"><div class=\"desc\">"+Localization.replace("enter_to_x_chars",50)+"</div></td></tr></table></form>";Curse.Alert.show(pophtml,Localization.add_map_location,"","addNewLocation()^"+Localization.ok+"|Curse.Alert.close()^"+Localization.cancel,null,null,null,true);}
function setTypeAssist(){var type=cg_ge("locTypeSelect").value;if(type=="5"){Curse.SearchAssistant.attach("locEntityName",false,5);}
else{Curse.SearchAssistant.attach("locEntityName",false,2);}}
function addNewLocation(){var type=cg_ge("locTypeSelect").value;var name=cg_ge("locEntityName").value;if(type==""||name==""){return;}
var x=cg_ge("posX").value;var y=cg_ge("posY").value;var url="ajaxMapEdit.aspx?maploc="+type+"^"+name+"^"+x+"^"+y+"^"+_mapLocations[_mapCurrentIndex].locationID;Curse.Ajax.load(url,handleLocationSubmitPostback,'text','post');Curse.Alert.close();}
function handleLocationSubmitPostback(data){var postResult=data.split("|");Curse.Alert.show(postResult[1],Localization.add_map_location);}
Curse.TextFormatter.setFormattedText=function(container,text){cg_ge(container).innerHTML=Curse.TextFormatter.getFormattedText(text);}
function getQuestTooltipLink(questID,previewMode,tooltipLabel){return getFullQuestLink(questID,previewMode,tooltipLabel,false);}
function getFullQuestLink(questID,previewMode,tooltipLabel,iconOnly){if(isNaN(questID)){return"";}
var myQuest=cg_quests[questID];if(myQuest==null){if(previewMode){return"<b>["+Localization.quests_appear+"]</b>";}
return"";}
return getQuestLink(myQuest,tooltipLabel);}
function getQuestLink(objQuest,linkLabel){if(!linkLabel){linkLabel=objQuest.getName();}
linkLabel=">"+linkLabel;return"<a href=\"quest.aspx?id="+objQuest.id+"\" onmouseout=\"Curse.Tooltip.hide();\"  onmouseover=\"Curse.Tooltip.showQuestTooltip(["+objQuest.id+"],null,true);\""+linkLabel+"</a>";}
function getTooltipLinks(text,tag,formattingFunction,previewMode){var tooltipRegEx=new RegExp("\\["+tag+"(=[0-9]+)?( amount=)?([0-9]+)?( size=)?([a-z]+)?\\](.*?)\\[\/"+tag+"\\]");var tooltipMatch=tooltipRegEx.exec(text);while(tooltipMatch!=null){var tooltipAmount=null;var tooltipID=null;var tooltipLabel=null;var tooltipSize=null;if(tooltipMatch[1]&&tooltipMatch[1]!=""){tooltipID=tooltipMatch[1].substring(1);tooltipLabel=tooltipMatch[6];}
else if(tooltipMatch[6]){tooltipID=tooltipMatch[6];}
if(tooltipMatch[3]){tooltipAmount=tooltipMatch[3];}
if(tooltipMatch[5]){tooltipSize=tooltipMatch[5];}
text=text.replace(tooltipRegEx,formattingFunction(tooltipID,previewMode,tooltipLabel,tooltipAmount,tooltipSize));tooltipMatch=tooltipRegEx.exec(text);}
return text;}
function getTextItemLink(itemID,previewMode,tooltipLabel){if(isNaN(itemID)){return"";}
var myItem=cg_items[itemID];if(myItem==null){if(previewMode){return"<b>["+Localization.items_appear+"]</b>";}
return"";}
if(!tooltipLabel){tooltipLabel=myItem.getNameWithRarity().name;}
var itemLink="<a href=\"item.aspx?id="+myItem.id+"\" onmouseout=\"Curse.Tooltip.hide();\" onmouseover=\"Curse.Tooltip.handleItemLinkOver(this);\" class=\"r"+myItem.rarity+"\">"+tooltipLabel+"</a>";return itemLink;}
function getIconItemLink(itemID,previewMode,tooltipLabel,tooltipAmount,tooltipSize){return getFullItemLink(itemID,previewMode,tooltipLabel,tooltipAmount,tooltipSize,true);}
function getFullItemLink(itemID,previewMode,tooltipLabel,tooltipAmount,tooltipSize,iconOnly){if(iconOnly==null){iconOnly=false;}
if(isNaN(itemID)){return"";}
var item=cg_items[itemID];if(item==null){if(previewMode){return"<b>["+Localization.items_appear+"]</b>";}
return"";}
var itemLinkHTML=[];if(!tooltipLabel){tooltipLabel=item.getName();}
var itemRarity=item.getNameWithRarity().rarity;var itemName="<a class=r"+itemRarity+" href=\"item.aspx?id="+item.id+"\" onmouseout=\"Curse.Tooltip.hide();\" onmouseover=\"Curse.Tooltip.showItemTooltip(["+item.id+"]);\">"+tooltipLabel+"</a>";if(!tooltipSize){tooltipSize="medium";}
if(!iconOnly){itemLinkHTML.push("<table class=\"tableTooltipLink\"><tr><td>");}
itemLinkHTML.push("<div class=\"icon"+tooltipSize+"\" style=\"background-image:url(icons/"+tooltipSize.substring(0,1)+"/");itemLinkHTML.push(item.icon);itemLinkHTML.push(".gif);\"><div class=\"tile\">");if(tooltipAmount&&tooltipAmount>1){itemLinkHTML.push(getGlowHTML(tooltipAmount));}
itemLinkHTML.push("<a onmouseout=\"Curse.Tooltip.hide();\" onmouseover=\"Curse.Tooltip.showItemTooltip(["+item.id+"],{hideIcon:true});\" href=\"item.aspx?id="+item.id+"\"></a></div></div>");if(!iconOnly){itemLinkHTML.push("</td>");itemLinkHTML.push("<td style=\"padding-left: 4px;\">"+itemName+"</td></tr></table>");}
return itemLinkHTML.join("");}
function getSpellLink(objSpell,linkLabel){if(!linkLabel){linkLabel=objSpell.getName();}
linkLabel=">"+linkLabel;return"<a href=\"spell.aspx?id="+objSpell.id+"\" onmouseout=\"Curse.Tooltip.hide();\"  onmouseover=\"Curse.Tooltip.showSpellTooltip(["+objSpell.id+"],null,true);\""+linkLabel+"</a>";}
function getTextSpellLink(spellID,previewMode,tooltipLabel){if(isNaN(spellID)){return"";}
var mySpell=cg_spells[spellID];if(mySpell==null){if(previewMode){return"<b>["+Localization.spells_appear+"]</b>";}
return"";}
return getSpellLink(mySpell,tooltipLabel);}
function getIconSpellLink(spellID,previewMode,tooltipLabel){return getFullSpellLink(spellID,previewMode,tooltipLabel,true);}
function getFullSpellLink(spellID,previewMode,tooltipLabel,iconOnly){if(isNaN(spellID)){return"";}
if(iconOnly==null){iconOnly=false;}
var mySpell=cg_spells[spellID];if(mySpell==null){if(previewMode){return"<b>["+Localization.spells_appear+"]</b>";}
return"";}
var spellLinkHTML=[];var spellName=getSpellLink(mySpell,tooltipLabel);if(!iconOnly){spellLinkHTML.push("<table class=\"tableTooltipLink\"><tr><td>");}
spellLinkHTML.push("<div class=\"iconmedium\" style=\"background-image:url(icons/m/");spellLinkHTML.push(mySpell.icon);spellLinkHTML.push(".gif);\"><div class=\"tile\">");spellLinkHTML.push("<a onmouseout=\"Curse.Tooltip.hide();\" onmouseover=\"Curse.Tooltip.showSpellTooltip(["+mySpell.id+"],{hideIcon:true});\" href=\"spell.aspx?id="+mySpell.id+"\"></a></div></div>");if(!iconOnly){spellLinkHTML.push("</td>");spellLinkHTML.push("<td style=\"padding-left: 4px;\">"+spellName+"</td></tr></table>");}
return spellLinkHTML.join("");}
Curse.Page={initialize:function(args)
{cg_cO(Curse.Page,args);}}
var cg_zybez_spells={};cg_zybez_spells.addData=function(data){var dataArray;if(data.length==null){dataArray=[];dataArray[0]=data;}
else{dataArray=data;}
for(var i=0,len=dataArray.length;i<len;i++){cg_zybez_spells[dataArray[i].id]=dataArray[i];cg_zybez_spells[dataArray[i].id].getName=Curse.ZYBEZ.Spell.getName;cg_zybez_spells[dataArray[i].id].createIcon=Curse.ZYBEZ.Spell.createIcon;}}
if(!Curse.ZYBEZ)
Curse.ZYBEZ={};Curse.ZYBEZ.Spell={};Curse.ZYBEZ.Spell.createIcon=function(size,baseURL,url){if(!baseURL){baseURL="";}
if(!url){url=baseURL+"spell.aspx?id="+this.id;}
return new Curse.Icon(size,this.icon,url,this.id,null,Curse.Tooltip.handleSpellLinkOver,{hideIcon:true},Curse.Tooltip.hide,null,null,null,null,null,null,baseURL);};Curse.ZYBEZ.Spell.getName=function(){if(this.name){return this.name;}
var name=this.tooltip.substring(this.tooltip.indexOf("spell-name")+12,this.tooltip.indexOf("</span>"));this.name=name;return this.name;};if(Curse.ZYBEZ.Site){cg_spells=cg_zybez_spells;}
Curse.DataGrid.Templates.commentsPreview={sort:[-4],hasViewstate:true,showRefineBox:false,refineColumn:"preview",getRecordLink:function(record)
{switch(record.subjectType)
{case 111:return Curse.Lookup.entity_link[record.subjectType]+"?build="+record.subjectId+"#comments:id="+record.id;break;default:return Curse.Lookup.entity_link[record.subjectType]+"?id="+record.subjectId+(record.id!=null?"#comments:id="+record.id:"");break;}},columns:[{id:"subject",label:Localization.subject,align:"left",value:"subject",render:function(record,td,tr)
{var id=cg_ce("div");id.className="avatar userstatus"+record.userstatus;var img=cg_ce("img");img.src="avatars/"+record.userAvatar+".gif";cg_ae(id,img);id.style.cssFloat="left";id.style.marginRight="4px";cg_ae(td,id);var a=cg_ce("a");var d=cg_ce("div");d.className="small";cg_ae(d,cg_ct(Curse.Lookup.entity_label[record.subjectType]));a.href=this.template.getRecordLink(record);switch(record.subjectType)
{case 1:a._relatedID=record.subjectId;a.onmouseover=Curse.Tooltip.handleItemLinkOver.bind(this,a);a.onmouseout=Curse.Tooltip.hide;break;case 4:a._relatedID=record.subjectId;a.onmouseover=Curse.Tooltip.handleQuestLinkOver.bind(this,a);a.onmouseout=Curse.Tooltip.hide;break;case 6:a._relatedID=record.subjectId;a.onmouseover=Curse.Tooltip.handleSpellLinkOver.bind(this,a);a.onmouseout=Curse.Tooltip.hide;break;}
cg_ae(a,cg_ct(record.subject));cg_ae(td,a);cg_ae(td,d);}},{id:"preview",label:Localization.preview,value:"rating",align:"left",width:"50%",render:function(record,td)
{var d=cg_ce("div");d.className="comment-preview";cg_ae(d,cg_ct(record.preview+" ..."));cg_ae(td,d);d=cg_ce("div");d.className="smallGray";cg_ae(d,cg_ct(Localization.by+" "));var aUser=cg_ce("a");aUser.href="user.aspx?id="+record.userid;cg_ae(aUser,cg_ct(record.user));cg_ae(d,aUser);cg_ae(d,cg_ct(" - "));cg_ae(d,cg_ct(Localization.rating+": "+(record.rating>0?"+":"")+record.rating));cg_ae(td,d);}},{id:"replies",label:Localization.replies,width:"75px",value:"replies"},{id:"posted",label:Localization.posted,width:"15%",value:"date",render:function(record,td,tr)
{return cg_getShortFriendlyTime(record.date);}}]}
Curse.DataGrid.Templates.screenshotsPreview={sort:[-4],hasViewstate:true,customClass:"screenshots-preview",getRecordLink:function(record){switch(record.subjectType){case 111:return"feat.aspx?build="+record.subjectId+"#screenshots:id="+record.id;break;case 0:return"viewScreenshots.aspx?id="+record.subjectId;break;default:return Curse.Lookup.entity_link[record.subjectType]+"?id="+record.subjectId+(record.id!=null?"#screenshots:id="+record.id:"");break;}},columns:[{id:"subject",label:"Subject",align:"left",value:"body",width:"20%",span:1,render:function(record,td,tr){var id=cg_ce("div");id.style.marginRight="4px";id.style.cssFloat="left";var img=cg_ce("img");img.style.width="96px";img.style.border="1px solid #373737";img.src="screenshots/thumbnails/"+record.id+".jpg";cg_ae(id,img);cg_ae(td,id);var sdiv=cg_ce("div");var a=cg_ce("a");var d=cg_ce("div");d.className="small";var label=Curse.Lookup.entity_label[record.subjectType];if(record.subjectType==0){label="Screenshots";record.subject=Curse.Lookup.screenshot_category_id[record.subjectId];}
cg_ae(d,cg_ct(label));a.href=this.template.getRecordLink(record);switch(record.subjectType){case 1:a._relatedID=record.subjectId;a.onmouseover=Curse.Tooltip.handleItemLinkOver.bind(this,a);a.onmouseout=Curse.Tooltip.hide;break;case 4:a._relatedID=record.subjectId;a.onmouseover=Curse.Tooltip.handleQuestLinkOver.bind(this,a);a.onmouseout=Curse.Tooltip.hide;break;case 6:a._relatedID=record.subjectId;a.onmouseover=Curse.Tooltip.handleSpellLinkOver.bind(this,a);a.onmouseout=Curse.Tooltip.hide;break;}
cg_ae(a,cg_ct(record.subject));cg_ae(sdiv,a);cg_ae(sdiv,d);cg_ae(td,sdiv);},sortFunc:function(a,b){return cg_strcmp(a.date,b.date);}},{id:"author",label:"Posted By",value:"user",align:"left",width:"20%",span:1,render:function(record,td,tr){td.style.verticalAlign="top";var id=cg_ce("div");id.className="avatar userstatus"+record.userstatus;var img=cg_ce("img");img.src="avatars/"+record.userAvatar+".gif";cg_ae(id,img);id.style.cssFloat="left";id.style.marginRight="4px";cg_ae(td,id);d=cg_ce("div");var aUser=cg_ce("a");aUser.href="user.aspx?id="+record.userid;cg_ae(aUser,cg_ct(record.user));cg_ae(d,aUser);cg_ae(td,d);var d=cg_ce("div");d.className="small";cg_ae(d,cg_ct("Screenshots Submitted: "));var b=cg_ce("b");cg_ae(b,cg_ct(record.usercount));cg_ae(d,b);cg_ae(td,d);}},{id:"count",label:"# Screenshots",width:"5%",value:"count"},{id:"posted",label:Localization.posted,width:"10%",value:"date",render:function(record,td,tr){return cg_getShortFriendlyTime(record.date);}}]}
Curse.DataGrid.Templates.users={sort:[1],hasViewstate:true,showRefineBox:true,refineColumn:"name",getRecordLink:function(record)
{return"user.aspx?id="+record.id;},columns:[{id:"name",label:Localization.name,align:"left",value:"name",span:2,render:function(record,td,tr)
{var i=cg_ce("td");i.style.borderRight="none";var id=cg_ce("div");id.className="avatar userstatus"+record.userstatus;var img=cg_ce("img");img.src="avatars/"+record.userAvatar+".gif";cg_ae(id,img);cg_ae(i,id);i.style.width="40px";cg_ae(tr,i);var d=cg_ce("div");d.style.cssFloat="left";var a=cg_ce("a");a.href="user.aspx?id="+record.id;cg_ae(a,cg_ct(record.name));cg_ae(d,a);cg_ae(td,d);}},{id:"lastactive",label:"Last Visited",align:"center",value:"lastactive",width:"20%",render:function(record,td)
{return cg_getShortFriendlyTime(record.lastactive);}},{id:"registeredOn",label:"Registered",align:"center",value:"date",width:"20%",render:function(record,td)
{return cg_getShortFriendlyTime(record.date);}}]}
Curse.DataGrid.Templates.screenshots={sort:[-1],hasViewstate:true,showRefineBox:false,recordsPerRow:4,listStyle:Curse.DataGrid.ListStyle.ScreenshotBox,noDataMessage:function()
{var message=Localization.replace("no_screenshots","<b>"+Curse.Page.entityName+"</b>");if(!Curse.User.id)
{message+="<br><br>"+Localization.replace("login_register_to_screenshot","<a href=\"javascript:cg_navToLogin();\">","</a>","<a href=\"register.aspx\">","</a>");}
else
{message+=" "+Localization.replace("first_to_submit","<a onclick=\"Curse.Screenshot.scrollToForm();\">","</a>");}
return message;},render:function(record,cell)
{cell.className="ss-cell";var a=cg_ce("a");var i=cg_ce("img");i.src="screenshots/thumbnails/"+record.id+".jpg";cg_ae(a,i);a.href="screenshot.aspx?id="+record.id;cg_ae(cell,a);var d=cg_ce("div");d.className="ss-user";cg_ae(d,cg_ct("Posted by "));a=cg_ce("a");a.href="user.aspx?id="+record.userid;cg_ae(a,cg_ct(record.user));cg_ae(d,a);cg_ae(d,cg_ct(" "+cg_getShortFriendlyTime(record.date)));cg_ae(cell,d);var d=cg_ce("div");d.className="ss-caption";cg_ae(d,cg_ct(record.caption));cg_ae(cell,d);},columns:[{id:"name",label:Localization.name,align:"left",value:"date",sortFunc:function(a,b)
{return cg_strcmp(a.date,b.date);}}]};var cg_zybez_npcs={};cg_zybez_npcs.addData=function(data){if(data.length==null){dataArray=[];dataArray[0]=data;}
else{dataArray=data;}
var combatLevel=calculateCombatLevel();for(var i=0,len=dataArray.length;i<len;i++){cg_zybez_npcs[dataArray[i].id]=dataArray[i];if(cg_zybez_npcs[dataArray[i].id].tooltip!=null){var diff=getNPCCombatColor(combatLevel,dataArray[i].combat);cg_zybez_npcs[dataArray[i].id].tooltip=cg_zybez_npcs[dataArray[i].id].tooltip.replace("npc-name","npc-name"+diff);}}}
if(Curse.ZYBEZ.Site){cg_npcs=cg_zybez_npcs;}
var cg_zybez_recipes={};cg_zybez_recipes.addData=function(data){if(data.length==null){dataArray=[];dataArray[0]=data;}
else{dataArray=data;}
for(var i=0,len=dataArray.length;i<len;i++){cg_zybez_recipes[dataArray[i].id]=dataArray[i];}}
if(Curse.ZYBEZ.Site){cg_recipes=cg_zybez_recipes;}
var cg_AdExclusionsMain=["login.aspx","register.aspx","item.aspx","npc.aspx","search.aspx","syndication.aspx","admin","viewVideos.aspx","viewScreenshots.aspx","irc.aspx","radio.aspx","skillCalc.aspx","gmapstest.aspx","itemComparison.aspx","latestComments.aspx","latestUsers.aspx","latestScreenshots.aspx","latestAdditions.aspx"];var cg_AdInclusionsItem=["item.aspx","npc.aspx"];var cg_AdExclusionsOther=["login.aspx","register.aspx","syndication.aspx","admin"];var cg_AdinclusionsSearch=["search.aspx"];var cg_AdinclusionsSearchBottom=["search.aspx","viewVideos.aspx","viewScreenshots.aspx","irc.aspx","radio.aspx","skillCalc.aspx","gmapstest.aspx","itemComparison.aspx","latestComments.aspx","latestUsers.aspx","latestScreenshots.aspx","latestAdditions.aspx"];function SmartAdServer(sas_pageid,sas_formatid,sas_target,inclusions,exclusions,type){if(type==null){type="";}
if(Curse.User.isPremium)
{return;}
if(typeof cg_noAds!='undefined'){return;}
if(exclusions!=null)
{for(var i=0;i<exclusions.length;i++)
{if(document.location.toString().indexOf(exclusions[i])!=-1)
{return;}}}
if(inclusions!=null)
{var found=false;for(var i=0;i<inclusions.length;i++)
{if(document.location.toString().indexOf(inclusions[i])!=-1)
{found=true;}}
if(!found)
{return;}}
var sas_url='http://cocotiers.zybez.net/call/pubj/';if(sas_masterflag==1){sas_masterflag=0;sas_master='M';}else{sas_master='S';};document.write('<scr'+'ipt id="SmartScr'+sas_formatid+'" src="'+sas_url+sas_pageid+'/'+
sas_formatid+'/'+sas_master+'/'+sas_tmstp+'/'+escape(sas_target)+'?"></scr'+'ipt>');sas_adsArray.push(sas_formatid+"-"+type);}
function SmartMoveEndPageDivs(sas_formatid){$(sas_adsArray).each(function(i,sas_formatid){try{var formatParts=sas_formatid.split("-");var SmartName=formatParts[0];if(formatParts[1]!=""){SmartName+="-"+formatParts[1];}
var scr=document.getElementById('SmartScr'+formatParts[0]);scr.parentNode.removeChild(scr);var secureDiv=document.getElementById('SmartEndPage'+SmartName);switch(formatParts[0]*1){case 2210:document.getElementById('aleader-child').innerHTML='';document.getElementById('aleader-child').appendChild(secureDiv);$('#content-ad-header').show();break;case 285:document.getElementById('aleader-2').innerHTML='';document.getElementById('aleader-2').appendChild(secureDiv);$('#aleader-2').show();break;case 2211:document.getElementById('amedium').innerHTML='';document.getElementById('amedium').appendChild(secureDiv);$('#amedium').show();break;case 328:document.getElementById('amedium-2').innerHTML='';document.getElementById('amedium-2').appendChild(secureDiv);$('#amedium-2').show();break;default:}}catch(e){}});}
$(function(){SmartMoveEndPageDivs();});function bodyClick(url){$('body').css({'min-height':'100%','height':'auto','cursor':'pointer'});$('#page-cover').css({'min-height':'100%','height':'auto','cursor':'default'});$('#header').css('cursor','pointer');$('#header div.hdbox').css('cursor','default');$('#page-cover').click(function(e){var obj=(e.target?e.target:e.srcElement);if(obj.id!='page-cover')return true;window.open(url);return false;});$('#header').click(function(e){var obj=(e.target?e.target:e.srcElement);if(obj.id!='header')return true;window.open(url);return false;});}