  function newWindow(elm) { 
  if (window.open(elm.href, elm.target, '')) { 
  return true; 
  } 
  return false; 
  } 

  function newWindowResize(elm, sirka, vyska) { 
  vlastnosti = "width="+sirka+", height="+vyska+", left=0, top=50";
  if (window.open(elm.href, elm.target, vlastnosti)) { 
  return true; 
  } 
  return false; 
  } 

  function newWindowFull(elm, sirka, vyska) { 
  vlastnosti = "width="+sirka+", height="+vyska+", left=10, top=10, resizable=yes";
  if (window.open(elm.href, elm.target, vlastnosti)) { 
  return true; 
  } 
  return false; 
  } 

  function newWindowPopup(elm, sirka, vyska) { 
  vlastnosti = "width="+sirka+", height="+vyska+", left=200, top=200";
  if (window.open(elm.href, elm.target, vlastnosti)) { 
  return true; 
  } 
  return false; 
  } 

  function newWindowPrint(elm, sirka) { 
  vlastnosti = "width="+sirka+", left=0, top=0, menubar=yes, resizable=yes" ;
  if (window.open(elm.href, elm.target, vlastnosti)) { 
  return true; 
  } 
  return false; 
  } 

  function newWindowInvex(elm, sirka, vyska) { 
  vlastnosti = "width="+sirka+", height="+vyska+", left=100, top=100";
  if (window.open(elm.href, elm.target, vlastnosti)) { 
  return true; 
  } 
  return false; 
  } 

  function newWindowTutorial(elm, sirka, vyska) { 
  vlastnosti = "width="+sirka+", height="+vyska+", left=0, top=0, menubar=no, resizable=no" ;
  if (window.open(elm.href, elm.target, vlastnosti)) { 
  return true; 
  } 
  return false; 
  } 

function showPromotionWindow(sirka, vyska)
{
	if(!document.getElementById('promotionBox').visible)
	{
		document.getElementById('promotionBox').style.width = sirka;
		document.getElementById('promotionBox').style.height = vyska;
		document.getElementById('promotionBox').style.display = block;
		document.getElementById('promotionBoxClose').style.display = none;
	}
}

function hidePromotionWindow()
{
	if(!document.getElementById('promotionBox').visible)
	{
		document.getElementById('promotionBox').style.display = block;
		document.getElementById('promotionBoxClose').style.display = none;
	}
}

function ClosePopupWindows()
{
    if (document.getElementById && document.getElementById("promotion"))
    {
        document.getElementById("promotion").style.visibility = "hidden";	
    }
}

function ShowPopupWindows()
{
    if (document.getElementById && document.getElementById("promotion"))
    {
        document.getElementById("promotion").style.visibility = "visible";	
    }
}