﻿<!--
function Mover(obj) { 
if (document.getElementById){
	if (obj!= inactive){
	
	bgc="#F6F8F9";
	
	if (obj == "m1" ||obj == "m2" || obj == "m3" ){bgc="#A7ADC4";}
	if (obj == "m4" ||obj == "m5" || obj == "m6" ){bgc="#DA869B";}
	if (obj == "m7" ||obj == "m8" || obj == "m9" ){bgc="#85C66C";}
	if (obj == "m10" ||obj == "m11" || obj == "m12" ){bgc="#E4B479";}
	
	document.getElementById(obj).style.backgroundColor=bgc;}

}
}
function Mout(obj) { 
if (document.getElementById){
	if (obj!= inactive){
	document.getElementById(obj).style.backgroundColor="#D0DCE1";}
}
}

function atomz(){

document.searchform.submit();

}

if (navigator.appName=="Netscape" && navigator.appVersion.substring(0,1) == "4" && !document.cookie.match(/Netscapewarnung gelesen/)){alert("Sie benutzen Netscape 4.x. \rMit dieser veralteten Browserversion sind evtl. nicht alle \rauf dieser Site verwendeten Zeichensätze und Features darstellbar. \r\rEmpfehlenswerte Alternativbrowser sind:\r\r-Opera 7 (http://www.opera.com),\r\r-Mozilla Firebird (http://www.mozilla.org/), oder \r\r-Internet Explorer(http://www.microsoft.com/windows/ie/).");
if(!document.cookie.match(/.+Netscapewarnnung gelesen.+/)){document.cookie = "Name=Netscapewarnung gelesen; expires=0";}}


//enter your message in this part, including any html tags
var message='<table border="0" cellspacing="0" cellpadding="0" width="215" background="http://berliner-singakademie.de/home/img/to_top.gif" height="60"><tr><td class="menu" rowspan="3" width="60"><a href="'+document.URL+'#top" class="submenu"><img src="http://berliner-singakademie.de/home/img/0.gif" width="60" height="60" border="0" alt="Zum Seitenanfang"></a></td><td height="43" valign="bottom" colspan="2">&nbsp;</td></tr></table><div id="senat"><br><img id="senatimg" src="http://berliner-singakademie.de/home/img/senat.gif" width="154" height="47" border="0" ><br>Gefördert durch die Senatskanzlei – Kulturelle Angelegenheiten</div>';

//enter a color name or hex value to be used as the background color of the message. Don't use hash # sign
var backgroundcolor=""

//enter 0 for always display, 1 for a set period, 2 for random display mode
var displaymode=0

//if displaymode is set to display for a set period, enter the period below (1000=1 sec)
var displayduration=10000

//enter 0 for non-flashing message, 1 for flashing
var flashmode=0
//if above is set to flashing, enter the flash-to color below
var flashtocolor=""

// Abstand von Oberkante Fenster
FromTop=516

///////////////do not edit below this line////////////////////////////////////////

<!-- script distributed by http://www.hypergurl.com

function regenerate(){
window.location.reload()
}

var which=0

function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",400)
}


function display2(){
if (document.layers){
if (topmsg.visibility=="show")
topmsg.visibility="hide"
else
topmsg.visibility="show"
}
else if (document.all){
if (topmsg.style.visibility=="visible")
topmsg.style.visibility="hidden"
else
topmsg.style.visibility="visible"
setTimeout("display2()",Math.round(Math.random()*10000)+10000)
}
}

function flash(){
if (which==0){
if (document.layers)
topmsg.bgColor=flashtocolor
else
topmsg.style.backgroundColor=flashtocolor
which=1
}
else{
if (document.layers)
topmsg.bgColor=backgroundcolor
else
topmsg.style.backgroundColor=backgroundcolor
which=0
}
}


if (document.all){
document.write('<span id="topmsg" style="position:absolute;visibility:hidden">'+message+'</span>')
}




if (!document.all && !document.layer){
document.write('<div id="mozilla" style="position:absolute; width:174px; height:71px; z-index:1; left: 0px; top: 516px; border: 1px none #000000">'+message+'</div>')
}


function logoit(){
document.all.topmsg.style.left=0
document.all.topmsg.style.top=document.body.scrollTop+FromTop
}


function logoit2(){
topmsg.left=0
topmsg.top=pageYOffset+FromTop
setTimeout("logoit2()",90)
}

function setmessage(){
document.all.topmsg.style.left=0
document.all.topmsg.style.top=document.body.scrollTop+FromTop
document.all.topmsg.style.backgroundColor=backgroundcolor
document.all.topmsg.style.visibility="visible"
if (displaymode==1)
setTimeout("topmsg.style.visibility='hidden'",displayduration)
else if (displaymode==2)
display2()
if (flashmode==1)
setInterval("flash()",1000)
window.onscroll=logoit
window.onresize=new Function("window.location.reload()")
}


function setmessage2(){
topmsg=new Layer(window.innerWidth)
regenerate2()
topmsg.document.write(message)
topmsg.document.close()
logoit2()
topmsg.visibility="show"
if (displaymode==1)
setTimeout("topmsg.visibility='hide'",displayduration)
else if (displaymode==2)
display2()
if (flashmode==1)
setInterval("flash()",1000)
}


if (document.layers)
window.onload=setmessage2
else if (document.all){
window.onload=setmessage;}


function SN_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=SN_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' scheint keine gültige Emailadresse zu sein.\n';
      } else if (test!='R') {
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (val<min || max<val) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' muss ausgefüllt sein.\n'; }
  } if (errors) alert('Fehler:\n\n'+errors);
  document.MM_returnValue = (errors == '');
}

function SN_validateForm_NL() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=SN_validateForm_NL.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='\nIhre Eingabe scheint keine gültige Email-Adresse zu sein.\n';
      } else if (test!='R') {
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (val<min || max<val) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '\nGeben Sie bitte Ihre Email-Adresse ein.\n'; }
  } if (errors) alert('Fehler:\n'+errors);
  document.MM_returnValue = (errors == '');
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n);return x;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function BW_al_reload() {location.reload();}

function BW_alignLayers() { //v4.1.1
	if (document.layers || document.all || document.getElementById){
		var winWidth, winHeight, i, horz, vert, left, right, top, bottom, width, height, offsetX, offsetY, negX, negY, group, x, y, args;
		args = BW_alignLayers.arguments;
		
		onresize = BW_al_reload;

				
		winWidth = (document.all)?document.body.clientWidth:window.innerWidth;
		winHeight = (document.all)?document.body.clientHeight:window.innerHeight;
				
		for (i=0; i<(args.length-13); i+=14) {
			horz    = args[i+1];
			vert    = args[i+2];
			left    = args[i+3];
			right   = args[i+4];
			top     = args[i+5];
			bottom  = args[i+6];
			width   = parseInt(args[i+7]);
			height  = parseInt(args[i+8]);
			offsetX = parseInt(args[i+9]);
			offsetY = parseInt(args[i+10]);
			negX    = args[i+11];
			negY    = args[i+12];
			if (right == "true"){
			x = ((winWidth - width)) + offsetX;
			} 
			if (horz == "true"){
			x = ((winWidth - width)/2) + offsetX;
			}
			if (left  == "true"){
			x = 0 + offsetX;
			}
			if (bottom == "true"){
			y = ((winHeight - height)) + offsetY;
			}
			if (vert == "true"){
			y = ((winHeight - height)/2) + offsetY;
			}
			if (top == "true"){
			y = 0 + offsetY;
			}		
			x = (negX=='false' && (x < 0))?0:x;
			y = (negY=='false' && (y < 0))?0:y;
				
			layerObj = (document.getElementById)?document.getElementById(args[i]):MM_findObj(args[i]);
			
			if (layerObj!=null) { 
				layerObj = (layerObj.style)?layerObj.style:layerObj;
				layerObj.left = ((left=="true")||(horz=="true")||(right=="true"))?x:layerObj.left;
				layerObj.top = ((top=="true")||(vert=="true")||(bottom=="true"))?y:layerObj.top;
			}
		}
	}
}



if (document.body.background.match(/blau/)){
document.getElementById("senatimg").src="img/senat_blau.gif";
document.getElementById("senat").style.color="#454D71";
}

if (document.body.background.match(/rot/)){
document.getElementById("senatimg").src="img/senat_rot.gif";
document.getElementById("senat").style.color="#9D2337";
}

if (document.body.background.match(/gruen/)){
document.getElementById("senatimg").src="img/senat_gruen.gif"
document.getElementById("senat").style.color="#367427";
}

if (document.body.background.match(/gelb/)){
document.getElementById("senatimg").src="img/senat_gelb.gif"
document.getElementById("senat").style.color="#B55719";
}




//-->