	ddaccordion.init({
	headerclass: "expandable",
	contentclass: "cat",
	revealtype: "click",
	collapseprev: true,
	defaultexpanded: [0],
	onemustopen: false,
	animatedefault: false,
	persiststate: true,
	toggleclass: ["", "openheader"],
	togglehtml: ["prefix", "", ""],
	animatespeed: "normal",
	oninit:function(headers, expandedindices){
	},
	onopenclose:function(header, index, state, isuseractivated){
	}
	})

	function makeSublist1(parent1,child1,isSubselectOptional)
	{
		jQuery("body").append("<select style='display:none' id='"+parent1+child1+"'></select>");
		jQuery('#'+parent1+child1).html(jQuery("#"+child1+" option"));
		jQuery('#'+child1).html("<option>-Semua Daerah-</option>");
		jQuery('#'+parent1).change(
			function()
			{
				var parent1Value = jQuery('#'+parent1).attr('value');
				jQuery('#'+child1).html(jQuery("#"+parent1+child1+" .sub_"+parent1Value).clone());
				if(isSubselectOptional) jQuery('#'+child1).prepend("");
			}
		);
	}

	jQuery(document).ready(function()
	{
		makeSublist1('parent1','child1',false);
	});

	function checkSearch() {
		if (!hasValue(window.document.searchPlace.txtPlacetype,"Pilih jenis tempat")) return false;
	}
	function makeSublist2(parent2,child2,isSubselectOptional)
	{
		jQuery("body").append("<select style='display:none' id='"+parent2+child2+"'></select>");
		jQuery('#'+parent2+child2).html(jQuery("#"+child2+" option"));
		jQuery('#'+child2).html("<option>-Nama Tempat-</option>");
		jQuery('#'+parent2).change(
			function()
			{
				var parent2Value = jQuery('#'+parent2).attr('value');
				jQuery('#'+child2).html(jQuery("#"+parent2+child2+" .sub_"+parent2Value).clone());
				if(isSubselectOptional) jQuery('#'+child2).prepend("");
			}
		);
	}

	jQuery(document).ready(function()
	{
		makeSublist2('parent2','child2',false);
	});