(function() {
    var window = this,
		document = window.document,
		$ = jQuery,
		view;


    view = {
        init: function() {
            if ($('#storeListing').length) {
                view.toggleInfo();
            }
        },
        
        toggleInfo : function(){            
            $('#storeListing h3.open').click(function(){
                $(this).hide();
				$(this).next('div').show();
            });
			
			$('#storeListing h3.close').click(function(){
				//console.log($(this).parent())
				$(this).parent('div').parent('div').hide();
				$(this).parents('li').children('.open').show();
			});
        }
    };

    $(document).ready(function() {
        view.init();
    });

})();