Skip to main content
Notice removed Draw attention by angela
Bounty Ended with Bob's answer chosen by angela
the snippet is not runnable (no html)
Source Link
janos
  • 111.7k
  • 15
  • 152
  • 391

$('#menu').click(function () {
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#fatal').css('display') == 'none' ) {
        $('#fatal').animate({ left: 'toggle' }, 300, function() {
            $('#igna, #black').slideToggle("fast");   
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
    if ($('#bio-line-1').css('display') != 'none') {
        $('#bio-line-2').slideUp("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'hide' });
        }, 300);
    }
    
   $('#contact-info').animate({right: 'hide'});

   $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
   
});
$('#igna').click(function () {
    if ($('#igna-2').css('display') == 'none') {
        $('#igna-2').animate({ left: 'show' }, 300, function() {
            $('#igna-1').slideToggle("fast");
        });
    }
      
    else {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300);   
        });
    }
  
   $('#bio-line-1').animate({width: 'hide'});
   $('#contact-info').animate({right: 'hide'});
   $('#bio-line-2').slideUp("fast");
   $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
});
   
$('#contact').click(function () {
    
    $('#contact-info').animate({right: 'toggle'});
    
   if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
    if ($('#bio-line-1').css('display') != 'none') {
        $('#bio-line-2').slideUp("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'hide' });
        }, 300);
    }
  $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
    

        });

$('#name-a').click(function () {
    if ($('#bio-line-1').css('display') == 'none') {
        $('#bio-line-1').animate({ width: 'toggle' });
        window.setTimeout(function () {
            $('#bio-line-2').slideToggle("slow");
        }, 100);
    }
    else {
        $('#bio-line-2').slideToggle("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'toggle' });
        }, 300);
    }
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
    
  
  $('#contact-info').animate({right: 'hide'});

  $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
});
$("#black").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
   
  $('#black-div').fadeIn('500');
  $('#black-credits').fadeIn('3000');
  $('#dust-div, #youth-div, #fatal-div, #hurt-div, #igna-1-div, #igna-2-div, #igna-1-credits, #igna-2-credits, #fatal-credits').fadeOut('100');
});

$("#igna-1 a").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
  
  $('#igna-1-div').fadeIn('500');
  $('#igna-1-credits').fadeIn('3000');
  $('#dust-div, #black-div, #fatal-div, #hurt-div, #youth-div, #black-credits, #igna-2-div, #igna-2-credits, #fatal-credits').fadeOut('100');
});
$("#igna-2 a").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
  
  $('#igna-2-div').fadeIn('500');
  $('#igna-2-credits').fadeIn('3000');
  $('#dust-div, #black-div, #fatal-div, #hurt-div, #youth-div, #black-credits, #fatal-credits, #igna-1-div, #igna-1-credits,').fadeOut('100');
});
$("#fatal").click(function(){
    
   if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
  $('#fatal-div').fadeIn('500');
   $('#fatal-credits').fadeIn('3000');
  $('#dust-div, #youth-div, #black-div, #hurt-div, #igna-1-div, #igna-2-div, #black-credits, #igna-1-credits, #igna-2-credits,').fadeOut('100');
});

$('#menu').click(function () {
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#fatal').css('display') == 'none' ) {
        $('#fatal').animate({ left: 'toggle' }, 300, function() {
            $('#igna, #black').slideToggle("fast");   
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
    if ($('#bio-line-1').css('display') != 'none') {
        $('#bio-line-2').slideUp("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'hide' });
        }, 300);
    }
    
   $('#contact-info').animate({right: 'hide'});

   $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
   
});
$('#igna').click(function () {
    if ($('#igna-2').css('display') == 'none') {
        $('#igna-2').animate({ left: 'show' }, 300, function() {
            $('#igna-1').slideToggle("fast");
        });
    }
      
    else {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300);   
        });
    }
  
   $('#bio-line-1').animate({width: 'hide'});
   $('#contact-info').animate({right: 'hide'});
   $('#bio-line-2').slideUp("fast");
   $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
});
   
$('#contact').click(function () {
    
    $('#contact-info').animate({right: 'toggle'});
    
   if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
    if ($('#bio-line-1').css('display') != 'none') {
        $('#bio-line-2').slideUp("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'hide' });
        }, 300);
    }
  $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
    

        });

$('#name-a').click(function () {
    if ($('#bio-line-1').css('display') == 'none') {
        $('#bio-line-1').animate({ width: 'toggle' });
        window.setTimeout(function () {
            $('#bio-line-2').slideToggle("slow");
        }, 100);
    }
    else {
        $('#bio-line-2').slideToggle("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'toggle' });
        }, 300);
    }
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
    
  
  $('#contact-info').animate({right: 'hide'});

  $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
});
$("#black").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
   
  $('#black-div').fadeIn('500');
  $('#black-credits').fadeIn('3000');
  $('#dust-div, #youth-div, #fatal-div, #hurt-div, #igna-1-div, #igna-2-div, #igna-1-credits, #igna-2-credits, #fatal-credits').fadeOut('100');
});

$("#igna-1 a").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
  
  $('#igna-1-div').fadeIn('500');
  $('#igna-1-credits').fadeIn('3000');
  $('#dust-div, #black-div, #fatal-div, #hurt-div, #youth-div, #black-credits, #igna-2-div, #igna-2-credits, #fatal-credits').fadeOut('100');
});
$("#igna-2 a").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
  
  $('#igna-2-div').fadeIn('500');
  $('#igna-2-credits').fadeIn('3000');
  $('#dust-div, #black-div, #fatal-div, #hurt-div, #youth-div, #black-credits, #fatal-credits, #igna-1-div, #igna-1-credits,').fadeOut('100');
});
$("#fatal").click(function(){
    
   if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
  $('#fatal-div').fadeIn('500');
   $('#fatal-credits').fadeIn('3000');
  $('#dust-div, #youth-div, #black-div, #hurt-div, #igna-1-div, #igna-2-div, #black-credits, #igna-1-credits, #igna-2-credits,').fadeOut('100');
});

$('#menu').click(function () {
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#fatal').css('display') == 'none' ) {
        $('#fatal').animate({ left: 'toggle' }, 300, function() {
            $('#igna, #black').slideToggle("fast");   
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
    if ($('#bio-line-1').css('display') != 'none') {
        $('#bio-line-2').slideUp("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'hide' });
        }, 300);
    }
    
   $('#contact-info').animate({right: 'hide'});

   $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
   
});
$('#igna').click(function () {
    if ($('#igna-2').css('display') == 'none') {
        $('#igna-2').animate({ left: 'show' }, 300, function() {
            $('#igna-1').slideToggle("fast");
        });
    }
      
    else {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300);   
        });
    }
  
   $('#bio-line-1').animate({width: 'hide'});
   $('#contact-info').animate({right: 'hide'});
   $('#bio-line-2').slideUp("fast");
   $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
});
   
$('#contact').click(function () {
    
    $('#contact-info').animate({right: 'toggle'});
    
   if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
    if ($('#bio-line-1').css('display') != 'none') {
        $('#bio-line-2').slideUp("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'hide' });
        }, 300);
    }
  $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
    

        });

$('#name-a').click(function () {
    if ($('#bio-line-1').css('display') == 'none') {
        $('#bio-line-1').animate({ width: 'toggle' });
        window.setTimeout(function () {
            $('#bio-line-2').slideToggle("slow");
        }, 100);
    }
    else {
        $('#bio-line-2').slideToggle("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'toggle' });
        }, 300);
    }
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
    
  
  $('#contact-info').animate({right: 'hide'});

  $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
});
$("#black").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
   
  $('#black-div').fadeIn('500');
  $('#black-credits').fadeIn('3000');
  $('#dust-div, #youth-div, #fatal-div, #hurt-div, #igna-1-div, #igna-2-div, #igna-1-credits, #igna-2-credits, #fatal-credits').fadeOut('100');
});

$("#igna-1 a").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
  
  $('#igna-1-div').fadeIn('500');
  $('#igna-1-credits').fadeIn('3000');
  $('#dust-div, #black-div, #fatal-div, #hurt-div, #youth-div, #black-credits, #igna-2-div, #igna-2-credits, #fatal-credits').fadeOut('100');
});
$("#igna-2 a").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
  
  $('#igna-2-div').fadeIn('500');
  $('#igna-2-credits').fadeIn('3000');
  $('#dust-div, #black-div, #fatal-div, #hurt-div, #youth-div, #black-credits, #fatal-credits, #igna-1-div, #igna-1-credits,').fadeOut('100');
});
$("#fatal").click(function(){
    
   if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
  $('#fatal-div').fadeIn('500');
   $('#fatal-credits').fadeIn('3000');
  $('#dust-div, #youth-div, #black-div, #hurt-div, #igna-1-div, #igna-2-div, #black-credits, #igna-1-credits, #igna-2-credits,').fadeOut('100');
});

$('#menu').click(function () {
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#fatal').css('display') == 'none' ) {
        $('#fatal').animate({ left: 'toggle' }, 300, function() {
            $('#igna, #black').slideToggle("fast");   
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
    if ($('#bio-line-1').css('display') != 'none') {
        $('#bio-line-2').slideUp("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'hide' });
        }, 300);
    }
    
   $('#contact-info').animate({right: 'hide'});

   $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
   
});
$('#igna').click(function () {
    if ($('#igna-2').css('display') == 'none') {
        $('#igna-2').animate({ left: 'show' }, 300, function() {
            $('#igna-1').slideToggle("fast");
        });
    }
      
    else {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300);   
        });
    }
  
   $('#bio-line-1').animate({width: 'hide'});
   $('#contact-info').animate({right: 'hide'});
   $('#bio-line-2').slideUp("fast");
   $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
});
   
$('#contact').click(function () {
    
    $('#contact-info').animate({right: 'toggle'});
    
   if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
    if ($('#bio-line-1').css('display') != 'none') {
        $('#bio-line-2').slideUp("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'hide' });
        }, 300);
    }
  $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
    

        });

$('#name-a').click(function () {
    if ($('#bio-line-1').css('display') == 'none') {
        $('#bio-line-1').animate({ width: 'toggle' });
        window.setTimeout(function () {
            $('#bio-line-2').slideToggle("slow");
        }, 100);
    }
    else {
        $('#bio-line-2').slideToggle("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'toggle' });
        }, 300);
    }
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
    
  
  $('#contact-info').animate({right: 'hide'});

  $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
});
$("#black").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
   
  $('#black-div').fadeIn('500');
  $('#black-credits').fadeIn('3000');
  $('#dust-div, #youth-div, #fatal-div, #hurt-div, #igna-1-div, #igna-2-div, #igna-1-credits, #igna-2-credits, #fatal-credits').fadeOut('100');
});

$("#igna-1 a").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
  
  $('#igna-1-div').fadeIn('500');
  $('#igna-1-credits').fadeIn('3000');
  $('#dust-div, #black-div, #fatal-div, #hurt-div, #youth-div, #black-credits, #igna-2-div, #igna-2-credits, #fatal-credits').fadeOut('100');
});
$("#igna-2 a").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
  
  $('#igna-2-div').fadeIn('500');
  $('#igna-2-credits').fadeIn('3000');
  $('#dust-div, #black-div, #fatal-div, #hurt-div, #youth-div, #black-credits, #fatal-credits, #igna-1-div, #igna-1-credits,').fadeOut('100');
});
$("#fatal").click(function(){
    
   if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
  $('#fatal-div').fadeIn('500');
   $('#fatal-credits').fadeIn('3000');
  $('#dust-div, #youth-div, #black-div, #hurt-div, #igna-1-div, #igna-2-div, #black-credits, #igna-1-credits, #igna-2-credits,').fadeOut('100');
});
Tweeted twitter.com/#!/StackCodeReview/status/605155120825937920
added website link
Source Link

To also help further here is the website this script belongs to demo website

To also help further here is the website this script belongs to demo website

Notice added Draw attention by angela
Bounty Started worth 100 reputation by angela
deleted 363 characters in body
Source Link

Take a look at the DEMO for the whole script

$('#menu').click(function () {
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna, #igna-1'#igna').slideUp("fast", function() {
                    $('#fatal, #igna-2''#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#fatal').css('display') == 'none' ) {
        $('#fatal').animate({ left: 'toggle' }, 300, function() {
            $('#igna, #black').slideToggle("fast");   
        });
        
    } else {
        $('#black, #igna, #igna-1'#igna').slideUp("fast", function() {
            $('#fatal, #igna-2''#fatal').animate({ left: 'hide' }, 300);
        });
    }
    if ($('#bio-line-1').css('display') != 'none') {
        $('#bio-line-2').slideUp("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'hide' });
        }, 300);
    }
    
    
   $('#contact-info').animate({right: 'hide'});
 
   $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
   
});
$('#igna').click(function () {
    if ($('#igna-2').css('display') == 'none') {
        $('#igna-2').animate({ left: 'show' }, 300, function() {
            $('#igna-1').slideToggle("fast");
        });
    }
      
    else {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300);   
        });
    }
  
   $('#bio-line-1').animate({width: 'hide'});
   $('#contact-info').animate({right: 'hide'});
   $('#bio-line-2').slideUp("fast");
   $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
});
   
$('#contact').click(function () {
    
    $('#contact-info').animate({right: 'toggle'});
    
   if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna, #igna-1'#igna').slideUp("fast", function() {
                    $('#fatal, #igna-2''#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna, #igna-1'#igna').slideUp("fast", function() {
            $('#fatal, #igna-2''#fatal').animate({ left: 'hide' }, 300);
        });
    }
    if ($('#bio-line-1').css('display') != 'none') {
        $('#bio-line-2').slideUp("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'hide' });
        }, 300);
    }
  $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
    setTimeout(function () {
        $('#contact-info').animate({right: 'toggle'});
    }, 500);
});

        });

$('#name-a').click(function () {
    if ($('#bio-line-1').css('display') == 'none') {
        $('#bio-line-1').animate({ width: 'toggle' });
        window.setTimeout(function () {
            $('#bio-line-2').slideToggle("slow");
        }, 100);
    }
    else {
        $('#bio-line-2').slideToggle("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'toggle' });
        }, 300);
    }
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna, #igna-1'#igna').slideUp("fast", function() {
                    $('#fatal, #igna-2''#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna, #igna-1'#igna').slideUp("fast", function() {
            $('#fatal, #igna-2''#fatal').animate({ left: 'hide' }, 300);
        });
    }
    
  
  $('#contact-info').animate({right: 'hide'});

  $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
});
$("#black").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna, #igna-1'#igna').slideUp("fast", function() {
                    $('#fatal, #igna-2''#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna, #igna-1'#igna').slideUp("fast", function() {
            $('#fatal, #igna-2''#fatal').animate({ left: 'hide' }, 300);
        });
    }
   
  $('#black-div').fadeIn('500');
  $('#black-credits').fadeIn('3000');
  $('#dust-div, #youth-div, #fatal-div, #hurt-div, #igna-1-div, #igna-2-div, #igna-1-credits, #igna-2-credits, #fatal-credits').fadeOut('100');
});

$("#igna-1 a").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna, #igna-1'#igna').slideUp("fast", function() {
                    $('#fatal, #igna-2''#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna, #igna-1'#igna').slideUp("fast", function() {
            $('#fatal, #igna-2''#fatal').animate({ left: 'hide' }, 300);
        });
    }
  
  $('#igna-1-div').fadeIn('500');
  $('#igna-1-credits').fadeIn('3000');
  $('#dust-div, #black-div, #fatal-div, #hurt-div, #youth-div, #black-credits, #igna-2-div, #igna-2-credits, #fatal-credits').fadeOut('100');
});
$("#igna-2 a").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna, #igna-1'#igna').slideUp("fast", function() {
                    $('#fatal, #igna-2''#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna, #igna-1'#igna').slideUp("fast", function() {
            $('#fatal, #igna-2''#fatal').animate({ left: 'hide' }, 300);
        });
    }
  
  $('#igna-2-div').fadeIn('500');
  $('#igna-2-credits').fadeIn('3000');
  $('#dust-div, #black-div, #fatal-div, #hurt-div, #youth-div, #black-credits, #fatal-credits, #igna-1-div, #igna-1-credits,').fadeOut('100');
});
$("#fatal").click(function(){
    
   if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna, #igna-1'#igna').slideUp("fast", function() {
                    $('#fatal, #igna-2''#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna, #igna-1'#igna').slideUp("fast", function() {
            $('#fatal, #igna-2''#fatal').animate({ left: 'hide' }, 300);
        });
    }
  $('#fatal-div').fadeIn('500');
   $('#fatal-credits').fadeIn('3000');
  $('#dust-div, #youth-div, #black-div, #hurt-div, #igna-1-div, #igna-2-div, #black-credits, #igna-1-credits, #igna-2-credits,').fadeOut('100');
});

Take a look at the DEMO for the whole script

$('#menu').click(function () {
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna, #igna-1').slideUp("fast", function() {
                    $('#fatal, #igna-2').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#fatal').css('display') == 'none' ) {
        $('#fatal').animate({ left: 'toggle' }, 300, function() {
            $('#igna, #black').slideToggle("fast");   
        });
        
    } else {
        $('#black, #igna, #igna-1').slideUp("fast", function() {
            $('#fatal, #igna-2').animate({ left: 'hide' }, 300);
        });
    }
    if ($('#bio-line-1').css('display') != 'none') {
        $('#bio-line-2').slideUp("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'hide' });
        }, 300);
    }
    
    
   $('#contact-info').animate({right: 'hide'});
   $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
   
});
$('#igna').click(function () {
    if ($('#igna-2').css('display') == 'none') {
        $('#igna-2').animate({ left: 'show' }, 300, function() {
            $('#igna-1').slideToggle("fast");
        });
    }
      
    else {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300);   
        });
    }
  
   $('#bio-line-1').animate({width: 'hide'});
   $('#contact-info').animate({right: 'hide'});
   $('#bio-line-2').slideUp("fast");
   $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
});
$('#contact').click(function() {
   if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna, #igna-1').slideUp("fast", function() {
                    $('#fatal, #igna-2').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna, #igna-1').slideUp("fast", function() {
            $('#fatal, #igna-2').animate({ left: 'hide' }, 300);
        });
    }
    if ($('#bio-line-1').css('display') != 'none') {
        $('#bio-line-2').slideUp("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'hide' });
        }, 300);
    }
  $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
    setTimeout(function () {
        $('#contact-info').animate({right: 'toggle'});
    }, 500);
});

$('#name-a').click(function () {
    if ($('#bio-line-1').css('display') == 'none') {
        $('#bio-line-1').animate({ width: 'toggle' });
        window.setTimeout(function () {
            $('#bio-line-2').slideToggle("slow");
        }, 100);
    }
    else {
        $('#bio-line-2').slideToggle("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'toggle' });
        }, 300);
    }
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna, #igna-1').slideUp("fast", function() {
                    $('#fatal, #igna-2').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna, #igna-1').slideUp("fast", function() {
            $('#fatal, #igna-2').animate({ left: 'hide' }, 300);
        });
    }
    
  
  $('#contact-info').animate({right: 'hide'});

  $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
});
$("#black").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna, #igna-1').slideUp("fast", function() {
                    $('#fatal, #igna-2').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna, #igna-1').slideUp("fast", function() {
            $('#fatal, #igna-2').animate({ left: 'hide' }, 300);
        });
    }
   
  $('#black-div').fadeIn('500');
  $('#black-credits').fadeIn('3000');
  $('#dust-div, #youth-div, #fatal-div, #hurt-div, #igna-1-div, #igna-2-div, #igna-1-credits, #igna-2-credits, #fatal-credits').fadeOut('100');
});

$("#igna-1 a").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna, #igna-1').slideUp("fast", function() {
                    $('#fatal, #igna-2').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna, #igna-1').slideUp("fast", function() {
            $('#fatal, #igna-2').animate({ left: 'hide' }, 300);
        });
    }
  
  $('#igna-1-div').fadeIn('500');
  $('#igna-1-credits').fadeIn('3000');
  $('#dust-div, #black-div, #fatal-div, #hurt-div, #youth-div, #black-credits, #igna-2-div, #igna-2-credits, #fatal-credits').fadeOut('100');
});
$("#igna-2 a").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna, #igna-1').slideUp("fast", function() {
                    $('#fatal, #igna-2').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna, #igna-1').slideUp("fast", function() {
            $('#fatal, #igna-2').animate({ left: 'hide' }, 300);
        });
    }
  
  $('#igna-2-div').fadeIn('500');
  $('#igna-2-credits').fadeIn('3000');
  $('#dust-div, #black-div, #fatal-div, #hurt-div, #youth-div, #black-credits, #fatal-credits, #igna-1-div, #igna-1-credits,').fadeOut('100');
});
$("#fatal").click(function(){
    
   if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna, #igna-1').slideUp("fast", function() {
                    $('#fatal, #igna-2').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna, #igna-1').slideUp("fast", function() {
            $('#fatal, #igna-2').animate({ left: 'hide' }, 300);
        });
    }
  $('#fatal-div').fadeIn('500');
   $('#fatal-credits').fadeIn('3000');
  $('#dust-div, #youth-div, #black-div, #hurt-div, #igna-1-div, #igna-2-div, #black-credits, #igna-1-credits, #igna-2-credits,').fadeOut('100');
});
$('#menu').click(function () {
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#fatal').css('display') == 'none' ) {
        $('#fatal').animate({ left: 'toggle' }, 300, function() {
            $('#igna, #black').slideToggle("fast");   
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
    if ($('#bio-line-1').css('display') != 'none') {
        $('#bio-line-2').slideUp("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'hide' });
        }, 300);
    }
    
   $('#contact-info').animate({right: 'hide'});
 
   $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
   
});
$('#igna').click(function () {
    if ($('#igna-2').css('display') == 'none') {
        $('#igna-2').animate({ left: 'show' }, 300, function() {
            $('#igna-1').slideToggle("fast");
        });
    }
      
    else {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300);   
        });
    }
  
   $('#bio-line-1').animate({width: 'hide'});
   $('#contact-info').animate({right: 'hide'});
   $('#bio-line-2').slideUp("fast");
   $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
});
   
$('#contact').click(function () {
    
    $('#contact-info').animate({right: 'toggle'});
    
   if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
    if ($('#bio-line-1').css('display') != 'none') {
        $('#bio-line-2').slideUp("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'hide' });
        }, 300);
    }
  $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
    

        });

$('#name-a').click(function () {
    if ($('#bio-line-1').css('display') == 'none') {
        $('#bio-line-1').animate({ width: 'toggle' });
        window.setTimeout(function () {
            $('#bio-line-2').slideToggle("slow");
        }, 100);
    }
    else {
        $('#bio-line-2').slideToggle("slow");

        window.setTimeout(function () {
            $('#bio-line-1').animate({ width: 'toggle' });
        }, 300);
    }
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
    
  
  $('#contact-info').animate({right: 'hide'});

  $('#black-div, #black-credits, #igna-1-div, #igna-1-credits, #igna-2-div, #igna-2-credits, #fatal-div, #fatal-credits').fadeOut('100');
});
$("#black").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
   
  $('#black-div').fadeIn('500');
  $('#black-credits').fadeIn('3000');
  $('#dust-div, #youth-div, #fatal-div, #hurt-div, #igna-1-div, #igna-2-div, #igna-1-credits, #igna-2-credits, #fatal-credits').fadeOut('100');
});

$("#igna-1 a").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
  
  $('#igna-1-div').fadeIn('500');
  $('#igna-1-credits').fadeIn('3000');
  $('#dust-div, #black-div, #fatal-div, #hurt-div, #youth-div, #black-credits, #igna-2-div, #igna-2-credits, #fatal-credits').fadeOut('100');
});
$("#igna-2 a").click(function(){
    if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
  
  $('#igna-2-div').fadeIn('500');
  $('#igna-2-credits').fadeIn('3000');
  $('#dust-div, #black-div, #fatal-div, #hurt-div, #youth-div, #black-credits, #fatal-credits, #igna-1-div, #igna-1-credits,').fadeOut('100');
});
$("#fatal").click(function(){
    
   if ( $('#igna-1').css('display') != 'none' ) {
        $('#igna-1').slideToggle("fast", function() {
            $('#igna-2').animate({ left: 'hide' }, 300, function() {
                $('#black, #igna').slideUp("fast", function() {
                    $('#fatal').animate({ left: 'hide' }, 300);
                });
            });   
        });
    } else if ( $('#igna-1').css('display') == 'none' ) {
          $('#black, #igna').slideUp("fast", function() {
          $('#fatal').animate({ left: 'hide' }, 300);  
        });
        
    } else {
        $('#black, #igna').slideUp("fast", function() {
            $('#fatal').animate({ left: 'hide' }, 300);
        });
    }
  $('#fatal-div').fadeIn('500');
   $('#fatal-credits').fadeIn('3000');
  $('#dust-div, #youth-div, #black-div, #hurt-div, #igna-1-div, #igna-2-div, #black-credits, #igna-1-credits, #igna-2-credits,').fadeOut('100');
});
Post Reopened by 200_success
added code snippet
Source Link
Loading
added code
Source Link
Loading
Post Closed as "Not suitable for this site" by 200_success
Post Reopened by 200_success
The code is now working how we want it to.
Source Link
Loading
Post Closed as "Not suitable for this site" by cHao, Mathieu Guindon, rolfl
edited tags
Link
Loading
deleted 32 characters in body
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237
Loading
Source Link
Loading