var NewWindow = 
{
	
	init: function() {
		
		var newWindowLinks = Core.getElementsByClass("new-window");
		
		if (newWindowLinks) {
			for (var i=0; i<newWindowLinks.length; i++) {
				Core.addEventListener(newWindowLinks[i], "click", NewWindow.clickListener);
			}
		}
	
	},
	
	openNewWindow: function(theLink) {
		var win = window.open(theLink.href, '_blank');
		//var win = window.open(this.getAttribute('href'), '_blank');
		
		if (win) {
			if (win.focus) win.focus();
		}
		
	},
	
	clickListener: function(event) {
		NewWindow.openNewWindow(this);
		Core.preventDefault(event);
	}
	
};