sfHover = function() {
	var sfEls = document.getElementById("header").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);


jQuery.noConflict();
jQuery(document).ready(function($) {
	$.fn.equalizeHeights = function(){
 return this.height( Math.max.apply(this, $(this).map(function(i,e){ return $(e).height() }).get() ))
}
	 $("a[rel='external']").addClass("external").click(function() { window.open(this.href); return false; });	
	$('#footer-menu li:first').addClass('first');
	$('#menu li:first').addClass('first');
	 $(function(){
   	var path = document.location.hash;
   if ( path )
     $('.indexing a[href$="' + path + '"]').attr('class', 'current');
 });
 $('.indexing a').click(function() {
		var Linked = $(this).index();
		var RealLinked = Linked + 1;
		$('.indexing a').removeClass('current');
		$('.indexing a:nth-child('+RealLinked+')').addClass('current');
	});
$('#recent .link-box').equalizeHeights();
});
