/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
var Main =
{

    init: function() {
        var buttons = Core.getElementsByClass("popupButton");       

        for(var i = 0; i < buttons.length; i++) {            
            buttons[i].onclick = Main.showDocumentPopUp;
        }

    },

    showDocumentPopUp : function() {
        var width  = 640;
        var height = 480;
        var left   = (screen.width  - width)/2;
        var top    = (screen.height - height)/2;
        var params = 'width='+width+', height='+height;
        params += ', top='+top+', left='+left;
        params += ', directories=no';
        params += ', location=no';
        params += ', menubar=no';
        params += ', resizable=no';
        params += ', scrollbars=yes';
        params += ', status=no';
        params += ', toolbar=no';
        var newwin=window.open(this.href,'st', params);
        if (window.focus) {
            newwin.focus()
            }
        return false;
    },

    mostraSt : function(theURL) {
        var width  = 640;
        var height = 480;
        var left   = (screen.width  - width)/2;
        var top    = (screen.height - height)/2;
        var params = 'width='+width+', height='+height;
        params += ', top='+top+', left='+left;
        params += ', directories=no';
        params += ', location=no';
        params += ', menubar=no';
        params += ', resizable=no';
        params += ', scrollbars=yes';
        params += ', status=no';
        params += ', toolbar=no';
        var newwin=window.open(theURL,'st', params);
        if (window.focus) {
            newwin.focus()
            }
        return false;
    }
}

Core.start(Main);



