// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults


  
/*
 * Ext related stuff
 */

//Namespace for this app
Ext.namespace('EW');  

EW.COMMENT_TARGET_TYPE_CANDIDATE = 'candidate';
EW.URL_CREATE_COMMENT = '/comments/create';

/*
 * find the elements that a have 'highlight' class and apply an effect on them
 */
Ext.onReady(function(){
   
  
   var task = {
       run : function(){
           /*
           Ext.select('.highlight').slideIn('r',
                                    {
                                        duration:3
                                        ,easing:'easeInStrong'
                                    
                                });
           */
          Ext.select('.highlight').fadeIn({
              duration:2
              ,easing:'easeInStrong'
          });
       }
       ,interval: 2000 //every 2 seconds
   };
   Ext.TaskMgr.start(task);
   
});
