$(document).ready(function(){
	$("#s").focus(function(){
		var text = $(this).val();
		$(this).attr("title",text);
		$(this).val("");
	});
	$("#s").blur(function(){
		var text = $(this).attr("title");
		var value = $(this).val();
		if (value == "")
		{
			$(this).val(text);
			$(this).attr("title","");
		}
	});
	
	$("a").filter(function() {
		return this.hostname && this.hostname !== location.hostname;
	}).addClass('external');

});

function showText(id,link)
{
	var el = document.getElementById(id);
	var a = document.getElementById(link);
	if (el.style.display == "none")
	{
		el.style.display = "block";
		a.innerHTML = "skrýt text";
	}
	else
	{
		el.style.display = "none";
		a.innerHTML = "zobrazit text";
	}
}
