// 1

function showDesc1() {
	$('.description1', this).fadeIn();
	$('.rotator1').cycle('pause');
}

function hideDesc1() {
	$('.description1', this).fadeOut();
	$('.rotator1').cycle('resume');
}

function showNext1() {
	$('.nextBtn1', this).fadeIn();
}

function showPrev1() {
	$('.prevBtn1', this).fadeIn();
}

function hideNext1() {
	$('.nextBtn1', this).fadeOut();
}

function hidePrev1() {
	$('.prevBtn1', this).fadeOut();
}

// 2

function showDesc2() {
	$('.description2', this).fadeIn();
	$('.rotator2').cycle('pause');
}

function hideDesc2() {
	$('.description2', this).fadeOut();
	$('.rotator2').cycle('resume');
}

function showNext2() {
	$('.nextBtn2', this).fadeIn();
}

function showPrev2() {
	$('.prevBtn2', this).fadeIn();
}

function hideNext2() {
	$('.nextBtn2', this).fadeOut();
}

function hidePrev2() {
	$('.prevBtn2', this).fadeOut();
}

// 3

function showDesc3() {
	$('.description3', this).fadeIn();
	$('.rotator3').cycle('pause');
}

function hideDesc3() {
	$('.description3', this).fadeOut();
	$('.rotator3').cycle('resume');
}

function showNext3() {
	$('.nextBtn3', this).fadeIn();
}

function showPrev3() {
	$('.prevBtn3', this).fadeIn();
}

function hideNext3() {
	$('.nextBtn3', this).fadeOut();
}

function hidePrev3() {
	$('.prevBtn3', this).fadeOut();
}

$(document).ready(function(){
	$('.slideImg1' ,this).hoverIntent(showDesc1,hideDesc1);
	$('.nextArea1', this).hoverIntent(showNext1,hideNext1);
	$('.prevArea1', this).hoverIntent(showPrev1,hidePrev1);
	
	
	
	$('.slideImg2' ,this).hoverIntent(showDesc2,hideDesc2);
	$('.nextArea2', this).hoverIntent(showNext2,hideNext2);
	$('.prevArea2', this).hoverIntent(showPrev2,hidePrev2);
	
	
	$('.slideImg3' ,this).hoverIntent(showDesc3,hideDesc3);
	$('.nextArea3', this).hoverIntent(showNext3,hideNext3);
	$('.prevArea3', this).hoverIntent(showPrev3,hidePrev3);
	
});

jQuery.fn.startRotation = function() {
	$('.rotator1').cycle({
	fx:'fade',speed: 2000,delay: 5000,
	prev: '.prevBtn1',
	next: '.nextBtn1'
		}
	);
		$('.rotator2').cycle({
	fx:'fade',speed: 2000,delay: 5000,
	prev: '.prevBtn2',
	next: '.nextBtn2'
		}
	);
		$('.rotator3').cycle({
	fx:'fade',speed: 2000,delay: 5000,
	prev: '.prevBtn3',
	next: '.nextBtn3'
		}
	);
}
