function preLdImg(oHref) {
	if( typeof( oHref ) != 'string' ) { return; }
	if( window.imgLdAr ) { for( var x = 2; x < window.imgLdAr.length; x++ ){ imgLdAr[x].onerror = null; imgLdAr[x].onload = null; } }
	window.imgLdAr = new Array(); window.imgCount = 0; window.hasLoadedImg = new Array();
	for( var x = 2; x < arguments.length; x++ ) {
		/* for each image name given as an argument,
		create a new image and as images load, count
		how many have loaded. When all have, change
		the URL. */
		if( typeof( arguments[x] ) != 'string' || !document.images ) { self.location.href = oHref; }
		imgLdAr[x] = new Image();
		imgLdAr[x].onload = new Function( //write the function as a string. Allows me to put in the number of images
			'if( hasLoadedImg[imgLdAr['+x+'].src] ){ return; } hasLoadedImg[imgLdAr['+x+'].src] = true; window.imgCount++;'+
			( arguments[1] ? ( arguments[1] + '( window.imgCount / ' + ( arguments.length - 2 ) + ' );' ) : '' )+
			"if( imgCount == " + ( arguments.length - 2 ) + " ) { self.location.href = '"+oHref+"'; }" );
		imgLdAr[x].onerror = new Function( "for(var x = 2;x<window.imgLdAr.length;x++){imgLdAr[x].onerror=null;imgLdAr[x].onload=null;}if( window.confirm( 'Pre-load error:\\n\\nThe following image failed to load:\\n'+this.src+'\\n\\nDo you want to jump to the next page without pre-loading images?' ) ) { self.location.href = '"+oHref+"'; }" );
		imgLdAr[x].src = arguments[x];
		/* Officially, if the image is already in cache, onload will not fire. It does in Internet
		Explorer. If this is Internet Explorer or due to some fast connection, the image has
		managed to load since the last line of code, then the onload function will be executed
		twice, doubling the image count. This will cause the new URL to be loaded before all images
		are cached. The onload function includes a check to see if this image has already triggered
		the onload function and if it has, it does not increase the count. */
		if( imgLdAr[x].complete ) { imgLdAr[x].onload(); }
	}
}



loadImage1 = new Image();
loadImage1.src = "images/overcast.jpg";
staticImage1 = new Image();
staticImage1.src = "images/cast.jpg";

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,directories=0,width=800,height=600,left = 440,top = 225');");
}

loadImage2 = new Image();
loadImage2.src = "Agree_active.jpg";
staticImage2 = new Image();
staticImage2.src = "agree_01.jpg";

loadImage3 = new Image();
loadImage3.src = "noagree_active.jpg";
staticImage3 = new Image();
staticImage3.src = "noagree_02.jpg";
