jQuery(document).ready(function(){
	


    //Minimize Content Box
		
		jQuery(".content-box-header h3").css({ "cursor":"s-resize" }); // Give the h3 in Content Box Header a different cursor
		jQuery(".closed-box .content-box-content").hide(); // Hide the content of the header if it has the class "closed"
		jQuery(".closed-box .content-box-tabs").hide(); // Hide the tabs in the header if it has the class "closed"
		
		jQuery(".content-box-header h3").click( // When the h3 is clicked...
			function () {
			  jQuery(this).parent().next().toggle(); // Toggle the Content Box
			  jQuery(this).parent().parent().toggleClass("closed-box"); // Toggle the class "closed-box" on the content box
			  jQuery(this).parent().find(".content-box-tabs").toggle(); // Toggle the tabs
              
              if (jQuery("#pl").hasClass('plus'))
              {
                jQuery("#pl").removeClass('plus');
                jQuery("#pl").addClass('minus');
             
                //jQuery(".content-box ").css("height", "400px");
              }
              else
              {
                jQuery("#pl").removeClass('minus');
                jQuery("#pl").addClass('plus');
              }
			}
		);

		jQuery(".content-box-header #pl").click( // When the h3 is clicked...
			function () {
			  jQuery(this).parent().next().toggle(); // Toggle the Content Box
			  jQuery(this).parent().parent().toggleClass("closed-box"); // Toggle the class "closed-box" on the content box
			  jQuery(this).parent().find(".content-box-tabs").toggle(); // Toggle the tabs
              
              if (jQuery("#pl").hasClass('plus'))
              {
                jQuery("#pl").removeClass('plus');
                jQuery("#pl").addClass('minus');
             
                //jQuery(".content-box ").css("height", "400px");
              }
              else
              {
                jQuery("#pl").removeClass('minus');
                jQuery("#pl").addClass('plus');
              }
			}
		);
		
jQuery(".content-box-header1 h3").css({ "cursor":"s-resize" }); // Give the h3 in Content Box Header a different cursor
		jQuery(".closed-box .content-box-content").hide(); // Hide the content of the header if it has the class "closed"
		jQuery(".closed-box .content-box-tabs").hide(); // Hide the tabs in the header if it has the class "closed"
		
		jQuery(".content-box-header1 h3").click( // When the h3 is clicked...
			function () {
			  jQuery(this).parent().next().toggle(); // Toggle the Content Box
			  jQuery(this).parent().parent().toggleClass("closed-box"); // Toggle the class "closed-box" on the content box
			  jQuery(this).parent().find(".content-box-tabs").toggle(); // Toggle the tabs
              
              if (jQuery("#pl1").hasClass('plus'))
              {
                jQuery("#pl1").removeClass('plus');
                jQuery("#pl1").addClass('minus');
             
                //jQuery(".content-box ").css("height", "400px");
              }
              else
              {
                jQuery("#pl1").removeClass('minus');
                jQuery("#pl1").addClass('plus');
              }
			}
		);

		jQuery(".content-box-header1 #pl1").click( // When the h3 is clicked...
			function () {
			  jQuery(this).parent().next().toggle(); // Toggle the Content Box
			  jQuery(this).parent().parent().toggleClass("closed-box"); // Toggle the class "closed-box" on the content box
			  jQuery(this).parent().find(".content-box-tabs").toggle(); // Toggle the tabs
              
              if (jQuery("#pl1").hasClass('plus'))
              {
                jQuery("#pl1").removeClass('plus');
                jQuery("#pl1").addClass('minus');
             
                //jQuery(".content-box ").css("height", "400px");
              }
              else
              {
                jQuery("#pl1").removeClass('minus');
                jQuery("#pl1").addClass('plus');
              }
			}
		);
		
jQuery(".content-box-header2 h3").css({ "cursor":"s-resize" }); // Give the h3 in Content Box Header a different cursor
		jQuery(".closed-box .content-box-content").hide(); // Hide the content of the header if it has the class "closed"
		jQuery(".closed-box .content-box-tabs").hide(); // Hide the tabs in the header if it has the class "closed"
		
		jQuery(".content-box-header2 h3").click( // When the h3 is clicked...
			function () {
			  jQuery(this).parent().next().toggle(); // Toggle the Content Box
			  jQuery(this).parent().parent().toggleClass("closed-box"); // Toggle the class "closed-box" on the content box
			  jQuery(this).parent().find(".content-box-tabs").toggle(); // Toggle the tabs
              
              if (jQuery("#pl1").hasClass('plus'))
              {
                jQuery("#pl1").removeClass('plus');
                jQuery("#pl1").addClass('minus');
             
                //jQuery(".content-box ").css("height", "400px");
              }
              else
              {
                jQuery("#pl1").removeClass('minus');
                jQuery("#pl1").addClass('plus');
              }
			}
		);

		jQuery(".content-box-header2 #pl1").click( // When the h3 is clicked...
			function () {
			  jQuery(this).parent().next().toggle(); // Toggle the Content Box
			  jQuery(this).parent().parent().toggleClass("closed-box"); // Toggle the class "closed-box" on the content box
			  jQuery(this).parent().find(".content-box-tabs").toggle(); // Toggle the tabs
              
              if (jQuery("#pl1").hasClass('plus'))
              {
                jQuery("#pl1").removeClass('plus');
                jQuery("#pl1").addClass('minus');
             
                //jQuery(".content-box ").css("height", "400px");
              }
              else
              {
                jQuery("#pl1").removeClass('minus');
                jQuery("#pl1").addClass('plus');
              }
			}
		);		
});
