/*
* Skript ist Copyright-geschützt.
* Jegliche Nutzung bedarf der Zusage des Eigentümers.
*/

function windowResized()
{
  var plh = document.getElementById('pferdeListeHeadline');
  var plt = document.getElementById('pferdeListeTable');

  var width=0;
  if (typeof innerWidth != "undefined")
	  width = innerWidth;
  else
  if (typeof document.body.clientWidth != "undefined")
	  width = document.body.clientWidth;
  if (plh != null) 
	  plh.style.marginLeft = ( width /2 - 800/2 )+"px";
  if (plt != null)
	  plt.style.marginLeft = ( width /2 - 800/2 )+"px";
}

function over(obj,sel)
{
  obj.childNodes[0].childNodes[1].className="element elementHover"+(sel==1?" elementSelected":"");
}

function out(obj,sel)
{ 
  obj.childNodes[0].childNodes[1].className="element"+(sel==1?" elementSelected":"");
}

onload = windowResized;
onresize = windowResized;