function setFilter(cid){

	$j(document).ready(function(){
									$j(".category-location").each(function(i){
																		   if (this.getAttribute("class").indexOf("-" + cid) == -1 ){
																			   this.style.display='none';
																			}else{
																			   this.style.display='block';
																		    }
																		   });
								 });

}


function setSlide(mode, sid, id){
	if 	(mode == 'show'){
		 document.getElementById('location-' + sid).style.display = 'none';
		 document.getElementById('location-details-header-' + sid).style.display = 'block';
		 desc = document.getElementById('location-details-body-' + sid);
		 if (desc) {desc.style.display = 'none'; }
		 $j(document).ready(function(){
									 $j("#" + id).slideToggle("normal");
									});
	}else{
		 $j(document).ready(function(){
							 $j("#" + id).slideToggle("normal");
							});
		 document.getElementById('location-details-header-' + sid).style.display = 'none';
		 desc = document.getElementById('location-details-body-' + sid);
		 if (desc) {desc.style.display = 'none'; }
 		 document.getElementById('location-' + sid).style.display = 'block';
	}
	
}


function openGoogleMap(id){
	window.open ("custom/openGoogleMap.php?id=" + id,"mywindow","menubar=0,resizable=1,location=0,width=700,height=500");
	return false;
}

function openLocation(id){
	window.open ("custom/openLocation.php?id=" + id,"mywindow","menubar=0,resizable=1,location=0,width=700,height=500");
	return false;
}

function processFilter(cid){
	$j(".ctr").each(function(i){					
		if(this.className.indexOf('ctr' + cid) == -1) this.style.display = 'none'; else this.style.display = 'block';
	});
	$j(".l-menu").each(function(i){					
		if(this.className.indexOf('l-menu' + cid) == -1) this.style.fontWeight = 'normal'; else this.style.fontWeight = 'bold';
	});
}
