$(document).ready(function(){
	
	// OPEN PODS
  $("#drop1").click(function () {
	   if ($("#drop1-text:first").is(":hidden")) {
			if ($("#drop2-text:first").is(":hidden") == false) {
				$("#drop2-text").slideUp("slow", function () {$("#drop1-text").slideDown("slow");});
			}
			if ($("#drop3-text:first").is(":hidden") == false) {
				$("#drop3-text").slideUp("slow", function () {$("#drop1-text").slideDown("slow");});
			}
			if ($("#drop4-text:first").is(":hidden") == false) {
				$("#drop4-text").slideUp("slow", function () {$("#drop1-text").slideDown("slow");});
			}
			if ($("#drop2-text:first").is(":hidden") == true && $("#drop3-text:first").is(":hidden") == true && $("#drop4-text:first").is(":hidden") == true ) {
				$("#drop1-text").slideDown("slow");
			}
	   } else {
	     $("#drop1-text").slideUp("slow");
	   }
	 });
  
  $("#drop2").click(function () {
    if ($("#drop2-text:first").is(":hidden")) {
			if ($("#drop1-text:first").is(":hidden") == false) {
				$("#drop1-text").slideUp("slow", function () {$("#drop2-text").slideDown("slow");});
			}
			if ($("#drop3-text:first").is(":hidden") == false) {
				$("#drop3-text").slideUp("slow", function () {$("#drop2-text").slideDown("slow");});
			}
			if ($("#drop4-text:first").is(":hidden") == false) {
				$("#drop4-text").slideUp("slow", function () {$("#drop2-text").slideDown("slow");});
			}
			if ($("#drop1-text:first").is(":hidden") == true && $("#drop3-text:first").is(":hidden") == true && $("#drop4-text:first").is(":hidden") == true ) {
				$("#drop2-text").slideDown("slow");
			}
    } else {
      $("#drop2-text").slideUp("slow");
    }
  });
  
  $("#drop3").click(function () {
    if ($("#drop3-text:first").is(":hidden")) {
			if ($("#drop1-text:first").is(":hidden") == false) {
				$("#drop1-text").slideUp("slow", function () {$("#drop3-text").slideDown("slow");});
			}
			if ($("#drop2-text:first").is(":hidden") == false) {
				$("#drop2-text").slideUp("slow", function () {$("#drop3-text").slideDown("slow");});
			}
			if ($("#drop4-text:first").is(":hidden") == false) {
				$("#drop4-text").slideUp("slow", function () {$("#drop3-text").slideDown("slow");});
			}
			if ($("#drop1-text:first").is(":hidden") == true && $("#drop2-text:first").is(":hidden") == true && $("#drop4-text:first").is(":hidden") == true ) {
				$("#drop3-text").slideDown("slow");
			}
    } else {
      $("#drop3-text").slideUp("slow");
    }
  });
  
  $("#drop4").click(function () {
    if ($("#drop4-text:first").is(":hidden")) {
			if ($("#drop1-text:first").is(":hidden") == false) {
				$("#drop1-text").slideUp("slow", function () {$("#drop4-text").slideDown("slow");});
			}
			if ($("#drop2-text:first").is(":hidden") == false) {
				$("#drop2-text").slideUp("slow", function () {$("#drop4-text").slideDown("slow");});
			}
			if ($("#drop3-text:first").is(":hidden") == false) {
				$("#drop3-text").slideUp("slow", function () {$("#drop4-text").slideDown("slow");});
			}
			if ($("#drop1-text:first").is(":hidden") == true && $("#drop2-text:first").is(":hidden") == true && $("#drop3-text:first").is(":hidden") == true ) {
				$("#drop4-text").slideDown("slow");
			}
    } else {
      $("#drop4-text").slideUp("slow");
    }
  });


	// CLOSE PODS FROM WITHIN THE DROP PODS
	$("#drop1-text").click(function () {
    if ($("#drop1-text:first").is(":hidden")) {
      $("#drop1-text").slideDown("slow");
    } else {
      $("#drop1-text").slideUp("slow");
    }
  });

	$("#drop2-text").click(function () {
    if ($("#drop2-text:first").is(":hidden")) {
      $("#drop2-text").slideDown("slow");
    } else {
      $("#drop2-text").slideUp("slow");
    }
  });

	$("#drop3-text").click(function () {
    if ($("#drop3-text:first").is(":hidden")) {
      $("#drop3-text").slideDown("slow");
    } else {
      $("#drop3-text").slideUp("slow");
    }
  });

	$("#drop4-text").click(function () {
    if ($("#drop4-text:first").is(":hidden")) {
      $("#drop4-text").slideDown("slow");
    } else {
      $("#drop4-text").slideUp("slow");
    }
  });



}); 

