var Partner = new Object();
window.addListener(Partner);
Partner.onload = function()
{
 if ((document.getElementById)&&(document.getElementById('locations')))
 {
  var locations = document.getElementById('locations').getElementsByTagName('li');
  var i = locations.length;
  
  while (i--)
  {
   var location = new Location(locations[i]);
  }
 }
};
var Location = function(item)
{
 this._item = item;
 this._item._obj = this;
 this._link = this._item.getElementsByTagName('a')[0];
 this._name = this._link.childNodes[0].nodeValue;
 this._headline = document.getElementById('location').getElementsByTagName('span')[0];
 
 this._item.style.cursor = 'hand';
 if (!this._item.style.cursor)
 {
  this._item.style.cursor = 'pointer';
 }
 
 this._item.onmouseover = this._hilite;
 this._item.onmouseout = this._clear;
};
Location.prototype._hilite = function()
{
 this.className = 'over';
 this._obj._clearHeadline();
 
 var text = document.createTextNode(this._obj._name);
 this._obj._headline.appendChild(text);
};
Location.prototype._clear = function()
{
 this.className = '';
 this._obj._clearHeadline();
};
Location.prototype._clearHeadline = function()
{
 var headline = this._headline;
 if (headline.childNodes[0])
 {
  headline.removeChild(headline.childNodes[0]);
 }
};
