//addOnload(initOne);
addOnload(initTwo);
addOnload(initThree);

function addOnload(newFunction) {
	var oldOnload = window.onload;
	
	if (typeof oldOnload == "function") {
		window.onload = function() {
			if (oldOnload) {
				oldOnload();
			}
			newFunction();
		}
	}
	else {
		window.onload = newFunction;
	} 
}

/*function initOne() {
var  rmdArray = new Array("300px","450px","600px","300px","450px","600px","300px","450px","600px");
var  rmdPos =  0;
				document.getElementById("splat").style.left = '-60px';
				rmdPos = Math.floor((Math.random() * 9));
				document.getElementById("splat").style.top = rmdArray[rmdPos];
	}*/

function initTwo() {
	var allLinks = document.getElementsByTagName("a");
	
	for (var i=0; i<allLinks.length; i++) {
		if (allLinks[i].className.indexOf("fbLink") > -1) {
			allLinks[i].onmouseover = showMessage;
			allLinks[i].onmouseout = hideMessage;
		}
	}
}
	
function  showMessage(){
	document.getElementById("facebook").style.display = "block";
	}
	
function  hideMessage(){
	document.getElementById("facebook").style.display = "none";
	}
	
function initThree() {
			var myPix = "";
			if (screen.width<1140){myPix = "spacer.gif";
	      document.getElementById("bootdisplay").src = myPix;
	      }
}

