/*///////////////////////////////////////*/
/*/ search links /*/
/*///////////////////////////////////////*/
$(function() {
	$('.organisr a').click(function(){
		alert('added to organisr!');
		
	});
});
/*///////////////////////////////////////*/
/*/ search links /*/
/*///////////////////////////////////////*/
$(function() {
	$('#search-links li a').livequery('click', function(){
		var rel=$(this).attr('rel');
		var parent=$(this).parent();
		$('#container').empty().load(rel).show();
		$('#search-links li').show();
		//$(parent).hide();
		return false;
	});
});
/*///////////////////////////////////////*/
/*/ ajax /*/
/*///////////////////////////////////////*/
$(function() {
	$('.ajax').click(function(){
		var rel=$(this).attr('rel');
		$('#container').empty().load(rel).show();
		return false;
	});
});
/*///////////////////////////////////////*/
/*/ package expand /*/
/*///////////////////////////////////////*/
$(function(){
	$('.package div').hide(0);
	$('.package dl').css('cursor', 'pointer');

	$('.package dl').click(function()
	{
		var
		el = this,
		node = $(this).next();

		$('.package dl').each(function(){
			$(this).removeClass('expanded');
		});

		$('.package div').each(function(){
			if( $(this).is(':visible') && $(this).get(0) != $(node).get(0) )
				$(this).slideUp('normal');
		});

		$(node).is(':hidden') ?
		$(node).slideDown('normal', function(){ $(el).addClass('expanded') }) :
		$(node).slideUp('normal', function(){ $(el).removeClass('expanded') }) ;
	});

});
/*///////////////////////////////////////*/
/*/ map search /*/
/*///////////////////////////////////////*/
$(function() {
	// this displays ajax div
	$('#map-search button').livequery('click', function(){
		var
		location=$('#map-search input#location').attr('value');
		user=$('#map-search input#location').attr('value');
		eventname=$('#map-search input#event').attr('value');
		href='/includes/map.php?location='+location;
		$('#container').empty().load(href).show();
		return false;
	});
});