Ext.ns('Ext.pv.security');
Ext.pv.security.PrivacyPolicyDialog = Ext.extend(Ext.Window, {
	id : 'privacyPolicyDialogId',
	frame : true,
    layout : 'border',
    border : false,
    width : 800,
    height : 550,
    modal : true,
    
    // Localized strings
    title : 'Privacy Policy',
	okButtonText : 'OK',
	cancelButtonText : 'Cancel',
    
	direction : 'ltr',
    contextPath : null,

	/**
	 * initComponent
	 * 
	 * @protected
	 */
	initComponent : function() {
		
		if (this.direction=='rtl') {
			this.style = 'direction:rtl';
		}
	
		this.items = [{
			region : 'center',
			layout : 'fit',
			autoScroll : true,
			bodyStyle : 'padding: 5px;',
			autoLoad : {
				url : this.contextPath + '/security/privacyPolicy.html',
				//scripts : true,
				noCache : true
			}
		}];
      	
		this.buttons = [{
				id : 'okButtonId',
				text : this.okButtonText,
				handler : this.onOk,
				scope : this
		    }
	    ];

		// super
		Ext.pv.security.PrivacyPolicyDialog.superclass.initComponent.call(this);
	},

	
	onOk : function() {
		this.close();
	},
	
	onCancel : function() {
		this.close();
	}
    
});
Ext.reg('PrivacyPolicyDialog',Ext.pv.security.PrivacyPolicyDialog);
