// caseStudy Slider
$(document).ready(function(){
	$("#myController").jFlow({
		slides: "#slides",
		controller: ".jFlowControl",
		slideWrapper: "#jFlowSlide",
		selectedWrapper: "jFlowSelected",
		auto: true,
		width: "958px",
		height: "142px",
		duration: 500,
		prev: ".jFlowPrev",
		next: ".jFlowNext"
	});
});

// mosaicInteraction
$(document).ready(function(){
	$('.boxgrid.captionfull, .boxgrid04.captionfull04, .boxgrid06.captionfull06').hover(function(){
		$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
	}, function(s) {
		$(".cover", this).stop().animate({top:'89px'},{queue:false,duration:160});
	});
	
	$('.boxgrid02.captionfull02').hover(function(){
		$(".playBtnMD", this).stop().animate({top:'178px'},{queue:false,duration:160});
		$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
	}, function(s) {
		$(".playBtnMD", this).stop().animate({top:'36px'},{queue:false,duration:160});
		$(".cover", this).stop().animate({top:'178px'},{queue:false,duration:160});
	});
	
	$('.boxgrid03.captionfull03').hover(function(){
		$(".playBtnSM", this).stop().animate({top:'89px'},{queue:false,duration:160});
		$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
	}, function(s) {
		$(".playBtnSM", this).stop().animate({top:'20px'},{queue:false,duration:160});
		$(".cover", this).stop().animate({top:'89px'},{queue:false,duration:160});
	});
	
	$('.boxgrid05.captionfull05').hover(function(){
		$(".playBtnSM", this).stop().animate({top:'89px'},{queue:false,duration:160});
		$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
	}, function(s) {
		$(".playBtnSM", this).stop().animate({top:'20px'},{queue:false,duration:160});
		$(".cover", this).stop().animate({top:'89px'},{queue:false,duration:160});
	});
	
	$('.boxgrid07.captionfull07').hover(function(){
		$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
	}, function(s) {
		$(".cover", this).stop().animate({top:'174px'},{queue:false,duration:160});
	});
});
