$(document).ready(function() {

	$('#rotating').cycle({fx:'scrollDown', speed:200, timeout:3000 });

	function mycarousel_initCallback(carousel){
	carousel.buttonNext.bind('click', function() {carousel.startAuto(0);});
	carousel.buttonPrev.bind('click', function() {carousel.startAuto(0);});
	carousel.clip.hover(function() {carousel.stopAuto();}, function() {carousel.startAuto();});};
	jQuery(document).ready(function() {
		jQuery('#carousel1').jcarousel({
			auto: 5,
			scroll: 2,
			vertical: true,
			wrap: 'last',
			initCallback: mycarousel_initCallback
		});
	});
	
	$("ul.video-thumbs li").hover(function() {
	$(this).css({'z-index' : '10'}); /*Add a higher z-index value so this image stays on top*/ 
	$(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
		.animate({
			marginTop: '-10px', /* The next 4 lines will vertically align this image */ 
			marginLeft: '-10px',
			width: '110px', /* Set new width */
			height: '85px', /* Set new height */
		}, 200); /* this value of "200" is the speed of how fast/slow this hover animates */

	} , function() {
	$(this).css({'z-index' : '0'}); /* Set z-index back to 0 */
	$(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
		.animate({
			marginTop: '0', /* Set alignment back to default */
			marginLeft: '0',
			top: '0',
			left: '0',
			width: '80px', /* Set width back to default */
			height: '65px', /* Set height back to default */
		}, 400);

	$("ul.video-thumbs li a").click(function() {
		var mainVideo = $(this).attr("href");
		$(".youtube-player").attr({ src: mainVideo });
		return false;		
	});
});
});

/*
	$('#v1').fancyZoom();
	$('#v2').fancyZoom();
	$('#v3').fancyZoom();
	$('#v4').fancyZoom();
	$('#v5').fancyZoom();
	$('#v6').fancyZoom();
	$('#v7').fancyZoom();
	$('#v8').fancyZoom();
	$('#v9').fancyZoom();
	$('#v10').fancyZoom();

	$('#videos').Fisheye(
		{
			maxWidth: 50,
			items: 'a',
			itemsText: 'span',
			container: '.vid-container',
			itemWidth: 90,
			proximity: 150,
			alignment : 'left',
			valign: 'bottom',
			halign : 'right'
		}
	);
*/
