	// FancyBox
    
        $(document).ready(function() {
			/*
			*   Examples - images
			*/

			$("a[rel=zoom]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
				    return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
				}
			});
		});
        


	// Google Analytics
    
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-655222-50']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();


// Cycle

$(document).ready(function() 
{
    $('#slideshow').cycle(
	{
		fx: 'scrollHorz',
		speed: '400', 
		timeout: 4000,
		next:   '#next', 
		prev:   '#prev',
		after: function() 
		{
		$('#caption').html( $(this).attr('title') );
		}
	});
});
