// JavaScript Document


$(document).ready(function(){
 
	    //if "option.val == hlinik" show input tloustka
	   /* $('.sel option[value="hliník"]').click(function(e) {
		    $('.tl').show();
	    });
	    $('.sel option[value="plast"]').click(function(e) {
		    $('.tl').show();
	    });
	    $('.sel option[value="samolepka"]').click(function(e) {
		    $('.tl').hide();
	    });
	    $('.sel option[value="fotoluminescenční"]').click(function(e) {
		    $('.tl').hide();
	    });
	
	    $('.tl').hide();  */
	    
	    
	    $('.tl').hide();
            
         $(".sel").change(function() {

	// If the value is less than 7, add a red border
    if ($(this).val() == 'hliník' || $(this).val() == 'plast') {
        $('.tl').show();
    }
    
    
	// Else if the value is anything else, add a black border
    else {
        $('.tl').hide();
    }
    
});






	    $('.q').hide();
            
         $(".w").change(function() {

	// If the value is less than 7, add a red border
    if ($(this).val() == 'jiný') {
        $('.q').show();
    }
    
    
	// Else if the value is anything else, add a black border
    else {
        $('.q').hide();
    }
    
});


$('.b').show();
            
         $(".g").change(function() {

	// If the value is less than 7, add a red border
    if ($(this).val() == 'ano') {
        $('.b').show();
    }
    
    
	// Else if the value is anything else, add a black border
    else {
        $('.b').hide();
    }
    
});


$('.p').show();
            
         $(".o").change(function() {

	// If the value is less than 7, add a red border
    if ($(this).val() == 'ano') {
        $('.p').show();
    }
    
    
	// Else if the value is anything else, add a black border
    else {
        $('.p').hide();
    }
    
});
	    
	    
	    //============================================================
	    /*$('.mat').hide();
	    
       $('.jin option[value="křída lesk"]').click(function(e) {
		    $('.mat').hide();
	    });
	    
	    $('.jin option[value="křída mat"]').click(function(e) {
		    $('.mat').hide();
	    });
	    
	    $('.jin option[value="OFSET"]').click(function(e) {
		    $('.mat').hide();
	    });
	    
	    $('.jin option[value="novatech (karton)"]').click(function(e) {
		    $('.mat').hide();
	    });
	    
	    $('.jin option[value="strukturovaný papír"]').click(function(e) {
		    $('.mat').hide();
	    });
	    
	    $('.jin option[value="jiný"]').click(function(e) {
		    $('.mat').show();
	    });
            */
            
          $('.mat').hide();
          $('.gr').show();
            
         $(".jin").change(function() {

	// If the value is less than 7, add a red border
    if ($(this).val() == 'jiný') {
        $('.mat').show();
        $('.gr').show();
    }
    
    else if ($(this).val() == 'magnetická fólie') {
        $('.gr').hide();
        $('.mat').hide();
    }
    
	// Else if the value is anything else, add a black border
    else {
        $('.mat').hide();
        $('.gr').show();
    }
    
});



/**/
  $('.aaa').hide();
 $(".see").change(function() {

	// If the value is less than 7, add a red border
    if ($(this).val() == 'jiný') {
        $('.aaa').show();
        
    }
    
    
    
	// Else if the value is anything else, add a black border
    else {
        $('.aaa').hide();
        
    }
    
});







  
  
  });    
