//'
//' QUICK SEARCH: Update the quick search results, such as after a keypress, then post the AJAX request
//'
var commonNavigationSearchPrompt = 'Quick Search - Type Here';
var timer;

function commonNavigationSearchUpdate() {
   if (document.getElementById('commonNavigationSearch').value != '') {
      clearTimeout(timer);
      timer=setTimeout('commonNavigationSearchAJAX();',400);
      document.getElementById('commonNavigationSearchResults').innerHTML='<Div Style="position:absolute;top:35px;left:0px;width:110px;color:#fbab00;border:1px solid silver;background-color:white;font-size:11px;">Pause to preview&hellip;</Div>';
      document.getElementById('commonNavigationSearchResults').style.visibility = 'visible';
      }
   else {
      document.getElementById('commonNavigationSearchResults').style.visibility = 'hidden';
      document.getElementById('commonNavigationSearchResults').innerHTML='';
      }
   }

//'
//' QUICK SEARCH: AJAX Submit the Quick Search request
//'
function commonNavigationSearchAJAX() {
   if (document.getElementById('commonNavigationSearch').value != '') {
//      'Submit the AJAX request
      commonLibraryAJAXPostHTML('/CommonNavigation/CommonNavigationSearchAJAX.htm', 'CommonSearchAJAX.Search=' + escape(document.getElementById('commonNavigationSearch').value) + '&CommonSearchAJAX.Page=%System.PageName%', 'commonNavigationSearchResults', '', true);
      }
   }


function MastheadNavOver(element) {
   element.className = 'MastheadNavItemOver';
}


function MastheadNavOut(element) {
   element.className = 'MastheadNavItem';
}

