document.write('<script type="text/javascript" src="/scripts/browserdetect_lite.js"></script>');

// IE5 doesn't understand Array.push() or Array.shift(), so we'll clue it in
if (typeof Array.prototype.push == "undefined")
{
  Array.prototype.push = function()
  {
    b = this.length;
    a = arguments;
    for(var i=0; i < a.length; i++)
    {
      this[b+i]=a[i];
    }
    return this.length;
  };
}
if (typeof Array.prototype.shift == "undefined")
{
  Array.prototype.shift = function()
  {
	var response = this[0];
	for (var i=0; i < this.length-1; i++)
    {
		this[i] = this[i + 1];
	}
	this.length--;
	return response;
  };
}

// onload will process an array we can push any functions to that we want
window.onload = function () {
  for(var ii = 0; arguments.callee.actions.length > ii; ii++)
  {
    arguments.callee.actions[ii]();
  }
};
window.onload.actions = [];

// MacIE doesn't do clear using our supercool CSS method, so 
function fixFloat(id)
{
  if (browser.isIEMac)
  {
    var obj = document.getElementById(id);
    obj.innerHTML += '<div class="mac-clearfix">&nbsp;</div>';
  }
}
// We can't pass the id in the push function, so we have to create a
// new function for any element we want to do this to.
function fixFloatBody()
{
  fixFloat("body");
}
window.onload.actions.push(fixFloatBody);

