$(document).ready(function () {

  newsLetterChange = 0;
  newsLetterValue = $("#search").val();
  
  $("#search").focus(function(){
    if(newsLetterChange == 0){
      $(this).val("");  
    };
  });
  
  $("#search").change(function () {
    newsLetterChange = 1;
  });
  
  $('#search').blur(function() {
    if(newsLetterChange == 0){
      $(this).val(newsLetterValue);  
    };
    if($(this).val() == ""){
      $(this).val(newsLetterValue);
      newsLetterChange = 0;  
    };
  });
  
  /* $(".inputSearch").change(function() {
    selected = $(this).val();
    $("#hodnota").text(selected); 
  }); */
  
  $(".submitSearch").click(function() {
    selected1 = $(".inputSearch1").val();
    selected2 = $(".inputSearch2").val();
    selected3 = $(".inputSearch3").val();
    selected4 = $(".inputSearch4").val();
    selected = selected1 + " " + selected2 + " " + selected3 + " " + selected4;
    
    // $("#hodnota").text(selected);
    $("#query").val(selected);
    
    // return false;
    
  });
  
});

$(document).ready(function() {		
    $('#homebanner-cont ul').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
});


/* JQUERY LIGHTBOX 

$(function() {
        $('#gallery a').lightBox({fixedNavigation:true});
});

 */





