$(document).ready(function() {
  //********** preload css images **********
  
  //********** bo menu top **********
  function megaHoverOver(){
    $(this).find(".hmDropDown").stop().fadeTo(1, 1).show();
    //Calculate width of all ul's is not used here
    (jQuery);
  }
  function megaHoverOut(){
    $(this).find(".hmDropDown").stop().fadeTo(0, 0, function() {
      $(this).hide();
    });
  }
  var config = {
    sensitivity: 530, // number = sensitivity threshold (must be 1 or higher)
    interval: 0, // number = milliseconds for onMouseOver polling interval
    over: megaHoverOver, // function = onMouseOver callback (REQUIRED)
    timeout: 0, // number = milliseconds delay before onMouseOut
    out: megaHoverOut // function = onMouseOut callback (REQUIRED)
  };
  $("ul#hmenu li .hmDropDown").css({'opacity':0.5});
  $("ul#hmenu li").hoverIntent(config);
  //********** eo menu top **********

  //********** bo menu bottom **********
  $("ul#hmenuBottom").append('<li><a href="/content/e51/e8378/index_ger.html"><span>Presse</span></a></li><li><a href="/content/e51/e119/index_ger.html"><span>Impressum</span></a></li>')
  //********** eo menu bottom **********

  //********** bo synch Height **********
  //var mCol = '#wrapper'; // for each ContainerWrapper
  //var mCol_element  = '> #flow,.aside,.aside'; // .mainCol-Element from ContainerWrapper
  //$($(mCol )).each(function() {
  //  var el = $(this).find(mCol_element);
  //  el.syncHeight();
  //  $(window).resize(function(){
  //    el.syncHeight();
  //  });
  //});
  //********** eo synch Height **********
}); //eo document ready 


$(function() {
  //********** specObj Lightbox **********
  $('#gallery a').lightBox();
});








