$(document).ready(function() {

    $('.header').css('margin-top','500px');
		
	$('.testimony').css('margin-top','1500px');

	$('.menu').css('opacity','0');
		
	$('.enter').css('opacity','0');
		
	$('.content').css('display','none');
		
	$('.logoreflection').css('opacity','0');

	$('#header_animation').css({
			'opacity':'0',
			'top':'-30px'
		});


	$('.header').animate({
			top: '-394'
		},
		800
	);
	
	$('#header_animation').animate({
 			opacity:1,
		},
		{duration:1300, }
		
	);
	
	$('#header_animation').animate({
			top: '15'
		},
		1000
	);
	
	
	
	$('.testimony').animate({
			top: '-970'
		},
		3000
	);

	$('.menu').delay(2500).animate({
 			opacity:1
		},
		{duration:1300}
		
	);
	
		$('.enter').delay(2500).animate({
 			opacity:1
		},
		{duration:1300}
		
	);
	

	
	$('.logoreflection').animate({
 			opacity:1,
			height:'160px'
		},
		{duration:800}
		
	);

    flashembed('header_animation', {
        src: 'sizzle_home.swf',
        allowfullscreen: false,
        bgcolor: '#000',
        wmode: 'transparent'
    });

    flashembed('flash-about', {
        src: 'swf/about_slideshow/about_slideshow.swf',
        allowfullscreen: false,
        bgcolor: '#6D8389'
    });
    
    $('.flow-restriction a').click(function(e) {
        flashembed('flash-about', {
            src: 'swf/debead_restriction/debead_restriction.swf',
            allowfullscreen: false,
            bgcolor: '#6D8389'
        });
        e.preventDefault();
    });
    
    $('.stimulated-blockage a').click(function(e) {
        flashembed('flash-about', {
            src: 'swf/debead_blockage/debead_blockage.swf',
            allowfullscreen: false,
            bgcolor: '#6D8389'
        });
        e.preventDefault();
    });
    
    $('.biofilm-bacteria a').click(function(e) {
        flashembed('flash-about', {
            src: 'swf/debead_bacteria/debead_bacteria.swf',
            allowfullscreen: false,
            bgcolor: '#6D8389'
        });
        e.preventDefault();
    });
    
    $('.turbulence-wear a').click(function(e) {
        flashembed('flash-about', {
            src: 'swf/debead_turbulence/debead_turbulence.swf',
            allowfullscreen: false,
            bgcolor: '#6D8389'
        });
        e.preventDefault();
    });
    
    
});

