var slide_min = 250;
var slide_max = 325;

$(function() {

				/* SLIDE CAPTION 20% */
				$('#hero').hover(function() {
												
													$(this).children('#front').stop().animate({"top" : slide_min+'px'}, 400);
													
												}, function() {
													
													$(this).children('#front').stop().animate({"top" : slide_max+'px'}, 800);
													
												});

				$('img#thumb_hover').hover(function() {
												
													$('#front').stop().animate({"top" : slide_min+'px'}, 400);
													
												}, function() {
													
													$('#front').stop().animate({"top" : slide_max+'px'}, 800);
													
												});

				/* Change hero on play-button hover */
				$('img#play').hover(function() {
												
													//jQuery("#preview_full").css('z-index',30);
													jQuery("#preview_full").fadeIn("fast");
													
												}, function() {
													
													//jQuery("#preview_full").css('z-index',-1);
													jQuery("#preview_full").fadeOut("fast");
													
												});

				/* Change hero on home page */
				$('#video1').hover(function() {
													jQuery(".video_1").fadeIn("fast");
												}, function() {
													jQuery(".video_1").fadeOut("fast");
												});

				$('#video2').hover(function() {
													jQuery(".video_2").fadeIn("fast");
												}, function() {
													jQuery(".video_2").fadeOut("fast");
												});

				$('#video3').hover(function() {
													jQuery(".video_3").fadeIn("fast");
												}, function() {
													jQuery(".video_3").fadeOut("fast");
												});

				$('#video4').hover(function() {
													jQuery(".video_4").fadeIn("fast");
												}, function() {
													jQuery(".video_4").fadeOut("fast");
												});

				$('#video5').hover(function() {
													jQuery(".video_5").fadeIn("fast");
												}, function() {
													jQuery(".video_5").fadeOut("fast");
												});

												
				$('img#dot1').hover(function() {
													jQuery("#caption1").fadeIn("fast");
												}, function() {
													jQuery("#caption1").fadeOut("fast");
												});

				$('img#dot2').hover(function() {
													jQuery("#caption2").fadeIn("fast");
												}, function() {
													jQuery("#caption2").fadeOut("fast");
												});

				$('img#dot3').hover(function() {
													jQuery("#caption3").fadeIn("fast");
												}, function() {
													jQuery("#caption3").fadeOut("fast");
												});

				$('img#dot4').hover(function() {
													jQuery("#caption4").fadeIn("fast");
												}, function() {
													jQuery("#caption4").fadeOut("fast");
												});

				$('img#dot5').hover(function() {
													jQuery("#caption5").fadeIn("fast");
												}, function() {
													jQuery("#caption5").fadeOut("fast");
												});

		   });
