			if (!document.getElementById && document.all) document.getElementById = document.all;
			
			function s1(ajdy)
			{
			  document.getElementById(ajdy).style.borderColor = "#C21319";
			  document.getElementById(ajdy).style.backgroundColor = "#E8E8E8";
			  document.getElementById(ajdy+'-x').style.backgroundImage = "url('img/"+ajdy+"-active.jpg')";
			}
			function s2(ajdy)
			{
			  document.getElementById(ajdy).style.borderColor = "#C7C3C3";
			  document.getElementById(ajdy).style.backgroundColor = "#fff";
			  document.getElementById(ajdy+'-x').style.backgroundImage = "url('img/"+ajdy+".jpg')";
			}
			function s3(ajdy)
			{
			  document.getElementById(ajdy).style.borderColor = "#C21319";
			  document.getElementById(ajdy).style.backgroundColor = "#D3E0F1";
			  document.getElementById(ajdy+'-x').style.backgroundImage = "url('img/"+ajdy+"-active.jpg')";
			}
			function s4(ajdy)
			{
			  document.getElementById(ajdy).style.borderColor = "#B3C4DB";
			  document.getElementById(ajdy).style.backgroundColor = "#F4F8FE";
			  document.getElementById(ajdy+'-x').style.backgroundImage = "url('img/"+ajdy+".jpg')";
			}
			function sx(ajdy)
			{
			  document.location = ajdy + ".php?s=" + ajdy;
			}

			function s1en(ajdy)
			{
			  document.getElementById(ajdy).style.borderColor = "#C21319";
			  document.getElementById(ajdy).style.backgroundColor = "#E8E8E8";
			  document.getElementById(ajdy+'-x').style.backgroundImage = "url('img/"+ajdy+"-active.jpg')";
			}
			function s2en(ajdy)
			{
			  document.getElementById(ajdy).style.borderColor = "#C7C3C3";
			  document.getElementById(ajdy).style.backgroundColor = "#fff";
			  document.getElementById(ajdy+'-x').style.backgroundImage = "url('img/"+ajdy+".jpg')";
			}
			function s3en(ajdy)
			{
			  document.getElementById(ajdy).style.borderColor = "#C21319";
			  document.getElementById(ajdy).style.backgroundColor = "#D3E0F1";
			  document.getElementById(ajdy+'-x').style.backgroundImage = "url('img/"+ajdy+"-active.jpg')";
			}
			function s4en(ajdy)
			{
			  document.getElementById(ajdy).style.borderColor = "#B3C4DB";
			  document.getElementById(ajdy).style.backgroundColor = "#F4F8FE";
			  document.getElementById(ajdy+'-x').style.backgroundImage = "url('img/"+ajdy+".jpg')";
			}
			function sxen(ajdy)
			{
			  document.location = ajdy + "-en.php?s=" + ajdy;
			}

			
// plovouci help
var IE = false;

if(document.all) IE = true;var left = 0;

var top = 0;
var item = 0;

function moveHelp(e) {
	if (IE) { // grab the x-y pos.s if browser is IE
		left = event.clientX + document.body.scrollLeft + 12;
		top = event.clientY + document.body.scrollTop + 15;
	} else {
		left = e.pageX + 12;
		top = e.pageY + 15;
	}
	
	if (left + 252 > document.body.clientWidth) {
		//alert(document.body.clientWidth);
		x = (left + 252) - document.body.clientWidth;
		left = left - x;
	}
	
	if (left < 0){left = 0;}
	if (top < 0){top = 0;} 
	document.getElementById('help_m_1').style.top = top;
	document.getElementById('help_m_1').style.left = left;
	document.getElementById('help_m_2').style.top = top;
	document.getElementById('help_m_2').style.left = left;
	document.getElementById('help_m_3').style.top = top;
	document.getElementById('help_m_3').style.left = left;
	document.getElementById('help_m_4').style.top = top;
	document.getElementById('help_m_4').style.left = left;
	document.getElementById('help_m_5').style.top = top;
	document.getElementById('help_m_5').style.left = left;
	document.getElementById('help_m_6').style.top = top;
	document.getElementById('help_m_6').style.left = left;
	document.getElementById('help_m_7').style.top = top;
	document.getElementById('help_m_7').style.left = left;
	document.getElementById('help_m_8').style.top = top;
	document.getElementById('help_m_8').style.left = left;
	document.getElementById('help_m_9').style.top = top;
	document.getElementById('help_m_9').style.left = left;
	zobraz = true;
	return zobraz;
}
function showHelp(item) {
	var zobraz = false;
	if (zobraz=true) {
		//document.onmousemove = moveHelp;
		document.getElementById('help_'+item).style.display = 'block';
	}
}
function hideHelp(item) {	
	document.getElementById('help_'+item).style.display = 'none';
}