<script>

export default {
	data () {
		return {}
	},
	mounted () {
		var self=this;
		$(".collection-container").hide();
		$(".collection-description-complete").hide();
	},
	methods: {
	 	pickCollection: function(name){
		    if (!$("#show-collection-"+name).hasClass("btn-primary")){
			    $("#main-panel").hide();
	     	    $(".collection-container").removeClass("selected");
	     	    $(".collection-container:not(.selected)").hide();
			    $(".collection-description-complete").hide()
			    $(".collection-description").show()
	     	    $(".btn-collection").removeClass("btn-primary")
	     	    $("#show-collection-"+name).addClass("btn-primary")
	     	    $(".collection-container#collection-panel-"+name).show()
	     	    $(".collection-container#collection-panel-"+name).addClass("selected")
		    }
		},
		showCompleteDescription: function(name){
		    $(".collection-description-complete").hide()
		    $("#collection-description-short-"+name).hide()
		    $("#collection-description-complete-"+name).show()
		},
		hideCompleteDescription: function(name){
		    $(".collection-description-complete").hide()
		    $("#collection-description-short-"+name).show()
		}
	}
}


</script>