$(document).ready(function() {
 // taby v mediach
    $(function () {
            var tabContainers = $('div.tabs > div');
            tabContainers.hide().filter(':first').show();

            $('div.tabs ul.tabNavigation a').click(function () {
                    tabContainers.hide();
                    tabContainers.filter(this.hash).show();
                    $('div.tabs ul.tabNavigation a').removeClass('selected');
                    $(this).addClass('selected');
                    return false;
            }).filter(':first').click();
    });

  // suhlasi z VOP pri lyoness
   $('#lyoness_vop').click(function() {
     if ($(this).is(':checked')) {
       $('#lyoness_zaregistruj').attr('disabled', false);
     } else {
       $('#lyoness_zaregistruj').attr('disabled', true);
     }
   });

 
// ak vyberie 
$("#stat").each(function() {
     if ($(this).val()!='en') {
       $('#other-state').hide();
     }
});

$("#stat").change(function() {
     if ($(this).val()=='en') {
       $('#other-state').fadeIn(500);
     } else {
       $('#other-state').fadeOut(500);
     }
});


/*
     if ($('#stat').val()=='en') {
       $('#other-state').attr('disabled', false);
     } else {
       $('#other-state').attr('disabled', true);
     }
*/

   
  $(".loading-info").hide();
  $('.star-rating2').click(function(){
      $(".loading-info").fadeIn(500)
                        .html('Už ste hlasoval !!!')
                        .fadeOut(4000);
  });

  $(".loading-infonovote").hide();
  $('.star-rating2').click(function(){
      $(".loading-infonovote").fadeIn(500)
                              .html('Musíte sa prihlásiť !!!')
                              .fadeOut(4000);
  });

  $("#alert-message").hide();
  $('#alert-message').each( function() {
      $("#alert-message").centerInClient({ container: window, forceAbsolute: true })
             .fadeIn(800)
             .fadeOut(15000);
  });



//   $("body").snowing();

  
/*
   $('#show-hide-block').hide();

   $('#show-hide').click( function() {
      $('#show-hide-block').toggle('slow');
   });
*/
});

