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)
        {
            // IE6 +4.01 but no scrolling going on        
            return 0;
        }
        else if (document.documentElement && document.documentElement.scrollTop)
        {
            // IE6 +4.01 and user has scrolled
            return document.documentElement.scrollTop;        
        }
        else if (document.body && document.body.scrollTop)
        {        
            // IE5 or DTD 3.2
            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;
 }
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>"," - ");
            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)
    {
        // IE6 +4.01 but no scrolling going on        
        return 0;
    }
    else if (document.documentElement && document.documentElement.scrollTop)
    {
        // IE6 +4.01 and user has scrolled
        return document.documentElement.scrollTop;
        
    }
    else if (document.body && document.body.scrollTop)
    {        
        // IE5 or DTD 3.2
        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_localDate = new Date();
    cg_localTimezoneOffset = (-1 * cg_localDate.getTimezoneOffset()) * 60 * 1000;
    */
    
    cg_localTime = new Date().getTime();
    
}
cg_refreshDate();

/*
var cg_localDate;

var cg_localTimezoneOffset=0;


function cg_getLocalDate(rawDate)
{        
    var localizedDate = new Date(rawDate);       
    var curMs = localizedDate.getTime();
    var newMs = curMs + cg_localTimezoneOffset;
    localizedDate.setTime(newMs);            
    return localizedDate;
}
*/

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 extraMins = mod(timeDifferenceMinutes,60);
        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;
}
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") { //XML Return
							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); //Remove the loading indicator
						if(ths.opt.loading) document.getElementById(ths.opt.loading).style.display="none"; //Hide the given loading indicator.
						
						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"; //Show the given loading indicator.
		
		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); //Remove the loading indicator
			if(opt.loading) document.getElementById(opt.loading).style.display="none"; //Hide the given loading indicator.
		},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.account_settings="Account Options";Localization.add="Add";Localization.add_comment="Add Comment";Localization.add_filter="Add Additional Filter";Localization.add_to_wishlist="Add to Wish List";Localization.added="Added";Localization.additional_filters="Additional Filters";Localization.also_get="Also Get";Localization.any="Any";Localization.apply_filter="Apply Filter";Localization.armor="Armor";Localization.bonuses="Bonuses";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="Career";Localization.category="Category";Localization.char_enter_note="Note: You may enter up to %1 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.class_name="";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_see_side_by_side="Click here to use this item for side-by-side tooltip comparisons in the %1 slot.";Localization.colon=":";Localization.confirm_delete="Are you sure you want to delete this comment?";Localization.contains="Contains";Localization.count="Count";Localization.create_filter="Show %1 Filters";Localization.create_hyperlink="Create a Hyperlink";Localization.description_colon="Description: %1";Localization.dps="DPS";Localization.drop_rate="Drop Rate";Localization.dropped_by="Dropped By";Localization.drops_in="Drops In";Localization.edit="Edit";Localization.edit_map="Edit Map";Localization.enter_at_least_x_chars="You must enter at least %1 characters.";Localization.enter_bookmark_search="Enter the name of your Bookmark";Localization.enter_hyperlink="Please enter the hyperlink details below.";Localization.enter_to_x_chars="Enter up to %1 characters";Localization.enter_url="Enter a URL, starting with %1|Label";Localization.existing="Existing";Localization.filtering="filtering";Localization.finishes_quest="Finishes Quest";Localization.first="First";Localization.first_to_submit="Be the first to %1submit one%2!";Localization.for_verification="For verification, please enter the text you see in the box";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.get_fewer="You can get fewer results by ";Localization.guildxpbar_tooltip="The Guild is its own living entity. It gains experience and unlocks features as it gains ranks.";Localization.header="Header";Localization.header_contribute="Post Comments";Localization.hide_filter_form="Hide Filter Form";Localization.home="Home";Localization.if_equip="If you equip";Localization.influence="Influence";Localization.inventory="Inventory";Localization.last="Last";Localization.last_edited_by="Last edited by ";Localization.latest_additions="Latest Additions";Localization.latest_comments="Latest Comments";Localization.latest_items="Latest Items";Localization.latest_npcs="Latest NPCs";Localization.latest_quests="Latest Quests";Localization.latest_spells="Latest Spells";Localization.level="Level";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 WARDB 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.misc="Miscellaneous";Localization.mode="Mode";Localization.my_account="My Account";Localization.my_profile="My Profile";Localization.name="Name";Localization.new_list="New List";Localization.next="Next Page";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.npc="NPC";Localization.of="of";Localization.ok="OK";Localization.per_page="Per page:";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 Page";Localization.previous_screen="Previous Screenshot";Localization.provide_search_criteria="Click here to provide additional criteria for your search.";Localization.quest_drops="Quest Drops";Localization.rated_by_users="(by %1 users)";Localization.rating="Rating";Localization.refine_by_name="Refine by name";Localization.remove="Remove";Localization.remove_filter="Remove Filter";Localization.renownbar_tooltip="This bar shows your progress towards the next Renown rank. You gain Renown points for killing enemy players in combat.";Localization.replies="Replies";Localization.reply="Reply";Localization.req_level="Req. Level";Localization.requires_account="This feature requires a WARDB account. Click here to login or register.";Localization.save="Save";Localization.select_location_type="Select the type of location, and enter a name for it using the form below.";Localization.show_comment="Show Comment";Localization.size_colon="Size:";Localization.skill="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.starts_quest="Starts Quest";Localization.starts_quests="Starts Quest";Localization.starts_with="Starts With";Localization.strike="Strike";Localization.subject="Subject";Localization.submit="";Localization.submit_build="Submit Build";Localization.submitted_by_colon="Submitted by:";Localization.system_message="System Message";Localization.TEXT_ARMOR_DESC="Reduces Physical damage dealt to you by enemies.<BR>Physical Damage Reduced: %1%";Localization.TEXT_ARMOR_PENETRATION_DESC="This tells you how well you can work a can opener!";Localization.TEXT_BALLISTICSKILL_DESC="Increases Ranged Damage and reduces your opponents chance to block or evade attacks.<BR>Ability Damage: +%1 DPS<BR>Auto Attack Damage: +%2 DPS";Localization.TEXT_BALLISTICSKILL_DESC_INCREASED_CHANCE="Increases Ranged Ability Damage by %1 DPS<BR>Increases Ranged Autoattack Damage by %2 DPS<BR>Increases Chance that your ranged attacks will be Blocked or Evaded by %3%";Localization.TEXT_BONUS_BLOCK_DESC="Your chance to defend against all atacks with a shield.<BR>Block Chance: %1%";Localization.TEXT_BONUS_DESC="Increases your  DPS<BR>Increases Autoattack Damage: +%3 DPS";Localization.TEXT_BONUS_DISRUPT_DESC="Your chance to defend against magic attacks.<BR>Disrupt Chance:%1%";Localization.TEXT_BONUS_EVADE_DESC="Your chance to defend against ranged attacks.<BR>Evade Chance: %1%";Localization.TEXT_BONUS_PARRY_DESC="Your chance to defend against melee attacks.<BR>Parry Chance: %1%";Localization.TEXT_CORPOREALRESIST_DESC="Reduces Coporeal damage dealt to you by enemies.<BR>Corporeal Damage Reduced: %1%";Localization.TEXT_CRIT_BONUS_DESC="Increase your chance to critically %1<BR>Critical Chance: +%2%";Localization.TEXT_DAMAGE_CRIT_PERCENT_DESC="This is here to make you curse the random number generator";Localization.TEXT_ELEMENTALRESIST_DESC="Reduces Elemental damage dealt to you by enemies.<BR>Elemental Damage Reduced: %1%";Localization.text_entered_no_match="The text you entered does not match the text in the image.";Localization.TEXT_HEAL_CRIT_PERCENT_DESC="This is here to make you cheer the random number generator";Localization.TEXT_HEALING_BONUS_DESC="Ever wonder why the ladies go for doctors?  This is why.";Localization.TEXT_INITIATIVE_DESC="Increases your chance to evade attacks, detect stealthed enemies, and lowers your chance to be critcally hit.<BR> Chance to be critically hit: %1%";Localization.TEXT_INTELLIGENCE_DESC="Increases Magic Damage and reduces your opponents chance to block or disrupt attacks.<BR>Ability Damage: +%1 DPS";Localization.TEXT_INTELLIGENCE_DESC_INCREASED_CHANCE="Increases Magic Damage by %1 DPS<BR>Increases Chance that your attacks will be Disrupted by %2%";Localization.TEXT_MAIN_HAND_DESC="The giant thing in your hand, the one you write with, yeah that\'s what this is...";Localization.TEXT_MELEE_ARMORE_PENETRATION_DESC="Reduces your enemies armor against your melee attacks.<BR>Armor Penetration: %1%";Localization.TEXT_MELEE_WEAPON_DPS_DESC="Main Hand Damage: %1<BR>Off Hand Damage: %2";Localization.TEXT_OFF_HAND_DESC="You know the hand that never acts quite right?  Well whatever you have in that hand is what this is.";Localization.TEXT_RANGED_WEAPON_DPS_DESC="Ranged Damage: %1";Localization.TEXT_SPELL_BONUS_DESC="That extra something that makes your spells sting just a little more than the other guys.";Localization.TEXT_SPIRITRESIST_DESC="Reduces Spiritual damage dealt to you by enemies.<BR>Spirt Damage Reduced: %1%";Localization.TEXT_STRENGTH_DESC="Increases Melee Damage and reduces your opponents chance to block or parry attacks<BR>Ability Damage: +%1 DPS<BR>Auto Attack Damage: +%2 DPS";Localization.TEXT_STRENGTH_DESC_INCREASED_CHANCE="Increases Melee Ability Damage by %1 DPS<BR>Increases Melee Autoattack Damage by %2 DPS<BR>Increases Chance that your Melee attacks will be Blocked or Parried by %3%";Localization.TEXT_TOUGHNESS_DESC="Reduces damage dealt to you by opponents.<BR>Damage Reduction -%1 DPS";Localization.TEXT_WEAPONSKILL_DESC="Increases your chance to Parry attacks and penetrate an opponent\'s armor.<BR>Armor Penetration: %1%";Localization.TEXT_WILLPOWER_DESC="Increases your chance to Disrupt attacks and increases healing dealt to allies.<BR>Ability Healing: +%1 DPS";Localization.TEXT_WILLPOWER_DESC_INCREASED_CHANCE="Increases Healing by %1 HPS<BR>Decreases the chance that you will disrupt a magic attack by %2%";Localization.TEXT_WOUNDS_DESC="Increases the amount of Health you have.<BR> Increases Hit Points by %1";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.to_edit_this_map="To %1edit this map%2, click the Edit Map button, then click the desired point on the map.";Localization.tooltip_ap_regen="Your rate of regenerating action points.<BR>AP Regeneration: +%1 / sec";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.url="URL";Localization.user="User";Localization.view_original_image="View Original Image";Localization.welcome="Welcome";Localization.welcome_message="Welcome to WARDB";Localization.were_found=" were found.";Localization.xp="XP";Localization.xpbar_tooltip="This bar shows your progress towards the next Career rank. You gain experience by killing monsters, players, and completing quests.";Localization.you_will_gain="You will gain";Localization.you_will_lose="You will lose";Localization.your_comment_posted="Your comment has been posted.";Localization.your_results="your results";var cg_currentLanguage='en';Curse.Lookup.initialize = function() { var _ = Curse.Lookup;_.achievement_sub_type={};_.achievement_sub_type["86"]="A Delicate Art";_.achievement_sub_type["16"]="Accruing";_.achievement_sub_type["73"]="Ale Run";_.achievement_sub_type["65"]="Ancient Lament";_.achievement_sub_type["38"]="Armory";_.achievement_sub_type["32"]="Assistance";_.achievement_sub_type["69"]="Beauty of Pain";_.achievement_sub_type["109"]="Bitter Rivals";_.achievement_sub_type["80"]="Cannonball!";_.achievement_sub_type["19"]="Capture";_.achievement_sub_type["72"]="Cold One Hunters";_.achievement_sub_type["93"]="Come One, Come All";_.achievement_sub_type["29"]="Communication";_.achievement_sub_type["33"]="Comraderie";_.achievement_sub_type["13"]="Contribution";_.achievement_sub_type["15"]="Creating";_.achievement_sub_type["84"]="Da Bigga 'Un";_.achievement_sub_type["76"]="Dangers of Deadwater";_.achievement_sub_type["74"]="Darkhelm Residence";_.achievement_sub_type["75"]="Dead in the Water";_.achievement_sub_type["51"]="Dirty Dealings";_.achievement_sub_type["50"]="Durak's Journal";_.achievement_sub_type["1"]="Eliminating";_.achievement_sub_type["34"]="Equestrian";_.achievement_sub_type["55"]="Everlastink Nob Toppa";_.achievement_sub_type["8"]="Exterminating";_.achievement_sub_type["81"]="Firebrew";_.achievement_sub_type["31"]="Fowl";_.achievement_sub_type["54"]="Gettin' Slopped";_.achievement_sub_type["64"]="Ghoulish Gourmet";_.achievement_sub_type["88"]="Grave of the Unknown Acolyte";_.achievement_sub_type["82"]="Grebo's Pile";_.achievement_sub_type["87"]="Greenskin Games";_.achievement_sub_type["56"]="Greenskin Humor";_.achievement_sub_type["94"]="Harsh Punishment";_.achievement_sub_type["106"]="Heavy Metal";_.achievement_sub_type["95"]="Iceshard Blade";_.achievement_sub_type["58"]="Illiteracy";_.achievement_sub_type["25"]="Infamy";_.achievement_sub_type["107"]="Keg End";_.achievement_sub_type["102"]="Lairs in Dwarf & Greenskin Lands";_.achievement_sub_type["36"]="Lairs in Dwarf & Greenskin Lands";_.achievement_sub_type["3"]="Lairs in Empire & Chaos Lands";_.achievement_sub_type["37"]="Lairs in High & Dark Elven Lands";_.achievement_sub_type["103"]="Lairs in High & Dark Elven Lands";_.achievement_sub_type["96"]="Litany of Death";_.achievement_sub_type["43"]="Live Event Lairs";_.achievement_sub_type["27"]="Longevity";_.achievement_sub_type["89"]="Loyal Companion";_.achievement_sub_type["83"]="Marsh Choppa";_.achievement_sub_type["24"]="Master Slaying";_.achievement_sub_type["52"]="Medicinal Purposes";_.achievement_sub_type["59"]="Missions of Mercy";_.achievement_sub_type["42"]="Modification";_.achievement_sub_type["77"]="Mourkain Treasure";_.achievement_sub_type["108"]="Night of Murder";_.achievement_sub_type["97"]="Ostland Corruption";_.achievement_sub_type["6"]="Patriotism";_.achievement_sub_type["2"]="Persevering";_.achievement_sub_type["35"]="Questing";_.achievement_sub_type["71"]="Raiders";_.achievement_sub_type["63"]="Random Sacrifice";_.achievement_sub_type["177"]="Ranks of the Damned";_.achievement_sub_type["14"]="Reaping";_.achievement_sub_type["98"]="Riphorn Challenge";_.achievement_sub_type["7"]="Sacking";_.achievement_sub_type["90"]="Shameful Behavior";_.achievement_sub_type["28"]="Siege";_.achievement_sub_type["61"]="Sign of Change";_.achievement_sub_type["10"]="Site Seeing";_.achievement_sub_type["22"]="Social";_.achievement_sub_type["78"]="Special Character";_.achievement_sub_type["11"]="Spelunking";_.achievement_sub_type["20"]="Spoils";_.achievement_sub_type["85"]="Squig Taming";_.achievement_sub_type["57"]="Squig'uns! ";_.achievement_sub_type["60"]="Stirring Up Trouble";_.achievement_sub_type["62"]="Subversion";_.achievement_sub_type["26"]="Surviving";_.achievement_sub_type["21"]="Talent";_.achievement_sub_type["30"]="Tally";_.achievement_sub_type["18"]="Teamwork";_.achievement_sub_type["101"]="The Creator";_.achievement_sub_type["79"]="The Forgekeepers";_.achievement_sub_type["67"]="The Gateway to Ultimate Knowledge";_.achievement_sub_type["100"]="The Herald";_.achievement_sub_type["92"]="The Last Upholder";_.achievement_sub_type["70"]="The Littlest Beastmaster";_.achievement_sub_type["53"]="The Mysterious M.B.";_.achievement_sub_type["99"]="The Teacher";_.achievement_sub_type["9"]="Touring";_.achievement_sub_type["66"]="Visions";_.achievement_sub_type["5"]="Visitation";_.achievement_sub_type["12"]="Wanderlust";_.achievement_sub_type["23"]="Whacky";_.achievement_sub_type["39"]="Whacky";_.achievement_sub_type["40"]="Whacky";_.achievement_sub_type["41"]="Whacky";_.achievement_sub_type["68"]="Will of the Assured";_.achievement_sub_type["105"]="Witching Night";_.achievement_sub_type["91"]="Wolfenburg";_.achievement_type={};_.achievement_type["5"]="Bestiary";_.achievement_type["3"]="Career";_.achievement_type["7"]="Casual";_.achievement_type["6"]="Cities";_.achievement_type["2"]="Exploration";_.achievement_type["9"]="Guilds";_.achievement_type["10"]="Live Events";_.achievement_type["8"]="Pursuits";_.achievement_type["1"]="Realm vs Realm";_.achievement_type["4"]="Tradeskills";_.apothecary_stability={};_.apothecary_stability["3"]="High";_.apothecary_stability["1"]="Low";_.apothecary_stability["2"]="Medium";_.build_type={};_.build_type["2"]="PvE";_.build_type["1"]="";_.build_type["3"]="";_.career_icon={};_.career_icon["20"]="20180";_.career_icon["21"]="20181";_.career_icon["5"]="20182";_.career_icon["11"]="20183";_.career_icon["6"]="20184";_.career_icon["13"]="20185";_.career_icon["23"]="20186";_.career_icon["4"]="20187";_.career_icon["2"]="20188";_.career_icon["1"]="20189";_.career_icon["10"]="20190";_.career_icon["16"]="20191";_.career_icon["14"]="20192";_.career_icon["3"]="20193";_.career_icon["18"]="20194";_.career_icon["7"]="20195";_.career_icon["24"]="20196";_.career_icon["8"]="20197";_.career_icon["17"]="20198";_.career_icon["12"]="20199";_.career_icon["19"]="20200";_.career_icon["22"]="20201";_.career_icon["9"]="20202";_.career_icon["15"]="20203";_.career_id={};_.career_id["20"]="Archmage";_.career_id["5"]="Black Orc";_.career_id["21"]="Blackguard";_.career_id["11"]="Bright Wizard";_.career_id["6"]="Choppa";_.career_id["13"]="Chosen";_.career_id["23"]="Disciple of Khaine";_.career_id["4"]="Engineer";_.career_id["1"]="Ironbreaker";_.career_id["10"]="Knight of the Blazing Sun";_.career_id["16"]="Magus";_.career_id["14"]="Marauder";_.career_id["3"]="Rune Priest";_.career_id["18"]="Shadow Warrior";_.career_id["7"]="Shaman";_.career_id["2"]="Slayer";_.career_id["24"]="Sorcerer";_.career_id["8"]="Squig Herder";_.career_id["17"]="Swordmaster";_.career_id["12"]="Warrior Priest";_.career_id["19"]="White Lion";_.career_id["22"]="Witch Elf";_.career_id["9"]="Witch Hunter";_.career_id["15"]="Zealot";_.career_name_f={};_.career_name_f["6"]="Choppa";_.career_name_f["2"]="Slayer";_.career_name_f["24"]="Sorceress";_.career_name_m={};_.career_name_m["6"]="Choppa";_.career_name_m["2"]="Slayer";_.career_name_m["24"]="Sorcerer";_.career_spec={};_.career_spec["24.1"]="Agony";_.career_spec["15.1"]="Alchemy";_.career_spec["21.3"]="Anguish";_.career_spec["18.2"]="Assault";_.career_spec["20.2"]="Asuryan";_.career_spec["8.1"]="Big Shootin'";_.career_spec["1.3"]="Brotherhood";_.career_spec["14.2"]="Brutality";_.career_spec["24.2"]="Calamity";_.career_spec["22.1"]="Carnage";_.career_spec["16.2"]="Changing";_.career_spec["9.1"]="Confession";_.career_spec["11.3"]="Conflagration";_.career_spec["10.1"]="Conquest";_.career_spec["13.2"]="Corruption";_.career_spec["7.3"]="Da Green";_.career_spec["6.2"]="Da' Hitta";_.career_spec["6.1"]="Da' Savage";_.career_spec["6.3"]="Da' Wrecka";_.career_spec["5.3"]="Da’ Boss ";_.career_spec["5.1"]="Da’ Brawler";_.career_spec["5.2"]="Da’ Toughest";_.career_spec["16.3"]="Daemonology";_.career_spec["15.3"]="Dark Rites";_.career_spec["23.1"]="Dark Rites";_.career_spec["24.3"]="Destruction";_.career_spec["13.3"]="Discord";_.career_spec["13.1"]="Dread";_.career_spec["10.3"]="Glory";_.career_spec["7.2"]="Gork";_.career_spec["12.2"]="Grace";_.career_spec["3.3"]="Grimnir";_.career_spec["3.1"]="Grungni";_.career_spec["16.1"]="Havoc";_.career_spec["17.3"]="Hoeth";_.career_spec["11.2"]="Immolation";_.career_spec["11.1"]="Incineration";_.career_spec["9.2"]="Inquisition";_.career_spec["20.1"]="Isha";_.career_spec["9.3"]="Judgment";_.career_spec["17.1"]="Khaine";_.career_spec["21.2"]="Loathing";_.career_spec["21.1"]="Malice";_.career_spec["14.3"]="Monstrosity";_.career_spec["7.1"]="Mork";_.career_spec["8.3"]="Quick Shootin'";_.career_spec["23.3"]="Sacrifice";_.career_spec["12.1"]="Salvation";_.career_spec["14.1"]="Savagery";_.career_spec["8.2"]="Stabbin'";_.career_spec["1.2"]="Stone";_.career_spec["22.2"]="Suffering";_.career_spec["19.2"]="The Axeman";_.career_spec["2.2"]="The Giantslayer";_.career_spec["4.2"]="The Grenadier";_.career_spec["19.3"]="The Guardian";_.career_spec["19.1"]="The Hunter";_.career_spec["4.1"]="The Rifleman";_.career_spec["18.1"]="The Scout";_.career_spec["2.3"]="The Skavenslayer";_.career_spec["18.3"]="The Skirmisher";_.career_spec["4.3"]="The Tinkerer";_.career_spec["2.1"]="The Trollslayer";_.career_spec["23.2"]="Torture";_.career_spec["22.3"]="Treachery";_.career_spec["3.2"]="Valaya";_.career_spec["20.3"]="Vaul";_.career_spec["17.2"]="Vaul";_.career_spec["1.1"]="Vengeance";_.career_spec["10.2"]="Vigilance";_.career_spec["15.2"]="Witchcraft";_.career_spec["12.3"]="Wrath";_.career_spec_desc={};_.career_spec_desc["21.3"]="A Mastery path focused on Anti-Magic.";_.career_spec_desc["2.3"]="A Mastery path focused on area of effect offensive abilities.";_.career_spec_desc["6.3"]="A Mastery path focused on area of effect offensive abilities.";_.career_spec_desc["19.3"]="A Mastery path focused on assisting and supporting your pet while he deals damage.";_.career_spec_desc["19.1"]="A Mastery path focused on both you and your pet equally.";_.career_spec_desc["5.3"]="A Mastery path focused on buffs and group support, cause everyone has some killin' ta do.";_.career_spec_desc["4.3"]="A Mastery path focused on close combat using your deployables and gadgets.";_.career_spec_desc["13.2"]="A Mastery path focused on counters and defense.";_.career_spec_desc["16.3"]="A Mastery path focused on daemons and close combat.";_.career_spec_desc["16.1"]="A Mastery path focused on damage from afar.";_.career_spec_desc["2.2"]="A Mastery path focused on dealing quick exhaustive blows.";_.career_spec_desc["6.2"]="A Mastery path focused on dealing quick exhaustive blows.";_.career_spec_desc["21.2"]="A Mastery path focused on defense and protection.";_.career_spec_desc["17.2"]="A Mastery path focused on defense and protection.";_.career_spec_desc["1.2"]="A Mastery path focused on defense and protection.";_.career_spec_desc["10.1"]="A Mastery path focused on destroying your enemies.";_.career_spec_desc["16.2"]="A Mastery path focused on faster casting shorter range damage.";_.career_spec_desc["14.3"]="A Mastery path focused on fighting multiple opponents at once.";_.career_spec_desc["18.2"]="A Mastery path focused on hand-to-hand combat.";_.career_spec_desc["12.1"]="A Mastery path focused on healing and restorative powers.";_.career_spec_desc["7.1"]="A Mastery path focused on healing and restorative powers.";_.career_spec_desc["20.1"]="A Mastery path focused on healing and restorative powers.";_.career_spec_desc["23.1"]="A Mastery path focused on healing and restorative powers.";_.career_spec_desc["10.2"]="A Mastery path focused on hindering and crippling your foes.";_.career_spec_desc["20.3"]="A Mastery path focused on hindering and weakening foes.";_.career_spec_desc["7.3"]="A Mastery path focused on hindering and weakening foes.";_.career_spec_desc["11.1"]="A Mastery path focused on immediate damage.";_.career_spec_desc["24.1"]="A Mastery path focused on immediate damage.";_.career_spec_desc["15.1"]="A Mastery path focused on immediate, direct effects.";_.career_spec_desc["3.1"]="A Mastery path focused on immediate, direct effects.";_.career_spec_desc["14.2"]="A Mastery path focused on inflicting heavy damage to a single opponent.";_.career_spec_desc["14.1"]="A Mastery path focused on lingering effects and weakening foes.";_.career_spec_desc["8.1"]="A Mastery path focused on long range bow combat.";_.career_spec_desc["18.1"]="A Mastery path focused on long-distance bow attacks.";_.career_spec_desc["4.1"]="A Mastery path focused on long-range attacks with your gun.";_.career_spec_desc["6.1"]="A Mastery path focused on longer-duration battles.";_.career_spec_desc["2.1"]="A Mastery path focused on longer-duration battles.";_.career_spec_desc["3.2"]="A Mastery path focused on longer-duration effects.";_.career_spec_desc["15.2"]="A Mastery path focused on longer-duration effects.";_.career_spec_desc["11.2"]="A Mastery path focused on longer-duration effects.";_.career_spec_desc["24.2"]="A Mastery path focused on longer-duration effects.";_.career_spec_desc["9.2"]="A Mastery path focused on longer-duration weakening effects.";_.career_spec_desc["13.3"]="A Mastery path focused on magical attacks and disruption.";_.career_spec_desc["17.3"]="A Mastery path focused on magical attacks and effects.";_.career_spec_desc["12.2"]="A Mastery path focused on melee attacks and protective effects.";_.career_spec_desc["12.3"]="A Mastery path focused on melee attacks and weakening effects.";_.career_spec_desc["23.2"]="A Mastery path focused on melee combat.";_.career_spec_desc["17.1"]="A Mastery path focused on offense and greatswords.";_.career_spec_desc["1.1"]="A Mastery path focused on offense.";_.career_spec_desc["13.1"]="A Mastery path focused on offense.";_.career_spec_desc["21.1"]="A Mastery path focused on offense.";_.career_spec_desc["7.2"]="A Mastery path focused on offensive and damaging powers.";_.career_spec_desc["20.2"]="A Mastery path focused on offensive and damaging powers.";_.career_spec_desc["22.2"]="A Mastery path focused on poisons and weakening effects.";_.career_spec_desc["8.3"]="A Mastery path focused on short range and moving bow combat.";_.career_spec_desc["4.2"]="A Mastery path focused on short-range combat with grenades and bombs.";_.career_spec_desc["18.3"]="A Mastery path focused on short-range, mobile bow attacks.";_.career_spec_desc["23.3"]="A Mastery path focused on siphoning power from your enemies.";_.career_spec_desc["5.1"]="A Mastery path focused on stabbin' things.";_.career_spec_desc["1.3"]="A Mastery path focused on supporting and bolstering you and your allies.";_.career_spec_desc["10.3"]="A Mastery path focused on supporting and bolstering you and your allies.";_.career_spec_desc["9.3"]="A Mastery path focused on surprise attacks and positional combat.";_.career_spec_desc["22.3"]="A Mastery path focused on surprise attacks and positional combat.";_.career_spec_desc["5.2"]="A Mastery path focused on survivability which means mor' killin' later.";_.career_spec_desc["9.1"]="A Mastery path focused on toe-to-toe combat.";_.career_spec_desc["8.2"]="A Mastery path focused on toe-to-toe combat.";_.career_spec_desc["22.1"]="A Mastery path focused on toe-to-toe combat.";_.career_spec_desc["24.3"]="A Mastery path focused on wide-area effects.";_.career_spec_desc["11.3"]="A Mastery path focused on wide-area effects.";_.career_spec_desc["15.3"]="A Mastery path focused on wide-area effects.";_.career_spec_desc["3.3"]="A Mastery path focused on wide-area effects.";_.career_spec_desc["19.2"]="A Mastery path focused on your pet distracting enemies while you deal damage.";_.entity_label={};_.entity_label["6"]="Ability";_.entity_label["122"]="Chapter";_.entity_label["9"]="Character";_.entity_label["10"]="Guild";_.entity_label["1"]="Item";_.entity_label["7"]="Item Set";_.entity_label["2"]="NPC";_.entity_label["5"]="Object";_.entity_label["116"]="Public Quest";_.entity_label["4"]="Quest";_.entity_label["111"]="Renown Build";_.entity_label["24"]="Talisman Recipe";_.entity_label["200"]="User";_.entity_label["3"]="Zone";_.entity_label_plural={};_.entity_label_plural["6"]="Abilities";_.entity_label_plural["122"]="Chapters";_.entity_label_plural["9"]="Characters";_.entity_label_plural["10"]="Guilds";_.entity_label_plural["7"]="Item Sets";_.entity_label_plural["1"]="Items";_.entity_label_plural["2"]="NPCs";_.entity_label_plural["5"]="Objects";_.entity_label_plural["116"]="Public Quests";_.entity_label_plural["4"]="Quests";_.entity_label_plural["111"]="Renown Builds";_.entity_label_plural["24"]="Talisman Recipies";_.entity_label_plural["200"]="Users";_.entity_link={};_.entity_link["122"]="chapter.aspx";_.entity_link["5"]="gameobject.aspx";_.entity_link["10"]="guild.aspx";_.entity_link["1"]="item.aspx";_.entity_link["7"]="itemset.aspx";_.entity_link["3"]="location.aspx";_.entity_link["2"]="npc.aspx";_.entity_link["9"]="profile.aspx";_.entity_link["116"]="pubquest.aspx";_.entity_link["4"]="quest.aspx";_.entity_link["111"]="renown.aspx";_.entity_link["6"]="spell.aspx";_.entity_link["200"]="user.aspx";_.filter_result_id={};_.filter_result_id["item_bonus_healing_power"]="HealPwr";_.filter_result_label={};_.filter_result_label["dropsAny"]="#Drops";_.filter_result_label["dropByRarity"]="#DropsByRarity";_.filter_result_label["apRegen"]="APRegen";_.filter_result_label["item_armor"]="Armor";_.filter_result_label["auto_atk_dmg"]="AutoAtckDmg";_.filter_result_label["ballisticskill"]="BalSkill";_.filter_result_label["build_time"]="BldTime";_.filter_result_label["blockskill"]="Block";_.filter_result_label["block_rating"]="BlockRtg";_.filter_result_label["cooldown"]="Cooldown";_.filter_result_label["corporealresist"]="CorpRes";_.filter_result_label["crit_dmg"]="CritDmg";_.filter_result_label["disruptskill"]="Disrupt";_.filter_result_label["disrupt"]="Disrupt";_.filter_result_label["dmgMagic"]="DmgMagic";_.filter_result_label["dmgMelee"]="DmgMelee";_.filter_result_label["dmgRanged"]="DmgRanged";_.filter_result_label["item_dps"]="DPS";_.filter_result_label["elementalresist"]="EleRes";_.filter_result_label["evadeskill"]="Evade";_.filter_result_label["healCrit"]="HCrit";_.filter_result_label["hpRegen"]="HpRegen";_.filter_result_label["inc_dmg"]="IncDam";_.filter_result_label["initiative"]="Init";_.filter_result_label["intelligence"]="Int";_.filter_result_label["magicCrit"]="MACrit";_.filter_result_label["meleeCrit"]="MCrit";_.filter_result_label["morale_gen"]="MoralGen";_.filter_result_label["parryskill"]="Parry";_.filter_result_label["rewardQuest"]="Quest";_.filter_result_label["redArmPen"]="RedArmPen";_.filter_result_label["redCrtHit"]="RedCrtHit";_.filter_result_label["redDrpStrk"]="RedDisStrk";_.filter_result_label["redEvdStrk"]="RedEvdStrk";_.filter_result_label["redPryStrk"]="RedPryStrk";_.filter_result_label["renownRank"]="Renown";_.filter_result_label["skill_req"]="SkillReq";_.filter_result_label["item_speed"]="Speed";_.filter_result_label["spiritresist"]="SpiRes";_.filter_result_label["strength"]="Str";_.filter_result_label["numTalSlots"]="TalSlots";_.filter_result_label["threat"]="Threat";_.filter_result_label["threatRed"]="ThrtRed";_.filter_result_label["toughness"]="Tough";_.filter_result_label["willpower"]="Will";_.filter_result_label["wounds"]="Wounds";_.filter_result_label["weaponskill"]="WpSkill";_.filter_yes_no={};_.filter_yes_no["1"]="Yes";_.filter_yes_no["0"]="No";_.item_bind_type={};_.item_bind_type["2"]="Bind on equip";_.item_bind_type["1"]="Bind on pickup";_.item_category_id={};_.item_category_id["2"]="Armor";_.item_category_id["8"]="Consumables";_.item_category_id["9"]="Crafting";_.item_category_id["7"]="Enhancements";_.item_category_id["6"]="Jewelry";_.item_category_id["5"]="Miscellaneous";_.item_category_id["3"]="Quest Items";_.item_category_id["4"]="Trophies";_.item_category_id["1"]="Weapons";_.item_crafting_type={};_.item_crafting_type["13"]="Container";_.item_crafting_type["5"]="Container";_.item_crafting_type["16"]="Curio";_.item_crafting_type["6"]="Dye Container";_.item_crafting_type["9"]="Fixer";_.item_crafting_type["8"]="Pigment";_.item_crafting_type["14"]="Fragment";_.item_crafting_type["11"]="Gold Dust";_.item_crafting_type["7"]="Gold Essence Container";_.item_crafting_type["15"]="Gold Essence";_.item_crafting_type["10"]="Goldweed";_.item_crafting_type["17"]="Magic Essence";_.item_crafting_type["2"]="Main Ingredient";_.item_crafting_type["12"]="Quicksilver";_.item_cultivation_type={};_.item_cultivation_type["4"]="Nutrient";_.item_cultivation_type["1"]="Seed";_.item_cultivation_type["2"]="Soil";_.item_cultivation_type["5"]="Spore";_.item_cultivation_type["3"]="Watering Can";_.item_rarity_id={};_.item_rarity_id["1"]="Utility";_.item_rarity_id["2"]="Common";_.item_rarity_id["3"]="Uncommon";_.item_rarity_id["4"]="Rare";_.item_rarity_id["5"]="Very Rare";_.item_rarity_id["6"]="Mythic";_.item_skill_type={};_.item_skill_type["5"]="Shield";_.item_skill_type["2"]="Axe";_.item_skill_type["7"]="Bow";_.item_skill_type["24"]="Charm";_.item_skill_type["8"]="Cross Bow";_.item_skill_type["12"]="Dagger";_.item_skill_type["21"]="Dual Wield";_.item_skill_type["22"]="Great Weapon";_.item_skill_type["9"]="Gun";_.item_skill_type["3"]="Hammer";_.item_skill_type["20"]="Heavy Armor";_.item_skill_type["18"]="Light Armor";_.item_skill_type["19"]="Medium Armor";_.item_skill_type["23"]="Medium Robe";_.item_skill_type["15"]="Pistol";_.item_skill_type["6"]="Robe";_.item_skill_type["14"]="Spear";_.item_skill_type["11"]="Staff";_.item_skill_type["1"]="Sword";_.item_skill_type["13"]="Thrown";_.item_slot_id={};_.item_slot_id["17"]="Jewelry";_.item_slot_id["18"]="Jewelry 2";_.item_slot_id["19"]="Jewelry 3";_.item_slot_id["20"]="Jewelry 4";_.item_slot_id["13"]="Back";_.item_slot_id["5"]="Standard";_.item_slot_id["14"]="Belt";_.item_slot_id["6"]="Body";_.item_slot_id["8"]="Boots";_.item_slot_id["4"]="Either Hand";_.item_slot_id["7"]="Gloves";_.item_slot_id["9"]="Helm";_.item_slot_id["2"]="Left Hand";_.item_slot_id["3"]="Ranged Slot";_.item_slot_id["1"]="Right Hand";_.item_slot_id["10"]="Shoulders";_.item_slot_id["16"]="Tabard";_.item_source_id={};_.item_source_id["7"]="Butchering";_.item_source_id["1"]="Drop";_.item_source_id["4"]="Influence";_.item_source_id["5"]="Public Quest";_.item_source_id["3"]="Quest";_.item_source_id["8"]="Quest Drop";_.item_source_id["9"]="Salvaging";_.item_source_id["6"]="Scavenging";_.item_source_id["2"]="Vendor";_.item_type={};_.item_type["5"]="Shield";_.item_type["2"]="Axe";_.item_type["4"]="Basic Shield";_.item_type["7"]="Bow";_.item_type["25"]="Charm";_.item_type["8"]="Cross Bow";_.item_type["12"]="Dagger";_.item_type["23"]="Talisman";_.item_type["10"]="Expert Shield";_.item_type["9"]="Gun";_.item_type["3"]="Hammer";_.item_type["20"]="Heavy Armor";_.item_type["16"]="Lance";_.item_type["18"]="Light Armor";_.item_type["19"]="Medium Armor";_.item_type["22"]="Medium Robe";_.item_type["15"]="Pistol";_.item_type["21"]="Quest Item";_.item_type["17"]="Repeating Cross Bow";_.item_type["6"]="Robe";_.item_type["14"]="Spear";_.item_type["11"]="Staff";_.item_type["1"]="Sword";_.item_type["13"]="Thrown";_.item_type["24"]="Trophy";_.location_tag={};_.location_tag["1"]="Dwarf vs Greenskin Tier 1";_.location_tag["12"]="Dwarf vs Greenskin Tier 2";_.location_tag["10"]="Dwarf vs Greenskin Tier 3";_.location_tag["2"]="Dwarf vs Greenskin Tier 4";_.location_tag["8"]="Empire vs Chaos Tier 1";_.location_tag["14"]="Empire vs Chaos Tier 2";_.location_tag["6"]="Empire vs Chaos Tier 3";_.location_tag["11"]="Empire vs Chaos Tier 4";_.location_tag["25"]="Group Instance";_.location_tag["3"]="High Elf vs Dark Elf Tier 1";_.location_tag["15"]="High Elf vs Dark Elf Tier 2";_.location_tag["16"]="High Elf vs Dark Elf Tier 3";_.location_tag["4"]="High Elf vs Dark Elf Tier 4";_.location_tag["23"]="Instance";_.location_tag["24"]="Realm Instance";_.location_tag["22"]="Seasonal Scenario";_.location_tag["18"]="Tier 1 Scenario";_.location_tag["19"]="Tier 2 Scenario";_.location_tag["20"]="Tier 3 Scenario";_.location_tag["21"]="Tier 4 Scenario";_.location_tag["17"]="Destruction Cities";_.location_tag["7"]="Order Cities";_.location_type={};_.location_type["1"]="Scenario";_.npc_react={};_.npc_react["2"]="Friendly";_.npc_react["3"]="Hostile";_.npc_react["1"]="Neutral";_.npc_species={};_.npc_species["1"]="Basilisk";_.npc_species["2"]="Bat, Giant";_.npc_species["3"]="Bear";_.npc_species["4"]="Beastman, Bestigor";_.npc_species["5"]="Beastman, Bray Shaman";_.npc_species["6"]="Beastman, Gor";_.npc_species["7"]="Beastman, Ungor";_.npc_species["8"]="Bloodletter of Khorne";_.npc_species["9"]="Bloodthirster of Khorne";_.npc_species["10"]="Boar";_.npc_species["11"]="Broken One";_.npc_species["12"]="Centigor";_.npc_species["13"]="Chaos";_.npc_species["18"]="Chaos Fury";_.npc_species["19"]="Chaos Hound";_.npc_species["20"]="Chaos Mutant";_.npc_species["21"]="Chaos Spawn";_.npc_species["22"]="Chaos Spawn, Bloodbeast of Khorne";_.npc_species["23"]="Chaos Spawn, Fiend of Slaanesh";_.npc_species["24"]="Chaos Spawn, Firewyrm of Tzeentch";_.npc_species["25"]="Chaos Spawn, Plaguebeast of Nurgle";_.npc_species["130"]="Chaos Tentacle";_.npc_species["14"]="Chaos, Chosen";_.npc_species["15"]="Chaos, Magus";_.npc_species["16"]="Chaos, Warrior";_.npc_species["17"]="Chaos, Zealot";_.npc_species["26"]="Cockatrice";_.npc_species["27"]="Cold One";_.npc_species["28"]="Daemon Prince";_.npc_species["29"]="Daemonette of Slaanesh";_.npc_species["30"]="Dark Elf";_.npc_species["31"]="Dark Elf, Assassins & Witch Elves";_.npc_species["32"]="Dark Elf, Blood Priests & Hags";_.npc_species["33"]="Dark Elf, Shade";_.npc_species["34"]="Dark Elf, Sorceror";_.npc_species["35"]="Doombull";_.npc_species["36"]="Dragon";_.npc_species["38"]="Dragon Ogre";_.npc_species["39"]="Dragon Ogre Shaggoth";_.npc_species["37"]="Dragon, Chaos";_.npc_species["129"]="Drakk Cultist";_.npc_species["40"]="Dryad";_.npc_species["41"]="Dwarf";_.npc_species["42"]="Dwarf, Engineer";_.npc_species["44"]="Dwarf, Ironbreaker";_.npc_species["45"]="Dwarf, Runepriest";_.npc_species["43"]="Dwarf, Slayer";_.npc_species["46"]="Dwarven, Slayer";_.npc_species["47"]="Empire";_.npc_species["48"]="Empire, Bright Wizard";_.npc_species["49"]="Empire, Knight of the Blazing Sun";_.npc_species["50"]="Empire, Warrior Priest";_.npc_species["51"]="Empire, Witch Hunter";_.npc_species["52"]="Flamer of Tzeentch";_.npc_species["53"]="Flayerkin";_.npc_species["54"]="Fleshhound of Khorne";_.npc_species["55"]="Ghost, Banshee";_.npc_species["56"]="Ghost, Spirit Host";_.npc_species["57"]="Ghost, Wraith";_.npc_species["58"]="Ghoul";_.npc_species["59"]="Giant";_.npc_species["60"]="Giant, Chaos";_.npc_species["61"]="Gnoblar";_.npc_species["62"]="Goblin";_.npc_species["65"]="Goblin, Night Goblin";_.npc_species["63"]="Goblin, Shaman";_.npc_species["64"]="Goblin, Squig Herder";_.npc_species["66"]="Gorger";_.npc_species["67"]="Gorgon";_.npc_species["68"]="Great Cat";_.npc_species["69"]="Great Eagle";_.npc_species["70"]="Great Stag";_.npc_species["71"]="Great Unclean One";_.npc_species["72"]="Griffon";_.npc_species["73"]="Harpy";_.npc_species["74"]="High Elf";_.npc_species["75"]="High Elf, Archmage";_.npc_species["76"]="High Elf, Seer";_.npc_species["77"]="High Elf, Shadow Warrior";_.npc_species["78"]="High Elf, Swordmaster";_.npc_species["79"]="Horror of Tzeentch";_.npc_species["80"]="Hound";_.npc_species["81"]="Juggernaut of Khorne";_.npc_species["82"]="Keeper of Secrets";_.npc_species["83"]="Liche";_.npc_species["84"]="Lizard, Giant";_.npc_species["85"]="Lord of Change";_.npc_species["86"]="Manticore";_.npc_species["87"]="Mastadon";_.npc_species["88"]="Nurgling";_.npc_species["89"]="Ogre";_.npc_species["90"]="Ogre, Chaos";_.npc_species["91"]="Orc";_.npc_species["92"]="Orc, Black Orc";_.npc_species["93"]="Orc, Choppa";_.npc_species["94"]="Orc, Savage Orc";_.npc_species["95"]="Outlaw";_.npc_species["96"]="Pegasus";_.npc_species["97"]="Plague Victim";_.npc_species["98"]="Plaguebearer";_.npc_species["99"]="Rat";_.npc_species["100"]="Rat Ogre";_.npc_species["101"]="Raven";_.npc_species["102"]="Rhinox";_.npc_species["103"]="Scorpion, Giant";_.npc_species["104"]="Screamer of Tzeentch";_.npc_species["105"]="Skaven";_.npc_species["106"]="Skeleton";_.npc_species["107"]="Snotling";_.npc_species["108"]="Spider, Giant";_.npc_species["109"]="Spite";_.npc_species["110"]="Squig";_.npc_species["111"]="Treekin";_.npc_species["112"]="Troll";_.npc_species["113"]="Troll, Chaos";_.npc_species["114"]="Troll, River";_.npc_species["115"]="Troll, Stone";_.npc_species["116"]="Troll, Sulfur";_.npc_species["117"]="Tuskgor";_.npc_species["118"]="Undead Construct";_.npc_species["119"]="Unicorn";_.npc_species["120"]="Vampire";_.npc_species["121"]="Vulture";_.npc_species["122"]="Warhawk";_.npc_species["123"]="Wight";_.npc_species["124"]="Winged Nightmare";_.npc_species["125"]="Wolf";_.npc_species["126"]="Wyvern";_.npc_species["127"]="Yhetee";_.npc_species["128"]="Zombie";_.npc_sub_type={};_.npc_sub_type["12"]="Beastmen";_.npc_sub_type["1"]="Beasts";_.npc_sub_type["2"]="Birds";_.npc_sub_type["19"]="Chaos Breeds";_.npc_sub_type["25"]="Constructs";_.npc_sub_type["8"]="Daemons of Khorne";_.npc_sub_type["10"]="Daemons of Nurgle";_.npc_sub_type["11"]="Daemons of Slaanesh";_.npc_sub_type["9"]="Daemons of Tzeentch";_.npc_sub_type["21"]="Dragonoids";_.npc_sub_type["13"]="Dwarfs";_.npc_sub_type["14"]="Elves";_.npc_sub_type["24"]="Forest Spirits";_.npc_sub_type["22"]="Giants";_.npc_sub_type["27"]="Greater Undead";_.npc_sub_type["15"]="Greenskins";_.npc_sub_type["16"]="Humans";_.npc_sub_type["3"]="Insects & Arachnids";_.npc_sub_type["20"]="Magical Beasts";_.npc_sub_type["17"]="Ogres";_.npc_sub_type["5"]="Reptiles";_.npc_sub_type["18"]="Skaven";_.npc_sub_type["28"]="Skeletons";_.npc_sub_type["29"]="Spirits";_.npc_sub_type["23"]="Trolls";_.npc_sub_type["7"]="Unmarked Daemons";_.npc_sub_type["30"]="Wights";_.npc_sub_type["31"]="Zombies";_.npc_tag={};_.npc_tag["34"]="Auctioneer";_.npc_tag["38"]="Guild Registrar";_.npc_tag["39"]="Healer";_.npc_tag["29"]="Kill Collector";_.npc_tag["30"]="Kill Collector";_.npc_tag["31"]="Merchant";_.npc_tag["17"]="Quest";_.npc_tag["19"]="Quest";_.npc_tag["18"]="Quest";_.npc_tag["20"]="Ralley Master";_.npc_tag["21"]="Ralley Master";_.npc_tag["32"]="Trainer";_.npc_tier_id={};_.npc_tier_id["1"]="CHAMPION";_.npc_tier_id["2"]="HERO";_.npc_tier_id["3"]="LORD";_.npc_tier_id["0"]="Normal";_.npc_title_id={};_.npc_title_id["72"]="Alcadizaar's Guard";_.npc_title_id["91"]="Altar of Khaine Guard";_.npc_title_id["4"]="Apothecary";_.npc_title_id["40"]="Apprentice Renown Trainer";_.npc_title_id["11"]="Armor Merchant";_.npc_title_id["75"]="Artillery Range Guard";_.npc_title_id["23"]="Auctioneer";_.npc_title_id["22"]="Banker";_.npc_title_id["113"]="Barracks Guard";_.npc_title_id["87"]="Beast Pens Guard";_.npc_title_id["103"]="Bel-Korhadris' Guard";_.npc_title_id["26"]="Bodyguard";_.npc_title_id["77"]="Brewery Guard";_.npc_title_id["5"]="Butcher";_.npc_title_id["13"]="Camp Merchant";_.npc_title_id["69"]="Cannon Battery Guard";_.npc_title_id["2"]="Career Trainer";_.npc_title_id["102"]="Chillwind Guard";_.npc_title_id["64"]="Chokethorn Guard";_.npc_title_id["112"]="Conqueror Shrine Guard";_.npc_title_id["15"]="Craft Supply Merchant";_.npc_title_id["48"]="Crypt Guard";_.npc_title_id["6"]="Cultivator";_.npc_title_id["27"]="Dog of War";_.npc_title_id["81"]="Dolgrund's Guard";_.npc_title_id["82"]="Doomstriker Guard";_.npc_title_id["63"]="Everchosen Guard";_.npc_title_id["51"]="Feiten's Guard";_.npc_title_id["43"]="Festenplatz Guard";_.npc_title_id["109"]="Fireguard Spire Guard";_.npc_title_id["18"]="Flight Master";_.npc_title_id["30"]="Fortress Lord";_.npc_title_id["76"]="Furrig's Fall Guard";_.npc_title_id["73"]="Goblin Armory Guard";_.npc_title_id["60"]="Graveyard Guard";_.npc_title_id["46"]="Greystone Guard";_.npc_title_id["80"]="Gromril Junction Guard";_.npc_title_id["83"]="Gromril Kruk Guard";_.npc_title_id["24"]="Guard";_.npc_title_id["19"]="Guild Registrar";_.npc_title_id["53"]="Hallenfurt Guard";_.npc_title_id["78"]="Hardwater Falls Guard";_.npc_title_id["44"]="Harvest Shrine Guard";_.npc_title_id["84"]="Headwall Guard";_.npc_title_id["20"]="Healer";_.npc_title_id["9"]="Hedge Wizard";_.npc_title_id["35"]="Herald";_.npc_title_id["79"]="Icehearth Guard";_.npc_title_id["71"]="Ironclad Guard";_.npc_title_id["74"]="Karagaz Guard";_.npc_title_id["85"]="Karak Palik Guard";_.npc_title_id["29"]="Keep Lord";_.npc_title_id["32"]="Kill Collector";_.npc_title_id["49"]="Kinshel's Guard";_.npc_title_id["58"]="Kurlov's Armory Guard";_.npc_title_id["38"]="Librarian";_.npc_title_id["70"]="Lighthouse Guard";_.npc_title_id["41"]="Live Event Master";_.npc_title_id["89"]="Lobba Mill Guard";_.npc_title_id["66"]="Lookout Guard";_.npc_title_id["90"]="Lorendyth Guard";_.npc_title_id["45"]="Lost Lagoon Guard";_.npc_title_id["86"]="Madcap Guard";_.npc_title_id["99"]="Maiden's Landing Guard";_.npc_title_id["59"]="Martyr's Square Guard";_.npc_title_id["10"]="Merchant";_.npc_title_id["106"]="Milaith's Memory Guard";_.npc_title_id["47"]="Monastery Guard";_.npc_title_id["31"]="Mount Vendor";_.npc_title_id["107"]="Mournfire Guard";_.npc_title_id["36"]="Name Registrar";_.npc_title_id["97"]="Needle of Ellyrion Guard";_.npc_title_id["93"]="Nightflame Guard";_.npc_title_id["42"]="Nordland XI Guard";_.npc_title_id["61"]="Ortel von Zaris Guard";_.npc_title_id["67"]="Outpost Guard";_.npc_title_id["108"]="Pelgorath Guard ";_.npc_title_id["21"]="Postmaster";_.npc_title_id["54"]="Quarry Guard";_.npc_title_id["34"]="Quartermaster";_.npc_title_id["17"]="Rally Master";_.npc_title_id["39"]="Realtor";_.npc_title_id["96"]="Reaver Stables Guard";_.npc_title_id["55"]="Reikwatch Guard";_.npc_title_id["16"]="Renown Gear Merchant";_.npc_title_id["3"]="Renown Trainer";_.npc_title_id["88"]="Rottenpike Guard";_.npc_title_id["56"]="Runehammer Guard";_.npc_title_id["7"]="Salvager";_.npc_title_id["104"]="Sanctuary Guard";_.npc_title_id["111"]="Sarathanan Vale Guard";_.npc_title_id["101"]="Sari' Daroir Guard";_.npc_title_id["8"]="Scavenger";_.npc_title_id["57"]="Schwenderhalle Guard";_.npc_title_id["110"]="Senlathain Stand Guard";_.npc_title_id["28"]="Sergeant";_.npc_title_id["95"]="Shadow Spire Guard";_.npc_title_id["92"]="Shard of Grief Guard";_.npc_title_id["62"]="Shrine of Time Guard";_.npc_title_id["105"]="Siege Camp Guard";_.npc_title_id["94"]="Siege Camp Guard";_.npc_title_id["14"]="Siege Weapon Merchant";_.npc_title_id["100"]="Spire of Teclis Guard";_.npc_title_id["33"]="Stable Master";_.npc_title_id["68"]="Stonemine Guard";_.npc_title_id["114"]="Tactic Librarian";_.npc_title_id["52"]="Tavern Guard";_.npc_title_id["65"]="Thaugamond Guard";_.npc_title_id["1"]="Trainer";_.npc_title_id["115"]="Trophy Librarian";_.npc_title_id["37"]="Vault Keeper";_.npc_title_id["50"]="Verentane's Guard";_.npc_title_id["25"]="War Guard";_.npc_title_id["12"]="Weapon Merchant";_.npc_title_id["98"]="Wood Choppaz Guard";_.npc_type_id={};_.npc_type_id["1"]="Animals";_.npc_type_id["2"]="Daemons";_.npc_type_id["3"]="Humanoids";_.npc_type_id["4"]="Monsters";_.npc_type_id["5"]="Plants";_.npc_type_id["6"]="Undead";_.player_stat_label={};_.player_stat_label["501"]="Armor Penetration";_.player_stat_label["502"]="Speed";_.player_stat_label["504"]="Speed";_.player_stat_label["503"]="Weapon DPS";_.player_stat_label["500"]="Weapon DPS";_.quest_side_id={};_.quest_side_id["2"]="Destruction";_.quest_side_id["1"]="Order";_.quest_side_id["3"]="Both";_.quest_type_id={};_.quest_type_id["6"]="Epic";_.quest_type_id["1"]="Party Quest";_.quest_type_id["5"]="Kill Player Quest";_.quest_type_id["4"]="RvR Quest";_.quest_type_id["3"]="Tome Quest";_.quest_type_id["2"]="Travel Quest";_.race_icon={};_.race_icon["7"]="23000";_.race_icon["5"]="23002";_.race_icon["1"]="23004";_.race_icon["6"]="23006";_.race_icon["3"]="23008";_.race_icon["2"]="23008";_.race_icon["4"]="23010";_.race_id={};_.race_id["7"]="Chaos";_.race_id["5"]="Dark Elf";_.race_id["1"]="Dwarf";_.race_id["6"]="Empire";_.race_id["3"]="Goblin";_.race_id["4"]="High Elf";_.race_id["2"]="Orc";_.renown_build_type={};_.renown_build_type["3"]="Raid";_.renown_build_type["2"]="RvR";_.renown_build_type["1"]="Solo";_.salvage_type={};_.salvage_type["2"]="Magical Items";_.salvage_type["1"]="Mundane Items";_.spell_category_tag={};_.spell_category_tag["1"]="Actions";_.spell_category_tag["4"]="Career Mastery Abilities";_.spell_category_tag["2"]="Morale Abilities";_.spell_category_tag["6"]="Passive Abilities";_.spell_category_tag["5"]="Renown Mastery Abilities";_.spell_category_tag["3"]="Tactics";_.spell_tag={};_.spell_tag["10"]="Ailment";_.spell_tag["12"]="Augmentation";_.spell_tag["13"]="Blessing";_.spell_tag["11"]="Bolster";_.spell_tag["3"]="Buff";_.spell_tag["9"]="Cripple";_.spell_tag["8"]="Curse";_.spell_tag["6"]="Debuff";_.spell_tag["14"]="Enchantment";_.spell_tag["7"]="Hex";_.spell_tag["1"]="Damaging";_.spell_tag["4"]="Defensive";_.spell_tag["2"]="Healing";_.spell_tag["5"]="Offensive";_.spell_tag_color={};_.spell_tag_color["13"]="00d2ff";_.spell_tag_color["3"]="0b35a1";_.spell_tag_color["7"]="17b917";_.spell_tag_color["2"]="33ec27";_.spell_tag_color["8"]="5f185f";_.spell_tag_color["14"]="7356f5";_.spell_tag_color["10"]="bc2f13";_.spell_tag_color["9"]="c79800";_.spell_tag_color["12"]="d8d800";_.spell_tag_color["6"]="ef6bf4";_.spell_tag_color["1"]="f43d20";_.stat_icon={};_.stat_icon["1"]="100";_.stat_icon["3"]="102";_.stat_icon["4"]="103";_.stat_icon["5"]="104";_.stat_icon["6"]="105";_.stat_icon["7"]="106";_.stat_icon["8"]="107";_.stat_icon["9"]="108";_.stat_icon["29"]="110";_.stat_icon["30"]="111";_.stat_icon["504"]="111";_.stat_icon["502"]="111";_.stat_icon["31"]="112";_.stat_icon["26"]="121";_.stat_icon["14"]="155";_.stat_icon["80"]="156";_.stat_icon["81"]="156";_.stat_icon["82"]="156";_.stat_icon["503"]="157";_.stat_icon["500"]="159";_.stat_icon["89"]="160";_.stat_icon["15"]="162";_.stat_icon["78"]="163";_.stat_icon["77"]="163";_.stat_icon["76"]="163";_.stat_icon["16"]="164";_.stat_icon["28"]="165";_.stat_icon["501"]="166";_.stat_label_abbrev={};_.stat_label_abbrev["501"]="Armor Pen";_.stat_label_abbrev["82"]="Bonus Magic DMG";_.stat_label_abbrev["80"]="Bonus Melee DMG";_.stat_label_abbrev["81"]="Bonus Ranged DMG";_.stat_label_abbrev["16"]="Corporeal Resist";_.stat_label_abbrev["77"]="Crit Chance";_.stat_label_abbrev["76"]="Crit Chance";_.stat_label_abbrev["15"]="Elemental Resist";_.stat_label_abbrev["89"]="Healing Crit Chance";_.stat_label_abbrev["78"]="Magic Crit Chance";_.stat_label_abbrev["14"]="Spirital Resist";_.story_desc={};_.story_desc["1"]="Led by the powerful Warlord Grumlok and his Bloody Sun Boyz tribe, the greenskins set out on a path of conquest to destroy once and for all their ancient enemies, the Dwarfs.";_.story_id={};_.story_id["7"]="Capital Cities";_.story_id["2"]="Chaos Storyline";_.story_id["3"]="Dark Elf Storyline";_.story_id["4"]="Dwarf Storyline";_.story_id["5"]="Empire Storyline";_.story_id["1"]="Greenskin Storyline";_.story_id["6"]="High Elf Storyline";_.story_id["8"]="Legendary Locales";_.story_id["9"]="Legendary Locales";_.tactic_type={};_.tactic_type["0"]="Career";_.tactic_type["1"]="Renown";_.tactic_type["2"]="Tome";_.title_type={};_.title_type["6"]="Achievements";_.title_type["2"]="Exploration";_.title_type["4"]="Heroic";_.title_type["1"]="Killing";_.title_type["3"]="Questing";_.title_type["5"]="Silly";_.tradeskill_icon={};_.tradeskill_icon["5"]="20457";_.tradeskill_icon["2"]="223";_.tradeskill_icon["1"]="223";_.tradeskill_icon["6"]="224";_.tradeskill_icon["3"]="234";_.tradeskill_icon["4"]="258";_.tradeskill_id={};_.tradeskill_id["4"]="Apothecary";_.tradeskill_id["1"]="Butchering";_.tradeskill_id["3"]="Cultivating";_.tradeskill_id["6"]="Magical Salvaging";_.tradeskill_id["2"]="Scavenging";_.tradeskill_id["5"]="Talisman Making";_.influence_name={};_.influence_name["2"]="Chapter 1: Skarzag's Warcamp";_.influence_name["3"]="Chapter 2: Lumber for the Lobbers";_.influence_name["4"]="Chapter 3: A Stone's Throw from the Enemy";_.influence_name["5"]="Chapter 4: Tribal Warfare";_.influence_name["6"]="Chapter 5: Something Happened on the Way to the Waaagh!";_.influence_name["7"]="Chapter 6: Bonerender's Boyz";_.influence_name["8"]="Chapter 7: Who's da Boss?";_.influence_name["9"]="Chapter 8: The Fall of Barak Varr";_.influence_name["10"]="Chapter 9: The Stunty Boss";_.influence_name["11"]="Chapter 10: Missing Moonfangs";_.influence_name["12"]="Chapter 11: Bad Luck in the Badlands";_.influence_name["13"]="Chapter 12: The Enforcer";_.influence_name["14"]="Chapter 13: A New Enemy";_.influence_name["15"]="Chapter 14: Skargor's Plan";_.influence_name["16"]="Chapter 15: The Road to Treachery";_.influence_name["17"]="Chapter 16: The Orc Who Would be Boss";_.influence_name["18"]="Chapter 17: Distant Thunder";_.influence_name["19"]="Chapter 18: The Battle of Grudzag";_.influence_name["20"]="Chapter 19: Mudja da Feerse";_.influence_name["21"]="Chapter 20: Surprise Attack";_.influence_name["22"]="Chapter 21: Now or Never";_.influence_name["23"]="Chapter 22: The Slayer's Last Stand";_.influence_name["24"]="Chapter 1: Assault on Bitterstone Mine";_.influence_name["25"]="Chapter 2: Defenders at the Redhammer Pub";_.influence_name["26"]="Chapter 3: Standoff at the Kron-Komar Gap";_.influence_name["27"]="Chapter 4: Keeping the Dogs at Bay";_.influence_name["28"]="Chapter 5: Bogged Down";_.influence_name["29"]="Chapter 6: Murdogh's Hold";_.influence_name["30"]="Chapter 7: Bar Dawazbak";_.influence_name["31"]="Chapter 8: A Bridge Too Far";_.influence_name["32"]="Chapter 9: Mine, All Mine";_.influence_name["33"]="Chapter 10: On the Trail of a Legend";_.influence_name["34"]="Chapter 11: Good News, and Bad";_.influence_name["35"]="Chapter 12: Solemn Oath";_.influence_name["36"]="Chapter 13: Encircled";_.influence_name["37"]="Chapter 14: The Best Defense…";_.influence_name["38"]="Chapter 15: Kazad Gromar";_.influence_name["39"]="Chapter 16: The Conquest of Grung Grimaz";_.influence_name["40"]="Chapter 17: Raiders of the Lost Vault";_.influence_name["41"]="Chapter 18: Into the Fire";_.influence_name["42"]="Chapter 19: Desperate Measures";_.influence_name["43"]="Chapter 20: Blood Oath";_.influence_name["44"]="Chapter 21: New Allies, New Enemies";_.influence_name["45"]="Chapter 22: At the Doorstep of Eight Peaks";_.influence_name["46"]="Open RvR - Tier 1: Ekrund & Mount Bloodhorn";_.influence_name["47"]="Open RvR - Tier 2: Barak Varr & Marshes of Madness";_.influence_name["48"]="Open RvR - Tier 3: Black Fire Pass & Badlands";_.influence_name["49"]="Open RvR - Tier 4: Kadrin Valley, Thunder Mountain & Black Crag";_.influence_name["55"]="Open RvR - Tier 1: Mount Bloodhorn & Ekrund";_.influence_name["56"]="Open RvR - Tier 2: Marshes of Madness & Barak Varr";_.influence_name["57"]="Open RvR - Tier 3: Badlands & Black Fire Pass";_.influence_name["58"]="Open RvR - Tier 4: Black Crag, Thunder Mountain & Kadrin Valley ";_.influence_name["64"]="Dwarf & Greenskin Lands: Mount Gunbad";_.influence_name["65"]="Greenskin & Dwarf Lands: Mount Gunbad";_.influence_name["66"]="Chapter 1: Proving Ground";_.influence_name["67"]="Chapter 2: Rite of Passage";_.influence_name["68"]="Chapter 3: The Battle of New Emskrank";_.influence_name["69"]="Chapter 4: Proving Ground";_.influence_name["70"]="Chapter 4: The Pit of the Forsaken";_.influence_name["71"]="Chapter 3: Fearless Resistance";_.influence_name["72"]="Chapter 1: War Comes to Grimmenhagen";_.influence_name["73"]="Chapter 5: Aid from Afar";_.influence_name["74"]="Chapter 2: The Muster of Nordland";_.influence_name["75"]="Chapter 5: Into the Shadows";_.influence_name["76"]="Chapter 6: A Channeler of Daemons";_.influence_name["77"]="Chapter 6: Sins of the Past";_.influence_name["78"]="Chapter 7: The Darkfire Scepter";_.influence_name["79"]="Chapter 8: The Soulblight Stone";_.influence_name["80"]="Chapter 9: The Belly of the Beast";_.influence_name["81"]="Chapter 10: Enemy Territory";_.influence_name["82"]="Chapter 11: Visions in Flame";_.influence_name["83"]="Chapter 12: Standoff";_.influence_name["84"]="Chapter 13: The Prisoner";_.influence_name["85"]="Chapter 14: The Sigil of Malice";_.influence_name["86"]="Chapter 15: Digging into the Past";_.influence_name["87"]="Chapter 16: To Awaken the Souleater";_.influence_name["88"]="Chapter 17: City Under Siege";_.influence_name["89"]="Chapter 18: A Losing Battle";_.influence_name["90"]="Chapter 19: The Fall of Praag";_.influence_name["91"]="Chapter 20: The Heart of the Empire";_.influence_name["92"]="Chapter 21: A Gathering of Forces";_.influence_name["93"]="Chapter 22: The Burning of Castle Reiksguard";_.influence_name["94"]="Chapter 7: Riddles and Clues";_.influence_name["95"]="Chapter 8: The Siege of Bohsenfels";_.influence_name["96"]="Chapter 9: Wolfenburg";_.influence_name["97"]="Chapter 10: The Search Begins";_.influence_name["98"]="Chapter 11: An Uphill Battle";_.influence_name["99"]="Chapter 12: Ice and Fire";_.influence_name["100"]="Chapter 13: Hergig Bridge";_.influence_name["101"]="Chapter 14: Sacrifices";_.influence_name["102"]="Chapter 15: Trouble at the Emperor's Arms";_.influence_name["103"]="Chapter 16: Threats from Within";_.influence_name["104"]="Chapter 17: Dark Revelation";_.influence_name["105"]="Chapter 18: Flood";_.influence_name["106"]="Chapter 19: Fight Fire with Fire";_.influence_name["107"]="Chapter 20: A Desperate Gambit";_.influence_name["108"]="Chapter 21: Men of Faith";_.influence_name["109"]="Chapter 22: The Ebon Keep";_.influence_name["110"]="Open RvR - Tier 1: Nordland & Norsca";_.influence_name["111"]="Open RvR - Tier 2: Ostland & Troll Country";_.influence_name["112"]="Open RvR - Tier 3: Talabecland & High Pass";_.influence_name["113"]="Open RvR - Tier 4: Reikland, Praag & Chaos Wastes";_.influence_name["119"]="Open RvR - Tier 1: Norsca & Nordland";_.influence_name["120"]="Open RvR - Tier 2: Troll Country & Ostland";_.influence_name["121"]="Open RvR - Tier 3: High Pass & Talabecland";_.influence_name["122"]="Open RvR - Tier 4: Chaos Wastes, Praag & Reikland";_.influence_name["128"]="Chaos & Empire Lands: Bastion Stair";_.influence_name["129"]="Empire & Chaos Lands: Bastion Stair";_.influence_name["130"]="Chapter 1: Trial by Blood";_.influence_name["131"]="Chapter 2: Nimosar";_.influence_name["132"]="Chapter 3: Into the Lions' Den";_.influence_name["133"]="Chapter 4: Twilight";_.influence_name["134"]="Chapter 5: Bitter Rivals";_.influence_name["135"]="Chapter 6: Truce and Consequences";_.influence_name["136"]="Chapter 7: Day of Blood";_.influence_name["137"]="Chapter 8: The Fall of the Matriarch";_.influence_name["138"]="Chapter 9: Race for the Menhir";_.influence_name["139"]="Chapter 10: Brought Down from Within";_.influence_name["140"]="Chapter 11: Everspring";_.influence_name["141"]="Chapter 12: A Final Duty";_.influence_name["142"]="Chapter 13: Seeds of Treachery";_.influence_name["143"]="Chapter 14: Betrayal";_.influence_name["144"]="Chapter 15: Ground Assault";_.influence_name["145"]="Chapter 16: Rewards of Service";_.influence_name["146"]="Chapter 17: Ultimate Control";_.influence_name["147"]="Chapter 18: Death of Dreams";_.influence_name["148"]="Chapter 19: Furnace of Caladain";_.influence_name["149"]="Chapter 20: Emerald Steppe";_.influence_name["150"]="Chapter 21: Blind Hatred";_.influence_name["151"]="Chapter 22: Last Stand";_.influence_name["152"]="Chapter 1: Invasion";_.influence_name["153"]="Chapter 2: An Ill Omen";_.influence_name["154"]="Chapter 3: Sisters in Arms";_.influence_name["155"]="Chapter 4: The Stone of Imrahir";_.influence_name["156"]="Chapter 5: Discovery at Mirelen";_.influence_name["157"]="Chapter 6: Difficult Choices";_.influence_name["158"]="Chapter 7: Shades of Meaning";_.influence_name["159"]="Chapter 8: Battle at the Gate";_.influence_name["160"]="Chapter 9: Plain Council";_.influence_name["161"]="Chapter 10: Guerrilla Tactics";_.influence_name["162"]="Chapter 11: Corruption of the Forest";_.influence_name["163"]="Chapter 12: Killing Blow";_.influence_name["164"]="Chapter 13: Houses of Learning";_.influence_name["165"]="Chapter 14: Uncertain Ground";_.influence_name["166"]="Chapter 15: Eataine in Flames";_.influence_name["167"]="Chapter 16: Homecoming";_.influence_name["168"]="Chapter 17: The Call of Time";_.influence_name["169"]="Chapter 18: Dragonwake";_.influence_name["170"]="Chapter 19: Vaul's Anvil";_.influence_name["171"]="Chapter 20: Subterfuge";_.influence_name["172"]="Chapter 21: Buying Time";_.influence_name["173"]="Chapter 22: The Fall of Eyrad Adrel";_.influence_name["174"]="Open RvR - Tier 1: Chrace & Blighted Isle";_.influence_name["175"]="Open RvR - Tier 2: Ellyrion & Shadowlands";_.influence_name["176"]="Open RvR - Tier 3: Saphery & Averlorn";_.influence_name["177"]="Open RvR - Tier 4: Dragonwake, Eataine & Caledor";_.influence_name["183"]="Open RvR - Tier 1: Blighted Isle & Chrace";_.influence_name["184"]="Open RvR - Tier 2: Shadowslands & Ellyrion";_.influence_name["185"]="Open RvR - Tier 3: Averlorn & Saphery";_.influence_name["186"]="Open RvR - Tier 4: Caledor, Eataine & Dragonwake";_.influence_name["192"]="Dark & High Elf Lands: The Lost Vale";_.influence_name["193"]="High & Dark Elf Lands: The Lost Vale";_.influence_name["207"]="Fortress: Shining Way";_.influence_cap={};_.influence_cap["2"]="3060";_.influence_cap["3"]="9370";_.influence_cap["4"]="9830";_.influence_cap["5"]="10280";_.influence_cap["6"]="10740";_.influence_cap["7"]="11200";_.influence_cap["8"]="12243";_.influence_cap["9"]="13332";_.influence_cap["10"]="14455";_.influence_cap["11"]="15636";_.influence_cap["12"]="16862";_.influence_cap["13"]="18135";_.influence_cap["14"]="19453";_.influence_cap["15"]="20804";_.influence_cap["16"]="22214";_.influence_cap["17"]="23670";_.influence_cap["18"]="25172";_.influence_cap["19"]="26720";_.influence_cap["20"]="28314";_.influence_cap["21"]="29937";_.influence_cap["22"]="31622";_.influence_cap["23"]="33354";_.influence_cap["24"]="3060";_.influence_cap["25"]="9370";_.influence_cap["26"]="9830";_.influence_cap["27"]="10280";_.influence_cap["28"]="10740";_.influence_cap["29"]="11200";_.influence_cap["30"]="12243";_.influence_cap["31"]="13332";_.influence_cap["32"]="14455";_.influence_cap["33"]="15636";_.influence_cap["34"]="16862";_.influence_cap["35"]="18135";_.influence_cap["36"]="19453";_.influence_cap["37"]="20804";_.influence_cap["38"]="22214";_.influence_cap["39"]="23670";_.influence_cap["40"]="25172";_.influence_cap["41"]="26720";_.influence_cap["42"]="28314";_.influence_cap["43"]="29937";_.influence_cap["44"]="31622";_.influence_cap["45"]="33354";_.influence_cap["46"]="3960";_.influence_cap["47"]="10560";_.influence_cap["48"]="20850";_.influence_cap["49"]="53910";_.influence_cap["55"]="3960";_.influence_cap["56"]="10560";_.influence_cap["57"]="20850";_.influence_cap["58"]="53910";_.influence_cap["64"]="62820";_.influence_cap["65"]="62820";_.influence_cap["66"]="3060";_.influence_cap["67"]="9370";_.influence_cap["68"]="9830";_.influence_cap["69"]="10280";_.influence_cap["70"]="10280";_.influence_cap["71"]="9830";_.influence_cap["72"]="3060";_.influence_cap["73"]="10740";_.influence_cap["74"]="9370";_.influence_cap["75"]="10740";_.influence_cap["76"]="11200";_.influence_cap["77"]="11200";_.influence_cap["78"]="12243";_.influence_cap["79"]="13332";_.influence_cap["80"]="14455";_.influence_cap["81"]="15636";_.influence_cap["82"]="16862";_.influence_cap["83"]="18135";_.influence_cap["84"]="19453";_.influence_cap["85"]="20804";_.influence_cap["86"]="22214";_.influence_cap["87"]="23670";_.influence_cap["88"]="25172";_.influence_cap["89"]="26720";_.influence_cap["90"]="28314";_.influence_cap["91"]="29937";_.influence_cap["92"]="31622";_.influence_cap["93"]="33354";_.influence_cap["94"]="12243";_.influence_cap["95"]="13332";_.influence_cap["96"]="14455";_.influence_cap["97"]="15636";_.influence_cap["98"]="16862";_.influence_cap["99"]="18135";_.influence_cap["100"]="19453";_.influence_cap["101"]="20804";_.influence_cap["102"]="22214";_.influence_cap["103"]="23670";_.influence_cap["104"]="25172";_.influence_cap["105"]="26720";_.influence_cap["106"]="28314";_.influence_cap["107"]="29937";_.influence_cap["108"]="31622";_.influence_cap["109"]="33354";_.influence_cap["110"]="3960";_.influence_cap["111"]="10560";_.influence_cap["112"]="20850";_.influence_cap["113"]="53910";_.influence_cap["119"]="3960";_.influence_cap["120"]="10560";_.influence_cap["121"]="20850";_.influence_cap["122"]="53910";_.influence_cap["128"]="75150";_.influence_cap["129"]="75150";_.influence_cap["130"]="3060";_.influence_cap["131"]="9370";_.influence_cap["132"]="9830";_.influence_cap["133"]="10280";_.influence_cap["134"]="10740";_.influence_cap["135"]="11200";_.influence_cap["136"]="12243";_.influence_cap["137"]="13332";_.influence_cap["138"]="14455";_.influence_cap["139"]="15636";_.influence_cap["140"]="16862";_.influence_cap["141"]="18135";_.influence_cap["142"]="19453";_.influence_cap["143"]="20804";_.influence_cap["144"]="22214";_.influence_cap["145"]="23670";_.influence_cap["146"]="25172";_.influence_cap["147"]="26720";_.influence_cap["148"]="28314";_.influence_cap["149"]="29937";_.influence_cap["150"]="31622";_.influence_cap["151"]="33354";_.influence_cap["152"]="3060";_.influence_cap["153"]="9370";_.influence_cap["154"]="9830";_.influence_cap["155"]="10280";_.influence_cap["156"]="10740";_.influence_cap["157"]="11200";_.influence_cap["158"]="12243";_.influence_cap["159"]="13332";_.influence_cap["160"]="14455";_.influence_cap["161"]="15636";_.influence_cap["162"]="16862";_.influence_cap["163"]="18135";_.influence_cap["164"]="19453";_.influence_cap["165"]="20804";_.influence_cap["166"]="22214";_.influence_cap["167"]="23670";_.influence_cap["168"]="25172";_.influence_cap["169"]="26720";_.influence_cap["170"]="28314";_.influence_cap["171"]="29937";_.influence_cap["172"]="31622";_.influence_cap["173"]="33354";_.influence_cap["174"]="3960";_.influence_cap["175"]="10560";_.influence_cap["176"]="20850";_.influence_cap["177"]="53910";_.influence_cap["183"]="3960";_.influence_cap["184"]="10560";_.influence_cap["185"]="20850";_.influence_cap["186"]="53910";_.influence_cap["206"]="48000";_.influence_cap["207"]="12";_.influence_cap["214"]="24000";_.influence_cap["215"]="8";_.influence_cap["216"]="24000";_.influence_cap["217"]="1000";_.influence_cap["222"]="8000";_.location_name={};_.location_name["162"]="Altdorf";_.location_name["170"]="Altdorf Palace";_.location_name["202"]="Avelorn";_.location_name["7"]="Barak Varr";_.location_name["160"]="Bastion Stair";_.location_name["136"]="Battle for Praag";_.location_name["196"]="Bilerot Burrow";_.location_name["3"]="Black Crag";_.location_name["37"]="Black Crag Keep";_.location_name["38"]="Black Fire Basin";_.location_name["8"]="Black Fire Pass";_.location_name["238"]="Blood of the Black Cairn";_.location_name["195"]="Bloodwrought Enclave";_.location_name["4"]="Butcher's Pass";_.location_name["203"]="Caledor";_.location_name["237"]="Caledor Woods";_.location_name["138"]="Castle Reikland";_.location_name["103"]="Chaos Wastes";_.location_name["206"]="Chrace";_.location_name["26"]="Cinderfall";_.location_name["27"]="Death Peak";_.location_name["33"]="Doomfist Crater";_.location_name["235"]="Dragon's Bane";_.location_name["205"]="Dragonwake";_.location_name["209"]="Eataine";_.location_name["6"]="Ekrund";_.location_name["207"]="Ellyrion";_.location_name["204"]="Fell Landing";_.location_name["30"]="Gates of Ekrund";_.location_name["43"]="Gromril Crossing";_.location_name["137"]="Grovod Caverns";_.location_name["66"]="Gunbad Barracks";_.location_name["64"]="Gunbad Lab";_.location_name["63"]="Gunbad Nursery";_.location_name["102"]="High Pass";_.location_name["139"]="High Pass Cemetery";_.location_name["44"]="Howling Gorge";_.location_name["220"]="Isle of the Dead";_.location_name["165"]="Kaarn the Vanquisher";_.location_name["9"]="Kadrin Valley";_.location_name["36"]="Kadrin Valley Pass";_.location_name["230"]="Khaine's Embrace";_.location_name["39"]="Logrin's Forge";_.location_name["164"]="Lord Slaurith";_.location_name["1"]="Marshes of Madness";_.location_name["133"]="Maw of Madness";_.location_name["11"]="Mount Bloodhorn";_.location_name["60"]="Mount Gunbad";_.location_name["31"]="Mourkain Temple";_.location_name["191"]="Necropolis of Zandri";_.location_name["130"]="Nordenwatch";_.location_name["106"]="Nordland";_.location_name["100"]="Norsca";_.location_name["107"]="Ostland";_.location_name["117"]="Outer Dark";_.location_name["144"]="Outer Dark";_.location_name["231"]="Phoenix Gate";_.location_name["105"]="Praag";_.location_name["109"]="Reikland";_.location_name["134"]="Reikland Hills";_.location_name["110"]="Reikwald";_.location_name["156"]="Sacellum Dungeons: East Wing";_.location_name["173"]="Sacellum Dungeons: South Wing";_.location_name["155"]="Sacellum Dungeons: West Wing";_.location_name["208"]="Saphery";_.location_name["234"]="Serpent's Passage";_.location_name["210"]="Shining Way";_.location_name["176"]="Sigmar Crypts";_.location_name["198"]="Sigmar's Hammer";_.location_name["166"]="Skull Lord Var'Ithrok";_.location_name["65"]="Squig Boss";_.location_name["131"]="Stonetroll Crossing";_.location_name["10"]="Stonewatch";_.location_name["132"]="Talabec Dam";_.location_name["108"]="Talabecland";_.location_name["236"]="Temple of Isha";_.location_name["163"]="Thar'Ignan";_.location_name["2"]="The Badlands";_.location_name["200"]="The Blighted Isle";_.location_name["174"]="The Elysium";_.location_name["172"]="The Eternal Citadel";_.location_name["161"]="The Inevitable City";_.location_name["118"]="The Kraken Sea";_.location_name["260"]="The Lost Vale";_.location_name["104"]="The Maw";_.location_name["171"]="The Screaming Cat";_.location_name["152"]="The Sewers of Altdorf: Wing 1";_.location_name["153"]="The Sewers of Altdorf: Wing 2";_.location_name["169"]="The Sewers of Altdorf: Wing 3";_.location_name["201"]="The Shadowlands";_.location_name["178"]="The Viper Pit";_.location_name["5"]="Thunder Mountain";_.location_name["34"]="Thunder Valley";_.location_name["242"]="Tomb of the Moon";_.location_name["243"]="Tomb of the Sky";_.location_name["241"]="Tomb of the Stars";_.location_name["244"]="Tomb of the Sun";_.location_name["179"]="Tomb of the Vulture Lord";_.location_name["232"]="Tor Anroc";_.location_name["101"]="Troll Country";_.location_name["135"]="Twisting Tower";_.location_name["177"]="Warpblade Tunnels";_.location_name["120"]="West Praag";_.location_name["175"]="Winds of Chaos";_.stat_label={};_.stat_label["1"]="Strength";_.stat_label["2"]="Agility";_.stat_label["3"]="Willpower";_.stat_label["4"]="Toughness";_.stat_label["5"]="Wounds";_.stat_label["6"]="Initiative";_.stat_label["7"]="Weapon Skill";_.stat_label["8"]="Ballistic Skill";_.stat_label["9"]="Intelligence";_.stat_label["10"]="Block Skill";_.stat_label["11"]="Parry Skill";_.stat_label["12"]="Dodge Skill";_.stat_label["13"]="Disrupt Skill";_.stat_label["14"]="Spiritual Resistance";_.stat_label["15"]="Elemental Resistance";_.stat_label["16"]="Corporeal Resistance";_.stat_label["22"]="Damage Reduction";_.stat_label["23"]="Damage Reduction";_.stat_label["24"]="Damage";_.stat_label["25"]="DPS";_.stat_label["26"]="Armor Bonus";_.stat_label["27"]="Velocity";_.stat_label["28"]="Block";_.stat_label["29"]="Parry";_.stat_label["30"]="Dodge";_.stat_label["31"]="Disrupt";_.stat_label["32"]="AP Per Second";_.stat_label["33"]="Morale Per Second ";_.stat_label["34"]="Cooldown Speed";_.stat_label["35"]="Buildup Time";_.stat_label["36"]="Critical Damage";_.stat_label["37"]="Increased Range";_.stat_label["38"]="Auto Attack Speed";_.stat_label["40"]="Auto Attack Damage";_.stat_label["41"]="Ability AP Cost";_.stat_label["42"]="Critical Hit Rate";_.stat_label["43"]="Critical Damage Taken";_.stat_label["44"]="Effect Resist";_.stat_label["45"]="Effect Buff";_.stat_label["46"]="Minimum Range";_.stat_label["47"]="Damage Absorb";_.stat_label["48"]="Decreased Setback Chance";_.stat_label["49"]="Decreased Setback Time";_.stat_label["50"]="";_.stat_label["51"]="";_.stat_label["52"]="";_.stat_label["53"]="";_.stat_label["54"]="Reduced Aggro Radius";_.stat_label["55"]="Effect Duration";_.stat_label["56"]="Bonus to All Masteries";_.stat_label["57"]="";_.stat_label["58"]="";_.stat_label["59"]="Butchering";_.stat_label["60"]="Scavenging";_.stat_label["61"]="Cultivating";_.stat_label["62"]="Apothecary";_.stat_label["63"]="Talisman-making";_.stat_label["64"]="Magical Salvaging";_.stat_label["65"]="Stealth";_.stat_label["66"]="Stealth Detection";_.stat_label["67"]="Hate Caused";_.stat_label["68"]="Hate Reduction";_.stat_label["69"]="Offhand Hit Chance";_.stat_label["70"]="Offhand Damage";_.stat_label["71"]="";_.stat_label["72"]="";_.stat_label["73"]="";_.stat_label["76"]="Melee Critical Chance";_.stat_label["77"]="Ranged Critical Chance";_.stat_label["78"]="Magic Critical Chance";_.stat_label["79"]="Hit Points Every 4 Seconds";_.stat_label["80"]="Melee Power";_.stat_label["81"]="Ranged Power";_.stat_label["82"]="Magic Power";_.stat_label["83"]="Reduced Armor Penetration";_.stat_label["84"]="Reduction in being Critically Hit";_.stat_label["85"]="Reduced Chance to be Blocked";_.stat_label["86"]="Reduced Chance to be Parried";_.stat_label["87"]="Reduced Chance to be Evaded";_.stat_label["88"]="Reduced Chance to be Disrupted";_.stat_label["89"]="Healing Critical Chance";_.stat_label["90"]="Additional AP Pool";_.stat_label["91"]="Path of {0} Abilities";_.stat_label["92"]="Path of {0} Abilities";_.stat_label["93"]="Path of {0} Abilities";_.stat_label["94"]="Healing Power";_.stat_label["26"]="Armor Bonus";_.stat_label["28"]="Block";_.stat_label["500"]="Weapon DPS";_.stat_label["502"]="Speed";_.stat_label["500"]="Weapon DPS";_.stat_label["501"]="Armor Penetration";_.stat_label["502"]="Speed";_.stat_label["503"]="Weapon DPS";_.stat_label["504"]="Speed";};Curse.Lookup.initialize();var mn_9 = [[9,"Characters","search.aspx?sf=1&browse=9"],[10,"Guilds","search.aspx?sf=1&browse=10"],[200,"Users","search.aspx?browse=200"],[119,"Servers","search.aspx?browse=119"]];
var mn_1_$7 = [[20,"Archmage","search.aspx?browse=7.20"],[5,"Black Orc","search.aspx?browse=7.5"],[21,"Blackguard","search.aspx?browse=7.21"],[11,"Bright Wizard","search.aspx?browse=7.11"],[6,"Choppa","search.aspx?browse=7.6"],[13,"Chosen","search.aspx?browse=7.13"],[23,"Disciple of Khaine","search.aspx?browse=7.23"],[4,"Engineer","search.aspx?browse=7.4"],[1,"Ironbreaker","search.aspx?browse=7.1"],[10,"Knight of the Blazing Sun","search.aspx?browse=7.10"],[16,"Magus","search.aspx?browse=7.16"],[14,"Marauder","search.aspx?browse=7.14"],[3,"Rune Priest","search.aspx?browse=7.3"],[18,"Shadow Warrior","search.aspx?browse=7.18"],[7,"Shaman","search.aspx?browse=7.7"],[2,"Slayer","search.aspx?browse=7.2"],[24,"Sorcerer","search.aspx?browse=7.24"],[8,"Squig Herder","search.aspx?browse=7.8"],[17,"Swordmaster","search.aspx?browse=7.17"],[12,"Warrior Priest","search.aspx?browse=7.12"],[19,"White Lion","search.aspx?browse=7.19"],[22,"Witch Elf","search.aspx?browse=7.22"],[9,"Witch Hunter","search.aspx?browse=7.9"],[15,"Zealot","search.aspx?browse=7.15"]];
var mn_1_1 = [[2,"Axes",],[7,"Bows",],[8,"Crossbows",],[12,"Daggers",],[-1,"Great Weapons",],[9,"Guns",],[3,"Hammers",],[15,"Pistols",],[14,"Spears",],[11,"Staves",],[1,"Swords",],[13,"Thrown",]];
var mn_1_2_6 = [[10,"Shoulders",],[13,"Back",],[14,"Belt",],[6,"Body",],[7,"Gloves",],[8,"Boots",],[9,"Helm",]];
var mn_1_2_22 = [[10,"Shoulders",],[13,"Back",],[14,"Belt",],[6,"Body",],[7,"Gloves",],[8,"Boots",],[9,"Helm",]];
var mn_1_2_18 = [[10,"Shoulders",],[13,"Back",],[14,"Belt",],[6,"Body",],[7,"Gloves",],[8,"Boots",],[9,"Helm",]];
var mn_1_2_19 = [[10,"Shoulders",],[13,"Back",],[14,"Belt",],[6,"Body",],[7,"Gloves",],[8,"Boots",],[9,"Helm",]];
var mn_1_2_20 = [[10,"Shoulders",],[13,"Back",],[14,"Belt",],[6,"Body",],[7,"Gloves",],[8,"Boots",],[9,"Helm",]];
var mn_1_2 = [[6,"Robes",,mn_1_2_6],[22,"Medium Robes",,mn_1_2_22],[18,"Light Armor",,mn_1_2_18],[19,"Medium Armor",,mn_1_2_19],[20,"Heavy Armor",,mn_1_2_20],[5,"Shields",]];
var mn_1_9_4 = [[10,"Goldweed",],[11,"Gold Dust",],[12,"Quicksilver",],[13,"Container",],[14,"Fragment",],[15,"Gold Essence",],[16,"Curio",],[17,"Magic Essence",],[2,"Main Ingredient",],[5,"Container",],[6,"Dye Container",],[7,"Gold Essence Container",],[8,"Pigment",],[9,"Fixer",]];
var mn_1_9_3 = [[1,"Seed",],[2,"Soil",],[3,"Watering Can",],[4,"Nutrient",],[5,"Spore",]];
var mn_1_9_5 = [[10,"Goldweed",],[11,"Gold Dust",],[12,"Quicksilver",],[13,"Container",],[14,"Fragment",],[15,"Gold Essence",],[16,"Curio",],[17,"Magic Essence",],[2,"Main Ingredient",],[5,"Container",],[6,"Dye Container",],[7,"Gold Essence Container",],[8,"Pigment",],[9,"Fixer",]];
var mn_1_9 = [[4,"Apothecary",,mn_1_9_4],[1,"Butchering",],[3,"Cultivating",,mn_1_9_3],[6,"Magical Salvaging",],[2,"Scavenging",],[5,"Talisman Making",,mn_1_9_5]];
var mn_1 = [[-7,"Item Sets","search.aspx?sf=1&browse=7",mn_1_$7],[1,"Weapons",,mn_1_1],[2,"Armor",,mn_1_2],[3,"Quest Items",],[4,"Trophies",],[5,"Miscellaneous",],[6,"Jewelry",],[7,"Talismans",],[8,"Consumables",],[9,"Crafting",,mn_1_9]];
var mn_4_122 = [[7,"Capital Cities","search.aspx?browse=122.7"],[2,"Chaos Storyline","search.aspx?browse=122.2"],[3,"Dark Elf Storyline","search.aspx?browse=122.3"],[4,"Dwarf Storyline","search.aspx?browse=122.4"],[5,"Empire Storyline","search.aspx?browse=122.5"],[1,"Greenskin Storyline","search.aspx?browse=122.1"],[6,"High Elf Storyline","search.aspx?browse=122.6"],[8,"Legendary Locales","search.aspx?browse=122.8"],[9,"Legendary Locales","search.aspx?browse=122.9"]];
var mn_4_0_17 = [[161,"The Inevitable City",],[175,"Winds of Chaos",],[178,"The Viper Pit",]];
var mn_4_0_1 = [[6,"Ekrund",],[11,"Mount Bloodhorn",]];
var mn_4_0_12 = [[1,"Marshes of Madness",],[7,"Barak Varr",]];
var mn_4_0_10 = [[2,"The Badlands",],[8,"Black Fire Pass",]];
var mn_4_0_2 = [[3,"Black Crag",],[4,"Butcher's Pass",],[5,"Thunder Mountain",],[9,"Kadrin Valley",],[10,"Stonewatch",],[26,"Cinderfall",],[27,"Death Peak",]];
var mn_4_0_8 = [[100,"Norsca",],[106,"Nordland",]];
var mn_4_0_14 = [[101,"Troll Country",],[107,"Ostland",]];
var mn_4_0_6 = [[102,"High Pass",],[108,"Talabecland",]];
var mn_4_0_11 = [[103,"Chaos Wastes",],[104,"The Maw",],[105,"Praag",],[110,"Reikwald",],[117,"Outer Dark",],[118,"The Kraken Sea",],[120,"West Praag",],[144,"Outer Dark",]];
var mn_4_0_25 = [[176,"Sigmar Crypts",],[177,"Warpblade Tunnels",],[195,"Bloodwrought Enclave",],[196,"Bilerot Burrow",],[260,"The Lost Vale",]];
var mn_4_0_3 = [[200,"The Blighted Isle",],[206,"Chrace",]];
var mn_4_0_15 = [[201,"The Shadowlands",],[207,"Ellyrion",]];
var mn_4_0_16 = [[202,"Avelorn",],[208,"Saphery",]];
var mn_4_0_4 = [[203,"Caledor",],[204,"Fell Landing",],[205,"Dragonwake",],[209,"Eataine",],[210,"Shining Way",],[220,"Isle of the Dead",]];
var mn_4_0_23 = [[152,"The Sewers of Altdorf: Wing 1",],[153,"The Sewers of Altdorf: Wing 2",],[155,"Sacellum Dungeons: West Wing",],[156,"Sacellum Dungeons: East Wing",],[169,"The Sewers of Altdorf: Wing 3",],[173,"Sacellum Dungeons: South Wing",]];
var mn_4_0_7 = [[61,"Karak Eight Peaks",],[62,"Karaz-a-Karak",],[67,"Karak Eight Peaks",],[68,"Karaz-a-Karak",],[162,"Altdorf",],[190,"Bright Wizard College",],[198,"Sigmar's Hammer",],[261,"Fist of Malekith",],[262,"Lothern",]];
var mn_4_0_24 = [[60,"Mount Gunbad",],[63,"Gunbad Nursery",],[64,"Gunbad Lab",],[66,"Gunbad Barracks",],[160,"Bastion Stair",]];
var mn_4_0_22 = [[138,"Castle Reikland",]];
var mn_4_0_18 = [[30,"Gates of Ekrund",],[130,"Nordenwatch",],[230,"Khaine's Embrace",]];
var mn_4_0_19 = [[31,"Mourkain Temple",],[131,"Stonetroll Crossing",],[231,"Phoenix Gate",]];
var mn_4_0_20 = [[33,"Doomfist Crater",],[38,"Black Fire Basin",],[132,"Talabec Dam",],[139,"High Pass Cemetery",]];
var mn_4_0_21 = [[34,"Thunder Valley",],[36,"Kadrin Valley Pass",],[39,"Logrin's Forge",],[43,"Gromril Crossing",],[44,"Howling Gorge",],[109,"Reikland",],[133,"Maw of Madness",],[135,"Twisting Tower",],[136,"Battle for Praag",],[137,"Grovod Caverns",],[234,"Serpent's Passage",],[235,"Dragon's Bane",],[237,"Caledor Woods",],[238,"Blood of the Black Cairn",]];
var mn_4_0 = [[17,"Destruction Cities",,mn_4_0_17],[1,"Dwarf vs Greenskin Tier 1",,mn_4_0_1],[12,"Dwarf vs Greenskin Tier 2",,mn_4_0_12],[10,"Dwarf vs Greenskin Tier 3",,mn_4_0_10],[2,"Dwarf vs Greenskin Tier 4",,mn_4_0_2],[8,"Empire vs Chaos Tier 1",,mn_4_0_8],[14,"Empire vs Chaos Tier 2",,mn_4_0_14],[6,"Empire vs Chaos Tier 3",,mn_4_0_6],[11,"Empire vs Chaos Tier 4",,mn_4_0_11],[25,"Group Instance",,mn_4_0_25],[3,"High Elf vs Dark Elf Tier 1",,mn_4_0_3],[15,"High Elf vs Dark Elf Tier 2",,mn_4_0_15],[16,"High Elf vs Dark Elf Tier 3",,mn_4_0_16],[4,"High Elf vs Dark Elf Tier 4",,mn_4_0_4],[23,"Instance",,mn_4_0_23],[7,"Order Cities",,mn_4_0_7],[24,"Realm Instance",,mn_4_0_24],[22,"Seasonal Scenario",,mn_4_0_22],[18,"Tier 1 Scenario",,mn_4_0_18],[19,"Tier 2 Scenario",,mn_4_0_19],[20,"Tier 3 Scenario",,mn_4_0_20],[21,"Tier 4 Scenario",,mn_4_0_21]];
var mn_4 = [[122,"Chapters","search.aspx?browse=122",mn_4_122],[116,"Public Quests","search.aspx?browse=116"],[0,"By Zone",,mn_4_0],[6,"Epic",],[1,"Party Quest",],[5,"Kill Player Quest",],[4,"RvR Quest",],[3,"Tome Quest",],[2,"Travel Quest",]];
var mn_2_$1 = [[12,"Beastmen",],[1,"Beasts",],[2,"Birds",],[19,"Chaos Breeds",],[25,"Constructs",],[8,"Daemons of Khorne",],[10,"Daemons of Nurgle",],[11,"Daemons of Slaanesh",],[9,"Daemons of Tzeentch",],[21,"Dragonoids",],[13,"Dwarfs",],[14,"Elves",],[24,"Forest Spirits",],[22,"Giants",],[27,"Greater Undead",],[15,"Greenskins",],[16,"Humans",],[3,"Insects & Arachnids",],[20,"Magical Beasts",],[17,"Ogres",],[5,"Reptiles",],[18,"Skaven",],[28,"Skeletons",],[29,"Spirits",],[23,"Trolls",],[7,"Unmarked Daemons",],[30,"Wights",],[31,"Zombies",]];
var mn_2_1 = [[4,"Apothecary",],[5,"Butcher",],[2,"Career Trainer",],[6,"Cultivator",],[9,"Hedge Wizard",],[3,"Renown Trainer",],[7,"Salvager",],[8,"Scavenger",],[1,"Trainer",]];
var mn_2_2 = [[11,"Armor Merchant",],[13,"Camp Merchant",],[15,"Craft Supply Merchant",],[18,"Flight Master",],[38,"Librarian",],[10,"Merchant",],[31,"Mount Vendor",],[39,"Realtor",],[16,"Renown Gear Merchant",],[14,"Siege Weapon Merchant",],[12,"Weapon Merchant",]];
var mn_2 = [[-1,"By Classification",,mn_2_$1],[1,"Trainers",,mn_2_1],[2,"Merchants",,mn_2_2],[3,"Rally Masters",],[4,"Healers",],[5,"Quest NPCs",],[6,"Kill Collectors",],[7,"Auctioneers",],[9,"Bankers",],[-2,"Uncategorized",]];
var mn_3_1 = [[17,"Destruction Cities",],[7,"Order Cities",]];
var mn_3_2 = [[22,"Seasonal Scenario",],[18,"Tier 1 Scenario",],[19,"Tier 2 Scenario",],[20,"Tier 3 Scenario",],[21,"Tier 4 Scenario",]];
var mn_3_3 = [[25,"Group Instance",],[23,"Instance",],[24,"Realm Instance",]];
var mn_3_4 = [[1,"Dwarf vs Greenskin Tier 1",],[12,"Dwarf vs Greenskin Tier 2",],[10,"Dwarf vs Greenskin Tier 3",],[2,"Dwarf vs Greenskin Tier 4",]];
var mn_3_5 = [[8,"Empire vs Chaos Tier 1",],[14,"Empire vs Chaos Tier 2",],[6,"Empire vs Chaos Tier 3",],[11,"Empire vs Chaos Tier 4",]];
var mn_3_6 = [[3,"High Elf vs Dark Elf Tier 1",],[15,"High Elf vs Dark Elf Tier 2",],[16,"High Elf vs Dark Elf Tier 3",],[4,"High Elf vs Dark Elf Tier 4",]];
var mn_3 = [[1,"Cities",,mn_3_1],[2,"Scenarios",,mn_3_2],[3,"Dungeons",,mn_3_3],[4,"Dwarf vs Greenskin",,mn_3_4],[5,"Empire vs Chaos",,mn_3_5],[6,"High Elf vs Dark Elf",,mn_3_6]];
var mn_6_1 = [[20,"Archmage",],[5,"Black Orc",],[21,"Blackguard",],[11,"Bright Wizard",],[6,"Choppa",],[13,"Chosen",],[23,"Disciple of Khaine",],[4,"Engineer",],[1,"Ironbreaker",],[10,"Knight of the Blazing Sun",],[16,"Magus",],[14,"Marauder",],[3,"Rune Priest",],[18,"Shadow Warrior",],[7,"Shaman",],[2,"Slayer",],[24,"Sorcerer",],[8,"Squig Herder",],[17,"Swordmaster",],[12,"Warrior Priest",],[19,"White Lion",],[22,"Witch Elf",],[9,"Witch Hunter",],[15,"Zealot",]];
var mn_6_6 = [[20,"Archmage",],[5,"Black Orc",],[21,"Blackguard",],[11,"Bright Wizard",],[6,"Choppa",],[13,"Chosen",],[23,"Disciple of Khaine",],[4,"Engineer",],[1,"Ironbreaker",],[10,"Knight of the Blazing Sun",],[16,"Magus",],[14,"Marauder",],[3,"Rune Priest",],[18,"Shadow Warrior",],[7,"Shaman",],[2,"Slayer",],[24,"Sorcerer",],[8,"Squig Herder",],[17,"Swordmaster",],[12,"Warrior Priest",],[19,"White Lion",],[22,"Witch Elf",],[9,"Witch Hunter",],[15,"Zealot",]];
var mn_6_2 = [[20,"Archmage",],[5,"Black Orc",],[21,"Blackguard",],[11,"Bright Wizard",],[6,"Choppa",],[13,"Chosen",],[23,"Disciple of Khaine",],[4,"Engineer",],[1,"Ironbreaker",],[10,"Knight of the Blazing Sun",],[16,"Magus",],[14,"Marauder",],[3,"Rune Priest",],[18,"Shadow Warrior",],[7,"Shaman",],[2,"Slayer",],[24,"Sorcerer",],[8,"Squig Herder",],[17,"Swordmaster",],[12,"Warrior Priest",],[19,"White Lion",],[22,"Witch Elf",],[9,"Witch Hunter",],[15,"Zealot",]];
var mn_6_3 = [[20,"Archmage",],[5,"Black Orc",],[21,"Blackguard",],[11,"Bright Wizard",],[6,"Choppa",],[13,"Chosen",],[23,"Disciple of Khaine",],[4,"Engineer",],[1,"Ironbreaker",],[10,"Knight of the Blazing Sun",],[16,"Magus",],[14,"Marauder",],[3,"Rune Priest",],[18,"Shadow Warrior",],[7,"Shaman",],[2,"Slayer",],[24,"Sorcerer",],[8,"Squig Herder",],[17,"Swordmaster",],[12,"Warrior Priest",],[19,"White Lion",],[22,"Witch Elf",],[9,"Witch Hunter",],[15,"Zealot",]];
var mn_6_4 = [[20,"Archmage",],[5,"Black Orc",],[21,"Blackguard",],[11,"Bright Wizard",],[6,"Choppa",],[13,"Chosen",],[23,"Disciple of Khaine",],[4,"Engineer",],[1,"Ironbreaker",],[10,"Knight of the Blazing Sun",],[16,"Magus",],[14,"Marauder",],[3,"Rune Priest",],[18,"Shadow Warrior",],[7,"Shaman",],[2,"Slayer",],[24,"Sorcerer",],[8,"Squig Herder",],[17,"Swordmaster",],[12,"Warrior Priest",],[19,"White Lion",],[22,"Witch Elf",],[9,"Witch Hunter",],[15,"Zealot",]];
var mn_6_5 = [[20,"Archmage",],[5,"Black Orc",],[21,"Blackguard",],[11,"Bright Wizard",],[6,"Choppa",],[13,"Chosen",],[23,"Disciple of Khaine",],[4,"Engineer",],[1,"Ironbreaker",],[10,"Knight of the Blazing Sun",],[16,"Magus",],[14,"Marauder",],[3,"Rune Priest",],[18,"Shadow Warrior",],[7,"Shaman",],[2,"Slayer",],[24,"Sorcerer",],[8,"Squig Herder",],[17,"Swordmaster",],[12,"Warrior Priest",],[19,"White Lion",],[22,"Witch Elf",],[9,"Witch Hunter",],[15,"Zealot",]];
var mn_6 = [[1,"Actions",,mn_6_1],[6,"Passive Abilities",,mn_6_6],[2,"Morale Abilities",,mn_6_2],[3,"Tactics",,mn_6_3],[4,"Career Mastery",,mn_6_4],[5,"Renown Mastery",,mn_6_5]];
var mn_201_$1 = [[20,"Archmage","career.aspx?id=20"],[5,"Black Orc","career.aspx?id=5"],[21,"Blackguard","career.aspx?id=21"],[11,"Bright Wizard","career.aspx?id=11"],[6,"Choppa","career.aspx?id=6"],[13,"Chosen","career.aspx?id=13"],[23,"Disciple of Khaine","career.aspx?id=23"],[4,"Engineer","career.aspx?id=4"],[1,"Ironbreaker","career.aspx?id=1"],[10,"Knight of the Blazing Sun","career.aspx?id=10"],[16,"Magus","career.aspx?id=16"],[14,"Marauder","career.aspx?id=14"],[3,"Rune Priest","career.aspx?id=3"],[18,"Shadow Warrior","career.aspx?id=18"],[7,"Shaman","career.aspx?id=7"],[2,"Slayer","career.aspx?id=2"],[24,"Sorcerer","career.aspx?id=24"],[8,"Squig Herder","career.aspx?id=8"],[17,"Swordmaster","career.aspx?id=17"],[12,"Warrior Priest","career.aspx?id=12"],[19,"White Lion","career.aspx?id=19"],[22,"Witch Elf","career.aspx?id=22"],[9,"Witch Hunter","career.aspx?id=9"],[15,"Zealot","career.aspx?id=15"]];
var mn_201_$2 = [[20,"Archmage","renown.aspx?id=20"],[5,"Black Orc","renown.aspx?id=5"],[21,"Blackguard","renown.aspx?id=21"],[11,"Bright Wizard","renown.aspx?id=11"],[6,"Choppa","renown.aspx?id=6"],[13,"Chosen","renown.aspx?id=13"],[23,"Disciple of Khaine","renown.aspx?id=23"],[4,"Engineer","renown.aspx?id=4"],[1,"Ironbreaker","renown.aspx?id=1"],[10,"Knight of the Blazing Sun","renown.aspx?id=10"],[16,"Magus","renown.aspx?id=16"],[14,"Marauder","renown.aspx?id=14"],[3,"Rune Priest","renown.aspx?id=3"],[18,"Shadow Warrior","renown.aspx?id=18"],[7,"Shaman","renown.aspx?id=7"],[2,"Slayer","renown.aspx?id=2"],[24,"Sorcerer","renown.aspx?id=24"],[8,"Squig Herder","renown.aspx?id=8"],[17,"Swordmaster","renown.aspx?id=17"],[12,"Warrior Priest","renown.aspx?id=12"],[19,"White Lion","renown.aspx?id=19"],[22,"Witch Elf","renown.aspx?id=22"],[9,"Witch Hunter","renown.aspx?id=9"],[15,"Zealot","renown.aspx?id=15"]];
var mn_201 = [[9,"Battlefield Map","battlefield.aspx"],[-1,"Career Builder","$nonav$",mn_201_$1],[-2,"Renown Builder","$nonav$",mn_201_$2],[10,"Syndication","syndication.aspx"],[11,"Browser Plugins","plugins.aspx"],[-4,"Bug Reporting & Feedback","bugs.aspx"],[-3,"Download the Curse Client","client.aspx"],[5,"Latest Comments","latestComments.aspx"],[4,"Latest Users","latestUsers.aspx"],[8,"Latest Screenshots","latestScreenshots.aspx"],[6,"Latest Additions","latestAdditions.aspx"],[7,"Latest Profiles","latestProfiles.aspx"]];
var mn_100 = [[1,"WARDB Site Discussion","http://www.warhammeralliance.com/forums/forumdisplay.php?f=98"],[2,"General Gameplay","http://www.warhammeralliance.com/forums/forumdisplay.php?f=12"],[3,"Careers","http://www.warhammeralliance.com/forums/forumdisplay.php?f=21"],[4,"UI Discussion","http://www.warhammeralliance.com/forums/forumdisplay.php?f=71"],[5,"Crafting Discussion","http://www.warhammeralliance.com/forums/forumdisplay.php?f=75"],[6,"Off Topic","http://www.warhammeralliance.com/forums/forumdisplay.php?f=5"]];
var mn_Main = [[9,"Profiles","search.aspx?sf=1&browse=9",mn_9],[1,"Items",,mn_1],[4,"Quests",,mn_4],[2,"NPCs",,mn_2],[3,"Zones",,mn_3],[6,"Abilities",,mn_6],[201,"Tools","$nonav$",mn_201],[100,"Forums","http://www.warhammeralliance.com/forums/forumdisplay.php?f=98",mn_100]];
if (!Curse) {
  var Curse = {};
}
Curse.Icon = function(size, id, link, relatedID, elementID, overFn, overArgs, outFn, outArgs, num, quantity, showNum, spritePath, spritePosition, baseUrl, FileFormat) {
    return this.initialize(size, id, link, relatedID, elementID, overFn, overArgs, outFn, outArgs, num, quantity, showNum, spritePath, spritePosition, baseUrl, FileFormat);
};
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,FileFormat) {

        if (!FileFormat) {
            FileFormat = Curse.Icon.fileFormat;
        }
        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) {
            //Append a tile
            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";
Curse.Tooltip = {
    //this will contain the containers for each specific game, when they need to be displayed on the same page
    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 (game == null) {
            return this.currentGame;
        }
        //an event got passed
        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 + "_";
        }

        //<div id="tooltipContainer">
        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++) {
            // Icons
            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]);

            // Tooltips
            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;
        }
        // First update the width:


        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;
        }

        //Veritcal
        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;
        }

        //Horizontal

        if (Curse.Tooltip.inversed || (newLeft + tooltipWidth) >= boundRight) {
            newLeft = boundRight - Curse.Tooltip.gameContainers[game].offsetWidth;
            newLeft = mousePos.x - paddingWidth - Curse.Tooltip.gameContainers[game].offsetWidth;
        }


        //Next, bound checking:

        //Horizontal
        if (newTop < boundTop) {
            newTop = boundTop;
            Curse.Tooltip.orientation = "top";
        }
        //Vertical
        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";
                    //Curse.Tooltip.icons[i].style.top = (Curse.Tooltip.container.offsetHeight - Curse.Tooltip.tooltips[i].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";
                //Curse.Tooltip.icons[i].style.top = Curse.Tooltip.icons[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;
}

if (!Curse.WHO) {
    Curse.WHO = {};
}
if (!Curse.WHO.Tooltip) {
    Curse.WHO.Tooltip = {};
}
Curse.WHO.FileFormat = "png";
Curse.WHO.Tooltip.baseURL = "";
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.WHO.Tooltip.handleItemLinkOver = function (link,args,e)
{
    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];
    } 
    var item = cg_who_items[link._relatedID];    
    if(!item || !item.tooltip)
    {
        Curse.Tooltip.setCurrentTooltip(link._relatedID);        
        Curse.WHO.Tooltip.loadAsync(link._relatedID, link,Curse.WHO.Tooltip.handleAjaxItem);        
        return;
    }   
    var hideIcon, character, isEquipped;
    if(args)
    {
        hideIcon = args["hideIcon"];
        character = args["relatedCharacter"];
        isEquipped = args["isEquipped"];
    }            
    var cids = Curse.WHO.Tooltip.getComparisonItems(item.id, item.slot, character, isEquipped);    
    if(!args)
    {
        args = {};
    } 
    args.relatedLink = link;
    Curse.WHO.Tooltip.showItemTooltip(cids, args);
}

Curse.WHO.Tooltip.handleQuestLinkOver = function (link,e)
{       
    Curse.WHO.Tooltip.showQuestTooltip(link._relatedID,link);    
}
Curse.WHO.Tooltip.showQuestTooltip = function(questid,link)
{    
    
    var quest = cg_who_quests[questid];     
    if(quest != null && quest.tooltip)
    {
        Curse.Tooltip.show(quest.tooltip, null, null, "war");
    }
    else
    {
        Curse.Tooltip.setCurrentTooltip(link._relatedID);
        Curse.WHO.Tooltip.loadAsync(questid, link, Curse.WHO.Tooltip.handleAjaxQuest);                
    }
};

Curse.WHO.Tooltip.handleAjaxQuest = function(data, link)
{
    var newQuest=eval('(' + data + ')');    
    cg_who_quests.addData(newQuest);     
    if(Curse.Tooltip.getCurrentTooltip() == link._relatedID)
    {
        link.onmouseover();
    }
    return;
}

Curse.WHO.Tooltip.handleSpellLinkOver = function (link,args,e)
{   
    if(args==null)
    {
        args={};        
    }
    args.relatedLink = link;
    Curse.WHO.Tooltip.showSpellTooltip(link._relatedID,args,e);    
}
Curse.WHO.Tooltip.showSpellTooltip = function (id,args,e)
{           
    var spell = cg_who_spells[id];
    if(!spell || !spell.tooltip)
    {        
        Curse.Tooltip.setCurrentTooltip(id);
        Curse.WHO.Tooltip.loadAsync(id, args.relatedLink, Curse.WHO.Tooltip.handleAjaxSpell);                
        return;
    }    
    if(args)
    {
        var hideIcon = args["hideIcon"];
    }
    else{
        args={};
    }
    if(!hideIcon)
    {
        Curse.Tooltip.setIcons([{ index: 0, customClass: args.customClass, image: Curse.WHO.Tooltip.baseURL + "icons/m/" + spell.icon + "." + Curse.WHO.FileFormat}],"war");
    }
    Curse.Tooltip.show(spell.tooltip, null, null, "war");
}

Curse.WHO.Tooltip.handleAjaxSpell = function(data, link)
{    
    cg_who_spells.addData(eval("(" + data + ")"));     
    if(Curse.Tooltip.getCurrentTooltip() == link._relatedID)
    {        
        link.onmouseover();
    }
    return;
}

Curse.WHO.Tooltip.handleAjaxItem = function(data, link)
{
    if(data == "")
        return;
    var newItem=eval('(' + data + ')');    
    cg_who_items.addData(newItem); 
    if(Curse.Tooltip.getCurrentTooltip() == link._relatedID)
    {
        link.onmouseover();
    }
    return;
    //cg_setRatingPercs(itemID);  
}

Curse.WHO.Tooltip.loadAsync = function(id, relatedLink, handler)
{

    if(cg_isDefined(window,'cg_wardbsyndication'))
    {
        cg_wardbsyndication.addExternalReference(id, relatedLink, handler, true);        
        return;
    }
    var url="ajaxTooltip.aspx?id=" + id;
    if(handler == Curse.WHO.Tooltip.handleAjaxQuest)
    {
        url+="&type=4";
    }
    else if(handler == Curse.WHO.Tooltip.handleAjaxSpell)
    {
        url+="&type=6";
    }
    cg_queueAjaxRequest(url, handler, "text", "get", relatedLink, true);           
    
}

Curse.WHO.Tooltip.getComparisonItems = function(itemID, itemSlot, character, isEquippedItem)
{    
    var cids = new Array(3);
    cids[0] = itemID;
    
    if(isEquippedItem != null || cg_isDefined(window,'cg_wardbsyndication'))
    {               
        return cids;
    } 
    
    //Get the comparison item, either from cookies or the referenced character:
    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;
        }
        
       //var cslot = cg_getCSlotFromISlot(itemSlot);
       //for(var i=0;i<cslot.length;i++)
       //{
       //     var charItem =  character.getCharItemBySlot(cslot[i]);
       //     if(charItem)
       //     {
       //         cids[i+1] = charItem.id;
       //     }
       //}
       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;
    //compare with the item in the same slot
    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];        
    }
    //right hand slot
    if(slot == "1")
    {
            //check the either hand right side
            if(cg_getCookie("Settings.PinnedItem.item_4") != null)
            {            
                vals = cg_getCookie("Settings.PinnedItem.item_4").split("|");
                if((vals[0] != null) && (vals[0] != "") && (vals[0] != "null"))
                    txt += "|"+vals[0];
            }
            return txt; 
    }
    else if(slot == "2") //left hand slot
    {
            //check the either hand left side
            if(cg_getCookie("Settings.PinnedItem.item_4") != null)
            {
                vals = cg_getCookie("Settings.PinnedItem.item_4").split("|");
                if((vals[1] != null) && (vals[1] != "") && (vals[0] != "null"))
                    txt += "|"+vals[1]; 
            } 
            return txt;     
    }
    else if(slot == "4") //either hand
    {   
            //get left hand item
            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];
            }
            //and right hand item
            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; 
    }
}

function cg_buildTooltipIds(id, slot)
{   

    if((slot == "1") || (slot == "2") || (slot == "4"))
    {
        return cg_buildWeaponTooltipIds(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.WHO.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_who_items[itemids[0]];
        if(!item || !item.tooltip)
        {
            args.relatedLink._relatedID=itemids[0];
            Curse.Tooltip.setCurrentTooltip(args.relatedLink._relatedID);
            Curse.WHO.Tooltip.loadAsync( args.relatedLink._relatedID, args.relatedLink, Curse.WHO.Tooltip.handleAjaxItem);            
            return;
        }          
        //cg_setRatingPercs(itemID);
    }    
    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.relatedCharacter != null)
        {
            var item = args.relatedCharacter.itemsById[itemids[i]];
        }
        else
        {
            var item = cg_who_items[itemids[i]];
        }        
       
        if(item != null && item.tooltip)
        {
            if(i>0 || !args.hideIcon)
            {
                icons[i] = { index: i, image: Curse.WHO.Tooltip.baseURL + "icons/m/" + item.icon + "." + Curse.WHO.FileFormat }
            }
            text[i] = item.tooltip;
            if(i>0)
            {                            
                text[i] += Curse.WHO.Tooltip.getStatDiffsHTML(cg_who_items[itemids[0]],item);
            }
        }
        else
        {
            //cg_queueAjaxRequest("ajaxTooltip.aspx?id=" + itemids[i], Curse.WHO.Tooltip.handleAjaxItem, "text", "post", args.relatedLink);   
            Curse.WHO.Tooltip.loadAsync(itemids[i], args.relatedLink,Curse.WHO.Tooltip.handleAjaxItem);            
        }
        
    }    
    if(icons.length>0)
    {
        Curse.Tooltip.setIcons(icons,"war");
    }
    Curse.Tooltip.show(text[0], text[1], text[2],"war");       
};
Curse.WHO.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_label[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_label[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.WHO.Tooltip.getStatDiffsHTML = function(masterItem,compareToItem)
{    
    if(masterItem.id == compareToItem.id)
    {        
        return "";
    }
    
    //dbg("Comparing " + compareToItemID + " at index " + itemPanelIndex);
                
    var arrStatDiffs = Curse.WHO.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'):('7'))+">"+((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'):('7'))+">"+((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 "";
    
    //compareToItem.tooltip = tooltipHTML;     
    //setTooltipText(itemPanelIndex, tooltipHTML);
};


//Object Collection Def
var cg_item_stats = new Array();
cg_item_stats[0] = "";
cg_item_stats[1] =  "Strength";
cg_item_stats[2] =  "Agility";
cg_item_stats[3] =  "Willpower";
cg_item_stats[4] =  "Toughness";
cg_item_stats[5] =  "Wounds";
cg_item_stats[6] =  "Initiative";
cg_item_stats[7] =  "Weapon Skill";
cg_item_stats[8] =  "Ballistic Skill";
cg_item_stats[9] =  "Intelligence";
cg_item_stats[10] =  "Block Skill";
cg_item_stats[11] =  "Parry Skill";
cg_item_stats[12] =  "Evade Skill";
cg_item_stats[13] =  "Disrupt Skill";
cg_item_stats[14] =  "Spirit Resist";
cg_item_stats[15] =  "Elemental Resist";
cg_item_stats[16] =  "Corporeal Resist";
cg_item_stats[22] =  "Incoming Damage";
cg_item_stats[23] =  "Incoming Damage %";
cg_item_stats[24] =  "Outgoing Damage";
cg_item_stats[25] =  "Outgoing Damage %";
cg_item_stats[26] =  "Armor";
cg_item_stats[27] =  "velocity";
cg_item_stats[28] =  "Block";
cg_item_stats[29] =  "Parry";
cg_item_stats[30] =  "Evade";
cg_item_stats[31] =  "Disrupt";
cg_item_stats[32] =  "AP Regen";
cg_item_stats[33] =  "Morale Generation";
cg_item_stats[34] =  "Cooldown";
cg_item_stats[35] =  "Build Time";
cg_item_stats[36] =  "Crit Dmg";
cg_item_stats[37] =  "Range";
cg_item_stats[38] =  "Auto Attack Speed";
cg_item_stats[40] =  "Auto Attack Damage";
cg_item_stats[41] =  "AP Cost";
cg_item_stats[42] =  "Critical Hit Rate";
cg_item_stats[43] =  "Critical Damage Taken";
cg_item_stats[44] =  "Effect Resist";
cg_item_stats[45] =  "Effect Buff";
cg_item_stats[46] =  "Minimum Range";
cg_item_stats[47] =  "Damage Absorb";
cg_item_stats[48] =  "Set Back Chance";
cg_item_stats[49] =  "Set Back Amount";
cg_item_stats[50] =  "XP Worth";
cg_item_stats[51] =  "Renown Worth";
cg_item_stats[52] =  "Influence Worth";
cg_item_stats[53] =  "Monetary Worth";
cg_item_stats[54] =  "Aggro Radius";
cg_item_stats[55] =  "Target Duration";
cg_item_stats[56] =  "Spec";
cg_item_stats[57] =  "Gold Looted";
cg_item_stats[58] =  "XP Received";
cg_item_stats[59] =  "Butchering Skill";
cg_item_stats[60] =  "Scavenging Skill";
cg_item_stats[61] =  "Cultivation Skill";
cg_item_stats[62] =  "Apothecary Skill";
cg_item_stats[63] =  "Talisman-Making Skill";
cg_item_stats[64] =  "Salvaging Skill";
cg_item_stats[65] =  "Stealth";
cg_item_stats[66] =  "Stealth Detection";
cg_item_stats[67] =  "Hate Caused";
cg_item_stats[68] =  "Hate Received";
cg_item_stats[69] =  "Offhand Crit Chance";
cg_item_stats[70] =  "Offhand Damage";
cg_item_stats[71] =  "Renown Received";
cg_item_stats[72] =  "Influence Received";
cg_item_stats[73] =  "Dismount Chance";
cg_item_stats[74] =  "Gravity";
cg_item_stats[75] =  "Levitation Height";
cg_item_stats[76] =  "Melee Critical %";
cg_item_stats[77] =  "Ranged Critical %";
cg_item_stats[78] =  "Magic Critical %";
cg_item_stats[79] =  "Health Regen";
cg_item_stats[80] =  "Melee Damage";
cg_item_stats[81] =  "Ranged Damage";
cg_item_stats[82] =  "Magic Damage";
cg_item_stats[83] =  "Armor Penetration Reduction";
cg_item_stats[84] =  "Critical Hit Rate Reduction";
cg_item_stats[85] =  "Block Strikethrough";
cg_item_stats[86] =  "Parry Strikethrough";
cg_item_stats[87] =  "Evade Strikethrough";
cg_item_stats[88] =  "Disrupt Strikethrough";
cg_item_stats[89] =  "Healing Critical %";
cg_item_stats[90] =  "Max AP";

var cg_char_stats = ["", "strength", "agility", "willpower", "toughness", "wounds", "initiative", "weaponskill", "ballisticskill", "intelligence", "blockskill", "parryskill", "evadeskill", "disruptskill", "spiritresist", "elementalresist", "corporealresist", "inc_dmg", "inc_dmg_pcnt", "out_dmg", "out_dmg_pcnt", "armor", "velocity", "block", "parry", "evade", "disrupt", "ap_regen", "morale_gen", "cooldown", "build_time", "crit_dmg", "range", "auto_atk_dmg", "ap_cost", "crit_hit_rate", "crit_dmg_taken", "effect_resist", "effect_buff", "min_range", "damage_absorb","main_hand_dam","off_hand_dam","armor_penetration","ranged_dam","spell_bonus","healing_bonus","dam_crit_percent","heal_crit_percent"];
var cg_who_items = {};
cg_who_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_who_items[dataArray[i].id] = dataArray[i];
        cg_who_items[dataArray[i].id].getName = Curse.WHO.Item.getName;
        cg_who_items[dataArray[i].id].createIcon = Curse.WHO.Item.createIcon;        
        cg_who_items[dataArray[i].id].getNameWithRarity = Curse.WHO.Item.getNameWithRarity; 
        cg_who_items[dataArray[i].id].getNameWithStyle = Curse.WHO.Item.getNameWithStyle; 
        cg_who_items[dataArray[i].id].getStat = Curse.WHO.Item.getStat; 

    }    
}
if(!Curse.WHO)
    Curse.WHO = {};
Curse.WHO.Item = {};
Curse.WHO.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.WHO.Tooltip.handleItemLinkOver, { hideIcon: true }, Curse.Tooltip.hide, null, num, null, showNum, null, null, baseURL, Curse.WHO.FileFormat);
};

Curse.WHO.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.WHO.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.WHO.Item.getNameWithRarity = function()
{
    if(!this.name)
    {
        name = this.getName();
    }
    if(!this.rarity)
    {                        
        this.rarity = this.tooltip.substring(10, this.tooltip.indexOf(">"));
    }
    return {name: this.name,rarity: this.rarity};
};

Curse.WHO.Item.getNameWithStyle = function()
{    
    if(this.nameWithStyle)
    {
        return this.nameWithStyle;
    }  
    var name = "<span " + this.tooltip.substring(52, this.tooltip.indexOf("</span>")) + "</span>";
    this.nameWithStyle = name;
    return this.nameWithStyle;
};

if (Curse.WHO.Site)
    cg_items = cg_who_items;
var cg_who_quests = {};
cg_who_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_who_quests[dataArray[i].id] = dataArray[i];        
    }
}

if (Curse.WHO.Site)
    cg_quests = cg_who_quests;
var cg_who_spells = {};
cg_who_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_who_spells[dataArray[i].id] = dataArray[i];
        cg_who_spells[dataArray[i].id].getName = Curse.WHO.Spell.getName;
        cg_who_spells[dataArray[i].id].createIcon = Curse.WHO.Spell.createIcon;    
    }    
}
if(!Curse.WHO)
    Curse.WHO = {};
Curse.WHO.Spell = {};
Curse.WHO.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.WHO.Tooltip.handleSpellLinkOver, { hideIcon: true }, Curse.Tooltip.hide, null, null, null, null, null, null, baseURL, Curse.WHO.FileFormat);
};
Curse.WHO.Spell.getName = function()
{
    if(this.name)
    {
        return this.name;
    }
    var name = this.tooltip.substring(this.tooltip.indexOf("<span class='ability-name'>") + 27, this.tooltip.indexOf("</span>"));    
    this.name = name;
    return this.name;
};


if (Curse.WHO.Site)
    cg_spells = cg_who_spells;
if(!Curse.WHO)
{
    Curse.WHO = {};
}
Curse.WHO.Syndication = function()
{    
    this.initialize();
}

Curse.WHO.Syndication.prototype =
{

    baseURL: "http://www.wardb.com/",
    bindEvents: function() {
        var closure = this.parseLinks.bindAsEventListener(this);
        cg_addEventListener(window, "load", closure)
    },
    initialize: function() {
        if (this.baseURL.indexOf("$siteurl") == 0) {
            this.baseURL = "http://127.0.0.1:90/";
        }
        Curse.WHO.Tooltip.baseURL = this.baseURL;
        this.insertStyleSheet();
        this.bindEvents();
        this.loadedObjects = {};
        this.links = {};
        this.externalReferences = [];

    },
    insertStyleSheet: function() {
        var hd = document.getElementsByTagName("head")[0];
        var css = document.createElement("link");
        css.rel = "stylesheet";
        css.type = "text/css";
        css.href = this.baseURL + "tooltips.css?125";
        hd.appendChild(css);
    },
    addExternalReference: function(id, relatedLink, handler, loadNow) {

        var type = null;

        if (handler == Curse.WHO.Tooltip.handleAjaxItem) {
            type = "1";
        }
        else if (handler == Curse.WHO.Tooltip.handleAjaxQuest) {
            type = "4";
        }
        else if (handler == Curse.WHO.Tooltip.handleAjaxSpell) {
            type = "6";
        }
        if (this.loadedObjects[type + "_" + id]) {
            return;
        }
        this.loadedObjects[type + "_" + id] = true;
        var url = "ExTooltips.aspx?id=" + id + "&type=" + type;
        if (loadNow) {
            var hd = document.getElementsByTagName("head")[0];
            var oscript = document.createElement("script");
            oscript.type = "text/javascript";
            oscript.src = this.baseURL + url;
            hd.appendChild(oscript);
        }
        else {
            this.externalReferences.push(url);
        }


    },
    addObject: function(type, data) {
        var link = null;

        switch (type) {
            case 1:
                this.handleItemLoad(data);
                break;
            case 4:
                this.handleQuestLoad(data);
                break;
            case 6:
                this.handleSpellLoad(data);
                break;
        }
    },
    parseLinks: function() {
        var linksCol = document.getElementsByTagName("a");
        var lpattern = new RegExp("wardb\\.com\\/(item|spell|quest)\\.aspx\\?id=(\\d+)");

        for (var i = 0; i < linksCol.length; i++) {
            var match = lpattern.exec(linksCol[i].href);
            if (match) {

                var entityTypeID = 1;
                var entityType = match[1];
                var entityID = match[2];
                linksCol[i].id = entityType + "_" + entityID;
                linksCol[i]._relatedID = entityID;

                if (this.links[linksCol[i].id] == null) {
                    this.links[linksCol[i].id] = [];
                }
                this.links[linksCol[i].id].push(linksCol[i]);
                if (entityType == "item") {
                    this.setItemLink(linksCol[i]);
                }
                else if (entityType == "spell") {
                    this.setSpellLink(linksCol[i]);
                }
                else if (entityType == "quest") {
                    linksCol[i].onmouseover = Curse.WHO.Tooltip.handleQuestLinkOver.bind(this, linksCol[i]);
                }
                linksCol[i].onmouseout = Curse.Tooltip.hide;

            }
        }
        var hd = document.getElementsByTagName("head")[0];
        for (var i = 0; i < this.externalReferences.length; i++) {
            var oscript = document.createElement("script");
            oscript.type = "text/javascript";
            oscript.src = this.baseURL + this.externalReferences[i];
            hd.appendChild(oscript);
        }
        this.externalReferences = [];
    },
    handleSpellLoad: function(data) {
        cg_who_spells.addData(data);
        var linkArray = this.links["spell_" + data.id];
        var id = data.id;
        for (var i = 0; i < linkArray.length; i++) {
            var link = linkArray[i];
            if (link.className.indexOf("wardb-spell-full") == 0) {
                var arrLinkStyle = link.className.split("-");
                if (arrLinkStyle.length == 4) {
                    iconSize = arrLinkStyle[3];
                }
                var fullSpell = this.getFullSpell(cg_who_spells[id], null, iconSize, null);
                oReplace = link.parentNode.replaceChild(fullSpell, link);
            }
            else if (link.className.indexOf("wardb-spell-icon") == 0) {
                var arrLinkStyle = link.className.split("-");
                if (arrLinkStyle.length == 4) {
                    iconSize = arrLinkStyle[3];
                }
                var fullSpell = this.getFullSpell(cg_who_spells[id], null, iconSize, true);
                oReplace = link.parentNode.replaceChild(fullSpell, link);
            }            
            else if (link.className.indexOf("wardb-spell-text") == 0) {
                var spellLink = this.getSpellLink(cg_who_spells[id], null);
                oReplace = link.parentNode.replaceChild(spellLink, link);
            }
            else {
                if (Curse.Tooltip.getCurrentTooltip() == link._relatedID) {
                    link.onmouseover();
                }
            }

        }
    },
    handleQuestLoad: function(data) {
        cg_who_quests.addData(data);
        var linkArray = this.links["quest_" + data.id];
        var id = data.id;
        for (var i = 0; i < linkArray.length; i++) {
            var link = linkArray[i];
            if (Curse.Tooltip.getCurrentTooltip() == link._relatedID) {
                link.onmouseover();
            }
        }

    },
    handleItemLoad: function(data) {
        cg_who_items.addData(data);
        var linkArray = this.links["item_" + data.id];
        var id = data.id;
        for (var i = 0; i < linkArray.length; i++) {
            var link = linkArray[i];
            if (link.className.indexOf("wardb-item-full") == 0) {
                var arrLinkStyle = link.className.split("-");
                if (arrLinkStyle.length == 4) {
                    iconSize = arrLinkStyle[3];
                }
                var fullItem = this.getFullItem(cg_who_items[id], null, iconSize, null);
                oReplace = link.parentNode.replaceChild(fullItem, link);
            }
            else if (link.className.indexOf("wardb-item-text") == 0) {
                var textItem = this.getItemLink(cg_who_items[id], null);
                oReplace = link.parentNode.replaceChild(textItem, link);
            }
            else if (link.className.indexOf("wardb-item-icon") == 0) {
                var arrLinkStyle = link.className.split("-");
                if (arrLinkStyle.length == 4) {
                    iconSize = arrLinkStyle[3];
                }
                var fullItem = this.getFullItem(cg_who_items[id], null, iconSize, true);
                oReplace = link.parentNode.replaceChild(fullItem, link);
            }
            else {

                if (Curse.Tooltip.getCurrentTooltip() == link._relatedID) {
                    link.onmouseover();
                }
            }

        }
    },
    getSpellLink: function(spell, tooltipLabel) {
        if (!tooltipLabel) {
            tooltipLabel = spell.getName();
        }

        var a = cg_ce("a");
        cg_ae(a, cg_ct(tooltipLabel));
        a.href = this.baseURL + "spell.aspx?id=" + spell.id;
        a._relatedID = spell.id;
        a.onmouseover = Curse.WHO.Tooltip.handleSpellLinkOver.bind(this, a);
        a.onmouseout = Curse.Tooltip.hide;
        return a;
    },
    getItemLink: function(item, tooltipLabel) {
        if (!tooltipLabel) {
            tooltipLabel = item.getNameWithRarity().name;
        }

        var a = cg_ce("a");
        a.className = "r" + item.getNameWithRarity().rarity;
        cg_ae(a, cg_ct(tooltipLabel));
        a.href = this.baseURL + "item.aspx?id=" + item.id;
        a._relatedID = item.id;
        a.onmouseover = Curse.WHO.Tooltip.handleItemLinkOver.bind(this, a);
        a.onmouseout = Curse.Tooltip.hide;
        return a;
    },
    getFullItem: function(item, tooltipLabel, iconSize, iconOnly) {

        if (iconOnly == null) {
            iconOnly = false;
        }
        if (!iconOnly) {
            var a = this.getItemLink(item, tooltipLabel);
        }

        if (!iconSize) {
            iconSize = 1;
        }
        else {
            switch (iconSize) {
                case "small":
                    iconSize = 0;
                    break;
                case "medium":
                    iconSize = 1;
                    break;
                case "large":
                    iconSize = 2;
                    break;
            }
        }

        var tbl = document.createElement("TABLE");
        tbl.className = "whodb-table";
        var tbody = cg_ce('tbody');
        var row = cg_ce('tr');
        var oIconCell = cg_ce('td');
        var oLinkCell = cg_ce('td');
        cg_ae(oIconCell, item.createIcon(iconSize, 0, 0, this.baseURL));
        if (!iconOnly) {
            cg_ae(oLinkCell, a);
        }
        row.appendChild(oIconCell);
        row.appendChild(oLinkCell);
        tbody.appendChild(row);
        tbl.appendChild(tbody);
        return tbl;
    },
    getFullSpell: function(spell, tooltipLabel, iconSize, iconOnly) {

        if (iconOnly == null) {
            iconOnly = false;
        }
        if (!iconOnly) {
            var a = this.getSpellLink(spell, tooltipLabel);
        }

        if (!iconSize) {
            iconSize = 1;
        }
        else {
            switch (iconSize) {
                case "small":
                    iconSize = 0;
                    break;
                case "medium":
                    iconSize = 1;
                    break;
                case "large":
                    iconSize = 2;
                    break;
            }
        }

        var tbl = document.createElement("TABLE");
        tbl.className = "whodb-table";
        var tbody = cg_ce('tbody');
        var row = cg_ce('tr');
        var oIconCell = cg_ce('td');
        var oLinkCell = cg_ce('td');
        cg_ae(oIconCell, spell.createIcon(iconSize, this.baseURL));
        if (!iconOnly) {
            cg_ae(oLinkCell, a);
        }
        row.appendChild(oIconCell);
        row.appendChild(oLinkCell);
        tbody.appendChild(row);
        tbl.appendChild(tbody);
        return tbl;
    },
    setItemLink: function(link) {
        if (link.className.indexOf("wardb-item") < 0) {
            link.onmouseover = Curse.WHO.Tooltip.handleItemLinkOver.bind(this, link);
            return;
        }

        this.addExternalReference(link._relatedID, link, Curse.WHO.Tooltip.handleAjaxItem);

    },
    setSpellLink: function(link) {
        if (link.className.indexOf("wardb-spell") < 0) {
            link.onmouseover = Curse.WHO.Tooltip.handleSpellLinkOver.bind(this, link);
            return;
        }
        this.addExternalReference(link._relatedID, link, Curse.WHO.Tooltip.handleAjaxSpell);

    },
    detectDoctype: function() {
        var re = /\s+(X?HTML)\s+([\d\.]+)\s*([^\/]+)*\//gi;
        var res = false;
        if (typeof document.namespaces != "undefined") {
            res = document.all[0].nodeType == 8 ? re.test(document.all[0].nodeValue) : false;
        }
        else {

            res = document.doctype != null ? re.test(document.doctype.publicId) : false;
        }
        if (res) {
            res = new Object();
            res['xhtml'] = RegExp.$1;
            res['version'] = RegExp.$2;
            res['importance'] = RegExp.$3;
            return res;
        }
        else {
            return null;
        }
    },
    useFixedWidths: function() {
        if (!Curse.Browser.ie) {
            return false;
        }
        if (Curse.Browser.ie6) {
            return true;
        }
        if (Curse.Browser.ie7) {
            var doctype = this.detectDoctype();
            if (doctype == null) {
                return true;
            }
            else {
                if (doctype.version && doctype.version == "4.0") {
                    return true
                }
                return false;
            }
        }
    }

}
var cg_wardbsyndication=new Curse.WHO.Syndication();