<!--

//Javascript written by Jim Richardson
//Contact: djimmulator@yahoo.co.uk

oldSrc = new Array();

function swapImgOver(imgName,newSrc){
	eval('oldSrc[\'' + imgName + '\'] = document.images.' + imgName + '.src');
	eval('document.images.' + imgName + '.src = \"media/' + newSrc + '\"');
	}

function swapImgOut(imgName){
	eval('document.images.' + imgName + '.src = oldSrc[\'' + imgName + '\']');
	}

//onmouseover="swapImgOver('news','nav_news_on.gif');" onmouseout="swapImgOut('news');"

function preloadImages(){

for(i=0; i<preLoad.length; i++){
	eval('Image' + i + ' = new Image();')
	eval('Image' + i + '.src = "' + preLoad[i] + '";')
	}

}

function popup(text,width,height){
newWin=window.open(text,"","width="+width+",height="+height+",top=10,left=10,scrollbars=yes");
}
//<a href="javascript:popup('popups/pop1.htm','690','225');">
//<a name="close" href="#" onClick="window.close();">Close</a>

function popupNoScr(text,width,height){
newWin=window.open(text,"","width="+width+",height="+height+",top=30,left=30");
}
//<a href="javascript:popup('popups/pop1.htm','690','225');">
//<a name="close" href="#" onClick="window.close();">Close</a>

var regExp = /^.+\@.+\..+$/; //Define regular expression for email address validation

function validCU(){
	
	if(!document.getElementsByName('email')[0].value.match(regExp)){ //Check email address with regular expression
			alert('The email address you have given is not valid.\nPlease supply a valid email address.');
			return false;
	}
	
	//alert(document.getElementById('email').value.length);	
}

preLoad = new Array();

preLoad[0] = "media/splash_01_on.jpg"
preLoad[1] = "media/splash_02_on.jpg"
preLoad[2] = "media/splash_03_on.jpg"
preLoad[3] = "media/splash_04_on.jpg"

preloadImages();


//-->
