function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

MM_preloadImages('images/splash/splash-justin-strickland_01.jpg','images/splash/splash-justin-strickland_02.jpg','images/splash/splash-justin-strickland_03.jpg','images/splash/splash-justin-strickland_04.jpg','images/splash/splash-justin-strickland_05.jpg','images/splash/splash-justin-strickland_06.jpg');

function randomSplashImg()
	{
		var imageQty = 6;
		var splashImg = [
					["splash-justin-strickland_01.jpg", "838", "505"],
					["splash-justin-strickland_02.jpg", "838", "505"],
					["splash-justin-strickland_03.jpg", "838", "505"],
					["splash-justin-strickland_04.jpg", "838", "505"],
					["splash-justin-strickland_05.jpg", "838", "505"],
					["splash-justin-strickland_06.jpg", "838", "505"],
				];
		var i = Math.floor(Math.random()* imageQty);
		document.write('<img id="splashImg" src="images/splash/' + splashImg[i][0] + '" width="' + splashImg[i][1] + '" height="' + splashImg[i][2] + '" alt="" />');
		initImage();
	}

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

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;
}

function fadeIn(objId,opacity) {
  if (document.getElementById) {
    obj = document.getElementById(objId);
    if (opacity <= 100) {
      setOpacity(obj, opacity);
      opacity += 10;
      window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 100);
    }
  }
}