function initCopyright()
{
  if (document.getElementById('header_left_copyright'))
  {
    document.getElementById('header_left_copyright').onmouseover = showCopyhint;
    document.getElementById('header_left_copyright').onmouseout = hideCopyhint;
  }
}

function showCopyhint()
{
  var epifee = document.getElementById('header_left').getElementsByTagName('img')[0];
  var copyright = document.getElementById('header_left_copyright').getElementsByTagName('p')[0]

  copyright.style.visibility = 'visible';
  epifee.style.visibility = 'hidden';
}

function hideCopyhint()
{
  var epifee = document.getElementById('header_left').getElementsByTagName('img')[0];
  var copyright = document.getElementById('header_left_copyright').getElementsByTagName('p')[0]

  epifee.style.visibility = 'visible';
  copyright.style.visibility = 'hidden';
}

function imgSelect(id)
{
  var img = document.getElementById(id);
  img.className = 'hoveredboxed';
}

function imgUnselect(id)
{
  var img = document.getElementById(id);
  img.className = 'boxed';
}

function showPulslichtImage(file)
{
  var pathname = '../images/vb/';
  var filename = pathname.concat(file);
  
  showFullImage(filename);
}

function showLaserImage(file)
{
  var pathname = '../images/vb/';
  var filename = pathname.concat(file);
  
  showFullImage(filename);
}

function showNadelImage(file)
{
  var pathname = '../images/vb/';
  var filename = pathname.concat(file);
  
  showFullImage(filename);
}

function showImage(file)
{
  var pathname = 'images/vb/';
  var filename = pathname.concat(file);
  
  showFullImage(filename);
}

function showFullImage(filename)
{
  var posx = ((screen.availWidth) - 650) / 2;
  var posy = ((screen.availHeight) - 650) / 2;

  if (posx < 1) {posx = 1;}
  if (posy < 1) {posy = 1;}

  posx = Math.floor(posx);
  posy = Math.floor(posy);

  var fenster = window.open('', 'MSC', 'width=650,height=650,left='+posx+',top='+posy+',location=no,menubar=no,resizeable=no,scrollbars=no,status=no,toolbar=no,hotkeys=no,dependent=yes');
  fenster.document.open();

  with (fenster.document)
  {
    write('<html><head><title>Copyright Epilationsstudio Marla Schnee</title><meta http-equiv="imagetoolbar" content="no"></head><body bgcolor="#49487a" onblur="window.close()" onclick="window.close()">');
    write('<table width="100%" height="100%"><tr><td align="center" valign="middle"><img style="border-style: solid; border-width: 2px; border-color: #2f2a58;" src="',filename,'" border="0" alt=""></td></tr></table></body></html>');
  }

  fenster.document.close();
}
