/*
 * lib.js - Javascript modules
 *
 */

// creates pop-up windows for all links of class='popUp'
// for internal links that use the 'popUp' layout
function setupPopUp() {
	allNodes = $(".popUp");
	for(i = 0; i < allNodes.length; i++) {
	  allNodes[i].onclick = function() {
	    popUp(this.getAttribute("href"));
	    return false;
	  }
	}
}
function popUp(winURL) {
	var url = winURL;
	window.open(url,"popUp","height=800,width=900,left=50,top=50,toolbar=yes,resizable,location=yes,directories=yes,status=yes,scrollbars=yes");
}

$(document).ready(function() {
	setupPopUp();											 													 
});