/**
 * 로그인 창 Class
 * isFirst : 최초 로그인 여부 확인
 */
Ext.namespace("Ext.ux.hansub.window");

Ext.ux.hansub.window.IframeWindow = function(config, parent){
	
	this.config = config;
	
	this.iframe = new Ext.ux.ManagedIFrame.Panel({
		fitToParent:true,
	    autoScroll : false,
	    loadMask  : true,
	    frameConfig: {autoCreate:{id: 'frame1'}},  //optional, give the frame your own id and name
	    defaultSrc : this.config.link
		
		
	});
	
	width = document.body.offsetWidth -50 ;
	height = document.body.offsetHeight - 50;
	
	Ext.ux.hansub.window.IframeWindow.superclass.constructor.call(this, {
		title: this.config.title,
		x:25,
		y:25,
		id:'AddMemoWindowID',
		closable:true,
		iconCls:'add',
		resizable:false,
        width: width,
        height: height,
        layout: 'fit',
        plain:true,
        modal:true,
        bodyStyle:'padding:5px;',
        buttonAlign:'right',
        items: this.iframe
        
	});
	
	//this.on('resize', this.checkAuthor, this);
	
	
	
};

Ext.extend(Ext.ux.hansub.window.IframeWindow, Ext.Window, {
	

});

