sfHover = function() {
	var sfEls = $("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

var Popup = Class.create();
Popup.prototype = 
{
  initialize: function(options)
  {
    this.options = {
      url: '#',
      width: 500,
      height: 450
    }
    Object.extend(this.options, options || {});
    window.open(this.options.url, '', 'scrollbars=1,width='+this.options.width+',height='+this.options.height);
  }
}

