// Add a load event to alter the page
CCDES.addEvent(window, 'load', function(W3CEvent) {

	// Locate all the anchor tags with the popup class in the document
	var popups = CCDES.getElementsByClassName('popup', 'a');
	for (var i = 0; i < popups.length; i++) {
	
		// Add a click event listener to each anchor
		CCDES.addEvent(popups[i], 'click', function(W3CEvent) {
		
			// Open the window using the href attribute
			window.open(this.href);
			
			// Cancel the default eent
			CCDES.preventDefault(W3CEvent);
		});
	}
});
