$(document).ready(function(){
	$(".container > .section > .head, .multidiv_div > .section > .head").click(function () {
		$(this).parent().children("div .body").slideToggle(1000);
	});
	
	$(".data_table .checkbox :checkbox").click(function () {
		if($(this).is(':checked')) {
			$(this).closest("div .body").children().children(".data_table_submits_div").slideDown(400);
		}
	});
	
    $('.datepicker').datepicker({
    	dateFormat: 'yy-mm-dd',
    	changeYear: true
     });
	
	$(".notes .activate").click(function() {
		$(this).fadeOut(800);
		$(this).slideUp(800);
		$(this).parent().children(".head").fadeIn(1000);
		$(this).parent().children(".head").slideDown(1000);
		$(this).parent().children(".body").fadeIn(1000);
		$(this).parent().children(".body").slideDown(1000);
	});
	
	$('.sortable').sortable({
			placeholder: 'container_section_temp'
		});

	$('.textarea').tabby();
	
	$('.editor').htmlarea({
		css: '/Scripts/jquery/jHtmlArea/jHtmlArea.EditorIframe.css',
        toolbar: ["html", "|",
                "forecolor",  // <-- Add the "forecolor" Toolbar Button
                "|", "bold", "italic", "underline", "strikethrough", "|", "p", "h1", "h2", "h3", "|", "link", "unlink", "|", "image", 
                "|", "copy", "paste", "|", "increasefontsize", "decreasefontsize",
                "|", "horizontalrule", "orderedlist", "unorderedlist",
                "|", "indent", "outdent"] // Overrides/Specifies the Toolbar buttons to show
        });

});


