$(document).ready(function(){
    $('.cover').animate({top:'90px'},{queue:false,duration:1});
	//Caption Sliding (Partially Hidden to Visible)
	$('.boxgrid.caption').hover(function(){
		$(".cover", this).stop().animate({top:'80px'},{queue:false,duration:160});
	}, function() {
		$(".cover", this).stop().animate({top:'90px'},{queue:false,duration:160});
	});
});

    var TextMessage = 'Zde zadejte Váš dotaz ...';
function SetMsg (txt, active) {
    if (txt == null) return;

    if (active) {
        if (txt.value == TextMessage) txt.value = '';
    } else {
        if (txt.value == '') txt.value = TextMessage;
    }
}
         Galleria.loadTheme('/js/themes/classic/galleria.classic.min.js');
          $("#gallery").galleria({
              width: 592,
              height: 380
          });
          $('.input_tip').tipsy();

          $(".error").slideDown(1000);
          $(".warning").slideDown(1000);
          $(".error").click(function () {
      $(this).slideUp();
    });
                    $(".warning").click(function () {
      $(this).slideUp();
    });

    	$("a[rel='example1']").colorbox();
      $(".error").slideDown(1000);



  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-26564291-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

