<!--
document.write("<style type='text/css'>#thephoto1 {visibility:hidden;}</style>");
document.write("<style type='text/css'>#thephoto2 {visibility:hidden;}</style>");
document.write("<style type='text/css'>#thephoto3 {visibility:hidden;}</style>");
function initImage() {
	imageId = 'thephoto1';
	image = document.getElementById(imageId);
	setOpacity(image, 0);
	image.style.visibility = "visible";
	fadeIn(imageId,0);
}


function initImagee(){
  imageId = 'thephoto2';
  image = document.getElementById(imageId);
  setOpacity(image, 0);
  image.style.visibility = "visible";
  fadeIn(imageId,0); 
}

function initImagz(){
  imageId = 'thephoto3';
  image = document.getElementById(imageId);
  setOpacity(image, 0);
  image.style.visibility = "visible";
  fadeIn(imageId,0); 
}

function fadeIn(objId,opacity) {
	if (document.getElementById) {
		obj = document.getElementById(objId);
		if (opacity <= 100) {
			setOpacity(obj, opacity);
			opacity += 5;
			window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 81);
		}
	}
}
function setOpacity(obj, opacity) {
	opacity = (opacity == 100)?99.999:opacity;
	// IE/Win
	obj.style.filter = "alpha(opacity:"+opacity+")";
	// Safari<1.2, Konqueror
	obj.style.KHTMLOpacity = opacity/100;
	// Older Mozilla and Firefox
	obj.style.MozOpacity = opacity/100;
	// Safari 1.2, newer Firefox and Mozilla, CSS3
	obj.style.opacity = opacity/100;
}




window.onload = function() {initImage(), start(), start2()}

function start() {
  window.setTimeout("initImagee()",1400);
}

function start2() {
  window.setTimeout("initImagz()",2850);
}


function
i_return_rnd(i_max) {
  return (Math.floor((Math.random()*(i_max))))
}

function
scirand() {
  return i_return_rnd(10)
}

function
peoplerand() {
  return i_return_rnd(4)
}

function
gensci() {
  var whichimg1=scirand()
    document.write('<a href="images/img' + whichimg1 + '.html">')
    document.write('<img border=0 src="images/img' + whichimg1 + '_sm.jpg" alt="science image" id="thephoto1"></a>')
    var whichimg2=scirand()
    document.write('<a href="images/img' + whichimg2 + '.html">')
    document.write('<img border=0 src="images/img' + whichimg2 + '_sm.jpg" alt="science image" id="thephoto2"></a>')
    var whichimg3=scirand()
    document.write('<a href="images/img' + whichimg3 + '.html">')
    document.write('<img border=0 src="images/img' + whichimg3 + '_sm.jpg" alt="science image" id="thephoto3"></a>')
}


function 
genpeople() {
  var whichimg=peoplerand()
    document.write('<a href="images/people' + whichimg + '.html">')
    document.write('<img border=0 src="images/people' + whichimg + '_sm.jpg" alt="people image"></a><br>')
    document.write('<a href="http://www.doe.gov/"><img alt="DOE logo" src="images/DOE_logo.jpg" style="border: 0px solid ; width: 100px; height: 100px;"></a><br>')
    document.write('<a href="http://www.sc.doe.gov/"><img alt="Office of Science logo" src="images/Office_Science_logo.jpg" style="border: 0px solid ; width: 100px; height: 30px;"></a><br>')
    document.write('<a href="http://www.scidac.gov/"><img alt="SciDAC logo" src="images/Scidaclogo.jpg" style="border: 0px solid ; width: 100px; height: 35px;"></a>')
}
// -->
