// JavaScript Document
function fader2(opacity) {
	/* helper function to deal specifically with images and the cross-browser differences in opacity handling */
	var Fobj=document.getElementById('BlankSplash');
	if (Fobj.style) {
		if (Fobj.style.MozOpacity!=null) {  
			/* Mozilla's pre-CSS3 proprietary rule */
			Fobj.style.MozOpacity = (opacity/100) - .001;
		} else if (Fobj.style.opacity!=null) {
			/* CSS3 compatible */
			Fobj.style.opacity = (opacity/100) - .001;
		} else if (Fobj.style.filter!=null) {
			/* IE's proprietary filter */
			Fobj.style.filter = "alpha(opacity="+opacity+")";
		}
	}
}

function crossfade2(NewImage) {
		if (opacity > 0) {
			var obj = document.getElementById('HeaderImage');
			if (obj.src.indexOf("SplashHeaderBlank.jpg") > 1) {
				var NewImg = obj.src.replace('SplashHeaderBlank.jpg', NewImage)
				obj.src = NewImg;
			}
			fader2(opacity);
			/* fader(previousImage,100-opacity); */
			opacity -= 10;
			//window.setTimeout("crossfade("+opacity+")", 30);
		} else {
			fader2(opacity);
			clearInterval(SplashFaderCall);
		}	
}