var popup_findlayPark;

function popUp() {
	var url = this.href;

	var popupWidth = '';
	var popupHeight = '';

	if(url.indexOf('/terms/') > -1) {
	    popupWidth = 'width=1000,'; //1000
	    popupHeight = 'height=650,'; //650
	}
	else {
	    popupWidth = 'width=1100,'; //1000
		popupHeight = 'height=700,'; //650
	}

	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;


