// all scripts by [static echo] artist oneiros - (c) 2002
function SE_fenster(theURL,winName,features) { 
  winName=window.open(theURL,winName,features);
  winName.focus();
}

function SE_fensterMitte(url, name, width, height, otherfeatures) {
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  if (window.screen) {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;

    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;

    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
  newwin = window.open(url, name, str + ',' + otherfeatures);
  if(parseInt(navigator.appVersion) >= 4)
  {
 	setTimeout('newwin.focus();',250);
  }
}

function SE_fensterZoomen() {
   if(top.frames.length>0)top.location.href=self.location;
   window.moveTo(0,0);
   window.resizeTo(screen.availWidth,screen.availHeight);
}

function SE_wiederherstellen() { //v3.0
  var i,x,a=document.SE_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function SE_vorladen() { //v3.0
  var d=document; if(d.images){ if(!d.SE_p) d.SE_p=new Array();
    var i,j=d.SE_p.length,a=SE_vorladen.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.SE_p[j]=new Image; d.SE_p[j++].src=a[i];}}
}

function SE_finden(n, d) { //v4.0
  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=SE_finden(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function SE_wechseln() { //v3.0
  var i,j=0,x,a=SE_wechseln.arguments; document.SE_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
   if ((x=SE_finden(a[i]))!=null){document.SE_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function SE_select(auswahl, textfeld) {
   if (auswahl.selectedIndex == "0") {
      alert("nothing selected.");
      auswahl.focus()
   } else {
      numchoice = auswahl.selectedIndex;
      choice = auswahl[numchoice].value;
      textfeld.value = choice
    }
}

function SE_mitteAnpassen (breite, hoehe) {
	if (document.layers)
		{
			tmp1 = outerWidth - innerWidth;
			tmp2 = outerHeight - innerHeight;
			breite -= tmp1;
			hoehe -= tmp2;
		}
	neueXpos = self.screen.width/2 - breite/2;
	neueYpos = self.screen.height/2 - hoehe/2 - 35;
	if (neueYpos<5) neueYpos = 5;
	window.resizeTo(breite,hoehe);
	window.moveTo(neueXpos,neueYpos);
}

function openSound(theURL) {
  features='width=450,height=200,resizable=no,status=no,scrollbars=no'; 
  winName='sound';
  winName=window.open(theURL,winName,features);
  if(parseInt(navigator.appVersion) >= 4)
  {
 	setTimeout('winName.focus();',250);
  }
}

function openEvents(theURL) {
  features='width=200,height=200,resizable=yes,status=no,scrollbars=no'; 
  winName='events';
  winName=window.open(theURL,winName,features);
  if(parseInt(navigator.appVersion) >= 4)
  {
 	setTimeout('winName.focus();',250);
  }
}

function openVisualart(theURL) {
  features='width=200,height=200,resizable=yes,status=no,scrollbars=no'; 
  winName='visualart';
  winName=window.open(theURL,winName,features);
  if(parseInt(navigator.appVersion) >= 4)
  {
 	setTimeout('winName.focus();',250);
  }
}

function openNewsletter() {
  theURL='zone/se.newsletter.php';
  features='left=30,top=30,width=250,height=150,resizable=no,status=no,scrollbars=no'; 
  winName='newsletter';
  winName=window.open(theURL,winName,features);
  if(parseInt(navigator.appVersion) >= 4)
  {
 	setTimeout('winName.focus();',250);
  }
}