$(document).ready(function(){
    $("#investor_sub1").hide();
    $("#investor_sub2").hide();
    $("#investor_sub3").hide();
    $("#investor_sub4").hide();
    
    var sitA = "closed";
    $("#investor_open1").click(function() {
      if(sitA == "closed"){
  $("#investor_sub1").slideDown('slow');$("#investor_open1").css({"background-image":"url('../images/investor_close.jpg')"});sitA = "open";
  $("#investor_text_wrapper").css({"color":"#000000"});
  $("#investor_text_wrapper2").css({"color":"#FFFFFF"});
  $("#investor_text_wrapper3").css({"color":"#FFFFFF"});
  $("#investor_text_wrapper4").css({"color":"#FFFFFF"});
  $("#investor_sub2").slideUp('slow');$("#investor_open2").css({"background-image":"url('../images/investor_open.jpg')"});sitB = "closed";
  $("#investor_sub3").slideUp('slow');$("#investor_open3").css({"background-image":"url('../images/investor_open.jpg')"});sitC = "closed";
  $("#investor_sub4").slideUp('slow');$("#investor_open4").css({"background-image":"url('../images/investor_open.jpg')"});sitD = "closed";
    }
    else{
      $("#investor_sub1").slideUp('slow');
      $("#investor_open1").css({"background-image":"url('../images/investor_open.jpg')"});
	  $("#investor_text_wrapper").css({"color":"#FFFFFF"});
      sitA = "closed";
      }
      });
      
    var sitB = "closed";
    $("#investor_open2").click(function() {
      if(sitB == "closed"){
  $("#investor_sub2").slideDown('slow');$("#investor_open2").css({"background-image":"url('../images/investor_close.jpg')"});sitB = "open";
  $("#investor_text_wrapper2").css({"color":"#000000"});
  $("#investor_text_wrapper").css({"color":"#FFFFFF"});
  $("#investor_text_wrapper3").css({"color":"#FFFFFF"});
  $("#investor_text_wrapper4").css({"color":"#FFFFFF"});
  $("#investor_sub3").slideUp('slow');$("#investor_open3").css({"background-image":"url('../images/investor_open.jpg')"});sitC = "closed";
  $("#investor_sub4").slideUp('slow');$("#investor_open4").css({"background-image":"url('../images/investor_open.jpg')"});sitD = "closed";
  $("#investor_sub1").slideUp('slow');$("#investor_open1").css({"background-image":"url('../images/investor_open.jpg')"});sitA = "closed";
    }
    else{
      $("#investor_sub2").slideUp('slow');
      $("#investor_open2").css({"background-image":"url('../images/investor_open.jpg')"});
	  $("#investor_text_wrapper2").css({"color":"#FFFFFF"});
      sitB = "closed";
      }
      });
      
    var sitC = "closed";
    $("#investor_open3").click(function() {
      if(sitC == "closed"){
  $("#investor_sub3").slideDown('slow');$("#investor_open3").css({"background-image":"url('../images/investor_close.jpg')"});sitC = "open";
  $("#investor_text_wrapper3").css({"color":"#000000"});
  $("#investor_text_wrapper2").css({"color":"#FFFFFF"});
  $("#investor_text_wrapper").css({"color":"#FFFFFF"});
  $("#investor_text_wrapper4").css({"color":"#FFFFFF"});
  $("#investor_sub4").slideUp('slow');$("#investor_open4").css({"background-image":"url('../images/investor_open.jpg')"});sitD = "closed";
  $("#investor_sub1").slideUp('slow');$("#investor_open1").css({"background-image":"url('../images/investor_open.jpg')"});sitA = "closed";
  $("#investor_sub2").slideUp('slow');$("#investor_open2").css({"background-image":"url('../images/investor_open.jpg')"});sitB = "closed";
    }
    else{
      $("#investor_sub3").slideUp('slow');
      $("#investor_open3").css({"background-image":"url('../images/investor_open.jpg')"});
	  $("#investor_text_wrapper3").css({"color":"#FFFFFF"});
      sitC = "closed";
      }
      });
      
    var sitD = "closed";
    $("#investor_open4").click(function() {
      if(sitD == "closed"){
  $("#investor_sub4").slideDown('slow');$("#investor_open4").css({"background-image":"url('../images/investor_close.jpg')"});sitD = "open";
  $("#investor_text_wrapper4").css({"color":"#000000"});
  $("#investor_text_wrapper2").css({"color":"#FFFFFF"});
  $("#investor_text_wrapper3").css({"color":"#FFFFFF"});
  $("#investor_text_wrapper").css({"color":"#FFFFFF"});
  $("#investor_sub3").slideUp('slow');$("#investor_open3").css({"background-image":"url('../images/investor_open.jpg')"});sitC = "closed";
  $("#investor_sub1").slideUp('slow');$("#investor_open1").css({"background-image":"url('../images/investor_open.jpg')"});sitA = "closed";
  $("#investor_sub2").slideUp('slow');$("#investor_open2").css({"background-image":"url('../images/investor_open.jpg')"});sitB = "closed";
    }
    else{
      $("#investor_sub4").slideUp('slow');
      $("#investor_open4").css({"background-image":"url('../images/investor_open.jpg')"});
	  $("#investor_text_wrapper4").css({"color":"#FFFFFF"});
      sitD = "closed";
      }
      });
      

});

