$(document).ready(function(){

		// create graphic logo clickable with the same target as the link beneath 
		$("h1").each(function(){
				var logourl = $(this).children("a").attr("href");
				$(this).click(function(){document.location.href = logourl;});
				$(this).css("cursor","pointer");
		});
		
		// make the homepage bottom boxes all clickable, gathering the target from the "vice" regular link
		$("#promoboxes .promo p br + a").each(function(){
				var url = $(this).attr("href");
				$(this).parents(".promo").click(function(){
						document.location.href = url; 
				});
				$(this).parents(".promo").hover(function(){
						$(this).addClass("hover"); 
				},function(){
						$(this).removeClass("hover"); 
				});
				$(this).parents(".promo").css("cursor","pointer");
		});
		
		// make the subpage bottom boxes all clickable, gathering the target from the "pokracovat" regular link
		$("#subselector .segment p br + a").each(function(){
				var url = $(this).attr("href");
				$(this).parents(".segment").click(function(){
						document.location.href = url; 
				});
				$(this).parents(".segment").hover(function(){
						$(this).addClass("hover"); 
				},function(){
						$(this).removeClass("hover"); 
				});
				$(this).parents(".segment").css("cursor","pointer");
		});
		
});
