Jquery delay execution of script

Solution 1:

setTimeout( function(){

  // your stuff here

}, 500); // delay 500 ms

with your code:

$('#navMain .nav1').hover(

  function () {
    setTimeout( function(){
        $(this).addClass('hover');
        if ($.browser.msie && $.browser.version < 7) $('select').css('visibility', 'hidden');
    }, 500); // delay 500 ms
  }, 

  function () {
    $(this).removeClass('hover');
    if ($.browser.msie && $.browser.version < 7) $('select').css('visibility', 'visible');
  }

);

Solution 2:

If a simple javascript delay can help you, you can do as follow:

setTimeout(function() {
  // your code here
}, 3000);

With the following signature: setTimout(functionToExecute, delayInMs);

and the documentation: http://www.w3schools.com/js/js_timing.asp

Hopping I help you.