// JavaScript Document

//e-mail variables...
contact1 = "The general mailbox for general queries and stuff" //as displayed on page
address1 = "mail" 
host1 = "moddeydhoomcc.co.uk"

contact2 = "Webmaster" //as displayed on page
address2 = "webmaster"
host2 = "moddeydhoomcc.co.uk"

contact3 = "The person who can give you more info about what's going on" //as displayed on page
address3 = "event_info"
host3 = "moddeydhoomcc.co.uk"

//event window popup code

var newWindow = null;

function closeWin(){
	if (newWindow != null){
		if(!newWindow.closed)
			newWindow.close();
	}
}

function popUpWin(url, type, strWidth, strHeight){
	
	closeWin();
	
	if (type == "fullScreen"){
		strWidth = screen.availWidth - 10;
		strHeight = screen.availHeight - 160;
	}
	
	var tools="";
	if (type == "console") tools = "resizable,toolbar=no,location=no,scrollbars=no,width="+strWidth+",height="+strHeight+",left=0,top=0";
	newWindow = window.open(url, 'newWin', tools);
	newWindow.focus();
}