if (window==top) { top.location="index.html";}

var link=4711;
var pdf =4712;
var xls =4713;
var ppt =4714;
var bas =4715;


function WriteStatus () {
var pfad;

pfad =parent.frames[0].location.pathname
document.write ('<div style="position:absolute; left:25px"><br><hr size=1 width=620 color=darkgreen align=left>');
document.write ('<table width=620><tr valign=top><td><div class=small>&copy;HTW Berlin 2004-2010 </div></td><td>');
document.write ('<div class=small><a href="'+parent.homepath+'webmaster/index.html" target="_top">Haftungsausschluss/Webmaster</a></div></td>');
document.write ('<td align=right><a href="http://www.top50-solar.de/top/cgi-bin/main.cgi?ID=1497" target="_blank"><img src="http://www.top50-solar.de/top/cgi-bin/img.cgi?id=1497" border=0 height="44" width="100" align=right></a>');
document.write ('</td></tr></table></div>');
};

function WriteBaustelle () {
document.write ('<br><br><center><b>Diese Seiten befinden sich noch im Aufbau.</b><br><br>');
document.write ('<img src="'+parent.homepath+'pics/baustelle.jpg"><br>');
document.write ('<br>In Kürze werden Sie hier das volle Angebot antreffen. Momentan sind nur ausgewählte Inhalte vollständig verfügbar. Bei aktuellen Fragen wenden Sie sich bitte an einen unserer ');
document.write ('<a href="'+parent.homepath+'kontakt/personen/index.html" target="_top">Ansprechpartner</a>');
document.write (' oder schauen Sie in wenigen Wochen einfach noch einmal vorbei. Wir danken für Ihr Verständnis.<br></center>');
}

function RefreshMenu (a1, a2, a3) {
parent.ActiveMenuItem=a1;
parent.lang=a2;
parent.homepath=a3;
if (parent.frames[0].location.href!=location.href) parent.frames[0].location.reload();
}

function turnOn(typ,imageName,msg) {
  if (document.images) {
    if (typ==link)
    { imageName.src=parent.homepath+'pics/link2.gif';
      window.status = 'Externer Link';
    }
    if (typ==pdf)
    { imageName.src=parent.homepath+'pics/pdf2.gif';
      window.status = 'PDF-Version';
    }
    if (typ==xls)
    { imageName.src=parent.homepath+'pics/xls2.gif';
      window.status = 'EXCEL-Datei';
    }
    if (typ==ppt)
    { imageName.src=parent.homepath+'pics/ppt2.gif';
      window.status = 'PowerPoint-Datei';
    }
    if (typ==bas)
    { imageName.src=parent.homepath+'pics/bas2.gif';
      window.status = 'VBA-Datei';
    }
  }
}

function turnOff(typ,imageName) {
  if (document.images) {
    if (typ==link) imageName.src=parent.homepath+'pics/link.gif';
    if (typ==pdf)  imageName.src=parent.homepath+'pics/pdf.gif';
    if (typ==xls)  imageName.src=parent.homepath+'pics/xls.gif';
    if (typ==ppt)  imageName.src=parent.homepath+'pics/ppt.gif';
    if (typ==bas)  imageName.src=parent.homepath+'pics/bas.gif';
    window.status = "";
  }
}
