﻿


Entegris.ProductCatalog.LargerImageDialog = function(imgWidth, imgHeight, LargerLinkID){
    this.iWidth = imgWidth;
    this.iHeight = imgHeight;
    this.LargerLink = Ext.get(LargerLinkID);

	Entegris.ProductCatalog.LargerImageDialog.superclass.constructor.call(this, "LargerImageDialog", {    modal:true,
                                                                                                        width:this.iWidth,
                                                                                                        height:this.iHeight,
                                                                                                        shadow:true,
                                                                                                        resizable: false,
                                                                                                        collapsible: false,
                                                                                                        draggable: false
                                                                                                    });
    this.addKeyListener(27, this.hide, this);
    if (this.LargerLink != null) {
        this.LargerLink.on('click', this.onClick, this);
    }
    
};



Ext.extend(Entegris.ProductCatalog.LargerImageDialog, Ext.BasicDialog, {
 
    onClick: function() {
        this.show(this.LargerLink);
    }
 
 
});