
/*for selectarea*/

$(document).ready(function(){
	//Hide (Collapse) the toggle containers on load
	$(".areaselectlist").hide(); 

	//Switch the "Open" and "Close" state per click
	$(".areaselected").toggle(function(){
		$(this).addClass("active");
		//$(".trigger a img").hide();
		}, function () {
		$(this).removeClass("active");
		//$(".trigger a img").show();
	});

	//Slide up and down on click
	$(".areaselectedbox .areaselected").click(function(){
		$(".areaselectlist").slideToggle("normal");
	});
	$(".areas").click(function(){
		$(".areaselectlist").hide();
	});
	$(".closebtn").click(function(){
		$(".areaselectlist").hide();
	});

});

/*for openBox*/

$(document).ready(function(){
	//Hide (Collapse) the toggle containers on load
	$(".toggle_container").hide(); 

	//Switch the "Open" and "Close" state per click
	$(".trigger").toggle(function(){
		$(this).addClass("active");
		$(".trigger a img").hide();
		}, function () {
		$(this).removeClass("active");
		$(".trigger a img").show();
	});

	//Slide up and down on click
	$(".trigger").click(function(){
		$(this).next(".toggle_container").slideToggle("normal");
	});

});

/*for media*/

$(document).ready(function(){
	//Hide (Collapse) the toggle containers on load
	$(".media_container").hide(); 

	//Switch the "Open" and "Close" state per click
	$(".mediatrigger").toggle(function(){
		$(this).addClass("active");
		$(".mediatrigger a img").hide();
		}, function () {
		$(this).removeClass("active");
		$(".mediatrigger a img").show();
	});

	//Slide up and down on click
	$(".mediatrigger").click(function(){
		$(this).next(".media_container").slideToggle("fast");
	});

});
