﻿/// <reference name="MicrosoftAjax.js"/>

Type.registerNamespace("O3.Cms");

O3.Cms.TickerTapeItem = function(element) 
{
    O3.Cms.TickerTapeItem.initializeBase(this, [element]);
}

O3.Cms.TickerTapeItem.prototype = 
{
    /*******************************************************************************
    * Methods
    *******************************************************************************/
    initialize: function()
    {
        O3.Cms.TickerTapeItem.callBaseMethod(this, 'initialize');
        this._onAppLoadHandler     =   Function.createDelegate(this, this.onAppLoad);
        Sys.Application.add_load(this._onAppLoadHandler);
        
        this.get_owner().registerItem(this);
    },
    
    dispose: function()
    {
        Sys.Application.remove_load(this._onAppLoadHandler);
        O3.Cms.TickerTapeItem.callBaseMethod(this, 'dispose');
    },
    
    /*******************************************************************************
    * Properties
    *******************************************************************************/
    get_owner: function()
    {
        return this._owner;
    },
    
    set_owner: function(value)
    {
        this._owner = value;
    },
    
    /*******************************************************************************
    * Eventhandlers
    *******************************************************************************/
    onAppLoad: function(e)
    {
        
    }
};

O3.Cms.TickerTapeItem.registerClass('O3.Cms.TickerTapeItem', Sys.UI.Control);
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();