var isMSIE//@cc_on=1    

function vypisEmail(){
  phrase1 = document.getElementById("oKapele").className;
  phrase2="centrum";
  domain = "@"+phrase2+".cz";
  kontaktMain = "<a href='mailto:"+phrase1+domain+"' title='pošlete nám maila'>"+phrase1+domain+"</a>";
  document.getElementById("kontaktGlobal").innerHTML=kontaktMain;
}

function goBack(){
  obsah = document.getElementById("content");
  obsah.innerHTML += "<span id='zpetneTlacitko' onclick='self.history.back();'>Zpět<span></span></span>"
}

function hideTouringTest(testId){
  hide = document.getElementById(testId);
  hide.style.display="none";
}

function SB_addCSS(SB_stylesheetURL)
  {
  var stylesheetID = 'SB_stylesheet';
  if (!document.getElementById(stylesheetID))
    {
    var heads = document.getElementsByTagName('head');
    var cssNodeShapes = document.createElement('link');
    heads[0].appendChild(cssNodeShapes);
    cssNodeShapes.type = 'text/css';
    cssNodeShapes.rel = 'stylesheet';
    cssNodeShapes.media = 'screen';
    cssNodeShapes.id = stylesheetID;
    cssNodeShapes.href = SB_stylesheetURL;
    // Corects error in MSIE, which stops computing some styles onresize
    // so the styles must be redefined for it by runing this function again
    if (isMSIE) /* HACK for MSIE */
        {
        var newOnresize = SB_addCSS;
        if (currentOnresize = window.onresize) newOnresize = function (){currentOnresize(); BB_addCSS()};
        window.onresize = newOnresize;
        }
    }
  
  // Redefine HREF of our CSS, but do not create another Element.
  // Useful for MSIE, to repair incorect rendering after window resizing.
  else
    {
    document.getElementById(stylesheetID).href=SB_stylesheetURL;
    }
  }

// Adds parameter for lightbox to view all images on page in one "slideshow"
function addPrevNext()
	{
	allAs = document.getElementsByTagName("a");
	for (i=0; i<allAs.length; i++)
		{
		if (allAs[i].rel=="lightbox")
			{
			allAs[i].rel="lightbox[thispage]";
// // 			/* allAs[i].innerHTML += "<span onclick=\"window.open(parentNode.href);return false;\">N</span>";*/
			}
		}
	
	}



