
var fadeSpeed=50;	// Speed of fade
var thisDIVName;	// Current DIV
var viz=100;		// Visibility

function showProps(obj) {	// Show the properties of an object
  var mess = new String;
  var ind=0;
  mess = "Properties of "+obj+": \n\n";
  for (prop in obj) {
    mess = mess + prop+" = "+obj[prop]+"\n";
    ind++;

    if (ind==30) {
      alert(mess);
      ind=0;
      mess="Properties of "+obj+": \n\n";
    }
  }
  alert(mess);
  return(true);
}

function noop() {
	null;
}

function fadeIn() {	// Fade out cover DIV
	if (viz>0) {
		viz-=5;
		if (thisDIVName.filters) {
			thisDIVName.filters.alpha.opacity=viz;
		}
		else if (thisDIVName.style.MozOpacity) {
			thisDIVName.style.MozOpacity=viz/100;
		}
		else {
			viz=0;
		}
	}
	else {
		thisDIVName.style.zIndex = 1;
		clearInterval(fader);
	}
}

function init() {
	if (parseInt(navigator.appVersion) >= 4) {
		thisDIVName = eval("document.getElementById('Reveal')");
		fader=eval('setInterval("fadeIn()",fadeSpeed)');
	}
}