/**
 * @author RLeray
 * 
 * This javascript utility class manage the rollover 
 * 
 * Date : 28/03/2008
 * Version 1.0
 */

function PopupInterface() {
   
};

PopupInterface.popup = function popup (elementId, title, height, width, scrollbars){
    $(elementId).click( function() {
        window.open( $(this).attr('href'), title, "height="+height+",width="+width+",scrollbars="+scrollbars+",status=0,toolbar=0,menubar=0,location=0");
        return false;
    });
}

PopupInterface.addEvents = function addEvents() {
    PopupInterface.popup('a.external_cite', "cite", 225, 475,1);
    PopupInterface.popup('a.external_send', "send", 640, 452,1);
    PopupInterface.popup('a.external_print', "print", 600, 550,1);
    PopupInterface.popup('a.external_forgotPassword', "forgotPassword", 248, 456,0);
    PopupInterface.popup('a.external_forgotPasswordES', "forgotPassword", 266, 456,0);
    PopupInterface.popup('a.external_author', "author", 340, 472,1);
    PopupInterface.popup('a.external_privacypolicy', "author", 340, 472,1);
}

//Jquery load...
$(document).ready(
    PopupInterface.addEvents
); 