var Photos = new Class({
	init: function()
	{
		this.addTracking();
	},

	addTracking: function()
	{
		$$('A.box1').each(function(el){ 
				el.addEvent("click", function(e){
					var imagePath = el.getAttribute('href').replace("http://sebastian-intl.jp/on_the_set/photos/", "");
					urchinTracker(imagePath);
				});
		});
	}
});

var photos = new Photos();
window.addEvent('domready', function() { photos.init(); });