$(function() {
	if (jQuery.browser.msie && (parseInt(jQuery.browser.version) == 6 || parseInt(jQuery.browser.version) == 7))
	$('.item .thumb, .item h2').prepend('<span class="edge"></span>');
});

$(function() {
    if (jQuery.browser.opera && (parseFloat(jQuery.browser.version) <= 10.10)) {
      $('body, html').css({
        height: 'auto',
        minHeight: '100%'
      });
    }
    
    if (!roundedBorders()) {
      $('.round').corner().css('top', '9px');
      $('#searchbox').css('top','20px');
    }

    $('.panel_tool_tip').tooltip({
	    track: true,
	    delay: 0,
	    showURL: false,
	    showBody: " - ",
	    opacity: 0.9
    });	 	
    $('.panel_tool_tip img').attr('alt','');
});


function roundedBorders() {
  var docEl = document.documentElement, s;
  if (docEl && (s = docEl.style)) {
      return typeof s.borderRadius == "string" ||
          typeof s.MozBorderRadius == "string" ||
          typeof s.WebkitBorderRadius == "string" ||
          typeof s.KhtmlBorderRadius == "string";
  }
  return null;
}


$(function() {
    if ($('.form-error').length) {
        $('.form-error a').click(function () {
             var href = $(this).attr('href');
             $(href).focus();
             return false;
         });
     }
});

	$(function(){
		if ($('#w').val() == '') {
			$('#w').val(' vyhledávání ');
		}
		$('#w').click(function(){
		    if ($(this).val() == ' vyhledávání ') {
		    	$(this).val('');
		    }
		});
	});
