function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(doNewWin);
addLoadEvent(dlstripe);

function doNewWin() {
  if (!document.getElementsByTagName) return false;
  var links=document.getElementsByTagName("a");
  for (var i=0; i < links.length; i++) {
    if (links[i].className.match("newwin")) {
      links[i].onclick=function() {window.open(this.href);return false;
      }
    }
  }
}
function dlstripe() {
	if (!document.getElementsByTagName) return false;
	if (!document.getElementsByTagName("dl")) return false;
	var dl = document.getElementsByTagName("dl");
	for(i in dl){
		if(empty(dl[i].className)) continue;
		var self = dl[i];
		var thisClass = self.className;
		if(thisClass.match("stripe")){
			var dd = self.getElementsByTagName("dd");
			var z = false;
			for(x in dd){
				if(z && dd[x].nodeType === 1){
					dd[x].className = thisClass;
					z = false;
				}else z = true;
			}
		}
	}
}
function empty(x){
	var z = false;
	if(x == null || x == '') z = true;
	return z;
}

var musicWin = '';
var url = "AuroraMusic.php";
