var geschichte = new Object();
window.addListener(geschichte);
geschichte.activeItem = null;
geschichte.onload = function()
{
 if ((document.getElementById) && (document.getElementById('geschichte')))
 {
  this.data = new InfoItem(this, document.getElementById('organisation'));
  this.activeItem = this.data;
  this.description = new InfoItem(this, document.getElementById('schwerpunkt'));
 }
};
var InfoItem = function(geschichte, element)
{
 this._geschichte = geschichte;
 this._element = element;
 this._headline = this._element.getElementsByTagName('h2')[0];
 this._headline._obj = this;
 
 this._headline.style.cursor = 'hand';
 if (!this._headline.style.cursor)
 {
  this._headline.style.cursor = 'pointer';
 }
 
 this._headline.onmouseover = this._hilite;
 this._headline.onmouseout = this._clear;
 this._headline.onclick = this._activate;
};
InfoItem.prototype._hilite = function()
{
 this.className = 'over';
};
InfoItem.prototype._clear = function()
{
 this.className = '';
};
InfoItem.prototype._activate = function()
{
 var activeItem = this._obj._geschichte.activeItem;
 
 if (activeItem)
 {
  activeItem._deactivate();
 }
 
 this._obj._geschichte.activeItem = this._obj;
 this._obj._element.className = 'active';
 
 this.onclick = null;
};
InfoItem.prototype._deactivate = function()
{
 this._geschichte.activeItem = null;
 this._element.className = '';
 this._headline.onclick = this._activate;
};
