// -------------------------------------------------
// Marky Wong - 2007-03-05
// popup windows
// -------------------------------------------------
addLoadEvent(initNewWindows);

// -------------------------------------------------
// Open up a new window
// -------------------------------------------------
function initNewWindows() {

	var content = document.getElementById('container');

	if (content) {
		var links = content.getElementsByTagName('a');
		var num_links = links.length


		for (var i=0; i<num_links; i++) {

			if (links[i].rel == 'new-window') {
				links[i].onclick = newWindow;
			}
		}
	}

}


// -------------------------------------------------
// Open up a new window
// -------------------------------------------------
function newWindow() {

	var win = window.open(this.href,'','');
	return false;
}