var _void;
var etat;

/*---------Link auf HTML-Datei scrollbar-----------*/
function openlink1(WinWidth,WinHeight,Link,WindowName)
    {
	fenster=window.open(Link,WindowName,'width='+WinWidth+',height='+WinHeight+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0');
	fenster.focus();
	}

/*-------------Link auf HTML-Datei nicht scrollbar--------------*/
function openlink2(WinWidth,WinHeight,Link,WindowName)
    {       
	window.open(Link,WindowName,'width='+WinWidth+',height='+WinHeight+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0');
	}

/*--------------------Bild öffnen-------------------------*/
function openima(breite,hoehe,url,titel,color)
	{
	content="<html><head><title>"+titel+"</title></head><style type='text/css'> body { margin-width:-10px; margin-height:-10px; background-color:#"+color+";} </style><body leftmargin='0' topmargin='0'><img src='"+url+"'></body></html>";
	imageWindow=open( "","image", "width="+breite+",height="+hoehe+",screenX=0,screenY=0,dependent=yes,scrollbars=yes,resizable=no");
	imageWindow.document.open();
	imageWindow.document.write(content);
	imageWindow.document.close();
	imageWindow.focus();
	}
/*--------------------HTML-Fenster mit scroll öffnen und modif. Statusabfrage (enter)-------------------------*/
function openlink4(WinWidth,WinHeight,Link,WindowName)
    {  
	if(etat == undefined)
		{
		etat = window.open(Link,WindowName,'width='+WinWidth+',height='+WinHeight+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0');
		}
	if(etat.closed == true)
		{
		etat = window.open(Link,WindowName,'width='+WinWidth+',height='+WinHeight+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0');
		}
	else
		{
		etat.close();
		etat = window.open(Link,WindowName,'width='+WinWidth+',height='+WinHeight+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0');
		etat.focus();
		}
	}

/*--------------------Bild öffnen (Pics und Bandmembers)-------------------------*/
function FotoWindow(bildurl,b,h)
{
var eigenschaft,sbreite,shoehe,fenster,b,h;

// stellt die Bildschirmabmessungen fest
// find window size
var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);

if(ns6||ns4) {
sbreite = innerWidth;
shoehe = innerHeight;
}
else if(ie4) {
sbreite = document.body.clientWidth;
shoehe = document.body.clientHeight;
}

x = (sbreite-b)/0;
y = (shoehe-h)/0;

eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+b+",height="+h+",menubar=no,toolbar=no";

fenster=window.open("","",eigenschaften);
fenster.focus();
fenster.document.open();
with (fenster) {
  document.write('<html><head>');
  document.write("<script type='text/javascript' language='JavaScript'>");
  // bei click  schliessen , on click close
  document.write("function click() { window.close(); } ");
  document.write("document.onmousedown=click ");
  document.write("</script>");
  document.write('<title>Hotline</title></head>');
  // bei Focusverlust schliessen, close if window looses focus
  document.write('<body onblur="window.close()" ');
  document.write('marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">');
  document.write('<center>');
  document.write('<img src="'+ bildurl +'"border="0">');
  document.write('<center>');
  document.write('</body></html>');
  fenster.document.close();
}
}
/*--------------------HTML-Fenster  (Videos)-------------------------*/
function openlink5(WinWidth,WinHeight,Link,WindowName)
    {       
	window.open(Link,WindowName,'width='+WinWidth+',height='+WinHeight+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0');
	}
	
/*--------------------HTML-Fenster  (Print)-------------------------*/
function openlink6(WinWidth,WinHeight,Link,WindowName)
    {       
	window.open(Link,WindowName,'width='+WinWidth+',height='+WinHeight+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0');
	}	
