(function($)
{	
	// event manager
	$.extend({	
		/*
			google code
		*/
		google:{
			// var
			tracker:false,

			// page load
			page:function()
			{
				this.tracker._trackPageview();
			},

			log:function(category, action, label)
			{
				if(this.tracker)
				{
					this.tracker._trackEvent(category, action, label)
				}
			}			
		}
	})
})(jQuery)

// run it and pass it in!
$(document).ready(
	function()
	{
		setTimeout(function(){
			try
			{
				$.google.tracker = _gat._getTracker("UA-1812163-17");
				$.google.page();
			}
			catch(err){}			
		}, 1000);
		
		$(".sets a").bind('click', function(){$.google.log('fakeSite','Gallery',$(this).html());})
		$(".tags a").bind('click', function(){$.google.log('fakeSite','Tag',$(this).html());})
		$(".links a").bind('click', function(){var img = $(this).find("img").attr("src");img=img.slice(img.indexOf("-") + 1, -4);$.google.log('fakeSite','Project',img);})
	}
)