var Photos = new Class({
	init: function()
	{
		this.addTracking();
	},

	addTracking: function()
	{
		$$('A.box1').each(function(el){
                if(!window.ie){
                   //console.log(el);
                }
				el.addEvent("click", function(e){
					var imagePath = el.getAttribute('href').replace("/dach/", "");
					urchinTracker(imagePath);
				});
		});
	}
});

var photos = new Photos();
window.addEvent('domready', function() { photos.init(); });