show_pane = function(id) {
	$(".pane").hide();
	$("#" + id).show();		
    $("#bios .hover-link div").animate({"opacity":0},0);
}

function blinker(){
	$("#clients img, .shadow").mouseenter(function(){
		$(this).stop().animate({"opacity":0.5},300, function(){
			$(this).animate({"opacity":1.0},300)
		})
	});	
};

$(function(){
    $("#bios .hover-link div").animate({"opacity":0},0);
	$("#bios .hover-link").hover(
		function(){
			var obj = $("div", $(this));
			obj.stop().animate({"opacity":1},300);
		},
		function(){
			var obj = $("div", $(this));
			obj.stop().animate({"opacity":0},300);
		})
});

(function($) {
	$(document).ready(function() {
		$(".pane").hide();
		$(".pane.visible").first().show();
		
		
		var search_offset = $("#search-text").offset(),
		search_width = $("#search-text").width();
		
		$("#search-submit")
			.hide()
			.prependTo('body')
			.css({
				"top": (search_offset.top + 4) + 'px',
				"left": ((search_offset.left + search_width) - 0) + 'px',
				"z-index": "3"
			})
			.bind('click', function(e) {
				$("#search-text").parent().trigger('submit');
			})
			.show();
			
	});
	
})(jQuery);
