var $j = jQuery.noConflict();

//*** Slider
$j(document).ready(function() {
				var interval;
				
				$j('ul#myRoundabout')
					.roundabout({
         // easing: 'easeInOutBounce',  // for easing Bounce effect, jquery.easing.1.3.js has to be loaded!
         duration: 1250,
         minOpacity: 0.1,
         maxOpacity: 1.0,
         minScale: 0.1,
         maxScale: 1.0,
		 btnNext:'.prev',
		 btnPrev:'.next',
		 shape: 'lazySusan'
         // shape: 'tearDrop' <-- remove // for tearDrop shape, jquery.roundabout-shapes-1.1.js has to be loaded!
				}) 
					.hover(
						function() {
							// oh no, it's the cops!
							clearInterval(interval);
						},
						function() {
							// false alarm: PARTY!
							interval = startAutoPlay();
						}
					);
				
				// let's get this party started
				interval = startAutoPlay();
			});
			
			function startAutoPlay() {
				return setInterval(function() {
					$j('ul#myRoundabout').roundabout_animateToNextChild();
				}, 3750);
			}

//*** Portfolio thumbnail fade effects
$j(document).ready(function() {
	//On mouse over those thumbnail
	$j('.portfolio li').hover(function() {
		//Display the caption
		$j(this).find('div.caption').stop(false,true).fadeIn(200);
	},
	function() {
		//Reset the image
		$j(this).find('img').stop(false,true).animate({'width':$j('.portfolio li').width(), 'height':$j('.portfolio li').height(), 'top':'0', 'left':'0'}, {duration:100});	
		//Hide the caption
		$j(this).find('div.caption').stop(false,true).fadeOut(200);
	});

});

//*** Portfolio single page slider
$j(window).load(function() {
        $j('#slider').nivoSlider({
			controlNav:false
			});
    });

//*** Twitter line break before links
$j(document).ready(function() {
$j("ul#twitter_update_list li span a").before("<br/>")
});


