


$(function(){
	$("#detail-lista a").click(function(){
		
		$(".cont-div").hide();
		
		$("#detail-lista li.aktivni a").html( $("#detail-lista li.aktivni strong").html() );
		$("#detail-lista li").removeClass("aktivni");
		$(this).closest("li").addClass("aktivni");
		$(this).html( "<strong>"+ $(this).html() +"</strong>" );

		var id = $(this).attr("href");
		id = id.substring(1,id.length);
		
		$("#"+id).show();
		
		return false;
	});
});


/*
$(function(){
	$("#detail-lista a").click(function(){
		
		$(".cont-div").hide();
		
		$("#detail-lista li").removeClass("aktivni");
		$(this).closest("li").addClass("aktivni");

		var id = $(this).attr("href");
		id = id.substring(1,id.length);
		
		$("#"+id).show();
		
		return false;
	});
});
*/




/*
	Sranda s kosikem...
	MO...
*/
$(document).ready(function(){
	if(!$("#vdop8").hasClass("volbadopravyvybrana"))
		{
		var label = $("#vdop8").find("label");
		var text = label.text();
		text = text.replace(" - platba","&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- platba")
		label.html( text );
		}
		
	if(!$("#vdop4").hasClass("volbadopravyvybrana"))
		{
		$("#vdop4").css("margin-left","162px");
		var label = $("#vdop4").find("label");
		var text = label.text();
		text = text.replace("Osobní odběr v Brně ","");
		label.text( text );
		}

	if(!$("#vdop7").hasClass("volbadopravyvybrana"))
		{
		$("#vdop7").css("margin-left","162px");
		var label = $("#vdop7").find("label");
		var text = label.text();
		text = text.replace("Osobní odběr v Olomouci ","");
		label.html( text );
		}
});



/*
	Sranda s kosikem...
	VO...
*/



$(document).ready(function(){
	if($("#vdop10").length)
		{
		$("#vdop10").before("<h3 class=\"vdoprave\">Platba při zaslání</h3>");
		$("#vdop12").before("<h3 class=\"vdoprave\">Platba při vlastním odběru</h3>");		
		}


		var label = $("#vdop10").find("label");
		var text = label.text();
		text = text.replace("Platba při zaslání - ","");
		label.html( text );

		var label = $("#vdop11").find("label");
		var text = label.text();
		text = text.replace("Platba při zaslání - ","");
		label.html( text );

		var label = $("#vdop12").find("label");
		var text = label.text();
		text = text.replace("Platba při vlastním odběru - ","");
		label.html( text );

		var label = $("#vdop13").find("label");
		var text = label.text();
		text = text.replace("Platba při vlastním odběru - ","");
		label.html( text );
})











