
    // cufon
    $(document).ready(function() {
    
      //Cufon.replace('h1, h2, h3', { fontFamily: 'Helvetica Bold', hover:true });
      //Cufon.replace('.process li', { fontFamily: 'Helvetica Medium', hover:true });

    });




  // submenu overlay
  $(document).ready(function() {

    $("#menu li.sub").mouseenter(function() {

      $('#overlay').fadeIn('fast');

    }).mouseleave(function(){

       $('#overlay').fadeOut('fast');

    });

  });



  // gallery tooltip
  $(document).ready(function() {

    $(".gallery .helper").mouseenter(function() {

      $(this).css('z-index', '555');
      $(this).find(".help").show();

    }).mouseleave(function(){

       $(this).css('z-index', '1');
       $(this).find(".help").hide();

    });

  });


  
  $(document).ready(function() {
  
    var debug = false;

    if(debug){

      $(".draggDebug").show();

      $(".gallery .helper").draggable({

      // Find original position of dragged image.
      start: function(event, ui) {

          $(this).find(".help").hide(); //schovame titulek vyskakujici

          var Startpos = $(this).position();// Show start dragged position of image.
          $("div#start").text("START: \nLeft: "+ Startpos.left + "\nTop: " + Startpos.top);
      },

      // Find position where image is dropped.
      stop: function(event, ui) {

          var Stoppos = $(this).position();// Show dropped position.
          $("div#stop").text("STOP: \nLeft: "+ Stoppos.left + "\nTop: " + Stoppos.top);
      }

    });


    }


  });
  


