var initialized = 0;
var selectedPostCard = "x";

function init() {	
	initialized = 1;
}	
	
if (document.images) {
	// MAIN MENU IMAGES
	story_off = new Image();
	story_off.src =  "images/story_off.gif";
	
	story_on = new Image();
	story_on.src =  "images/story_on.gif";
	
	people_off = new Image();
	people_off.src =  "images/people_off.gif";
	
	people_on = new Image();
	people_on.src =  "images/people_on.gif";
	
	credits_off = new Image();
	credits_off.src =  "images/credits_off.gif";
	
	credits_on = new Image();
	credits_on.src =  "images/credits_on.gif";
	
		gallery_off = new Image();
	gallery_off.src =  "images/gallery_off.gif";
	
	gallery_on = new Image();
	gallery_on.src =  "images/gallery_on.gif";
	
		press_off = new Image();
	press_off.src =  "images/press_off.gif";
	
	press_on = new Image();
	press_on.src =  "images/press_on.gif";
	
		contact_off = new Image();
	contact_off.src =  "images/contact_off.gif";
	
	contact_on = new Image();
	contact_on.src =  "images/contact_on.gif";
	
	media_off = new Image();
	media_off.src =  "images/media_off.gif";
	
	media_on = new Image();
	media_on.src =  "images/media_on.gif";
	
	buyDVD_off = new Image();
	buyDVD_off.src =  "images/buyDVD_off.gif";
	
	buyDVD_on = new Image();
	buyDVD_on.src =  "images/buyDVD_on.gif";
	
		playTrailer_sml_off = new Image();
	playTrailer_sml_off.src =  "images/playTrailerSmall_off.gif";
	
	playTrailer_sml_on = new Image();
	playTrailer_sml_on.src =  "images/playTrailerSmall_on.gif";
	
	playTrailer_med_off = new Image();
	playTrailer_med_off.src =  "images/playTrailerMed_off.gif";
	
	playTrailer_med_on = new Image();
	playTrailer_med_on.src =  "images/playTrailerMed_on.gif";
	
	playTrailer_lrg_off = new Image();
	playTrailer_lrg_off.src =  "images/playTrailerLrg_off.gif";
	
	playTrailer_lrg_on = new Image();
	playTrailer_lrg_on.src =  "images/playTrailerLrg_on.gif";
	
}	

function imgOn(imageName) {	
	if (initialized == 1) {
	if (document.images) {
		document[imageName].src = eval(imageName + "_on.src");
		}
	}	
}

function imgOff(imageName) {
	if (document.images) {
		document[imageName].src = eval(imageName + "_off.src");
	}
}

function sendMail(x) {
	var name = x;
	var domain = "gmail";
 	window.location = ("mailto:" + name + "@" + domain + ".com");
}
