
function intersticial_show(version) {
    if (!this.cookieProvider)
        this.cookieProvider = new Ext.state.CookieProvider({ domain: ".realestate.com" });

    var intersticialShown = this.cookieProvider.get('intersticialShown');

    if (intersticialShown)
        return;
    var loadUrl = '/common/includes/intersticial/version_' + version + '.htm';
    if (version > 4)
        loadUrl = '/common/includes/intersticial/version_' + version + '.aspx';

    this.racwin = new Ext.Window({
        width: 700,
        height: 400,
        baseCls: 're-nowindow',
        cls: 're-intersticial',
        closeAction: 'close',
        shadow: false,
        modal: true,
        autoLoad: { url: loadUrl, callback: rac_init, scripts: true },
        border: false,
        draggable: false,
        resizable: false,
        plain: true
    });
    this.racwin.show();
    this.racwin.setActive(true);

    function rac_init() {
        if (Ext.get('rac_close'))
            Ext.get('rac_close').on('click', function() { this.racwin.close() }, this);
        if (Ext.get('rac_close_link'))
            Ext.get('rac_close_link').on('click', function() { this.racwin.close() }, this);

        var racintersticial = new RE.Forms.RequestCall({ applyTo: 'rac_intersticial', icode: 3910 })
        racintersticial.on('submit', function() { this.racwin.close(); }, this);
    }

    this.cookieProvider.set('intersticialShown', true)
} 

Ext.onReady(function() {



});