﻿Ext.BLANK_IMAGE_URL = '../Resources/images/shim.gif';


Ext.namespace(  'C4', 
                    'C4.Utility', 
                'Entegris', 
                    'Entegris.ProductCatalog', 
                    'Entegris.Navigation',
                'ux');
if(typeof Entegris == 'undefined'){
    Entegris = Ext.Entegris;
}

Ext.onReady(function() {
	if (typeof(AjaxPro) != 'undefined') {
		AjaxPro.timeoutPeriod = 1800000;
	}
});



    
Ext.BasicDialog.prototype.resizeToAnimated = function(width, height, callback){
        if(this.size.width == width && this.size.height == height){return this;}
        var complete = function(w, h, cb){
            this.resizeTo(w, h);
            if (cb && typeof(cb) == 'function') {
                cb.call(this);
            }
        }
        this.el.setSize(width, height, true, .35, complete.createDelegate(this, [width, height, callback]));
        this.bwrap.setSize(width, height, true); // this line is issue!
        if(this.shadow  && typeof this.shadow == 'object' && this.shadow.el && this.shadow.el.setSize){
            this.shadow.el.setSize(width, height, true);
        }
        return this;
    };
    
