//Javascript functions for the Hellbox Website
//Written by Dan Hagen
//Plagiarize my code and I will poop in your mouth

var home1 = new Image(87, 42);
var home2 = new Image(87, 42);
var mission1 = new Image(84, 42);
var mission2 = new Image(84, 42);
var history1 = new Image(80, 42);
var history2 = new Image(80, 42);
var directions1 = new Image(76, 42);
var directions2 = new Image(76, 42);
var contact1 = new Image(68, 42);
var contact2 = new Image(68, 42);
var bgemblem = new Image(384, 233);

home1.src = "images/home.jpg";
home2.src = "images/home2.jpg";
mission1.src = "images/mission.jpg";
mission2.src = "images/mission2.jpg";
history1.src = "images/history.jpg";
history2.src = "images/history2.jpg";
directions1.src = "images/directions.jpg";
directions2.src = "images/directions2.jpg";
contact1.src = "images/contact.jpg";
contact2.src = "images/contact2.jpg";
bgemblem.src = "images/background.jpg";

function lightup(imgName, imgSrc)
	{
		document[imgName].src = imgSrc;
		return true;
	}

function popup(address, popup_height, popup_width)
	{
	var popup_left = (screen.availWidth / 2) - (popup_width / 2);
	var popup_top = (screen.availHeight / 2) - (popup_height / 1.7);
	var popup_dimensions = "height=" + popup_height + ",width=" + popup_width + ",left=" + popup_left + ",top=" + popup_top + ",scrollbars=0,resizable=0";
	var popup_window = window.open(address, "", popup_dimensions);
	}