var thePhase=0;

top.location.target = "_top"
if(window.location.target != "_top") {
	top.location.href = window.location.href
}

function anitext() {
	thePhase=(thePhase + 10) % 100;
	MidiMansion.filters(0).phase=thePhase;
	window.setTimeout("anitext()",0400,"JavaScript");
}

function doFilter() {
	if (window.RunningIE4 == true) {
		MidiMansion.style.filter="wave(add=0, freq=3, lightstrength=50, phase=0, strength=2, enabled=1)";
		anitext();
	}
}

function msieversion()
{
	var ua = window.navigator.userAgent
	var msie = ua.indexOf ( "MSIE " )
	if ( msie > 0 )		
		return parseInt ( ua.substring ( msie+5, ua.indexOf ( ".", msie ) ) )
	else
		return 0	
}
window.IEVersion = msieversion();
window.RunningIE4 = (window.IEVersion >= 4);

function PlaySong(SongURL) { 
	PopUp = window.open (SongURL, "Crescendo", "toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizeable=no,copyhistory=no,width=200,height=30");
}

function clickHandler() {
  var targetId, srcElement, targetElement;
  srcElement = window.event.srcElement;
  if (srcElement.className == "Outline") {
     targetId = srcElement.id + "d";
     targetElement = document.all(targetId);
     if (targetElement.style.display == "none") {
        targetElement.style.display = "";
    //    srcElement.src = "../images/ofolder.gif";
     } else {
        targetElement.style.display = "none";
    //    srcElement.src = "../images/folder.gif";
     }
  }
}

function changeColor1() {
// mouse is over
	window.event.srcElement.style.fontcolor = rgb(255,51,102);
}

function changeColor2() {
// mouse is out
	window.event.srcElement.style.fontcolor = rgb(102,255,51);
}
