// Make the home page carousel
$(document).ready( function() {
	
	$(".logo a").hover( 
		function() {
			$('#home-link').fadeIn(100);
	},
		function() {
			$('#home-link').fadeOut(100);
		}
	
	);
	

	
	function makeCarousel() { 
			$(".home-page-carousel").jCarouselLite( {
        
                    btnNext: ".next",
                    btnPrev: ".prev",
					btnGo: [".externalControl .1", ".externalControl .2",
					    ".externalControl .3", ".externalControl .4"],					
                   	scroll: 1,
					circular: true,
					visible: 1,
				
					
    	    });
	}
	
	makeCarousel();
	
	/* portfolio carousel */
	$(".mod.scrollable").jCarouselLite({
		btnNext: ".next",
	    btnPrev: ".prev",
		visible:5,
		scroll:2
	});
	
	
	/*$(".rightcol > p:first-child").attr("class","first-para");
	$(".rightcol > h3:first-child").attr("class","first-para");*/
	
	$("#vibelink").remove();
	
	$.localScroll({
		
		queue:true,
		duration:1000		  
	});
	
	/* tooltip */
	$('.portfolioCarousel .portfolio-image-link').tooltip({
		effect: 'fade',
		position: 'top center',
		opacity:'0.9',
		offset:[-130,0]
		
	});
	
	$('.portfolio-image-link img').removeAttr("title");
	
});

