UserControlOpenKML = OpenLayers.Class(eGV.Control, {

    /**
     * Property: type
     * {String} The type of <OpenLayers.Control> -- When added to a
     *     <Control.Panel>, 'type' is used by the panel to determine how to
     *     handle our events.
     */
    type: OpenLayers.Control.TYPE_BUTTON,

    initialize: function(div, options){

        this.div = document.getElementById(div);

        options = options || [];
        eGV.Control.prototype.initialize.apply(this, [options]);

        return true;
    },

    /*
     * Method: trigger
     * Load all the elements in the list.
     */
    trigger: function() {
        //Display the loading effect
        //alert("OpenKML");
        window.location="php/kml.php";
    },

    CLASS_NAME: "eGV.Control.User.UserControlKML"
});