new function() {
	eval(liligo.namespace);
	
	new Application({
		init: function() {
			if (document.getElementById && document.createElement && document.appendChild) {
				// Find all links
				var links = document.getElementsByTagName('a'), link;
				forEach(links, function(link){
					if (/\bnon\-html\b/.exec(link.className)) { // Find all links with a class name of "non-html"
						Event.observe(link, "click", Event.bindStop(this.openInNewWindow, this));
					}
				},this)
			}
		},
		
		// Change "_blank" to something like "newWindow" to load all links in the same new window
		openInNewWindow: function(evt) {
			var sender = Event.element(evt);
			if (sender.tagName != 'A')
				while (sender.tagName != 'A') sender = sender.parentNode;
		    var newWindow = window.open(sender.getAttribute('href'), 'newWindow');
		    newWindow.focus();
		}
			
	});
}

