function loadSplash(){
	$('#screenMask')
		.show()
		.height($(document).height())
		.width($(document).width())
		.click(function(){
			$(this).hide();
			$('#splash').hide();
		});
	$('#splash').show();
	document.getElementById('splash').style.left = ($(document).width() - $('#splash').width()) / 2 +'px' ;
	$('#skipToSite').click(function(){
		$('#screenMask').hide();
		$('#splash').hide();
		return false;
	});
	var emailInput = $('#splashEmailAddress');
	var zipInput = $('#splashZipCode');
	emailInput.focus(function(e){
		var def = 'Enter Email Address';
		if (emailInput.val() == def) {
			emailInput.val('')
		}
	}).blur(function(e){
		var def = 'Enter Email Address';
		if (emailInput.val() == '') {
			emailInput.val(def)
		}	
	});
	zipInput.focus(function(e){
		var def = 'Enter Zip Code';
		if (zipInput.val() == def) {
			zipInput.val('')
		}
	}).blur(function(e){
		var def = 'Enter Zip Code';
		if (zipInput.val() == '') {
			zipInput.val(def)
		}	
	});
}



/*
jQuery(function(){

var photoContainer = jQuery('#photoContainer');
var previousPhoto = jQuery('#previousPhoto');
var nextPhoto = jQuery('#nextPhoto');
var currentIndex = false;

// pre-load images
for (var i = 0, l = photoList.length; i < l; i++) {
	var img = new Image();
	img.setAttribute('alt', photoList[i].Title);
	img.src = photoList[i].SRC;
	photoList[i].image = img;
}
//console.dir(photoList);

function showImage(id) {
	if (id == currentIndex) return;
	var img = photoList[id].image;
	photoContainer.html('');
	if (img.complete) {
		photoContainer.append(img);
	}
	else {
		img.onload = function() {
			photoContainer.append(img);
		}
	}
	currentIndex = id;
}

var inter = window.setInterval(function(){
	showImage(currentIndex == photoList.length - 1 ? 0 : currentIndex + 1);
}, timerInterval);

previousPhoto.click(function(){
	if (inter) {
		window.clearInterval(inter);
		inter = false;
	}
	showImage(currentIndex == 0 ? photoList.length - 1 : currentIndex - 1);
	return false;
});

nextPhoto.click(function(){
	if (inter) {
		window.clearInterval(inter);
		inter = false;
	}
	showImage(currentIndex == photoList.length - 1 ? 0 : currentIndex + 1);
	return false;
});

showImage(0);

});
*/
