



var timer, i, menuId;

var dom = document.getElementById ? true : false;
var ie4 = ((document.all) && (!dom)) ? true : false;
var ns4 = document.layers ? true : false;
var opera = navigator.userAgent.indexOf('Opera') != -1 ? true : false;
var dhtml = dom ? true : ie4 ? true : ns4 ? true : false;

if (dhtml) document.write ('<style type="text/css">#scriptSupport {display: none;} #menuHolder {position: relative; visibility: hidden; z-index: 1;} #hiddenMenu1, #hiddenMenu2, #hiddenMenu3, #hiddenMenu4, #hiddenMenu5, #hiddenMenu6 {position: absolute; visibility: hidden;} #visibleMenu1 {position: absolute; left: 20px; top: 0px;} #visibleMenu2 {position: absolute; left: 90px; top: 0px;} #visibleMenu3 {position: absolute; left: 180px; top: 0px;} #visibleMenu4 {position: absolute; left: 300px; top: 0px;} #visibleMenu5 {position: absolute; left: 370px; top: 0px;} #visibleMenu6 {position: absolute; left: 465px; top: 0px;} #visibleMenu7 {position: absolute; left: 570px; top: 0px;} #visibleMenu8 {position: absolute; left: 635px; top: 0px;} #visibleMenu9 {position: absolute; left: 690px; top: 0px;} #hiddenMenu1 {left: 15px; top: 25px;} #hiddenMenu2 {left: 90px; top: 25px;} #hiddenMenu3 {left: 180px; top: 25px;} #hiddenMenu4 {left: 300px; top: 25px;} #hiddenMenu5 {left: 370px; top: 25px;} #hiddenMenu6 {left: 465px; top: 25px;} #hiddenMenu7 {left: 570px; top: 25px;} #hiddenMenu8 {left: 635px; top: 25px;} #hiddenMenu9 {left: 690px; top: 25px;}</style>');

function setVisibility(element,newVisibility)
{ 
  if (dhtml)
  {
    if (dom) document.getElementById(element).style.visibility = newVisibility;
    else if (ie4) document.all[element].style.visibility = newVisibility;
    else if (ns4) eval('document.' + element + '.visibility = newVisibility');
  }
}

function menu()
{
  if (dhtml)
  {
    if (opera) for (i = 1; i <= 9; i++) document.getElementById('hiddenMenu' + i).style.top = 20;
    if (ie4) for (i = 1; i <= 9; i++) document.all['hiddenMenu' + i].style.top = 18;
    setVisibility('menuHolder','visible');
  }
}

function showMenu(id)
{
  if (dhtml)
  {
    clearTimeout(timer);
    for (i = 1; i <= 9; i++) if (i != id) setVisibility((ns4 ? 'menuHolder.document.' : '') + 'hiddenMenu' + i,'hidden');
    setVisibility((ns4 ? 'menuHolder.document.' : '') + 'hiddenMenu' + id,'visible');
  }
}

function hideMenu(id)
{
  if (dhtml)
  {
    menuId = (ns4 ? 'menuHolder.document.' : '') + 'hiddenMenu' + id;
    timer = setTimeout("setVisibility(menuId,'hidden')",300);
  }
}

function dontHideMenu()
{
  if (dhtml) clearTimeout(timer);
}

function Pozadi(){
var volajici = parent.location;
volajici = volajici+'';
if (volajici.indexOf("koncerty")>-1) document.body.background="img/w4_480x300.jpg";
if (volajici.indexOf("nahravky")>-1) document.body.background="img/w5_480x300.jpg";
}



function WinOpen1(obr1,txt) {
msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no,resizable=no,scrollbars=no,fullscreen=yes,replace");
msg.document.clear();
msg.document.write('<HTML><HEAD><TITLE>SGP</TITLE>');
msg.document.write('<meta http-equiv="Content-Type" content="text/html;charset=windows-1250"> <meta name="description" content="Schola Gregoriana Pragensis"><meta name="keywords" content="music, Czech Republic, Praha, Prague, Bohemia, Ceska republika, concerts, recordings, contemporary music, czech composers, classical music"><meta name="resource-type" content="document"><meta name="robots" content="INDEX,FOLLOW">');
msg.document.write('</head>');
msg.document.write("<BODY bgcolor='#456630' background='img/w8_480x300light.jpg'><center><table width=100% height=100%><tr><td align='center' valign='middle'>");
msg.document.write("<div title='Click = close window'><a href='#' OnClick='window.close();'><img src='");
msg.document.write(obr1);
msg.document.write("' border=0 alt='Click = Close window'");
msg.document.write(" style='border-width: medium; border-color: silver; border-style: double;'></a><br>&nbsp;<br><font face='Garamond, Times New Roman' size='+1' color='white'>");
msg.document.write(txt);
msg.document.write("</font></div></td></tr></table>");
msg.document.write('</center>')
msg.document.write("</font></BODY></HTML>");
msg.document.close(); } 
