// this tells jquery to run the function below once the DOM is read
$(document).ready(function() {

	// choose text for the show/hide link
	var showText="Jsme přímými dovozci obkladů, dlažeb, sanitární keramiky a koupelnového nábytku světoznámé německo – francouzské společnosti  Villeroy & Boch...více zde";
	var showText2="Baterie Hansgrohe patří díky svým přednostem...více zde";
	var showText3="Jsou to zejména plastové splachovací nádržky pro zabudování pod omítku včetně konstrukce pro...více zde";
	var showText4="Zahraniční nabídka je reprezentována především německými výrobci, tj. HÜPPE, a Villeroy &  Boch...více zde";
	var showText5="V nabídce firmy Lamer najdete široký výběr akrylátových van a sprchových...více zde";
	var showText6="Komfort při sprchování ucosanVám zajistí sprchové panely a altány Pharo...více zde";
	var showText7="Naše prodejna nabízí pouze  velmi kvalitní  koupelnové doplňky, a to jak...více zde";
	var showText8="zobrazit realizace";
	var showText9="Představte si spa lázně navržené právě pro Vás...více zde";
	var showText10="Představte si sauny, které se perfektně přizpůsobí Vašemu domovu i životnímu stylu...více zde";
	var showText11="Veškeré dlažby Villeroy & Boch mají oproti konkurenci vždy něco navíc...více zde";
	var showText12="Všichni výše uvedení, převážně němečtí, výrobci (tj. Villeroy & Boch, Hansgrohe, GEBERIT, Huppe, KEUCO, atd.)  jsou schopni v rámci konkrétních staveb a projektů nabídnout investorovi...více zde";
	var hideText2="skrýt realizace";
	var hideText="skrýt";

	// create the toggle link
	$("#hide_this").before("<a href='#' class='toggle_link'>"+showText+"</a>");

	// hide the content
	$('#hide_this').hide();

	// capture clicks on the newly created link
	$('a.toggle_link').click(function() {		
		// change the link text
			if ($('a.toggle_link').text()==showText) {
				$('a.toggle_link').text(hideText);
			}
			else {
				$('a.toggle_link').text(showText);
			}
			
			// toggle the display
			$('#hide_this').toggle('slow');
		
			// return false so any link destination is not followed
			return false;
	});


	// create the toggle link
	$("#hide_this1").before("<a href='#' class='toggle_link2'>"+showText2+"</a>");

	// hide the content
	$('#hide_this1').hide();

	// capture clicks on the newly created link
	$('a.toggle_link2').click(function() {		
		// change the link text
			if ($('a.toggle_link2').text()==showText2) {
				$('a.toggle_link2').text(hideText);
			}
			else {
				$('a.toggle_link2').text(showText2);
			}
			
			// toggle the display
			$('#hide_this1').toggle('slow');
		
			// return false so any link destination is not followed
			return false;
	});
	
		// create the toggle link
	$("#hide_this2").before("<a href='#' class='toggle_link3'>"+showText3+"</a>");

	// hide the content
	$('#hide_this2').hide();

	// capture clicks on the newly created link
	$('a.toggle_link3').click(function() {		
		// change the link text
			if ($('a.toggle_link3').text()==showText3) {
				$('a.toggle_link3').text(hideText);
			}
			else {
				$('a.toggle_link3').text(showText3);
			}
			
			// toggle the display
			$('#hide_this2').toggle('slow');
		
			// return false so any link destination is not followed
			return false;
	});

		// create the toggle link
	$("#hide_this3").before("<a href='#' class='toggle_link4'>"+showText4+"</a>");

	// hide the content
	$('#hide_this3').hide();

	// capture clicks on the newly created link
	$('a.toggle_link4').click(function() {		
		// change the link text
			if ($('a.toggle_link4').text()==showText4) {
				$('a.toggle_link4').text(hideText);
			}
			else {
				$('a.toggle_link4').text(showText4);
			}
			
			// toggle the display
			$('#hide_this3').toggle('slow');
		
			// return false so any link destination is not followed
			return false;
	});
	
		// create the toggle link
	$("#hide_this4").before("<a href='#' class='toggle_link5'>"+showText5+"</a>");

	// hide the content
	$('#hide_this4').hide();

	// capture clicks on the newly created link
	$('a.toggle_link5').click(function() {		
		// change the link text
			if ($('a.toggle_link5').text()==showText5) {
				$('a.toggle_link5').text(hideText);
			}
			else {
				$('a.toggle_link5').text(showText5);
			}
			
			// toggle the display
			$('#hide_this4').toggle('slow');
		
			// return false so any link destination is not followed
			return false;
	});
	
			// create the toggle link
	$("#hide_this5").before("<a href='#' class='toggle_link6'>"+showText6+"</a>");

	// hide the content
	$('#hide_this5').hide();

	// capture clicks on the newly created link
	$('a.toggle_link6').click(function() {		
		// change the link text
			if ($('a.toggle_link6').text()==showText6) {
				$('a.toggle_link6').text(hideText);
			}
			else {
				$('a.toggle_link6').text(showText6);
			}
			
			// toggle the display
			$('#hide_this5').toggle('slow');
		
			// return false so any link destination is not followed
			return false;
	});


		// create the toggle link
	$("#hide_this6").before("<a href='#' class='toggle_link7'>"+showText7+"</a>");

	// hide the content
	$('#hide_this6').hide();

	// capture clicks on the newly created link
	$('a.toggle_link7').click(function() {		
		// change the link text
			if ($('a.toggle_link7').text()==showText7) {
				$('a.toggle_link7').text(hideText);
			}
			else {
				$('a.toggle_link7').text(showText7);
			}
			
			// toggle the display
			$('#hide_this6').toggle('slow');
		
			// return false so any link destination is not followed
			return false;
	});
	
	
	/*	=	=	=	=	=	=	REFERENCE	=	=	=	=	=*/
		// create the toggle link
	$("#hide_this7").before("<a href='#' class='toggle_link8'>"+showText8+"</a>");

	// hide the content
	$('#hide_this7').hide();

	// capture clicks on the newly created link
	$('a.toggle_link8').click(function() {		
		// change the link text
			if ($('a.toggle_link8').text()==showText8) {
				$('a.toggle_link8').text(hideText2);
			}
			else {
				$('a.toggle_link8').text(showText8);
			}
			
			// toggle the display
			$('#hide_this7').toggle('slow');
		
			// return false so any link destination is not followed
			return false;
	});


			// create the toggle link
	$("#hide_this8").before("<a href='#' class='toggle_link9'>"+showText8+"</a>");

	// hide the content
	$('#hide_this8').hide();

	// capture clicks on the newly created link
	$('a.toggle_link9').click(function() {		
		// change the link text
			if ($('a.toggle_link9').text()==showText8) {
				$('a.toggle_link9').text(hideText2);
			}
			else {
				$('a.toggle_link9').text(showText8);
			}
			
			// toggle the display
			$('#hide_this8').toggle('slow');
		
			// return false so any link destination is not followed
			return false;
	});

			// create the toggle link
	$("#hide_this9").before("<a href='#' class='toggle_link10'>"+showText8+"</a>");

	// hide the content
	$('#hide_this9').hide();

	// capture clicks on the newly created link
	$('a.toggle_link10').click(function() {		
		// change the link text
			if ($('a.toggle_link10').text()==showText8) {
				$('a.toggle_link10').text(hideText2);
			}
			else {
				$('a.toggle_link10').text(showText8);
			}
			
			// toggle the display
			$('#hide_this9').toggle('slow');
		
			// return false so any link destination is not followed
			return false;
	});
	
			// create the toggle link
	$("#hide_this10").before("<a href='#' class='toggle_link11'>"+showText8+"</a>");

	// hide the content
	$('#hide_this10').hide();

	// capture clicks on the newly created link
	$('a.toggle_link11').click(function() {		
		// change the link text
			if ($('a.toggle_link11').text()==showText8) {
				$('a.toggle_link11').text(hideText2);
			}
			else {
				$('a.toggle_link11').text(showText8);
			}
			
			// toggle the display
			$('#hide_this10').toggle('slow');
		
			// return false so any link destination is not followed
			return false;
	});
	
	$("#hide_this11").before("<a href='#' class='toggle_link12'>"+showText9+"</a>");

	// hide the content
	$('#hide_this11').hide();

	// capture clicks on the newly created link
	$('a.toggle_link12').click(function() {		
		// change the link text
			if ($('a.toggle_link12').text()==showText9) {
				$('a.toggle_link12').text(hideText);
			}
			else {
				$('a.toggle_link12').text(showText9);
			}
			
			// toggle the display
			$('#hide_this11').toggle('slow');
		
			// return false so any link destination is not followed
			return false;
	});
	
	$("#hide_this12").before("<a href='#' class='toggle_link13'>"+showText10+"</a>");

	// hide the content
	$('#hide_this12').hide();

	// capture clicks on the newly created link
	$('a.toggle_link13').click(function() {		
		// change the link text
			if ($('a.toggle_link13').text()==showText10) {
				$('a.toggle_link13').text(hideText);
			}
			else {
				$('a.toggle_link13').text(showText10);
			}
			
			// toggle the display
			$('#hide_this12').toggle('slow');
		
			// return false so any link destination is not followed
			return false;
	});
	
	$("#hide_this13").before("<a href='#' class='toggle_link14'>"+showText11+"</a>");

	// hide the content
	$('#hide_this13').hide();

	// capture clicks on the newly created link
	$('a.toggle_link14').click(function() {		
		// change the link text
			if ($('a.toggle_link14').text()==showText11) {
				$('a.toggle_link14').text(hideText);
			}
			else {
				$('a.toggle_link14').text(showText11);
			}
			
			// toggle the display
			$('#hide_this13').toggle('slow');
		
			// return false so any link destination is not followed
			return false;
	});
	
	$("#hide_this14").before("<a href='#' class='toggle_link15'>"+showText12+"</a>");

	// hide the content
	$('#hide_this14').hide();

	// capture clicks on the newly created link
	$('a.toggle_link15').click(function() {		
		// change the link text
			if ($('a.toggle_link15').text()==showText12) {
				$('a.toggle_link15').text(hideText);
			}
			else {
				$('a.toggle_link15').text(showText12);
			}
			
			// toggle the display
			$('#hide_this14').toggle('slow');
		
			// return false so any link destination is not followed
			return false;
	});


});

