jQuery.noConflict();
jQuery(document).ready(function($){


  // clear input when focus
  var clearInputs = $('input#search-text');
  clearInputs.blur(function() {
  if($(this).attr('value') == '') {
      $(this).attr('value',$(this).attr('alt'));
    }
  });
  clearInputs.focus(function() {
    if($(this).attr('value') == $(this).attr('alt')) {
      $(this).removeAttr('value');
    }
  });


  // set equal height for product boxes
  if($(".boxes")) {
    boxesHeight = $(".boxes").height() - $(".box h2").height() - $(".box img").height() - 40 + "px";
    $(".box-body").css("height",boxesHeight);
  }


  // hover for drop down menu
  $("ul.submenu li").hover(function() {
    $(this).find("div").fadeIn(100);
  }, function() {
    $(this).find("div").fadeOut(100);
  });


  $("ul.sitemap > li:has(ul), ul.sitemap > li ul > li:has(ul)").addClass("open");


  // fix map for ie
/*
  if($.browser.msie == true && $.browser.version == '6.0') {
    $(".mapa li.praha").css("z-index","2000");
    $(".mapa li").hover(function() {
      $(this).css("z-index","1000");
    },function(){
      $(this).css("z-index","100");
      $(".mapa li.praha").css("z-index","2000");
    });
  }
*/
});
