$(document).ready(
	function()
	{		
		
		//Radio Show Hide

		//Hide div w/id extra
		$(".extra").css("display","none");

		//for each thing that's .checkme and checked, show the "extra" div:
		$("input[@class=checkme][@type=checkbox][@checked]").parent('fieldset').children(".extra").show();
		
		$(".checkme").click(function(){

			//toggle the off box
			$(this).parent('fieldset').children("input[@class=checkmenot][@type=checkbox]").check(($(this).is(":checked")?"off":"on"));

			//show or hide the "extra" div
			if ($(this).is(":checked"))
			{
				//show the hidden div
				$(this).parent('fieldset').children(".extra").show();
			}
			else
			{	   
				//otherwise, hide it 
				$(this).parent('fieldset').children(".extra").hide();
			}
		});



		// Add onclick handler to checkbox w/id checkme
		$(".checkmenot").click(function(){
			//toggle the on box
			$(this).parent('fieldset').children("input[@class=checkme][@type=checkbox]").check(($(this).is(":checked")?"off":"on"));

			//show or hide the "extra" div
			if (!$(this).is(":checked"))
			{
				//show the hidden div
				$(this).parent('fieldset').children(".extra").show();
			}
			else
			{	   
				//otherwise, hide it 
				$(this).parent('fieldset').children(".extra").hide();
			}

		});
			
		
		// Toggle Single Block
		$('a.toggle').click(function()
			{
				$(this).parent('div').next('div').toggle();
				$(this).children('.more').toggle();
				return false;
			}
		);
		
		//Toggle with Slider and Icon Change
		$('.hide_it').hide();
		$('.show_it').show();
		$('.hiddenContent').hide();
		
		$('.hider').click(function()
		{
        	$(this).parent('div').children('.hiddenContent').toggle();
			$(this).children('.hide_it').toggle();
			$(this).children('.show_it').toggle();

        });
         $(".hider").click(function() {
                $(this).toggleClass("opened");
                });
                
       //Toggle with Slider and Icon Change - number 2
		$('.article_hide_it').hide();
		$('.article_show_it').show();
		$('.articleHiddenContent').hide();
		
		$('.articleHider').click(function()
		{
        	$(this).parent('div').children('.articleHiddenContent').toggle();
			$(this).children('.article_hide_it').toggle();
			$(this).children('.article_show_it').toggle();

        });
         $(".articleHider").click(function() {
                $(this).toggleClass("opened");
                });
	}
);



