function letstangoInit() {
			slides();
			setUpWorkListHook();
			tabs();
			twitter();
			labelsInField();
			videoThumbs();
			
}

$(document).ready(function() { 
		letstangoInit();
});

/*-------------------------------------------    
	Video
-------------------------------------------*/
function setUpWorkListHook() {
	$(".project-name").after("<span class=\"project-extra\"></span>");
}

/*-------------------------------------------    
	Tabs
-------------------------------------------*/
function tabs() {	
		$(".tab-content").hide(); // Hide all content
		$("ul.tabs li:first").addClass("active").show(); //Activate first tab
		$(".tab-content:first").show(); //Show first tab content
		
		// On Click Event
		$("ul.tabs li").click(function() {
			$("ul.tabs li").removeClass("active"); // Remove any "active" class
			$(this).addClass("active"); // Add "active" class to selected tab
			$(".tab-content").hide(); // Hide all tab content
	
			var activeTab = $(this).find("a").attr("href"); // Find the href attribute value to identify the active tab + content
			$(activeTab).show(); // Fade in the active ID content
			return false;
		});
}

/*-------------------------------------------    
	Twitter
-------------------------------------------*/
function twitter() {
		$(".tweet").tweet({
        	username: "dohatango",
        	count: 4,
			loading_text: "Loading tweets..."
  	});
}

/*-------------------------------------------    
	Labels
-------------------------------------------*/
function labelsInField() { 
			$("label").inFieldLabels(); 
}

/*-------------------------------------------    
	Video thumbs
-------------------------------------------*/
function videoThumbs() {
	var scrollSpeed = 1200;
	var animationSpeed = 1000;
	var fadeDelay = 800;
	
	$('ul#video-list li a').click(function () {
		$("body").addClass("cinema");
		
		$('#video-container').animate({height: "480px"}, 600);
		
		$('#video-container').html('<iframe id="playingMovie" width="600" height="480" src="' + $(this).attr('YTid') +'" frameborder="0" allowfullscreen></iframe>');
    	$('#video-container iframe').fadeIn();
		$.scrollTo("#video-start", scrollSpeed);
    	$('#close').fadeIn('fast');
	});
	
	
	
	$('#video-wrapper header p').click(function () {
		$.scrollTo( 0, 800 );
		$('#video-container iframe').remove();
    	$('#video-container').animate({
    		height: "0px"
    	}, 1000);
    	$('#close').fadeOut('fast');
		$('body').removeClass("cinema");
	});
}



/*-------------------------------------------    
	Slides
-------------------------------------------*/
function slides(){
			$('#slides').cycle({
		        fx:     'fade',
		        speed:  '1000',
		        timeout: 5000,
		        pager:  '#slide-squares'
			});
}

     





