// JavaScript Document
	var itemfocus = new Array();

	function ramecek(id)
	{
		element = document.getElementById(id);
		
		element.style.borderWidth = '1px';
		element.style.borderStyle = 'solid';
		element.style.borderColor = '#598DBD';
		element.style.background = '#F4F8FB';
		element.style.margin = '1px';
		
		itemfocus[id] = true;
	}
	
	function ramecekblur(id)
	{
		itemfocus[id] = false;
		ramecekout(id);	
	}
	

	function ramecekover(id)
	{
		if(!itemfocus[id])
		{
			element = document.getElementById(id);
			
			element.style.borderWidth = '2px';
			element.style.borderStyle = 'solid';
			element.style.borderColor = '#91ADCE';
			element.style.margin = '0px';
			element.style.background= 'transparent url(/img/input-back.jpg) repeat-x scroll left top';
		}
	}
	
	function ramecekout(id)
	{
		if(!itemfocus[id])
		{
			element = document.getElementById(id);
			
			element.style.background= 'transparent url(/img/input-back.jpg) repeat-x scroll left top';
			element.style.borderWidth = '1px';
			element.style.borderStyle = 'solid';
			element.style.borderColor = '#9E9D9D';
			element.style.margin = '1px';
		}
	}

// enabled a disabled buttonu
function check(name)
{
	checbox = document.forms['contactForm'][name];
	elementes = document.forms['contactForm']['ODESLAT'];
	text_element = document.getElementById('text-souhlas-upozorneni');
	text_element_odeslat = document.getElementById('text-souhlas-upozorneni-odeslani');
	
	if (checbox.checked) {
		document.forms['contactForm']['ODESLAT'].disabled='';
		elementes.style.color = '#ffffff';
		text_element.style.display = 'none';
		text_element_odeslat.style.display = 'block';
	}
	else {
		
		document.forms['contactForm']['ODESLAT'].disabled='disabled';
		elementes.style.color = '#aaaaaa';
		text_element.style.display = 'block';
		text_element_odeslat.style.display = 'none';
	}
	
}
	
// souhlas
function showhideDiv(helpID, showIn)
{
	if (document.getElementById)
	{
		winHelp = document.getElementById(helpID);
	}
	else if (document.all)
	{
		winHelp = document.all[helpID];
	} else if (document.layers)
	{
		winHelp = document.layers[helpID];
	}
	
	if (winHelp.style.display == "none")
	{
		winHelp.style.display = "block";
	} 
	else
	{
		winHelp.style.display = "none";
		
	}
	
	if (!showIn)
	{
		winHelp.style.display = "none";		
	}
}

// IEbug fix - menu disappear behind select (IE 6)
function menuFix(){
    $(document).ready(function(){
      $("ul.mainmenu").bind("mouseenter mouseleave", function(){
            $('#search-form-HP').toggleClass('search-form-HP');
        });
    });
}