// JavaScript Document
$(document).ready(function(){
						   
/*set default trasparancy*/						   
	$("a#facebook_link").fadeTo(0,.5);
	$("a#twitter_link").fadeTo(0,.5);
	$("a#linkedin_link").fadeTo(0,.5);
	$("a#rss_link").fadeTo(0,.66);
	$("a#client_login").fadeTo(0,.66);
	$("a#blog").fadeTo(0,.66);
	$("a#mailing_list").fadeTo(0,.66);				
    		
/*hover effect on over*/
    $("a#facebook_link").hover(
      function () {
        $(this).stop().fadeTo(600,1);
      }, 
      function () {
        $(this).stop().fadeTo(300,.5);      }
    );		
	
    $("a#twitter_link").hover(
      function () {
        $(this).stop().fadeTo(600,1);
      }, 
      function () {
        $(this).stop().fadeTo(300,.5);      }
    );	
    
    $("a#linkedin_link").hover(
      function () {
        $(this).stop().fadeTo(600,1);
      }, 
      function () {
        $(this).stop().fadeTo(300,.5);      }
    );	    
	
    $("a#rss_link").hover(
      function () {
        $(this).stop().fadeTo(600,1);
      }, 
      function () {
        $(this).stop().fadeTo(300,.66);      }
    );		
    
    $("a#client_login").hover(
      function () {
        $(this).stop().fadeTo(600,1);
      }, 
      function () {
        $(this).stop().fadeTo(300,.66);      }
    );
    
    $("a#blog").hover(
      function () {
        $(this).stop().fadeTo(600,1);
      }, 
      function () {
        $(this).stop().fadeTo(300,.66);      }
    );
    
    $("a#mailing_list").hover(
      function () {
        $(this).stop().fadeTo(600,1);
      }, 
      function () {
        $(this).stop().fadeTo(300,.66);      }
    );    
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
structure effects
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/   
	$("div.structure_link").fadeTo(0,.01);
	
	    $("div.structure_link").hover(
      function () {
        $(this).stop().fadeTo(600,.3);
      }, 
      function () {
        $(this).stop().fadeTo(300,.01);      }
    );   
   
    $("div#aaa").click(
      function () {
      	$("div#aaa_text").stop().fadeIn(500);
      	return false;
      }
    );
    
    $("div#structure_advisory").click(
      function () {
      	$("div#advisory_text").stop().fadeIn(500);
      	return false;
      }
    );
    
    $("div#structure_joint_venture_management").click(
      function () {
      	$("div#joint_venture_management_text").stop().fadeIn(500);
      	return false;
      }
    );
    
    /*$("div#structure_business_administration").click(
      function () {
      	$("div#business_administration_text").stop().fadeIn(500);
      	return false;
      }
    );*/    
        
    $("div#structure_investment_committee").click(
      function () {
      	$("div#investment_committee_text").stop().fadeIn(500);
      	return false;
      }
    );
    
    $("div#structure_finance").click(
      function () {
      	$("div#finance_text").stop().fadeIn(500);
      	return false;
      }
    );
    
    $("div#structure_people").click(
      function () {
      	$("div#people_text").stop().fadeIn(500);
      	return false;
      }
    );
    
    $("div#structure_sales").click(
      function () {
      	$("div#sales_text").stop().fadeIn(500);
      	return false;
      }
    );
    
    $("div#structure_marketing").click(
      function () {
      	$("div#marketing_text").stop().fadeIn(500);
      	return false;
      }
    );
    
    $("div#structure_operation_excellence").click(
      function () {
      	$("div#operation_excellence_text").stop().fadeIn(500);
      	return false;
      }
    );        
    
    $("div#structure_research").click(
      function () {
      	$("div#research_text").stop().fadeIn(500);
      	return false;
      }
    );         
    
    $("div#structure_management_development_scheme").click(
      function () {
      	$("div#management_development_scheme_text").stop().fadeIn(500);
      	return false;
      }
    ); 
    
    $("div#structure_internship_programmes").click(
      function () {
      	$("div#internship_programmes_text").stop().fadeIn(500);
      	return false;
      }
    ); 
    
    $("div#structure_private_equity").click(
      function () {
      	$("div#private_equity_text").stop().fadeIn(500);
      	return false;
      }
    );                                    
   
/*onclick close text window*/	
	$("div#structure_container a.close").click(function(){
		$(this).parent().fadeOut(500);
		return false;
	});	
        
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
e6 effects
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    $("area#e6_ethics").hover(
      function () {
      	$("img#ethics_selected").stop().show();
        $("img#e6_diagram_main").stop().fadeTo(600,.2);
        $("div#e6_text_panel_ethics").stop(true, true).fadeIn(500);
      }, 
      function () {
      	$("img#ethics_selected").stop().hide();
        $("img#e6_diagram_main").stop().fadeTo(600,1);
        $("div#e6_text_panel_ethics").stop(true, true).fadeOut(500);
              }
    );
    	
    $("area#e6_entrepreneurial").hover(
      function () {
      	$("img#entrepreneurial_selected").stop().show();
        $("img#e6_diagram_main").stop().fadeTo(600,.2);
        $("div#e6_text_panel_entrepreneurial").stop(true, true).fadeIn(500);
      }, 
      function () {
      	$("img#entrepreneurial_selected").stop().hide();
        $("img#e6_diagram_main").stop().fadeTo(600,1);
        $("div#e6_text_panel_entrepreneurial").stop(true, true).fadeOut(500);      }
    );		
    
    $("area#e6_energise").hover(
      function () {
      	$("img#energise_selected").stop().show();
        $("img#e6_diagram_main").stop().fadeTo(600,.2);
        $("div#e6_text_panel_energise").stop(true, true).fadeIn(500);
      }, 
      function () {
      	$("img#energise_selected").stop().hide();
        $("img#e6_diagram_main").stop().fadeTo(600,1);
        $("div#e6_text_panel_energise").stop(true, true).fadeOut(500);      }
    );    
	
    $("area#e6_edge").hover(
      function () {
      	$("img#edge_selected").stop().show();
        $("img#e6_diagram_main").stop().fadeTo(600,.2);
        $("div#e6_text_panel_edge").stop(true, true).fadeIn(500);
      }, 
      function () {
      	$("img#edge_selected").stop().hide();
        $("img#e6_diagram_main").stop().fadeTo(600,1);
        $("div#e6_text_panel_edge").stop(true, true).fadeOut(500);      }
    );		
    
    $("area#e6_efficiency").hover(
      function () {
      	$("img#efficiency_selected").stop().show();
        $("img#e6_diagram_main").stop().fadeTo(600,.2);
        $("div#e6_text_panel_efficiency").stop(true, true).fadeIn(500);
      }, 
      function () {
      	$("img#efficiency_selected").stop().hide();
        $("img#e6_diagram_main").stop().fadeTo(600,1);
        $("div#e6_text_panel_efficiency").stop(true, true).fadeOut(500);      }
    );	
    
    $("area#e6_execute").hover(
      function () {
      	$("img#execute_selected").stop().show();
        $("img#e6_diagram_main").stop().fadeTo(600,.2);
        $("div#e6_text_panel_execute").stop(true, true).fadeIn(500);
      }, 
      function () {
      	$("img#execute_selected").stop().hide();
        $("img#e6_diagram_main").stop().fadeTo(600,1);
        $("div#e6_text_panel_execute").stop(true, true).fadeOut(500);      }
    );	

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Photo gallery effects
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/	
/*onclick show hidden images*/
	$("a.pic1").click(function(){
		$("div#main_pics").fadeIn(1000);
		$("div#main_pics div#big_pic1").fadeIn(1000);
		return false;
	});

	$("a.pic2").click(function(){
		$("div#main_pics").fadeIn(1000);					   
		$("div#main_pics div#big_pic2").fadeIn(1000);
		return false;
	});	
	
	$("a.pic3").click(function(){
		$("div#main_pics").fadeIn(1000);					   
		$("div#main_pics div#big_pic3").fadeIn(1000);
		return false;
	});	
	
	$("a.pic4").click(function(){
		$("div#main_pics").fadeIn(1000);					   
		$("div#main_pics div#big_pic4").fadeIn(1000);
		return false;
	});	
	
	$("a.pic5").click(function(){
		$("div#main_pics").fadeIn(1000);					   
		$("div#main_pics div#big_pic5").fadeIn(1000);
		return false;
	});		
	
	$("a.pic6").click(function(){
		$("div#main_pics").fadeIn(1000);					   
		$("div#main_pics div#big_pic6").fadeIn(1000);
		return false;
	});		
	
/*onclick close hidden image*/	
	$("div#main_pics a.close").click(function(){
		$("div#main_pics").fadeOut(600);
		$(this).parent().fadeOut(400);
		return false;
	});	
	
	
});
