 $(document).ready(function(){

        $("#setupBar").click(function(){
                $("#setupFrame").slideToggle("slow");
                $(this).toggleClass("active");
                return false;
          });

        $("#setupToolsHeader").click(function(){
                $("#setupToolsBody").slideToggle("slow");
                $(this).toggleClass("active");
                return false;
          });

        $("#setupLegendeHeader").click(function(){
                $("#setupLegendeBody").slideToggle("slow");
                $(this).toggleClass("active");
                return false;
          });

        $("#setupListBoxHeader").click(function(){
                $("#setupListBoxBody").slideToggle("slow");
                $(this).toggleClass("active");
                return false;
          });
        $("#setupMeetingPointHeader").click(function(){
                $("#setupMeetingPointBody").slideToggle("slow");
                $(this).toggleClass("active");
                return false;
          });
        $("#setupMaptypeHeader").click(function(){
                $("#setupMaptypeBody").slideToggle("slow");
                $(this).toggleClass("active");
                return false;
          });



        $("#textboxHide").toggle(

                function()
                {
                  window.setTimeout(function(){
                                                $("#mapbox").animate({left:"0",width:"900"},500);
                                               },700);
                },
                function()
                {
                  window.setTimeout(function(){
                                                $("#mapbox").animate({left:"340",width:"559"},500);
                                               },700);
                });



        $("#textboxHide").click(function(){
                $("#textbox_small").slideToggle("slow");
                $(this).toggleClass("active");
                return false;
         });


 });
