var photoLinks = {
    init: function() {
        yuiDom.getElementsByClassName("photoLink", "a").forEach(function(link) {
            yuiEvent.addListener(link, "click", photoLinks.show);
        })
    },
    show: function(e) {
        yuiEvent.preventDefault(e);
        var url = this.href;
        window.open(url, 'popup', 'toolbar=0, scrollbars=0, location=0, statusbar=0, menubar=0, resizable=0, width=591, height=420');
    }
}
yuiEvent.onDOMReady(photoLinks.init, true);
