jQuery(document).ready(function($) {


// Hover for homepage client-banner project list
var fancyHover = {
	init: function() {
		var project = jQuery('.client-banner li');
			
		project.hover(
			function () { 
				jQuery(this).children('.hover').removeClass('offscreen'); 
				jQuery(this).children('.project-info').css( 'background-color' , '#000000' );
			}, 
			function () { 
				jQuery(this).children('.hover').addClass('offscreen');
				jQuery(this).children('.project-info').css( 'background-color' , '#161611' );
			}
		);
		
	}
};
fancyHover.init();


// Hover for homepage client-banner project list
var hoverAnim = {
	init: function() {
		var project = jQuery('.client-banner li');
		var projectTxt = project.children('.hover');
		var projectInfo = project.children('.project-info');
		var originalBG = "#161611"; 
		var fadeColor = "#000000";
		
		project.children('.hover').css({left: '0px'})
 		project.children().children('.hover-bg').fadeTo(1, 0.0)
		project.children().children('.hover-content').css({left: '-185px'})
 			
		project.hover(
			function () {
				jQuery(this).children().children('.hover-content').css({left: '-185px'});
				jQuery(this).children().children('.hover-bg').stop().fadeTo(600, 0.80);
				jQuery(this).children().children('.hover-content').stop().animate({left: '0px'} , { queue: false, duration: 450, easing: 'easeOutQuint' });
				jQuery(this).children('.project-info').stop().animate({backgroundColor:fadeColor}, 750);
			}, 
			function () {
				jQuery(this).children().children('.hover-bg').stop().fadeTo(800 , 0.0);
				jQuery(this).children().children('.hover-content').stop().animate({left: '185px'} , { queue: false, duration: 300, easing: 'easeOutQuint' });
				jQuery(this).children('.project-info').stop().animate({backgroundColor:originalBG},850);
			}
		);
		
	}
};
hoverAnim.init();


});
