/**
 * This file contains all Lenya specific functions needed to
 * initialize and register tools.
 * @version $Id: lenya.js 8770 2005-01-31 19:04:36Z gregor $
 */
function KupuLenyaDist(){
    this.isInit = false;
       
    this.exitKupuButtonHandler = function() {
        window.location.href = kupu.config.exit_destination        
    }
    
    this.init = function() {
        if(this.isInit) return;
        kupu.registerTool('savebutton', new KupuButton('kupu-exit-button', this.exitKupuButtonHandler));
        this.isInit = true;
    }
 }