


/*ddsmoothmenu.init({
	mainmenuid: "smoothmenu2", //Menu DIV id
	orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
	//customtheme: ["#804000", "#482400"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
});*/



// JavaScript Document
	$(document).ready( function(){
		$("#dotazek").fancybox({ajax : {
		    type	: "GET"
		}
	});
	
		
		 
$('#hledej').click(function () {
				if($(this).val() == 'Zadejte text...'){
					$(this).val("");
				}
		});
$('#hledej').blur(function () {
				if($(this).val() == ''){
					$(this).val("Zadejte text...");
				}
		});
$('#formul').submit(function () {
				if($('#hledej').val() != 'Zadejte text...')
				window.location.href='http://www.fire-design.cz/hledej/' + $('#hledej').val() + '/';
				return false;
		});
		
	var celk = $('#cen').text();
	
	var ce = Number(celk) + Number($("#doprava option:selected").attr("title"));		   
	$('#cen').text(ce.toFixed(0));
	
	$('#doprava').change(function () {
						var ce = Number(celk) + Number($("#doprava option:selected").attr("title"));		   
				$('#cen').text(ce.toFixed(0));
	});	
	$('input[name=SD]').click(function () {
			if ($("input[name=SD]").is(":checked"))
			{
				$("#prijem").hide("slow");
			}
			else
			{
				$("#prijem").show("slow");
			}
	});	
	
	$('input[name=K_TELEFON]').mask("+999999999999");
	$('input[name=TELEFON]').mask("+999999999999");
	$('input[name=K_PSC]').mask("99999");
	$('input[name=PSC]').mask("99999");
	
	
	$('.hl').hover(function () {
		//alert("fff");
		ob = $(this).attr("rel");
		$(".hlavicka").css("background","url(./images/"+ ob +") no-repeat right");
		});


	
								
								
			$('input[name=FIRM]').click(function () {
			if($(this).val()=="1")
			{
				$("#titul").html("Název firmy: <span class=\"red big\">*</span>");
				$("#ic").html("IČ: <span class=\"red big\">*</span>");
				$("#dic").html("DIČ:");
			}
			else
			{
				$("#titul").html("Titul: ");
				$("#ic").html("Jméno: <span class=\"red big\">*</span>");
				$("#dic").html("Příjmení: <span class=\"red big\">*</span>");
			}
			
			});	
			
			
			$('input[name=K_FIRM]').click(function () {
			if($(this).val()=="1")
			{
				$("#titul").html("Název firmy: <span class=\"red big\">*</span>");
				$("#ic").html("IČ: <span class=\"red big\">*</span>");
				$("#dic").html("DIČ:");
			}
			else
			{
				$("#titul").html("Titul: ");
				$("#ic").html("Jméno: <span class=\"red big\">*</span>");
				$("#dic").html("Příjmení: <span class=\"red big\">*</span>");
			}
			
			});	
			
			
			
		$('.skryj').hide();
		$('.zobr').click(function () {		
				 if($('.zobr').html()=="Zobrazit více parametrů")
				 {
					 $('.skryj').show();
				  $('.zobr').html("Skrýt parametry");
				 }
				  else
				{
				  $('.zobr').html("Zobrazit více parametrů");
				  $('.skryj').hide();
				}
				
				return false;
		});

	
	
	/*$("#dotazek").fancybox({
		'width'				: '50%',
		'height'			: '100%',
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
	});*/
	
	
	

	
	
					   
							   
} ); 


	

  
   
