function gt(i)
{
  var a = document.getElementById(i)
  return a
}
function l(Obj, N)
{
  if (N == 1) {
    Obj.style.backgroundImage = 'url("./img/r.gif")'
  } else {
    Obj.style.backgroundImage = 'url("./img/q.gif")'
  }
}
function showBio(I)
{
  gt(I).style.display = 'block'
}
function showIns(ID)
{
  gt('violins').style.display = 'none'
  gt('violoncellos').style.display = 'none'
  gt('early').style.display = 'none'
  gt(ID).style.display = 'block'
}
function ins(N)
{
  gt('prArea').style.display = 'block'
  gt('preview').src = './img/workshop/b_' + N + '.jpg'
}
function showGal(N)
{
  gt('g' + N).style.display = 'block'
}
function goTo(N, G)
{
  switch (G) {
  case (1):
    var C = 6
    break
  }
  for (var i = C; i > 0; i--) {
    gt('g' + G + 'd' + i).style.display = 'none'
  }
  gt('g' + G + 'd' + N).style.display = 'block'
}
function closeX(ID)
{
  gt(ID).style.display = 'none'
}





function show(watch, hl)
{
  gt('video').style.display = 'block'
  if (hl == 'ru') {
    gt('vid2').innerHTML = '<p>Загрузка...</p><img src="./img/loading.gif" alt="" /><br/><p>Не загружается видео? Нажмите <a href="showYouTube.php?watch=' + watch + '&hl=' + hl + '&mode=html" target="_blank" onclick="closeVideo()">здесь</a>, чтобы посмотреть его в отдельном окне.<br/>Или используйте полностью совместимый браузер.</p>'
  }
  if (hl == 'en') {
    gt('vid2').innerHTML = '<p>Loading...</p><img src="./img/loading.gif" alt="" /><br/><p>Video not loaded? Click <a href="showYouTube.php?watch=' + watch + '&hl=' + hl + '&mode=html" target="_blank" onclick="closeVideo()">here</a> to play this video in new window.<br/>Or use an compatible browser.</p>'
  }
  var xmlhttp = null
  if (document.all) {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP")
  } else if (XMLHttpRequest) {
    xmlhttp = new XMLHttpRequest()
  }
  if (xmlhttp) {
    var addr = "showYouTube.php?watch=" + watch + "&hl=" + hl
    xmlhttp.open("GET", addr, true)
    xmlhttp.onreadystatechange = function()
    {
      if (xmlhttp.readyState == 4) {
        gt('vid2').innerHTML = xmlhttp.responseText
      }
    }
    xmlhttp.send()
  }

}
function closeVideo()
{
  gt('video').style.display = 'none'
  gt('vid2').innerHTML = ''
}
function subscribe()
{
  var email = prompt('Пожалуйста, укажите Ваш e-mail', '')
  if (email != null) {
      document.sub.email.value = email
      document.sub.submit()
  }
}