// Core AJAX Object //------------------------------------- function getHttpRequestObject() { if (window.XMLHttpRequest) // Mozilla, Safari,... { httpRequest = new XMLHttpRequest(); if (httpRequest.overrideMimeType) { httpRequest.overrideMimeType('text/xml'); // See note below about this line } } else if (window.ActiveXObject) // IE { try { httpRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { httpRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } if (!httpRequest) { return null; } return httpRequest; } function clearTableSelection() { var tables = document.getElementsByTagName('table'); for (var i = 0; i < tables.length; i++) { if (tables.className = 'runeStoreList') { for (var j = 0; j < tables[i].rows.length; j++) { tables[i].rows[j].className = ''; } } } } function showDescription(abilityId, e) { var inner = document.getElementById('abilityDesc' + abilityId).innerHTML; if (document.all) { // if IE // grab the x-y pos.s if browser is IE tempX = event.clientX+ document.documentElement.scrollLeft; tempY = event.clientY + document.documentElement.scrollTop; } else { // grab the x-y pos.s if browser is NS tempX = e.pageX; tempY = e.pageY; } // catch possible negative values in NS4 if (tempX < 0){tempX = 0;} if (tempY < 0){tempY = 0;} document.getElementById('abilityTooltipContent').innerHTML = inner;// + "" + tempX + ", " + tempY; var obj = document.getElementById('abilityTooltip'); obj.style.left = (tempX+15) + 'px'; obj.style.top = (tempY+15) + 'px'; obj.style.display = 'block'; } function hideDescription(abilityId) { var objName = 'abilityDesc' + abilityId; var obj = document.getElementById('abilityTooltip'); obj.style.display = 'none'; } function openPreview(runestring, index, size) { var url = '/factions/runepreview.do;jsessionid=001D23B1B72117A7055B8693E005FE87?i=' + index + '&runes=' + runestring + '&size=' + size + ''; window.open(url, 'preview', "dependent=yes,width=550,height=750,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no"); }