// JavaScript Document

function viewBio(here, backgroundText){
	
	$('#staff_container').scrollTo('#' + here, 2000, {easingOut:'easeOutBounce', easingIn: 'easeInBack'} );
	
	if(here == 'bio_home'){
	
		$('.back_button').fadeOut(100);
		$('#background_text').attr('src', '_images/background_text_talented.png');
		
		
	}
	else{
		
		
		$('.back_button').fadeIn(2000);
		
		if(backgroundText.length > 0){
			
			back_image_src = '_images/' + backgroundText;
			
			$('#background_text').attr('src', back_image_src);
			
			
		}
		
	}
	
	
}

$(document).ready(function() {
						   
    $('.bio_thumb_block').mouseenter(function(e) {
											  
        $(this).children('div').children('img').animate({ width: '85%'}, 300);
		$(this).children('span').fadeTo(200, 0.8);
		$(this).css( 'cursor', 'pointer' );
		
    }).mouseleave(function(e) {
		
        $(this).children('div').children('img').animate({ width: '70%'}, 300);
		$(this).children('span').fadeOut(100)
		
    });
	
	
	
	
	
});



$(document).ready(function() {
	

	$('#menu_pictures').mouseenter(function(e) {
											  
        $('#pictures_sub_menu').fadeIn(200);
		
    }).mouseleave(function(e) {
		
        $('#pictures_sub_menu').fadeOut(200);
		
    });
	
	
	
	$('#menu_services').mouseenter(function(e) {
											  
        $('#services_sub_menu').fadeIn(200);
		
    }).mouseleave(function(e) {
		
        $('#services_sub_menu').fadeOut(200);
		
    });
	
	$('#menu_si').mouseenter(function(e) {
											  
        $('#si_sub_menu').fadeIn(200);
		
    }).mouseleave(function(e) {
		
        $('#si_sub_menu').fadeOut(200);
		
    });

});
