
window.onload = PopupInit;

function PopupInit() {
	if(document.getElementById("uottawa_popup")) {
		var popuplink = document.getElementById("uottawa_popup");

		popuplink.onclick = function(){return PopupWindow(this);};
		popuplink.onkeypress = function(){return PopupWindow(this);};
	}
}
/*
function PopupInit() {
	if(document.getElementById("uottawa_popup")) {
		var popuplink = document.getElementById("uottawa_popup");
		popuplink.onclick = function(){return PopupWindow(this);};
		popuplink.onkeypress = function(){return PopupWindow(this);};
	} 
	if (document.getElementById("uottawa_img_popup")) {
		var popupimglink = document.getElementById("uottawa_img_popup");
		popupimglink.onclick = function(){return PopupWindow(this);};
		popupimglink.onkeypress = function(){return PopupWindow(this);};
	}
}
	*/

function PopupWindow(e) {
	var windowOptions = "top=50," +
			    "left=50," + 
			    "height=595," + 
			    "width=728," + 
			    "location=no," + 
			    "menubar=no," + 
			    "directories=no," + 
			    "toolbar=no," + 
			    "status=no," + 
			    "resizable=yes," + 
			    "scrollbars=yes";
	var newWin = window.open(e, "uOttawa_History", windowOptions);

	return false;
}
function PopupNews(e) {
	var windowOptions = "top=70," +
			    "left=70," + 
			    "height=595," + 
			    "width=810," + 
			    "location=yes," + 
			    "menubar=yes," + 
			    "directories=yes," + 
			    "toolbar=yes," + 
			    "status=yes," + 
			    "resizable=yes," + 
			    "scrollbars=yes";
	var newWin = window.open(e, "outbound", windowOptions);

	//return false;
		//commented out by dk to allow flash movie to launch new windows as well
}

