sfHover = function() {
	var sfEls = document.getElementById("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);


function popUp(url) {
  window.open(url, 'popup', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600height=600');
}



$(document).ready(function() {
  // external links
  $('a[@rel$="external"]').click(function(){
       this.target = "_blank";
  });
  
  $('ul#category-list li:even').addClass('alt');
  
  $('ul#category-list li').hover(function() {
    $(this).addClass('over')
  }, function() {
    $(this).removeClass('over')
  });
  
  $('body#page-contact form li.checkbox').hover(function() {
    $(this).addClass('over')
  }, function() {
    $(this).removeClass('over')
  });
  
  $('body#page-contact form input').attr('checkbox')
  
});