Ext.onReady(function(){
	Ext.BLANK_IMAGE_URL = location.pathname + 'common/javascript/ext/resources/images/default/s.gif';
});

Ext.lib.Event.resolveTextNode = Ext.isGecko ? function(node){
    if(!node){
        return;
    }
    var s = HTMLElement.prototype.toString.call(node);
    if(s == '[xpconnect wrapped native prototype]' || s == '[object XULElement]'){
        return;
    }
     return node.nodeType == 3 ? node.parentNode : node;
} : function(node){
    return node && node.nodeType == 3 ? node.parentNode : node;
};

Ext.WindowMgr.bringToFront = Ext.WindowMgr.bringToFront.createInterceptor(function(win){
	return !Ext.Msg.isVisible();
});

