

		//open menu with given ID 
		function openMenu(menuID,linkObj)
		{
		
			//if the menu code is ready
			if(um.ready)
			{
			
			linkObj.style.backgroundColor='#cccccc';
				//find co-ordinates of link object
				var coords = {
					'x' : um.getRealPosition(linkObj,'x'),
					'y' : um.getRealPosition(linkObj,'y')
					};
					
				//increase y-position to place it below the link
				coords.y += (linkObj.offsetHeight-15);
//				alert('ted')
				//activate menu at returned co-ordinates
				um.activateMenu(menuID, coords.x + 120+ 'px', coords.y + 'px');
			}
		}
		
		//close menu with given ID
		function closeMenu(menuID,linkObj)
		{
			//if the menu code is ready
			if(um.ready)
			{
			//linkObj.style.backgroundColor='';
				//deactive menu
				um.deactivateMenu(menuID);
			}
		}

		
		
		//open menu with given ID 
		function openMenu1(menuID,linkObj)
		{
			//if the menu code is ready
			if(um.ready)
			{
				//find co-ordinates of link object
				var coords = {
					'x' : um.getRealPosition(linkObj,'x'),
					'y' : um.getRealPosition(linkObj,'y')
					};
					
				//increase y-position to place it below the link
				coords.y += (linkObj.offsetHeight-70);
				
				//activate menu at returned co-ordinates
				um.activateMenu(menuID, coords.x + 'px', coords.y  + 'px');
			}
		}
		
		//close menu with given ID
		function closeMenu1(menuID)
		{
			//if the menu code is ready
			if(um.ready)
			{
				//deactive menu
				um.deactivateMenu(menuID);
			}
		}

		
	function changeColor(prvek,barva){

	prvek.style.color=barva;
	}

	
//funkce pro kontrolu mailu v newslettru
function ValidateNews(){
var odeslat;
string=document.newsletter.email.value
if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) { 
	 		odeslat=true;}
  		else {
  			alert('Špatný formát emailové adresy.\r\nProsím zkontrolujte, zda jste ji zadali správně.\r\n');
  			document.newsletter.email.select();
  		 document.newsletter.email.focus();
  			odeslat=false;
				return 
  		}

if (odeslat){
	 document.newsletter.submit();
 }
}