function nn() {}

function updFrames() {
  var comStr,ld;
  argArray=updFrames.arguments;
  for (i=0; i<argArray.length; i=i+2) {
    f=argArray[i]; s=argArray[i+1];
    cs=s.substr(s.length-4,s.length) //die letzten 4 zeichen des filenamens müssen eindeutig sein
    comStr = "ld=(parent." + f + ".document.location.href.indexOf('" + s + "')==-1)"; eval(comStr);
    if (ld) {comStr = "parent." + f + ".document.location.href='" + s +"'";
    eval(comStr);}
    }
  }

//---Sprachsteuerung
function language(l) {
  if (l==1) top.data.location.href="../cms/index.html";
  else top.data.location.href="../cmsde/index.html";
  }

//---Popup Galerie--------------------
firstPopG=true;
function popUpGallery(g) {

  if (_screen>3) {
    h=(screen.height)/100*85;
    t=(screen.height-h)/3;
    }
  else {
    h=(screen.height)/100*90;
    t=(screen.height-h)/4;
    }
  b=570;
  l=(screen.width-b)/3;
  if (IE) {
    ostr="width=" + b + ",height=" + h +
       ",left=" + l + ",top=" + t + ",scrollbars=no,resizable=yes"+
       ",toolbar=no,menubar=no,status=no,location=no";
    }
  else {
    ostr="width=" + b + ",height=" + h +
       ",left=" + l + ",top=" + t + ",scrollbars=yes,resizable=yes"+
       ",toolbar=no,menubar=no,status=no,location=no";
    }


  if (firstPopG) popWinG=open("","Galerie",ostr);
  else if (popWinG.closed) popWinG=open("","Galerie",ostr);

  if (IE) {
    popWinG.document.write('<html><head><title>The World Blue Band</title></head>');
    popWinG.document.write('<frameset rows="0,*" frameborder="NO" border="0" framespacing="0"> ')
    popWinG.document.write('  <frame name="dummy" noresize scrolling="no"> ');
    popWinG.document.write('  <frame name="main" noresize scrolling="auto"></frameset>');
    popWinG.dummy.document.write('<html><head></head><body bgcolor="black"></body></html>');
    popWinG.main.location.href=g;
    }
  else popWinG.location.href=g;

  popWinG.focus();
  firstPopG=false;
  }
  
//---Popup Fenster--------------------
firstPopHTM=true;
function popUpHTM(f,b,h) {

  if (f.indexOf(".htm")==-1 &&
      f.indexOf(".pdf")==-1 &&
      f.indexOf(".php")==-1 &&
      f.indexOf(".txt")==-1 &&
      f.indexOf(".doc")==-1 &&
      f.indexOf("?")==-1) f+=".htm";

  fName=f.substring(f.lastIndexOf("/")+1,f.length);
  fName=fName.replace(/-/g,"_");
  fName=fName.replace(/\//g,"_");
  fName=fName.replace(/\?/g,"_");
  fName=fName.replace(/\=/g,"_");
  fName=fName.replace(/\./g,"_");
  fName=fName.replace(/\&/g,"_");
  fName=fName.replace(/\ /g,"_");

  //b=(screen.width-b)/100*b;
  h=(screen.height-h)/100*h;
  l=(screen.width-b)/3;
  t=(screen.height-h)/3;
  if (IE) {
    ostr="width=" + b + ",height=" + h +
       ",left=" + l + ",top=" + t + ",scrollbars=no,resizable=yes"+
       ",toolbar=no,menubar=no,status=no,location=no";
    }
  else {
    ostr="width=" + b + ",height=" + h +
       ",left=" + l + ",top=" + t + ",scrollbars=yes,resizable=yes"+
       ",toolbar=no,menubar=no,status=no,location=no";
    }


  if (firstPopHTM) popWinHTM=open("",fName,ostr);
  else if (popWinHTM.closed) popWinHTM=open("",fName,ostr);

  if (IE) {
    popWinHTM.document.write('<html><head><title>The World Blue Band</title></head>');
    popWinHTM.document.write('<frameset rows="0,*" frameborder="NO" border="0" framespacing="0"> ')
    popWinHTM.document.write('  <frame name="dummy" noresize scrolling="no"> ');
    popWinHTM.document.write('  <frame name="main" noresize scrolling="auto"></frameset>');
    popWinHTM.dummy.document.write('<html><head></head><body bgcolor="black"></body></html>');
    popWinHTM.main.location.href=f;
    }
  else popWinHTM.location.href=f;

  popWinHTM.focus();
  firstPopHTM=false;
  }

//---Popup Foto--------------------
function popUpFoto(file,x,y) {
  l=(screen.width-x)/2;
  t=(screen.height-y)/2;
  ostr="width=" + x + ",height=" + y +
       ",left=" + l + ",top=" + t + ",scrollbars=no,resizable=yes"+
       ",toolbar=no,menubar=no,status=no,location=no";
  win=open("","pic",ostr);
  win.document.write('<html><head><title>The World Blue Band</title></head>');
  win.document.write('<body bgcolor="black" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">');
  win.document.write('<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td  valign="middle"  align="center">')
  win.document.write('<img src="'+file+'">');
  win.document.write('</table></tr></td>')
  win.document.write('</body></html>');
  }

//---Scroll Window--------------------
var uTO,dTO;
var sSpeed=3;
function pxUp() {
  self.scrollBy(0,-sSpeed);
  uTO=setTimeout("pxUp()",0);
  }
function stopPxUp() {
  clearTimeout(uTO)
  }
function lnUp() {
  stopPxUp();
  self.scrollBy(0,-sSpeed*3);
  uTO=setTimeout("lnUp()",0);
  }
function stopLnUp() {
  clearTimeout(uTO);
  pxUp();
  }
function pxDn() {
  self.scrollBy(0,sSpeed);
  dTO=setTimeout("pxDn()",0);
  }
function stopPxDn() {
  clearTimeout(dTO)
  }
function lnDn() {
  stopPxDn();
  self.scrollBy(0,sSpeed*3);
  dTO=setTimeout("lnDn()",0);
  }
function stopLnDn() {
  clearTimeout(dTO);
  pxDn();
  }

