// JavaScript Document
$(document).ready(function(){
	$('div.content-from-html').css({'minHeight': '900px'});
	$('#selectlist a').click(function(e) {
		 var url = $(this).attr('href') + ' #jobdescription';
		$('#careerlisting').fadeOut('fast', function(){	
			$('#careerlisting').load(url);
			});
		$('#careerlisting').fadeIn('fast');
		e.preventDefault();		
	});
	  $('#bionav li img').hover(function(){
			$(this).animate({marginTop: '-=6px', marginLeft: '+=6px'}, 200);
		  }, function(){
			$(this).animate({marginTop: '+=6px', marginLeft: '-=6px'}, 200);
	  });
	$('#bionav a').click(function(e) {
		var headurl = $(this).attr('href') + ' div.bioheader>img';
		var bodyurl = $(this).attr('href') + ' div.biobody';
		$('#bioheader').stop(true).load(headurl);	
		$('#biobody').stop(true).html('<div style="width:514px;height:350px;">loading...</div>').hide().load(bodyurl).slideDown('slow');						
		e.preventDefault();	
	});
	
	
	
	
	
	
	
	//$('#bionav a').click(function(e) {
//		var headurl = $(this).attr('href') + ' div.bioheader>img';
//		var bodyurl = $(this).attr('href') + ' div.biobody';
//		$('#bioheader')
//			.fadeOut('fast')
//			.load(headurl)
//			.delay(500)
//			.fadeIn('fast');			
//		$('#biobody')
//			.fadeOut('fast')
//			.load(bodyurl)
//			.delay(500)
//			.fadeIn('fast');				
//		e.preventDefault();		
//	
		
});