var mod_Path="../";function writeShadow(){if(navigator.appVersion.indexOf("MSIE 6")=="-1")document.write("<div id='Schatten' style='position:absolute;left:0px;top:0px;display:none;z-index:21'><div id='shad1' style='position:absolute;left:0px;top:0px'><IMG NAME='shad1' SRC='"+mod_Path+"layout/S1.png' WIDTH='0' HEIGHT='0' BORDER='0'><\/div><div id='corn1' style='position:absolute;left:0px;top:0px'><IMG NAME='corn1' SRC='"+mod_Path+"layout/E1.png' WIDTH='0' HEIGHT='0' BORDER='0'><\/div><div id='shad2' style='position:absolute;left:0px;top:0px'><IMG NAME='shad2' SRC='"+mod_Path+"layout/S2.png' WIDTH='0' HEIGHT='0' BORDER='0'><\/div><div id='corn2' style='position:absolute;left:0px;top:0px'><IMG NAME='corn2' SRC='"+mod_Path+"layout/E2.png' WIDTH='0' HEIGHT='0' BORDER='0'><\/div><div id='shad3' style='position:absolute;left:0px;top:0px'><IMG NAME='shad3' SRC='"+mod_Path+"layout/S3.png' WIDTH='0' HEIGHT='0' BORDER='0'><\/div><div id='corn3' style='position:absolute;left:0px;top:0px'><IMG NAME='corn3' SRC='"+mod_Path+"layout/E3.png' WIDTH='0' HEIGHT='0' BORDER='0'><\/div><div id='shad4' style='position:absolute;left:0px;top:0px'><IMG NAME='shad4' SRC='"+mod_Path+"layout/S4.png' WIDTH='0' HEIGHT='0' BORDER='0'><\/div><div id='corn4' style='position:absolute;left:0px;top:0px'><IMG NAME='corn4' SRC='"+mod_Path+"layout/E4.png' WIDTH='0' HEIGHT='0' BORDER='0'><\/div><\/div><div id='imageBox' style='position:absolute;left:0px;top:0px;display:none;z-index:21'><IMG NAME='flaeche' SRC='"+mod_Path+"layout/flaeche.jpg' WIDTH='0' HEIGHT='0' BORDER='0'><\/div>");elsedocument.write("<div id='Schatten' style='position:absolute;left:0px;top:0px;display:none;z-index:22'><\/div><div id='imageBox' style='position:absolute;left:0px;top:0px;display:none;z-index:21'><IMG NAME='flaeche' SRC='"+mod_Path+"layout/plain2.jpg' WIDTH='0' HEIGHT='0' BORDER='0'><\/div>");}/*****************************************************/function writeAudio(){if(location.href.indexOf("TL_chamber")!="-1"||location.href.indexOf("TL_piano")!="-1"||location.href.indexOf("TL_orchestra")!="-1"||location.href.indexOf("musicdoc")!="-1")	mod_Path="";document.write("<div id='shadow' style='position:absolute;left:0px;top:0px;z-index:20'><IMG NAME='shadow' SRC='"+mod_Path+"layout/overlay.png' onclick='resetShadow()' WIDTH='0' HEIGHT='0' BORDER='0' style=';filter:progid:DXImageTransform.Microsoft.Alpha(opacity=44)'><\/div><div id='audioWindow' style='position:absolute;left:0px;top:0px;display:none;z-index:22;padding-left:20px; padding-top:30px;padding-bottom:0px'><div id='audioText' style='text-align:center;width:450px'><\/div><table style='width:480px'><tr><td id='midiPlug' style='text-align:center;vertical-align:middle;padding-top:30px;padding-bottom:30px'><\/td><\/tr><\/table><IMG id='close' style='position:absolute;top:38px;right:16px' SRC='"+mod_Path+"layout/back.jpg' WIDTH='10' HEIGHT='10' BORDER='0' onClick='resetShadow()' style='cursor:pointer' alt='Musikfenster ausblenden'><\/div>");writeShadow();if(!window.innerHeight)	{	AnzBer=document.getElementById("myWindow").offsetHeight;	AnzW=document.getElementById("myWindow").offsetWidth;	}else	{	AnzBer=window.innerHeight;	AnzW=window.innerWidth;	}}/*****************************************************/function setShadow(){document.body.style.overflow='hidden';if(navigator.appVersion.indexOf("MSIE 6")!="-1")	{	document.images.shadow.width=AnzW;	document.images.shadow.height=AnzBer;	}}/***************************************/function resetShadow(){document.images.shadow.width=0;document.images.shadow.height=0;document.getElementById("audioWindow").style.display="none";document.getElementById("Schatten").style.display="none";document.getElementById("imageBox").style.display="none";if(window.innerHeight)	document.body.style.overflow='visible';else	document.body.style.overflow='auto';if(navigator.appName.indexOf("Explorer")!="-1")	document.getElementById("midiPlug").innerHTML="";window.scrollTo(0,1);window.scrollTo(0,theScroll);}/***************************************/var AnzBer;var AnzW;var theScroll;/***************************************/function checkPlugIns(){if(navigator.appName.indexOf("Explorer")=="-1"||navigator.platform.indexOf("Mac")!="-1")	{	for (i = 0; i < navigator.plugins.length; ++i)		{  		if(navigator.plugins[i].name.indexOf("QuickTime")!="-1")			return true;		}	}else	return true;}/************************************/function openmidi(file,numb){if(!window.innerHeight)	scroll_Y=document.body.scrollTop;else	scroll_Y=window.pageYOffset;theScroll=scroll_Y;nachOben();aud_Text=comp[numb];a=aud_Text.indexOf("+");aud_Text=aud_Text.substring(a+1);/*Anzahl Zeilenumbrueche*/anz=1;var theText = aud_Text;for(i=0;i < theText.length;i++)	{	if(theText.substring(i,i+4) == "<BR>"){       theText = theText.substring(0,i)+", "+theText.substring(i+4);		anz++;		}	}	anz=anz*16;setShadow();WWidth=520;WHeight=185;/*WHeight=230;*/	wx=Math.round(((AnzW)/2) - (WWidth/2));wy=Math.round(((AnzBer)/2) - (WHeight/2)-20);	document.getElementById("imageBox").style.top=wy+"px";document.getElementById("imageBox").style.left=wx+"px";document.getElementById("imageBox").style.display="block";document.images.flaeche.width=WWidth;document.images.flaeche.height=WHeight;	document.getElementById("audioWindow").style.top=wy+"px";document.getElementById("audioWindow").style.left=wx+"px";document.getElementById("audioWindow").style.display="block";	if(navigator.appVersion.indexOf("MSIE 6")=="-1")	centerShadows(wy,wx,WWidth,WHeight);			audiofile=mod_Path+file;if(location.href.indexOf("ballhorn")!="-1")	audiofile=file;/*audiofile="../mp3/empty.mp3"; - zum Testen*/if(checkPlugIns()==true)	{	document.getElementById("midiPlug").innerHTML="<embed src="+audiofile+" WIDTH='450' HEIGHT='20'><\/embed>";	document.getElementById("audioText").innerHTML=aud_Text;	}else	{	document.getElementById("midiPlug").innerHTML="<a href='http://www.apple.com/de/quicktime/download/' target='new'><IMG SRC='"+mod_Path+"layout/quicktime.jpg' WIDTH='450' BORDER='0'><\/a><br><a href='http://www.apple.com/de/quicktime/download/' target='new'><B>QuickTime Plug In installieren<\/B><\/a>";	document.getElementById("audioText").innerHTML="Die Wiedergabe dieser Audio-Datei erfordert QuickTime";	}}