CS2.NewFeature = function(initOptions){
  var info1 = new Ext.Template(
    '<p class="updateMessage">',
      'The <strong>&quot;User Button&quot;</strong>, contents of <strong>&quot;Settings&quot;</strong> and the <strong>&quot;Logout Button&quot;</strong> have been merged.',
    '</p>'
  );
  var info2 = new Ext.Template(
    '<p class="updateSubMessage">',
      '<strong class="newFeature">Update:</strong> In an attempt to maximize real-estate and reduce on-screen clutter we have consolidated all user-related items to the user menu.',
    '</p>',
    '<br />',
    '<table border="0" cellpadding="0" cellspacing="0">',
      '<tr>',
        '<td align="center" valign="top">',
          '<strong>Before</strong>',
          '<img src="/common/images/updates/old_menu_admin.jpg" style="border: 1px solid #99BBE8; margin-right: 5px;"/>',
        '</td>',
        '<td align="center" valign="top">',
          '<strong>After</strong>',
          '<img src="/common/images/updates/new_menu_admin.jpg" style="border: 1px solid #99BBE8"/>',
        '</td>',
      '</tr>',
    '</table>'
  );
 
  var theUpdateTitle = {
    region: 'north', 
    height: 40,
    border: false,
    baseCls: '',
    cls: 'dialogHelpTitleUpdate',
    html: info1.apply({})
  };
  var theUpdateInfo = {
    region: 'center', 
    padding: 5,
    html: info2.apply({})
  };
  var thisWin = new Ext.Window({
    title: "Feature Update",
    width: 662, 
    height: 390,
    border:true,
    padding: 5,
    modal: true,
    resizable: false,
    closable: false,
    layout: 'fit',
    items: new Ext.Panel({layout: 'border', border: false, plain: true, items: [theUpdateTitle, theUpdateInfo]}),
    buttonAlign: 'center',
    buttons: [
              {
                text: 'OK!',
                handler: function(){
                  Ext.Ajax.request({
                    url: '/ajax/storeUpdateSeen.cfm',
                    method: 'GET',
                    success: function(response, opts) {
                      thisWin.close();
                    },
                    failure: function(response, opts) {
                      thisWin.close();
                    }
                  });   
                }
              }
            ]
  });
  thisWin.show();
};

Ext.onReady(function(){

  //if (loggedIn && showNewUpdates)
    //CS2.NewFeature();

});
