// MASTHEAD

jQuery('#masthead .widearea')
.cycle({ 
	fx: 'scrollHorz',
	speedIn: 400,
	speedOut: 400,
	timeout: 0,
	next: '#masthead .next',
	prev: '#masthead .back'
});



// TESTIMONIALS

jQuery('#testimonials .prev-next-nav').show();

jQuery('#testimonial-block')
.cycle({
	fx: 'fade',
	speed: 'slow',
	timeout: 8000,
	pause: 1,
	next: '#testimonials .next',
	prev: '#testimonials .prev'
});



// WORKS

jQuery('#work div.prev-next-nav').show();

jQuery('#latestWork .prev-next-nav p a').click(function(){ jQuery('#latestWork .prev-next-nav p a').hide(); });

jQuery('#work')
.cycle({ 
	fx: 'scrollHorz',
	speed: 'slow',
	timeout: 4000,
	pause: 1,
	next: '#latestWork .next',
	prev: '#latestWork .prev',
	before: function(){ jQuery('#latestWork .prev-next-nav p a').fadeOut('fast'); },
	after: function(){ jQuery('#latestWork .prev-next-nav p a').fadeIn('fast'); }
});

jQuery("#containerWorks ul.works li > a").fancybox({
	'overlayShow': true,
	'overlayOpacity': 0.7,
	'hideOnContentClick': false,
	'centerOnScroll': false
});
	

// AFFILIATE LINKS

jQuery("#woo").click(function(){ window.location = "http://www.woothemes.com/amember/go.php?r=5074&i=b0"; return false; });
jQuery("#mt").click(function(){ window.location = "http://www.mediatemple.net/go/order/?refdom=southernmedia.org"; return false; });

// NAV FADE IN
jQuery('#nav').fadeIn();

// WOOTHEMES POPUP
var wooReferer = false;
if (document.referrer.indexOf("woothemes") > -1) { wooReferer = true }
