var popup_findlayPark;

function popUp() {
	var url = this.href;

	var popupWidth = '';
	var popupHeight = '';

	if(url.indexOf('/terms/') > -1) {
		popupWidth = 'width=550,';
		popupHeight = 'height=400,';
	}
	else {
		popupWidth = 'width=800,';
		popupHeight = 'height=500,';
	}

	popup_findlayPark = window.open(this.href, 'findlayPark', popupWidth + popupHeight + 'scrollbars=yes');

	if(window.focus) {
		popup_findlayPark.focus();
	}

	return false;
}

function popUpInit() {
	if(document.links && document.getElementById) {
		for(i=0; i<document.links.length; i++) {
			if(document.links[i].className == 'popUp') {
				document.links[i].onclick = popUp;
			}
		}
		if(document.getElementById('popUpExit')) {
			var popUpExit = document.getElementById('popUpExit');
			popUpExit.parentNode.removeChild(popUpExit);
		}
	}
}

function init() {
	popUpInit();
}

window.onload = init;


//***** Date display function ******

//written by: Robin Brattel
//written on: 15/05/2001

//**********************************

var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var monthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December")

var now = new Date();
var day = now.getDay();
var date = now.getDate();
var month = now.getMonth();
var year = now.getYear();
var hours = now.getHours();
var minutes = now.getMinutes();

function putZeroIn(Value) {
	if (Value > 9) {
	return "" + Value
	}
	return "0" + Value
}
