var Policy = {
	dlg: null,

	init : function() {
		this.dlg = new Ext.BasicDialog("divPrivacy", {
	        height: 500,
	        width: 600,
	        resizable: false,
//			minHeight: 100,
//			minWidth: 150,
//			resizable: true,
	        modal: true,
	        proxyDrag: true,
	        collapsible: false,
	        shadow: true,
	        fixedcenter: true
	    });

	    this.dlg.addKeyListener(27, this.dlg.hide, this.dlg); // ESC can also close the dialog
	    this.dlg.addButton('OK', this.onOk, this);
	    
	    var el = Ext.get("privacyLink");
	    el.on("click", this.show, this);
	},
	
	show : function() {
		this.dlg.show();
	},
	
	onOk : function() {
	   	this.dlg.hide();
	}
}

Ext.onReady(Policy.init, Policy, true);
