$(function() {
/////////////////////////////////////////////////////
/// prices intro ///
/////////////////////////////////////////////////////
	$('#venues_google_map #prices-intro h2 a').live('click', function() {
		$('#venues_google_map #prices-intro').remove();							
		return false;
	});												
/////////////////////////////////////////////////////
/// search filters ///
/////////////////////////////////////////////////////
	$('.search-filters li span').live('click', function() {
		var button = $(this).attr('class');
		if(button == 'up'){
			var filterID = $(this).parent().next().attr('id');
			var filter = '#'+filterID+' a';
			$(this).parent().next().show();
			$(this).parent().hide();
			$(filter).trigger('click');
		} else {
			var filterID = $(this).parent().prev().attr('id');
			var filter = '#'+filterID+' a';
			$(this).parent().prev().show();
			$(this).parent().hide();
			$(filter).trigger('click');
		}
		return false;
	});
	//$('.search-filters a').live('click', function() {
		//var filter = $(this).parent().parent().parent().attr('id');
		//var filterSpan = '#'+filter+' span';
		//var value = $(this).parent().attr('title');
		//var button = $(this).parent().attr('class');
		//if(filter == 'age-filter'){
			//var upValue = Number(value)+1;
			//var downValue = Number(value)-1;
			//if(button == "down"){
				//if(downValue != "3"){
					//$(this).parent().attr('title',''+downValue+'');
					//$(this).parent().next().attr('title',''+upValue+'');
				//}
			//} else {
				//if(upValue != "17"){
					//$(this).parent().prev().attr('title',''+downValue+'');
					//$(this).parent().attr('title',''+upValue+'');
				//}
			//}
		//} else if(filter == 'price-filter'){
			//var upValue = Number(value)+10;
			//var downValue = Number(value)-10;
			//if(button == "down"){
				//if(downValue != "0"){
					//$(this).parent().attr('title',''+downValue+'');
					//$(this).parent().next().attr('title',''+upValue+'');
				//}
			//} else {
				//if(upValue != "210"){
					//$(this).parent().prev().attr('title',''+downValue+'');
					//$(this).parent().attr('title',''+upValue+'');
				//}
			//}
		//} else if(filter == 'venues-filter'){
			//var upValue = Number(value)+20;
			//var downValue = Number(value)-20;
			//if(button == "down"){
				//if(downValue != "0"){
					//$(this).parent().attr('title',''+downValue+'');
					//$(this).parent().next().attr('title',''+upValue+'');
				//}
			//} else {
				//if(upValue != "120"){
					//$(this).parent().prev().attr('title',''+downValue+'');
					//$(this).parent().attr('title',''+upValue+'');
				//}
			//}
		//}
		//$(filterSpan).empty().append(''+value+'');
		//return false;
	//});
/////////////////////////////////////////////////////
});
