var ircorp = new Object();
ircorp.btnOn = function (){this.src = this.src.replace(/.gif/,'_over.gif')}
ircorp.btnOff = function (){this.src = this.src.replace(/_over.gif/,'.gif')}

ircorp.findbtn = document.getElementById('searchfind');

if (ircorp.findbtn != null)
  {
    ircorp.findbtn.onmouseover = ircorp.btnOn;
    ircorp.findbtn.onmouseout = ircorp.btnOff;  
  }
ircorp.search = document.getElementById('searchinput');
if (ircorp.search != null)
  {
    ircorp.search.onfocus = function(){this.style.background = '#FFF'};
    ircorp.search.onblur = function(){this.style.background = (this.value == '') ? 'none' : '#FFF'};
  }
  
ircorp.explore = document.getElementById('irexplore');
ircorp.explore.supermenu = document.getElementById('supermenu');
if (ircorp.explore.supermenu != null) {ircorp.explore.supermenu.style.display = 'none'}
ircorp.menuTimer  = undefined;
ircorp.menuDelay  = 200;
  
ircorp.showMenu = function()
  {
    if (this.supermenu == null) {return false}
    
    this.parentNode.className = 'over';
    this.supermenu.style.display = 'block' 
    return false         
  }
  
ircorp.hideMenu = function()
  {
    if(ircorp.explore.supermenu == null) {return false}
    ircorp.explore.supermenu.style.display = 'none'
    ircorp.explore.parentNode.className = '';          
  }
  
ircorp.startTimer = function()
  {
    ircorp.menuTimer = setTimeout(ircorp.hideMenu,ircorp.menuDelay)        
  }
  
ircorp.explore.onmouseover = ircorp.showMenu;
ircorp.explore.onmouseout = ircorp.startTimer;
ircorp.explore.supermenu.onmouseover  = function(){clearTimeout(ircorp.menuTimer)}
ircorp.explore.supermenu.onmouseout  = ircorp.startTimer;