function prepareMouseovers()
{
	if (!document.getElementsByTagName) return false;
	var divs = document.getElementsByTagName("div");
	for (var i=0; i < divs.length; i++) {
		var div_class = divs[i].getAttribute("class");
		if (div_class == 'raidheader') {
			divs[i].onmouseover = function() {
				this.childNodes[5].style.display = "block";
				this.childNodes[5].style.position = "absolute";
			}
			divs[i].onmouseout = function() {
				this.childNodes[5].style.display = "none";
			}
		}
	}
}
function prepareMouseovers2()
{
	if (!document.getElementsByTagName) return false;
	var spans = document.getElementsByTagName("span");
	for (var i=0; i < spans.length; i++) {
		var span_class = (spans[i].getAttribute("class")) ? spans[i].getAttribute("class") : spans[i].getAttribute("className");
		if (span_class == 'raidname') {
			spans[i].onmouseover = function() {
				this.nextSibling.nextSibling.style.display = "block";
				this.nextSibling.nextSibling.style.position = "absolute";
			}
			spans[i].onmouseout = function() {
				this.nextSibling.nextSibling.style.display = "none";
			}
		}
	}
}
function prepareMouseovers3()
{
	if (!document.getElementsByTagName) return false;
	var as = document.getElementsByTagName("a");
	for (var i=0; i < as.length; i++) {
		var a_class = as[i].getAttribute("class");
		if (a_class == 'raidname') {
			as[i].onmouseover = function() {
				this.nextSibling.nextSibling.style.display = "block";
				this.nextSibling.nextSibling.style.position = "absolute";
			}
			as[i].onmouseout = function() {
				this.nextSibling.nextSibling.style.display = "none";
			}
		}
	}
}
function prepareMouseoversChars()
{
	if (!document.getElementsByTagName) return false;
	var divs = document.getElementsByTagName("div");
	for (var i=0; i < divs.length; i++) {
		var div_class = divs[i].getAttribute("class");
		if (div_class == 'character') {
			divs[i].onmouseover = function() {
				this.childNodes[2].style.display = "block";
				this.childNodes[2].style.position = "absolute";
			}
			divs[i].onmouseout = function() {
				this.childNodes[2].style.display = "none";
			}
		}
	}
}
function prepareMouseoversChars2()
{
	if (!document.getElementsByTagName) return false;
	var divs = document.getElementsByTagName("div");
	for (var i=0; i < divs.length; i++) {
		var div_class = divs[i].getAttribute("class");
		if (div_class == 'character') {
			divs[i].onmouseover = function() {
				this.getElementsByTagName("div")[0].style.display = "block";
				this.getElementsByTagName("div")[0].style.position = "absolute";
			}
			divs[i].onmouseout = function() {
				this.getElementsByTagName("div")[0].style.display = "none";
			}
		}
	}
}
function prepareMouseoversCharsTest()
{
	if (!document.getElementsByTagName) return false;
	var divs = document.getElementsByTagName("div");
	for (var i=0; i < divs.length; i++) {
		var div_class = (divs[i].getAttribute("class")) ? divs[i].getAttribute("class") : divs[i].getAttribute("className");
		if (div_class == 'character' &&  divs[i].getElementsByTagName("div")[0].firstChild != null) {
				divs[i].onmouseover = function() {
					this.getElementsByTagName("div")[0].style.display = "block";
					this.getElementsByTagName("div")[0].style.position = "absolute";
				}
			divs[i].onmouseout = function() {
				this.getElementsByTagName("div")[0].style.display = "none";
			}
		}
	}
}
function prepareMouseoversCharsTest2()
{
	if (!document.getElementsByTagName) return false;
	var lis = document.getElementsByTagName("li");
	for (var i=0; i < lis.length; i++) {
		var li_class = (lis[i].getAttribute("class")) ? lis[i].getAttribute("class") : lis[i].getAttribute("className");
		if (li_class == 'character' && lis[i].getElementsByTagName("div")[0].firstChild != null) {
			lis[i].onmouseover = function() {
				this.getElementsByTagName("div")[0].style.display = "block";
				this.getElementsByTagName("div")[0].style.position = "absolute";
			}
			lis[i].onmouseout = function() {
				this.getElementsByTagName("div")[0].style.display = "none";
			}
		}
	}
}
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

//addLoadEvent(prepareMouseovers);
addLoadEvent(prepareMouseovers2);
addLoadEvent(prepareMouseoversCharsTest);
addLoadEvent(prepareMouseoversCharsTest2);
