$(function()
{
	$('a[class*="external"]').click(function()
    {
		$('a[class*="external"]').attr('target', '_blank');

		// also track outbound links and send info to google analytics.
		var linkHTML = $(this).html();
		pageTracker._trackEvent('Link', 'Outgoing',  '' + $(this).attr('href') + '');
	});
	
	$('#brand').cycle(
	{
		fx: 'fade',
		slideExpr: 'li',
		timeout: 10000,
		speed: 1000,
		pause: true,
		next: '#next',
		prev: '#prev'
	});
	
	//Set the default directory to find the images needed
	//by the plugin (closebtn.png, blank.gif, loading images ....)
	$.fn.fancyzoom.defaultsOptions.imgDir='/uploads/images/resources/';//very important must finish
	
	//New, you can now apply the fancy zoom effect on an image
	//apply the fancyzoom effect on all images that have the fancyzoom class
	$(".projects a").fancyzoom();
	
});