$(function() {
/* Home page footer slider*/
    $('.crousel').cycle({
  speed: 2000, //Adjust transition speed.
  timeout: 0,
  fx: 'scrollHorz',
  next:		'.next', 
	prev: 	'.prev', 
	pause:1
  
});
	
/* Home page What our Clients Say slider */
	
	$('.fade').cycle({
  speed: 200, //Adjust transition speed.
  timeout: 8000, //Adjust slider change timeout.
  fx: 'fade',
  pause:1

  
});
	
/* Home page Main Slider*/
	$('.paging').html('');
	$('.slide_container').cycle({
  speed: 800, //Adjust transition speed.
  timeout: 3500, //Adjust slider change timeout.
  fx: 'scrollHorz',
  before: onBefore,
  pause:1,
  next:		'.right_arrow	', 
  after: onAfter,
	prev: 	'.left_arrow',
	pager: '.paging',
			activePagerClass: 'active',
			pagerAnchorBuilder:function(index, DOMelement){
				return '<li><a href="#"></a></li>'; 
		}
	
  
});
	
	
});

function onBefore() {
	
	$('.content h2').fadeOut(400);
	$('.content h4').fadeOut(400);
	$('.content h2').animate({"left": "-=150px"});
	$('.content h3').fadeOut(1000);
	$('.content h4').animate({"left": "-=250px"});
	$('.content h2').hide();
	$('.content h4').hide();
	$('.content h3').hide();
	}
function onAfter() {
	
	$('.content h4', $(this)).show();
	$('.content h2', $(this)).show();
	
	$('.content h2', $(this)).animate({"left": "20px"});
	$('.content h3', $(this)).delay(700).fadeIn(300);
	$('.content h4', $(this)).delay(900).animate({"left": "60px"});

	}
