// This file contains the addLoadEvent script and an unobtrusive popup script.
// The popup is triggered by placing class="popup" on the <a>.


// function addLoadEvent(func) {
//	var oldonload = window.onload;
//	if (typeof window.onload != 'function') {
// 		window.onload = func;
//	} else {
//		window.onload = function() {
// 		oldonload();
// 		func();
// 		}
// 	}
// }

function popUp(winURL) {
	window.open(winURL, "popup", "width=640,height=695");
}

// function prepareLinks() {
//	if(!document.getElementsByTagName) return false;
//	var links = document.getElementsByTagName("a");
//	for (var i = 0; i < links.length; i++) {
//		if (links[i].getAttribute("class") == "popup") {
//			links[i].onclick = function() {
//			popUp(this.getAttribute("href"));
//			return false;
//			}
//		}
//	}
// }

// addLoadEvent(prepareLinks);
