function externalLinks(){if(!document.getElementsByTagName){return }var C=document.getElementsByTagName("a");for(var B=0;B<C.length;B++){var A=C[B];if(A.getAttribute("href")&&A.getAttribute("rel")=="external"){A.target="_blank"}}}$(document).ready(function () { externalLinks() });

function reorder() {
	function randOrd() { return(Math.round(Math.random())-0.5); }
	return($("#associate-grid").each(function() {
		var $this = $(this),
				$children = $this.children(),
				childCount = $children.length;
		if (childCount > 1) {
			$children.remove();
			var indices = [];
			for (i=0;i<childCount;i++) { indices[indices.length] = i; }
			indices = indices.sort(randOrd);
			$.each(indices,function(j,k) {
				$this.append($children.eq(k));
			});
		}
	}));
}

function fadePeopleIn(){
	var v = $("#associate-grid > li").css('visibility', 'hidden'), cur = 0;
	for(var j, x, i = v.length; i; j = parseInt(Math.random() * i), x = v[--i], v[i] = v[j], v[j] = x);
	
	function fadeInNextLI() {
	  v.eq(cur++).css('visibility','visible').hide().fadeIn();
	  if(cur != v.length) setTimeout(fadeInNextLI, 50);
	}
	fadeInNextLI();
}
