n=0;
Vortrag=new Array();

function Wochentag(){
switch(this.getDay()){
  case 0: {return 'Sunday'}
  case 1: {return 'Monday'}
  case 2: {return 'Tuesday'}
  case 3: {return 'Wednesday'}
  case 4: {return 'Thursday'}
  case 5: {return 'Friday'}
  case 6: {return 'Saturday'}
  };
}

function Monat(){
switch(this.getMonth()){
  case 0: {return 'January'}
  case 1: {return 'February'}
  case 2: {return 'March'}
  case 3: {return 'April'}
  case 4: {return 'May'}
  case 5: {return 'June'}
  case 6: {return 'July'}
  case 7: {return 'August'}
  case 8: {return 'September'}
  case 9: {return 'October'}
  case 10: {return 'November'}
  case 11: {return 'December'}
  };
}

Date.prototype.wochentag = Wochentag;
Date.prototype.monat = Monat;

function Vortragsklasse(){
this.name = n;
this.references = new Array();
}

function referenceclass(t,u){
this.titel = t;
this.url = u;
}

function Datum(d){
r = 0;
Vortrag[n]=new Vortragsklasse();
var dFeld=d.split(".");
Vortrag[n].datum = new Date(Year,dFeld[1]-1,dFeld[0]);
}

function Special(x){
Vortrag[n].special = x;
}

function Sprecher(x){
Vortrag[n].sprecher = x;
}

function Titel(x){
Vortrag[n].titel = x;
}

function Abstract(x){
Vortrag[n].kurzfassung = x;
}

function Zeit(x){
Vortrag[n].zeit = x;
}

function HSaal(x){
Vortrag[n].room = x;
}

function Reference(t,u){
Vortrag[n].references[r] = new referenceclass(t,u);
r++;
}

Bwindow = null;

function fenster(x){
var u='http://www.arxiv.org/'+x;
if (Bwindow == null){
  Bwindow = window.open(u);
  }
else{
  if (Bwindow.closed){
    Bwindow = window.open(u);
    }
  else{
    Bwindow.location = u;
    Bwindow.focus();
    }
  }
}

function ZeigAbstract(){
var Awindow = window.open('','Awindow'+this.name,'height=300,width=500,scrollbars=1,resizable=1,menubar=1');
Awindow.focus();
Awindow.document.write("<html><head><title>Abstract</title></head>");
Awindow.document.write("<body bgcolor=#CCFFCC>");
Awindow.document.write('<center><b>'+this.titel+'</b></center>');
Awindow.document.write('<center><I>'+this.sprecher+'</I></center><br>');
Awindow.document.write(this.kurzfassung);
if (this.references.length != 0){
Awindow.document.write('<p><b>References</b><ul>');
for (c=0;c<this.references.length;c++){
Awindow.document.write('<li><a href="javascript:window.opener.fenster(\'');
Awindow.document.write(this.references[c].url);
Awindow.document.write('\')">');
Awindow.document.write(this.references[c].url);
Awindow.document.write('</a>: ');
Awindow.document.write(this.references[c].titel);
Awindow.document.write('</li>');
}
Awindow.document.write('</ul>');
}
Awindow.document.close();
}

function Ankuendigen(){

var ZEIT=this.zeit.split(":");
ZEIT[0]=ZEIT[0]*1+1;
var Ende=ZEIT[0]+':'+ZEIT[1];

if (this.zeit!=defaultTime)
{this.zeit='<font color=#FF0000>'+this.zeit+'</font>'};

if (this.room!=defaultRoom)
{this.room='<font color=#FF0000>'+this.room+'</font>'};

var wt=this.datum.wochentag();
if (wt!=defaultWeekday)
{wt='<font color=FF0000>'+wt+'</font>'};

document.write('<hr><font color="#006600">');
document.write(wt);
document.write(', ');
document.write(this.datum.monat());
document.write(' ');
document.write(this.datum.getDate());
document.write(', ');
document.write(Year);
document.write(', ');
document.write(this.zeit+'-'+Ende);
document.write(', ');
document.write(this.room);
document.writeln(':</font><br><font color="#CC0000">');

if (this.special == 'falsch'){
document.write(this.sprecher);
document.writeln(':</font><br>');
document.write('<table BORDER=0 cellpadding="0" cellspacing="0" width="100%"><tr><td width="0"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td width="100%"><a href="javascript:Vortrag['+n+'].zeigen()" title=\'Click to see abstract...\' onmouseover="window.status=\'Click to see abstract...\';return true;" onmouseout="window.status=\'\';return true;"><tt>'+this.titel+'</tt></a></td></tr></table><br>');}

else {
document.write('<table BORDER=0 cellpadding="0" cellspacing="0" width="100%"><tr><td width="0"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td width="100%"><font color=red><tt>'+this.special+'</font></tt></td></tr></table><br>');
}

document.writeln();
n++;}

function initialize(){
Vortragsklasse.prototype.datum = 'TBA';
Vortragsklasse.prototype.special = 'falsch';
Vortragsklasse.prototype.zeit = defaultTime;
Vortragsklasse.prototype.room = defaultRoom;
Vortragsklasse.prototype.sprecher = 'NN';
Vortragsklasse.prototype.titel = 'TBA';
Vortragsklasse.prototype.kurzfassung = 'No Abstract...';
Vortragsklasse.prototype.ankuendigen = Ankuendigen;
Vortragsklasse.prototype.zeigen = ZeigAbstract;
}

function topmatter(){
initialize();
window.document.write('<body text="#000000" bgcolor="#FFFFFF" link="#0000EE" vlink="#551A8B" alink="#FF0000">');
window.document.write('<h2><font color="#3333FF">Program of the Rutgers Lie Group Seminar ');
window.document.write(Semester+' '+Year+'</font></h2>');
window.document.write('<pre>');
window.document.writeln('<a href="seminar/Seminar_Past.html">Program of past meetings</a> <a href="seminar/directions.html">Directions to Hill Center</a> <a href="seminar/SeminarsOther.html">Lie Theory Seminars elsewhere</a>');
window.document.writeln();
window.document.writeln('For information write to <img src=email-schwarz.gif align=middle> (Friedrich Knop)');
window.document.writeln();
window.document.write('Last updated: <i>'+LastUpdate+'</i>');
}

function endmatter(){
window.document.write('<hr>');
window.document.write('</pre>');
window.document.write('</body></html>');
}

