var lastlayer = "";
function showlayer(str) 
{
  if(document.getElementById)
  {
    if (lastlayer != '')
    {
       hidelayer(lastlayer) ;
    }
    else 
    {
      hidelayer('contact') ;hidelayer('references') ;hidelayer('services');hidelayer('codepoetry') ;
    }
    document.getElementById(str).style.display = "block";
    lastlayer = str;
  }
}
function hidelayer(str) 
{
  if(document.getElementById)
  {
    if (str == '')
    {
      hidelayer('contact') ;hidelayer('references') ;hidelayer('services') ;hidelayer('codepoetry') ;
    }
    else
    {
      document.getElementById(str).style.display = "none";
      lastlayer = str;
    }
  }
}

function openInfoPopup(text)
{
  popupInfo = window.open('','_blank','toolbar=no,location=no,right=5,bottom=5,scrollbars=no,resizable=yes,status=no,menubar=no');
  popupInfo.focus();
  popupInfo.window.resizeTo(235,225)
  popupInfo.document.open();
  HTML = "<html><head><meta http-equiv='content-type' content='text/html; charset=ISO-8859-1'><meta http-equiv='content-language' content='de'><link href='/css/style.css' rel='stylesheet' type='text/css'><title>Glossar</title></head><body onBlur='self.close();return true;' onClick='javascript:self.close(); return true;'><div class='header-bg'><span class='header'>Glossar</span></div><div class='margin-text'><img src='/images/exclamation_mark.gif' border='0'> "+ text +"</div></body></html>";
  popupInfo.document.write(HTML);
  popupInfo.document.close();
}

function openPopup(path)
{
  popupImage = window.open('','_blank','toolbar=no,left=5,top=5,scrollbars=no,resizable=yes,status=no,menubar=no');
  popupImage.document.open();
  HTML = "<html><head><meta http-equiv='content-type' content='text/html; charset=ISO-8859-1'><meta http-equiv='content-language' content='de'><title>codepoetry.de</title></head><style>body{margin:0px;padding:4px;background-color:#FFFFFF;font-size:11px}</style><body><center><img src='"+ path +"' style='border:1px solid #94A0A6' name='load_image' onLoad='window.resizeTo(document.load_image.width+35,document.load_image.height+100);return true;'></center></body></html>";
  popupImage.document.write(HTML);
  popupImage.document.close();
}

function openPopupMap(path)
{
  var x = "'/contact/venue/map_large.gif'";
  var y = "'/contact/venue/map2_large.gif'";
  var s = "'/contact/venue/map_stop_large.gif'";
  popupImage = window.open('','_blank','toolbar=no,left=5,top=5,scrollbars=no,resizable=yes,status=no,menubar=no');
  popupImage.document.open();
  HTML = "<html><head><link href='/css/style.css' rel='stylesheet' type='text/css'><meta http-equiv='content-type' content='text/html; charset=ISO-8859-1'><meta http-equiv='content-language' content='de'><title>codepoetry.de</title></head><style>body{margin:0px 0px 0px 0px;background-color:#FFFFFF;font-size:11px}</style><body><br><center><img src='"+ path +"' style='border:1px solid #94A0A6' name='load_image' onLoad='window.resizeTo(document.load_image.width+35,document.load_image.height+120);return true;'><br><table cellpadding=0 cellspacing=0 border=0><tr><td>Von der A6:<div style=\"cursor:pointer;\" onclick=\"document.load_image.src="+x+"\"><u><b>Nochmal von vorne!</b></u></div></td><td style='padding:0px 80px'><div style=\"cursor:pointer;\" onclick=\"document.load_image.src="+s+"\"><u><b>Stop!</b></u></div><br></td><td>Von der A656:<div style=\"cursor:pointer;\" onclick=\"document.load_image.src="+y+"\"><u><b>Nochmal von vorne!</b></u></div></td></tr></table></center></body></html>";
  popupImage.document.write(HTML);
  popupImage.document.close();
}
