$(document).ready(function() {
    
    $("#bio").click(function() {
        
        $('#about_me').fadeIn('slow');
        
        return false;
        
    });
    
    $('a#close').click(function() {
        
        $('#about_me').fadeOut('slow');
        
        return false;
        
    });
    
    $('a.external').each(function() {
        
        $(this).attr( 'target', 'blank' ); 
        
    });
    
    $('#more_work').mouseover(function() {
        
        $('#more_work a').effect('bounce', { times: 1 }, 500); 
        
    }).click(function() {
        
        $('div.page_one').animate({
            
            top: '-750px',
            opacity: '0'
            
        }, 1000);
        
        $('div.page_two').animate({ 
            
            display: 'block',
            opacity: '100'
            
        }, 1000);
        
        return false;
        
    });
    
    $('div.front a.flip').each(function() {
        
        $(this).mouseover(function() {
                
            $(this).next('span.overlay').fadeIn('slow');
        
        }).mouseout(function() {
            
            $(this).next('span.overlay').fadeOut('fast');
            
        }).click(function() {
            
            $(this).next('span.overlay').fadeOut('fast');
            
        });
        
    });
    
    $('#backstage').cycle({ 
        
        fx:     'blindY', 
        speed:  'fast', 
        timeout: 0, 
        next:   '.bs_flip'
    
    });
    
    $('#whiterocks').cycle({ 
        
        fx:     'blindY', 
        speed:  'fast', 
        timeout: 0, 
        next:   '.wr_flip'
    
    });
    
    $('#cid').cycle({ 
        
        fx:     'blindY', 
        speed:  'fast', 
        timeout: 0, 
        next:   '.cid_flip'
    
    });
    
    $('#hipyoungthing').cycle({ 
        
        fx:     'blindY', 
        speed:  'fast', 
        timeout: 0, 
        next:   '.hyt_flip'
    
    });
    
    $('#museumnetwork').cycle({ 
        
        fx:     'blindY', 
        speed:  'fast', 
        timeout: 0, 
        next:   '.mn_flip'
    
    });
    
    $('#promonews').cycle({ 
        
        fx:     'blindY', 
        speed:  'fast', 
        timeout: 0, 
        next:   '.pn_flip'
    
    });
    
    $('#msm').cycle({ 
        
        fx:     'blindY', 
        speed:  'fast', 
        timeout: 0, 
        next:   '.msm_flip'
    
    });
    
    $('#wallace').cycle({ 
        
        fx:     'blindY', 
        speed:  'fast', 
        timeout: 0, 
        next:   '.wc_flip'
    
    });
    
});