
window.addEvent('domready', function() {
    // Decorate the login windows to use a modal.
    $ES('a.contant').each(function(a){
        a.setProperty('rel', '{size: {x: 550, y: 400}, ajaxOptions: {method: "get"}}');
        if (a.getProperty('href').contains('?')) {
            a.setProperty('href', a.getProperty('href')+'&tmpl=component');
        } else {
            a.setProperty('href', a.getProperty('href')+'?tmpl=component');
        }
     });
});
