muze.namespace('odp');
odp.popuplinks = function() {
	return {
		popup : null,
		attach : function() {
			targets = [
				document.getElementById('menuMainLvl1Ul1Li6').childNodes[0] // Favorieten
				//document.getElementById('menuMainLvl1Ul1Li7').childNodes[0]  // Nieuwsbrief
			];
			for (i = 0; i < targets.length; i++) {
				muze.event.attach(targets[i], 'click', odp.popuplinks.execute);
			}
		},
		execute : function(evt) {
			muze.event.cancel(evt);

			options = 'dependent=0,directories=0,location=0,menubar=0,' +
				'personalbar=0,resizable=1,scrollbars=1,status=0,toolbar=0,' +
				'width=640,height=480';
			targetname = 'odp.popup';

			odp.popuplinks.popup = window.open(this.href, targetname, options);
			if (!odp.popuplinks.popup.opener) {
				odp.popuplinks.popup.opener = self;
			}
			odp.popuplinks.popup.opener.name = 'sourcename';
			if (window.focus) { 
				odp.popuplinks.popup.focus(); 
			}
			return false;
		}
	}
}();
muze.event.attach(window, 'load', odp.popuplinks.attach);
