    $(function() {
        $('#credentials_tabs, #client_list, #who_we_are_tabs, #tabs, #platform_tabs').tabs(); //{ fx: { opacity: 'toggle', duration:'fast'}} Causes click through error
        $('.sub_navi li').removeClass('ui-corner-top').addClass('ui-corner-bottom');
	});
        
$(document).ready(function() {  
	$('#item_1_gradient').addClass('name_gradient_bg_hover');
	$('.team_info_1').show();
	$('[bubble_id=1]').addClass('count_bubble_on');
	
    //Main Content
   $('#main_navi li a').click(function() {
        $('#tabs li a').removeClass('selected');
        $(this).addClass('selected');
    }); 
    $('.sub_navi li a').click(function() {
        $('#tabs li a').removeClass('sub_selected');
        $(this).addClass('sub_selected');
    });

    $('.scrollto_button').hover(function() {
        $(this).addClass('scrollto_button_hover');
    },
    function() {
        $(this).removeClass('scrollto_button_hover');
    });

    $('.credentials_button').click(function() {
        $(".credentials_button").scrollTop(300);
    });

    $('#platform_sub li a').click(function() {
        main.tabSwitcher('platform', true, $(this).attr('tab_id'));
    });

    $('#platform_bubbles a').click(function() {
       main.tabSwitcher('platform', true, $(this).attr('id'));		
    });

	$('#bubble_arrow_next').click(function() {
		var selected = $('#platform_tabs').tabs('option', 'selected');
		var selected = parseInt(selected + 1);  
		
		 main.tabSwitcher('platform', false, selected);
	});
	
	$('#bubble_arrow_prev').click(function() {
		var selected = $('#platform_tabs').tabs('option', 'selected');
		var selected = parseInt(selected - 1);  

		 main.tabSwitcher('platform', false, selected);
	});
	
	$('#platform_next').click(function() {
		var selected = $('#platform_tabs').tabs('option', 'selected');
		var selected = parseInt(selected + 1);  
		main.tabSwitcher('platform', false, selected, 'next');
	});
    
    
    //Credentials


    $('#credentials_tabs li').removeClass('ui-corner-top').addClass('ui-corner-bottom');
        
    $('.client_list_item').hover(function() {
        //Include children() - this is an IE fix (otherwise only the element selected is faded, not it's children)
        $('.client_list_item').stop().fadeTo("slow", 0.33);
        $('.client_list_item').children().stop().fadeTo("fast", 0.33);
        $(this).stop().fadeTo("slow", 1.00);
        $(this).children().stop().fadeTo("fast", 1.00);

    },
    function() {
        $('.client_list_item').stop().fadeTo("fast", 1.00);
        $('.client_list_item').children().stop().fadeTo("fast", 1.00);

    });  
    
    $('.partner_list_item').hover(function() {
        //Include children() - this is an IE fix (otherwise only the element selected is faded, not it's children)
        $('.partner_list_item').stop().fadeTo("slow", 0.33);
        $('.partner_list_item').children().stop().fadeTo("slow", 0.33);
        $(this).stop().fadeTo("slow", 1.00);
        $(this).children().stop().fadeTo("fast", 1.00);

    },
    function() {
        $('.partner_list_item').stop().fadeTo("fast", 1.00);
        $('.partner_list_item').children().stop().fadeTo("fast", 1.00);

    });  
            
    $('#credentials_navi li a').click(function() {
        main.tabSwitcher('credentials', true, $(this).attr('tab_id'));
    });
	
	$('#credentials_bubbles a').click(function() {
       main.tabSwitcher('credentials', true, $(this).attr('id'));		
    });
	
	$('#credentials_next').click(function() {
		var selected = $('#credentials_tabs').tabs('option', 'selected');
		var selected = parseInt(selected + 1);  
		main.tabSwitcher('credentials', false, selected, 'next');
	});
    
    //Who_we_are


    $('#who_we_are_tabs li').removeClass('ui-corner-top').addClass('ui-corner-bottom');
    
    $('.team_list_item').hover(function() {
		$('.team_text_holder').hide();
        $('.name_gradient_bg').removeClass('name_gradient_bg_hover');
        $(this).children().children('.name_gradient_bg').addClass('name_gradient_bg_hover');      
        $('#' + $(this).attr('id') + '_team_info').fadeTo("slow", 1.00);
    },
    function() {
        
    });
    
    $('#who_we_are_navi li a').click(function() {
        main.tabSwitcher('who_we_are', true, $(this).attr('tab_id'));
    });
	
	$('#who_we_are_bubbles a').click(function() {
       main.tabSwitcher('who_we_are', true, $(this).attr('id'));		
    });
	
	$('#who_we_are_next').click(function() {
		var selected = $('#who_we_are_tabs').tabs('option', 'selected');
		var selected = parseInt(selected + 1);  
		main.tabSwitcher('who_we_are', false, selected, 'next');
	});
    
    
    //Footer
    
    $('.footer_items').hover(function(){
        $(this).addClass('footer_items_hover');
    },
    function() {
        $(this).removeClass('footer_items_hover');
    });
    
    
    //Scroller
    
    
    $('#whole_page').show();        
            
            
});
