/*function state5(state5) {
		$("#pause5").attr('disabled', state5 != RUN);
		$("#resume5").attr('disabled', state5 != PAUSE);
		$("#freeze5").attr('disabled', state5 == STOP);
		$("#stop5").attr('disabled', state5 == STOP);
	}
	function state(state) {
		$("#pause").attr('disabled', state != RUN);
		$("#resume").attr('disabled', state != PAUSE);
		$("#freeze").attr('disabled', state == STOP);
		$("#stop").attr('disabled', state == STOP);
		
	}

$(function() {
	var $test3 = $('#test3'),
		$test5 = $('#test5'),
		$caption = $('div.caption'),
		$pause = $('#pause'),
		$resume = $('#resume'),
		$freeze = $('#freeze'),
		$stop = $('#stop'),
		$restart = $('#restart'),
		$pause5 = $('#pause5'),
		$resume5 = $('#resume5'),
		$freeze5 = $('#freeze5'),
		$stop5 = $('#stop5'),
		$restart5 = $('#restart5'),
		STOP = 1, RUN = 2, PAUSE = 3;

	$test3.crossSlide({
		fade: 1
	}, [
		{
			src:  'TP-Trifold-Ani-1.jpg',
			//alt:  'Sand Castle',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-2.jpg',
			//alt:  'Sunflower',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-3.jpg',
			//alt:  'Flip Flops',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-4.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-5.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-6.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-7.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-10.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-11.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-12.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-13.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-14.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}
	], function(idx, img, idxOut, imgOut) {
		if (idxOut == undefined) {
			$caption.text(img.alt).animate({ opacity: .7 })
		} else {
			$caption.animate({ opacity: 0 })
		} 
		
	}
	);
	//$caption.show().css({ opacity: 0 })

	
	//state(RUN);
	

	
	$test3.ready(function() {
		$test3.crossSlidePause();
		state(PAUSE);
	});
	
	$pause.click(function() {
		$test3.crossSlidePause();
		state(PAUSE);
	});

	$resume.click(function() {
		$test3.crossSlideResume();
		state(RUN);
	})

	$freeze.click(function() {
		$test3.crossSlideFreeze();
		state(STOP);
	});

	$stop.click(function() {
		$test3.crossSlideStop();
		$caption.css({ opacity: 0 })
		state(STOP);
	});

	$restart.click(function() {
		$test3.crossSlideRestart();
		state(RUN);
	});
	
	
	

	
	$test5.crossSlide({
		//sleep: 2,
		fade: 1
	}, [
		{
			src:  'TP-Trifold-Ani-1.jpg',
			//alt:  'Sand Castle',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-2.jpg',
			//alt:  'Sunflower',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-3.jpg',
			//alt:  'Flip Flops',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-4.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-5.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-6.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-7.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-10.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-11.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-12.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-13.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  'TP-Trifold-Ani-14.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}
	], function(idx, img, idxOut, imgOut) {
		if (idxOut == undefined) {
			$caption.text(img.alt).animate({ opacity: .7 })
		} else {
			$caption.animate({ opacity: 0 })
		}
	});
	//$caption.show().css({ opacity: 0 })

	state5(RUN);
	//state(PAUSE);
	
	
	
	$pause5.click(function() {
		$test5.crossSlidePause();
		state5(PAUSE);
	});

	$resume5.click(function() {
		$test5.crossSlideResume();
		state5(RUN);
	})

	$freeze5.click(function() {
		$test5.crossSlideFreeze();
		state5(STOP);
	});

	$stop5.click(function() {
		$test5.crossSlideStop();
		$caption.css({ opacity: 0 })
		state5(STOP);
	});

	$restart5.click(function() {
		$test5.crossSlideRestart();
		state5(RUN);
	});
	
	
	
}
$("#pause").trigger("click");
state(PAUSE);
);*/


// start of version A

var STOP = 1, RUN = 2, PAUSE = 3;

function statelr(stlr) {
		$("#pauselr").attr('disabled', stlr != RUN);
		$("#resumelr").attr('disabled', stlr != PAUSE);
		$("#freezelr").attr('disabled', stlr == STOP);
		$("#stoplr").attr('disabled', stlr == STOP);
	}
	function statetf(sttf) {
		$("#pausetf").attr('disabled', sttf != RUN);
		$("#resumetf").attr('disabled', sttf != PAUSE);
		$("#freezetf").attr('disabled', sttf == STOP);
		$("#stoptf").attr('disabled', sttf == STOP);
		
	}

$(function() {
	var $tfanimation = $('#tfanimation'),
		$lranimation = $('#lranimation'),
		$caption = $('div.caption'),
		$pausetf = $('#pausetf'),
		$resumetf = $('#resumetf'),
		$freezetf = $('#freezetf'),
		$stoptf = $('#stoptf'),
		$restarttf = $('#restarttf'),
		$pauselr = $('#pauselr'),
		$resumelr = $('#resumelr'),
		$freezelr = $('#freezelr'),
		$stoplr = $('#stoplr'),
		$restartlr = $('#restartlr');

	$tfanimation.crossSlide({
		fade: .25
	}, [
		{
			src:  '/images/animation/tonnofold-animation1a.jpg',
			alt:  'Sand Castle',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/tonnofold-animation2a.jpg',
			alt:  'Sunflower',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/tonnofold-animation3a.jpg',
			alt:  'Flip Flops',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/tonnofold-animation4a.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/tonnofold-animation5a.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/tonnofold-animation6a.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/tonnofold-animation7a.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/tonnofold-animation8a.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/tonnofold-animation9a.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/tonnofold-animation8a.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/tonnofold-animation7a.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/tonnofold-animation6a.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/tonnofold-animation5a.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/tonnofold-animation4a.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/tonnofold-animation3a.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/tonnofold-animation2a.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/tonnofold-animation1a.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}
		
		/*{
			src:  '/images/animation/TP-Trifold-Ani-1.jpg',
			alt:  'Sand Castle',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  '/images/animation/TP-Trifold-Ani-2.jpg',
			alt:  'Sunflower',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  '/images/animation/TP-Trifold-Ani-3.jpg',
			alt:  'Flip Flops',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  '/images/animation/TP-Trifold-Ani-4.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  '/images/animation/TP-Trifold-Ani-5.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  '/images/animation/TP-Trifold-Ani-6.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  '/images/animation/TP-Trifold-Ani-7.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  '/images/animation/TP-Trifold-Ani-10.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  '/images/animation/TP-Trifold-Ani-11.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  '/images/animation/TP-Trifold-Ani-12.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  '/images/animation/TP-Trifold-Ani-13.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}, {
			src:  '/images/animation/TP-Trifold-Ani-14.jpg',
			alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 1
		}
		*/
		
	], function(idx, img, idxOut, imgOut) {
		if (idxOut == undefined) {
			$caption.text(img.alt).animate({ opacity: .7 })
		} else {
			$caption.animate({ opacity: 0 })
		} 
		
	}
	);
	//$caption.show().css({ opacity: 0 })

	
	//state(RUN);
	

	
	$tfanimation.ready(function() {
		$tfanimation.crossSlidePause();
		statetf(PAUSE);
	});
	
	$pausetf.click(function() {
		$tfanimation.crossSlidePause();
		//alert('Handler for $test3.crossSlidePause() called.');
		statetf(PAUSE);
	});

	$resumetf.click(function() {
		$tfanimation.crossSlideResume();
		statetf(RUN);
	});

	$freezetf.click(function() {
		$tfanimation.crossSlideFreeze();
		//alert('Handler for $test3.crossSlideFreeze(); called.');
		statetf(STOP);
	});

	$stoptf.click(function() {
		$tfanimation.crossSlideStop();
		$caption.css({ opacity: 0 })
		statetf(STOP);
	});

	$restarttf.click(function() {
		$tfanimation.crossSlideRestart();
		statetf(RUN);
	});
	
	
	

	
	$lranimation.crossSlide({
		//sleep: 2,
		fade: .5
	}, [
		{
			src:  '/images/animation/loroll-animation1a.jpg',
			//alt:  'Sand Castle',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/loroll-animation2a.jpg',
			//alt:  'Sunflower',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/loroll-animation3a.jpg',
			//alt:  'Flip Flops',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/loroll-animation4a.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/loroll-animation5a.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/loroll-animation6a.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/loroll-animation7a.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/loroll-animation6a.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/loroll-animation5a.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/loroll-animation4a.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/loroll-animation3a.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 2
		}, {
			src:  '/images/animation/loroll-animation2a.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/loroll-animation1a.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}
		
		
		/*
		
		{
			src:  '/images/animation/TR-Ani-image-1.jpg',
			//alt:  'Sand Castle',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-2.jpg',
			//alt:  'Sunflower',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-3.jpg',
			//alt:  'Flip Flops',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-4.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-5.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-6.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-7.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-10.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-11.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-12.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-13.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: 2
		}, {
			src:  '/images/animation/TR-Ani-image-12.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-11.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-10.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-9.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-8.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-7.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-6.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-5.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-4.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-3.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-2.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}, {
			src:  '/images/animation/TR-Ani-image-1.jpg',
			//alt:  'Rubber Ring',
			from: '100% 100% 1x',
			to:   '100% 100% 1x',
			time: .25
		}
		*/
		
		
		
	], function(idx, img, idxOut, imgOut) {
		if (idxOut == undefined) {
			$caption.text(img.alt).animate({ opacity: .7 })
		} else {
			$caption.animate({ opacity: 0 })
		}
	});
	//$caption.show().css({ opacity: 0 })

	//state5(RUN);
	//state(PAUSE);
	
	
	
	$pauselr.click(function() {
		$lranimation.crossSlidePause();
		statelr(PAUSE);
	});
	
	$pauselr.click(function() {
		$lranimation.crossSlidePause();
		statelr(PAUSE);
	});

	$resumelr.click(function() {
		$lranimation.crossSlideResume();
		statelr(RUN);
	})

	$freezelr.click(function() {
		$lranimation.crossSlideFreeze();
		statelr(STOP);
	});

	$stoplr.click(function() {
		$lranimation.crossSlideStop();
		$caption.css({ opacity: 0 })
		statelr(STOP);
	});

	$restartlr.click(function() {
		$lranimation.crossSlideRestart();
		statelr(RUN);
	});
	
	
	/*$test3.ready(function(){
		$test3.crossSlidePause();
		state(PAUSE);
	});
	*/
	
	//setTimeout('$("#pause").trigger("click")', 10000);  //executes the statement after 10 seconds
//$("#pause").trigger("click");
statetf(PAUSE);
statelr(PAUSE);
}
);

// function to fade in and out an image
$(function() {
// OPACITY OF BUTTON SET TO 50%
$(".latest_img").css("opacity","0.5");
		
// ON MOUSE OVER
$(".latest_img").hover(function () {
										  
// SET OPACITY TO 100%
$(this).stop().animate({
opacity: 1.0
}, "slow");
},
		
// ON MOUSE OUT
function () {
			
// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 0.5
}, "slow");
});
});

// function to fade in and out a div
$(function() {
	// OPACITY OF BUTTON SET TO 50%
	$("#tfanminOver").css("opacity","1.0");
		
	// ON MOUSE OVER
	$("#tfanimOver").hover(function () {
										  
		// SET OPACITY TO 100%
		$(this).stop().animate({
		opacity: .25
		}, "slow");
		$('#tfanimation').crossSlideResume();
	},
		
	// ON MOUSE OUT
	function () {
			
	// SET OPACITY BACK TO 50%
		$(this).stop().animate({
		opacity: 1.0
		}, "slow");
		$('#tfanimation').crossSlidePause();
	});
});

// function to fade in and out a div
$(function() {
	// OPACITY OF BUTTON SET TO 50%
	$("#lranminOver").css("opacity","1.0");
		
	// ON MOUSE OVER
	$("#lranimOver").hover(function () {
										  
		// SET OPACITY TO 100%
		$(this).stop().animate({
		opacity: .25
		}, "slow");
		$('#lranimation').crossSlideResume();
	},
		
	// ON MOUSE OUT
	function () {
			
	// SET OPACITY BACK TO 50%
		$(this).stop().animate({
		opacity: 1.0
		}, "slow");
		$('#lranimation').crossSlidePause();
	});
});

/*
// function to fade in and out a div
$(function() {
	// OPACITY OF BUTTON SET TO 50%
	$("#tfbuttons").css("opacity","1.0");
		
	// ON MOUSE OVER
	$("#tfbuttons").hover(function () {
										  
		// SET OPACITY TO 100%
		$(this).stop().animate({
		opacity: .25
		}, "slow");
		$('#tfanimation').crossSlideResume();
	},
		
	// ON MOUSE OUT
	function () {
			
	// SET OPACITY BACK TO 50%
		$(this).stop().animate({
		opacity: 1.0
		}, "slow");
		$('#tfanimation').crossSlidePause();
	});
});
*/
// function to fade in and out a div
$(function() {
	// OPACITY OF BUTTON SET TO 50%
	$("#lrbuttons").css("opacity","0.3");
	
	// ON MOUSE OVER
	$("#lrbuttons").hover(function () {
										  
		// SET OPACITY TO 100%
		$(this).stop().animate({
		opacity: 1.0
		}, "fast");
	},
		
	// ON MOUSE OUT
	function () {
			
	// SET OPACITY BACK TO 50%
		$(this).stop().animate({
		opacity: 0.3
		}, "slow");
	});
});

