Template.layout.onRendered(function() {
	if (!this.openedIntro.get()) {
		this.$('.introduction-content').hide();
	}

	var instance = this;
	this.autorun(function() {
		if (instance.openedIntro.get()) {
			instance.$('.introduction-content').slideDown(400);
		} else {
			instance.$('.introduction-content').slideUp(400);
		}
	});
});


Template.layout.helpers({
	shownIntro: function() {
		return Assistant.shownIntro();
	}
});

Template.introduction.helpers({
	openedIntro: function() {
		return Assistant.openedIntro();
	}
});


Template.layout.events({
	// Clicks on the logo toggle the intro blurb, but only when already on home
	'click .-toggleIntro': function() {
		if (Router.current().route.options.template === "findWrap") {
			Assistant.showIntro();
		}
	},

	"click .js-introduction-close-btn": function(event, instance) {
		Assistant.doneIntro();
	},

	"click .js-introduction-toggle-btn": function(event, instance) {
		if (Assistant.openedIntro()) {
			Assistant.closeIntro();
		} else {
			Assistant.openIntro();
		}
	}
});

@@ -39,20 +39,25 @@
 %7B%0A%09if (!
-this
+Assistant
 .openedI
@@ -52,36 +52,32 @@
 tant.openedIntro
-.get
 ()) %7B%0A%09%09this.$('
@@ -167,24 +167,25 @@
 %7B%0A%09%09if (
+Ass
 i
-n
 stan
-ce
+t
 .openedI
@@ -192,12 +192,8 @@
 ntro
-.get
 ()) 

fix introduction