﻿/// <reference name="MicrosoftAjax.js"/>

Type.registerNamespace("MXA.Website.Kaldenbroeck");

MXA.Website.Kaldenbroeck.LightboxTemplate = function (element) {

    MXA.Website.Kaldenbroeck.LightboxTemplate.initializeBase(this, [element]);
}

MXA.Website.Kaldenbroeck.LightboxTemplate.prototype =
{

    initialize: function () {
        MXA.Website.Kaldenbroeck.LightboxTemplate.callBaseMethod(this, 'initialize');
    },


    dispose: function () {
        MXA.Website.Kaldenbroeck.LightboxTemplate.callBaseMethod(this, 'dispose');
    },

    show: function () {


    },

    createCommands: function (element) {


        this._previous = document.createElement('div');
        this._previous.className = 'itPrevious';
        this._previous.innerHTML = document.datasource.statictext.previous;

        this._next = document.createElement('div');
        this._next.className = 'itNext';
        this._next.innerHTML = document.datasource.statictext.next;

        element.appendChild(this._previous);
        element.appendChild(this._next);
        var _this = this;
        $addHandler(this._previous, 'click', Function.createDelegate(_this, _this._onPrevious));
        $addHandler(this._next, 'click', Function.createDelegate(_this, _this._onNext));
        Cufon.replace([this._previous, this._next]);

    },

    _onPrevious: function (evt) {

    },

    _onNext: function (evt) {

    }

}



MXA.Website.Kaldenbroeck.LightboxTemplate.registerClass('MXA.Website.Kaldenbroeck.LightboxTemplate', Sys.UI.Control);
