define(['jquery', 'knockout', 'projects/index'], function($, ko, parent) {
	return {
		view: ko.computed(function() {
			var route = parent.router.activeInstruction();
			return route ? 'projects/' + route.config.view : null;
		}),
		compositionComplete: function(view) {
			//This is necessary because magnific popup requires these atrributes
			//They are already on the image, and I don't want to double them up in the source, this is easier
			$('.image-link').each(function() {
				$(this).attr('title', this.alt);
				$(this).attr('href', this.src);
			});

			//Start magnific in gallery mode, with all the images on the page
			$('.image-link').magnificPopup({
				type: 'image',
				gallery: { enabled: true }
			});
		}
	};
});
@@ -80,17 +80,60 @@
 urn 
-%7B%0A%09%09
+function Static() %7B%0A%09%09var self = this;%0A%09%09self.
 view
-:
+ =
  ko.
@@ -266,20 +266,25 @@
 ll;%0A%09%09%7D)
-,
+;
 %0A%09%09
+self.
 composit
@@ -294,17 +294,18 @@
 Complete
-:
+ =
  functio
@@ -771,16 +771,17 @@
 %09%7D);%0A%09%09%7D
+;
 %0A%09%7D;%0A%7D);

make static an instance so that magnific fires properly on nav