// ***************************************************
//             popUp-Varianten
// ***************************************************
function fenster_off(url, x, y) {
 popup = window.open(url, "fenster" ,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=" + x + ",height=" + y);
}

function fenster_on(url, x, y) {
 popup = window.open(url, "fenster" ,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=" + x + ",height=" + y);
}

function fenster_detail(url, x, y) {
 popup = window.open(url, "fenster" ,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=" + x + ",height=" + y);
}


// ***************************************************
//             verstecken der Emailadresse
// ***************************************************
function hidden(adr)
{
	// prüfen welche Übergabewerte (ind adr) übergeben wurden
	// http = Internetadresse
	// info = Email info
	//
	//	
	if(adr == "http")
		var strAdr="39601:20696:23084:23084:22288:11542:9353:9353:23681:23681:23681:9154:19502:20895:22089:21691:19303:22686:21293:23084:8955:22089:19303:21492:9154:19900:20099";
	else if(adr == "info")
		var strAdr="24025:16275:17050:15810:17205:9920:15190:16275:17205:16895:15035:17670:16585:17980:6975:17205:15035:16740:7130:15500:15655";
	else if(adr == "kiste")
	  var strAdr="25921:16583:18354:18837:16261:17710:16261:7406:17227:16905:18515:18676:16261:10304:15778:16905:17871:17549:15617:18354:17227:18676:7245:17871:15617:17388:7406:16100:16261";
	else if(adr == "markt")
	  var strAdr="51529:24743:22019:25878:24289:26332:14528:22246:23835:25197:24743:22019:25878:24289:26332:10215:25197:22019:24516:10442:22700:22927";
	
	// zerlegen des Strings strAdr
	var ac=strAdr.split(":");
	var strAdr="";
	for(i=1;i<ac.length;++i)
	{
		strAdr+=String.fromCharCode(Number(ac[i])/Math.sqrt(Number(ac[0])));
  }

	if(adr == "http")
		document.write('<a href="' + strAdr + '" target=_blank>' + strAdr + '</a>');
	else
		document.write('<a href="mailto:' + strAdr + '?subject=Anfrage">' + strAdr + '</a>');	
}

