/*var vox = {
    quickMenuAction: 'show',
    locationsAction: 'show',
    init: function(){
        vox.listenForLiveEvents();
    },
    listenForLiveEvents: function(){
        $('#quick_menu').live('click', vox.quickMenu);
        $('#locations').live('click', vox.locations);
    },
    quickMenu: function(e){
        e.preventDefault();
        
        if(vox.quickMenuAction == 'show'){
            var amount = $('.quicklaunch').children('li > ul').length*27;
            $('#quicknav').animate({'height':amount+'px'});
            $('#quicknavs').children('li').hide();
            $('#quicknavs').children('li.quicklaunch').show();
            $('#quicknavs').show(function(){
            });
            vox.quickMenuAction = 'hide';
        }
        else{
            $('
    */        
            
var vox = {
    isOpen: 0,
    init: function(){
        vox.listenForLiveEvents();
    },
    listenForLiveEvents: function(){
        $('.tabs').live('click', vox.showPane);
    },
    showPane: function(e){
        e.preventDefault();
        
        var $t = $(this);
        $('#quicknav').children('ul').children('li').hide();
        
        if($t.hasClass('active') && vox.isOpen)
        {
            vox.isOpen = 0;
            $('#quicknav').animate({'height':'5px'});
        }
        else
        {
            vox.isOpen = 1;
            $('#quicknav').animate({'height':'190px'});
            $('#quicknav').children('ul').children('li.'+$t.attr('rel')).show();
            
        }
        
        $t.parent().parent().children('li').children('a').removeClass('active');
        $t.addClass('active');
    }
};

$(document).ready(vox.init);

function filter_results() {
	var url = window.location.pathname;
	var filters = "";
	$('#filters select').each(function () {
		if ($(this).val() != '') { 
			if(filters=="") { filters = "?tag="; }
			else { filters += ","; }
			filters += $(this).val(); 
		}
	});
	window.location.href=url+filters;
}
