$(document).ready(function(){
  
  // hide info about photo on first page
  $('#start-about-photo-info').hide();
  
  // toggle info about photo on first page
  $('#start-about-photo').mouseover(function() {
    $('#start-about-photo-info').fadeIn('fast');
  });
  $('#start-about-photo-info').mouseout(function() {
    $('#start-about-photo-info').fadeOut('fast');
  });

  // hide menu
  $('#nav > ul ul').hide();
  
  // show menu
  
  $('#nav > ul > li').mouseover(function() {
  
    id = '#'+$(this).attr("id");
    
    if ($(id+' ul').css("display") == "none") {
      
      $(id+' ul').show();

      if (navigator.userAgent.indexOf('MSIE 6.0')+1){
        $(id).css("background", "url(images/bg-menu-tab.gif) no-repeat 0 101px");        
      } else { 
        $(id).css("background", "url(images/bg-menu-tab-shadow.png) no-repeat 0 101px");
      }
      
    }
  });

  // hide menu
  $('#nav > ul > li').mouseout(function() {
    id = '#'+$(this).attr("id")
    $(id+' ul').hide();
    $(id).css("background", "0");          
    $(id).css("borderBottom", "0");
    return false;
  });

});