
// 	Many functions for splash page only, by B.murray (31/05/10)
// 	An external JS script used to preload images and define the mouseOver and mouseOut states.
// 	Also includes function for hiding focus lines in some browsers.

/*
	JavaScript Disjointed Image Rollover Code
	copyright daxassist, 2000-2004
	visit http://www.daxassist.com
*/

	  if(document.images) {
		pics = new Array();
	    pics[01] = new Image();
	    pics[01].src = "images/splash/splash_r2c16.jpg"; // the default image to disjoin, does not have an active link, lion's eye, not active, name = lionOff
	    pics[02] = new Image();
	    pics[02].src = "images/splash/splash_r2c14.jpg"; // the default out state enter button image linked to the home page, name = enterHere
	    pics[03] = new Image();
	    pics[03].src = "images/splash/splash_r2c14_o.jpg"; // the over state enter button image linked to the home page
	    pics[04] = new Image();
	    pics[04].src = "images/splash/splash_r2c16_o.jpg"; // the disjointed image, active lion's eye
	    }
  		
	    function swapImg(from,to,from1,to1) {
		    if(document.images) {
		    document.images[from].src = pics[to].src;
		    document.images[from1].src = pics[to1].src;
	    }}


//Redirect function, set timeout value to proceed to home.html if user does not press "enter" within 10 seconds
var targetURL = "home.php";
var winReplace = "window.location.replace(targetURL)";

function doRedirect()
	{setTimeout(winReplace, 15*1000 );
	}

//get rid of the persistent focus lines in some browsers, i.e. Mozilla, IE5.5
function scrub(obj) {
 if(obj.blur)obj.blur();
}


