function genericOpenNoScroll(name,url,width,height)
{
	var genmesg = open(url,name,"toolbar=0,status=0,menubar=0,resizable=no,scrollbars=no,width="+width+",height="+height); 
}

// START:Zoom

// ==============================================================================================
// Definitionen
// ==============================================================================================

var extension='_b'
var zoomwindow
// ==============================================================================================
// Zoom
//
// Der uebergebne Parameter "bildID" muss mit dem Bildname im IMG-Tag identisch sein.
// Die Dateinamen der kleinen und grossen Bilder muessen, bis auf eine in der Variablen 
// "extension" definierten Endung identisch sein, und im selben Verzeichnisse liegen.
// ==============================================================================================

function zoom(bildID){
	var path=substitute(self.document.images[bildID].src,'\\','/')
	var filename=path.substring(path.lastIndexOf('/'),path.length)
	var dir=path.substring(0,path.lastIndexOf('/'))
	var ImgSrc=dir + substitute(filename,'.',extension+'.')
	zoomwindow=window.open('','zoom','width=200,height=200,resizable=no,toolbar=0,status=1,menubar=0,scrollbars=no')
	zoomwindow.document.open()
	zoomwindow.document.write('<html><head><title>Tonstudio Komposition Audio TNT Musik Produktion</title><script language="JavaScript" src="script.js"></script><link rel="stylesheet" type="text/css" href="styles.css"></head><body onload="opener.resize();" class="bodypopup" bgcolor="#ffffff" link="#224A73" alink="#CC3333" vlink="#224A73" text="#000000" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"><center><table border="0" cellpadding="0" cellspacing="0"><tr><td><a href="javascript:self.close();"><img name=bild src=' + ImgSrc + ' alt="&copy; tonquelle - audio & multimedia" title="&copy; tonquelle - audio & multimedia" border="0"></a></td></tr></table></center></body></html>')
	zoomwindow.document.close()
	zoomwindow.focus()
}

function resize()
{
	var width=zoomwindow.document.images.bild.width
	var height=zoomwindow.document.images.bild.height

	if (document.all)
	{
		//  IE 
		zoomwindow.resizeTo(width+20,height+76);
	}
	else if (document.getElementById)
	{
		// Netscape 7 
		zoomwindow.resizeTo(width+43,height+50);
	}
	else if (document.layers)
	{
		// Netscape 4 und so
		zoomwindow.resizeTo(width,height);
	}		
}
// ==============================================================================================
// Hilfs-Funktionen
// ==============================================================================================

// Ersetzt alle Vorkommnisse des String "From" im String "string" durch den String "to"
function substitute(string,from,to){
	var temp=''
	if (string.indexOf(from)!=-1){
		temp=string.substring(0,string.indexOf(from))
		temp+=to
		temp+=substitute(string.substring(string.indexOf(from)+from.length,string.length),from,to)
	}
	else temp=string
	return temp
}

// ==============================================================================================
// END:Zoom
