﻿///<reference path="mootools-v1.2.1.js" />
///<reference path="HistoryManager.js" />
var popupManager = new Class({
    initialize: function () {
        $$("a.popup").each(function (el) {
            var url = el.get("href");
            el.set({ "target": "_self", "href": "javascript:void(0);", events: { "click": this.getPopup.pass(url, this)} });
        }, this);
    },
    getPopup: function (src) {
        var top = (screen.height - 650) / 2;
        var left = (screen.width - 440) / 2;
        var newWindow = window.open(src, "uniquePopUp", "top=" + top + ",left=" + left + ",width=440,height=650,menubar=no,scrollbars=yes,statusbar=no");
        newWindow.focus();
    }
});
window.addEvent("domready", function () {new popupManager();});