DNow.HTMLViewer = Class.create( aw.ui.Panel, {

    initialize: function ( properties, events ) {

        this.inheritCSS = true;

        aw.ui.Panel.prototype.initialize.apply( this, arguments );
    },

    draw: function ( ) {
        aw.ui.Panel.prototype.draw.apply( this );

        var contents = this.canvas.down('div.contents');
        if (contents) {
            contents.insert( '<iframe src="./custom/Welcome.htm"></iframe>' );

            this._frame = this.canvas.down('iframe');
        }

        return this.canvas;
    },

    setURL: function ( url ) {
        this._frame.src = url;
    },

    CLASS_NAME: 'DNow.HTMLViewer'
});
