$(document).ready(function(){

	if ($('.case_std').length) { 
		$(".case_std").jCarouselLite({
			btnNext: ".gonext",
			btnPrev: ".goprev",
			visible: 4,
			auto: 1800,
			speed: 500
		});
	}


//***************On click Hide menus***************//
	$('#navigator')
	  .hover(function() {
		$('.navigat').stop().animate({ height: 105 }, 'medium');
	  }, function() {
		$('.navigat').stop().animate({ height: 0 }, 'medium');
	});


//****************Start of the slider hoverflow effets*****************//
	$('.show_hide')
	.hover(function() {		
		$('#d, .slider').cycle('pause');
		$('.holder_left ul').cycle('pause');
		$('.slider-bottom ul').cycle('pause');
		$('.slider-top').stop().animate({ height: 0 }, 'medium');
		$('.slider-bottom').stop().animate({ height: 80 }, 'medium');
	});	  
	  

	$('#main_content').mouseover(function(){
		$('#d, .slider').cycle('resume');
		$('.holder_left ul').cycle('resume');
		$('.slider-bottom ul').cycle('resume');	
		$('.slider-top').stop().animate({ height: 170 }, 'medium');
		$('.slider-bottom').stop().animate({ height: 170 }, 'medium');

	});
	
	$('#header').mouseover(function(){
		$('.slider-top').stop().animate({ height: 170 }, 'medium');
		$('.slider-bottom').stop().animate({ height: 170 }, 'medium');
		$('#d, .slider').cycle('resume');
		$('.holder_left ul').cycle('resume');
		$('.slider-bottom ul').cycle('resume');	
	});
	 
	$('.case')
	  .hover(function() {
		$(this).stop().animate({ opacity: 1 }, 'medium');
	  }, function() {
		$(this).stop().animate({ opacity: 0 }, 'medium');
	});

	  
	$('.btnp')
	  .mouseenter(function() {
		$('.prev').stop(false).animate({ right: 100 , opacity: 0 }, 'slow');

		$('.prevo').stop(false).animate({ right: 75 , opacity: 1 }, 'slow');
	});
	  
	$('.btnp')
	  .mouseout(function() {
		$('.prev').stop(false).animate({ right: 75 , opacity: 1 }, 'fast');
		$('.prevo').stop(false).animate({ right: 75 , opacity: 0 }, 'fast');
	});

	$('.btn')
	  .mouseenter(function() {
		$('.next').stop(false).animate({ right: 0 , opacity: 0 }, 'slow');
		$('.nextn').stop(false).animate({ right: 30 , opacity: 1 }, 'slow');
	});
	  
	$('.btn')
	  .mouseout(function() {
		$('.next').stop(false).animate({ right: 30 , opacity: 1 }, 'fast');
		$('.nextn').stop(false).animate({ right: 30 , opacity: 0 }, 'fast');
	});

///////////////////////work page///////////////////////////////////////////////

	$('.btnp')
	  .mouseenter(function() {
		$('.prevw').stop(false).animate({ right: 100 , opacity: 0 }, 'slow');

		$('.prevow').stop(false).animate({ right: 75 , opacity: 1 }, 'slow');
	});
	  
	$('.btnp')
	  .mouseout(function() {
		$('.prevw').stop(false).animate({ right: 75 , opacity: 1 }, 'fast');

		$('.prevow').stop(false).animate({ right: 75 , opacity: 0 }, 'fast');
	});

	$('.btn')
	  .mouseenter(function() {
		$('.nextw').stop(false).animate({ right: 0 , opacity: 0 }, 'slow');

		$('.nextnw').stop(false).animate({ right: 30 , opacity: 1 }, 'slow');
	});
	  
	$('.btn')
	  .mouseout(function() {
		$('.nextw').stop(false).animate({ right: 30 , opacity: 1 }, 'fast');

		$('.nextnw').stop(false).animate({ right: 30 , opacity: 0 }, 'fast');
	});


	$('.banner_slide').hover(function() {
		$('.adiinfo').stop().animate({ height: 57 , padding:15 ,  opacity: 1}, 'medium');
	  }, function() {
		$('.adiinfo').stop().animate({ height: 0 ,  opacity: 0}, 'medium');
	}); 

});



