// JavaScript Document

// View Upper Floor
$("a#viewUpper").click(function() {	
	$("#lower").fadeOut(500, function(){ $("#upper").fadeIn(500) });	
	return false;	
});

// View Lower Floor
$("a#viewLower").click(function() {	
	$("#upper").fadeOut(500, function(){ $("#lower").fadeIn(500) });	
	return false;	
});


// setup tooltip for a studio hovers

   $("a.navigation").click(function() {
      $target = $(this).attr("title");
       $(".pages").fadeOut(400, function(){ $($target).fadeIn(400) });
      return false;
    });


// STUDIO HOVERS

// Studio A
$("img#triggerA").tooltip({
	// each trashcan image works as a trigger
	tip: '#studioA',
	// custom positioning
	position: "none",	
	// move tooltip a little bit to the right
	offset: [10, 10],
	// there is no delay when the mouse is moved away from the trigger
	delay: 0,	
	mousetracking: true,
	onShow: function(){
		$('#sliderA').nivoSlider({
			effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
			slices:1,
			animSpeed:500, //Slide transition speed
			pauseTime:3000,
			startSlide:0, //Set starting Slide (0 index)
			directionNav:true, //Next & Prev
			directionNavHide:true, //Only show on hover
			controlNav:true, //1,2,3...
			controlNavThumbs:false, //Use thumbnails for Control Nav
			controlNavThumbsFromRel:false, //Use image rel for thumbs
			controlNavThumbsSearch: '.jpg', //Replace this with...
			controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
			keyboardNav:true, //Use left & right arrows
			pauseOnHover:true, //Stop animation while hovering
			manualAdvance:false, //Force manual transitions
			captionOpacity:0.8, //Universal caption opacity
			beforeChange: function(){},
			afterChange: function(){},
			slideshowEnd: function(){}, //Triggers after all slides have been shown
			lastSlide: function(){}, //Triggers when last slide is shown
			afterLoad: function(){} //Triggers when slider has loaded
		});	
	}
});

// Studio B
$("img#triggerB").tooltip({
	// each trashcan image works as a trigger
	tip: '#studioB',
	// custom positioning
	position: "none",	
	// move tooltip a little bit to the right
	offset: [10, 10],
	// there is no delay when the mouse is moved away from the trigger
	delay: 0,	
	mousetracking: true,
	onShow: function(){
		$('#sliderB').nivoSlider({
			effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
			slices:1,
			animSpeed:500, //Slide transition speed
			pauseTime:3000,
			startSlide:0, //Set starting Slide (0 index)
			directionNav:true, //Next & Prev
			directionNavHide:true, //Only show on hover
			controlNav:true, //1,2,3...
			controlNavThumbs:false, //Use thumbnails for Control Nav
			controlNavThumbsFromRel:false, //Use image rel for thumbs
			controlNavThumbsSearch: '.jpg', //Replace this with...
			controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
			keyboardNav:true, //Use left & right arrows
			pauseOnHover:true, //Stop animation while hovering
			manualAdvance:false, //Force manual transitions
			captionOpacity:0.8, //Universal caption opacity
			beforeChange: function(){},
			afterChange: function(){},
			slideshowEnd: function(){}, //Triggers after all slides have been shown
			lastSlide: function(){}, //Triggers when last slide is shown
			afterLoad: function(){} //Triggers when slider has loaded
		});	
	}	
});

// Studio C
$("img#triggerC").tooltip({
	// each trashcan image works as a trigger
	tip: '#studioC',
	// custom positioning
	position: "none",	
	// move tooltip a little bit to the right
	offset: [10, 10],
	// there is no delay when the mouse is moved away from the trigger
	delay: 0,	
	mousetracking: true,
	onShow: function(){
		$('#sliderC').nivoSlider({
			effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
			slices:1,
			animSpeed:500, //Slide transition speed
			pauseTime:3000,
			startSlide:0, //Set starting Slide (0 index)
			directionNav:true, //Next & Prev
			directionNavHide:true, //Only show on hover
			controlNav:true, //1,2,3...
			controlNavThumbs:false, //Use thumbnails for Control Nav
			controlNavThumbsFromRel:false, //Use image rel for thumbs
			controlNavThumbsSearch: '.jpg', //Replace this with...
			controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
			keyboardNav:true, //Use left & right arrows
			pauseOnHover:true, //Stop animation while hovering
			manualAdvance:false, //Force manual transitions
			captionOpacity:0.8, //Universal caption opacity
			beforeChange: function(){},
			afterChange: function(){},
			slideshowEnd: function(){}, //Triggers after all slides have been shown
			lastSlide: function(){}, //Triggers when last slide is shown
			afterLoad: function(){} //Triggers when slider has loaded
		});	
	}	
});

// Studio D
$("img#triggerD").tooltip({
	// each trashcan image works as a trigger
	tip: '#studioD',
	// custom positioning
	position: "none",	
	// move tooltip a little bit to the right
	offset: [10, 10],
	// there is no delay when the mouse is moved away from the trigger
	delay: 0,	
	mousetracking: true,
	onShow: function(){
		$('#sliderD').nivoSlider({
			effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
			slices:1,
			animSpeed:500, //Slide transition speed
			pauseTime:3000,
			startSlide:0, //Set starting Slide (0 index)
			directionNav:true, //Next & Prev
			directionNavHide:true, //Only show on hover
			controlNav:true, //1,2,3...
			controlNavThumbs:false, //Use thumbnails for Control Nav
			controlNavThumbsFromRel:false, //Use image rel for thumbs
			controlNavThumbsSearch: '.jpg', //Replace this with...
			controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
			keyboardNav:true, //Use left & right arrows
			pauseOnHover:true, //Stop animation while hovering
			manualAdvance:false, //Force manual transitions
			captionOpacity:0.8, //Universal caption opacity
			beforeChange: function(){},
			afterChange: function(){},
			slideshowEnd: function(){}, //Triggers after all slides have been shown
			lastSlide: function(){}, //Triggers when last slide is shown
			afterLoad: function(){} //Triggers when slider has loaded
		});	
	}	
});

// Studio E
$("img#triggerE").tooltip({
	// each trashcan image works as a trigger
	tip: '#studioE',
	// custom positioning
	position: "none",	
	// move tooltip a little bit to the right
	offset: [10, 10],
	// there is no delay when the mouse is moved away from the trigger
	delay: 0,	
	mousetracking: true,
	onShow: function(){
		$('#sliderE').nivoSlider({
			effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
			slices:1,
			animSpeed:500, //Slide transition speed
			pauseTime:3000,
			startSlide:0, //Set starting Slide (0 index)
			directionNav:true, //Next & Prev
			directionNavHide:true, //Only show on hover
			controlNav:true, //1,2,3...
			controlNavThumbs:false, //Use thumbnails for Control Nav
			controlNavThumbsFromRel:false, //Use image rel for thumbs
			controlNavThumbsSearch: '.jpg', //Replace this with...
			controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
			keyboardNav:true, //Use left & right arrows
			pauseOnHover:true, //Stop animation while hovering
			manualAdvance:false, //Force manual transitions
			captionOpacity:0.8, //Universal caption opacity
			beforeChange: function(){},
			afterChange: function(){},
			slideshowEnd: function(){}, //Triggers after all slides have been shown
			lastSlide: function(){}, //Triggers when last slide is shown
			afterLoad: function(){} //Triggers when slider has loaded
		});	
	}	
});

// Studio F
$("img#triggerF").tooltip({
	// each trashcan image works as a trigger
	tip: '#studioF',
	// custom positioning
	position: "none",	
	// move tooltip a little bit to the right
	offset: [10, 10],
	// there is no delay when the mouse is moved away from the trigger
	delay: 0,	
	mousetracking: true,
	onShow: function(){
		$('#sliderF').nivoSlider({
			effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
			slices:1,
			animSpeed:500, //Slide transition speed
			pauseTime:3000,
			startSlide:0, //Set starting Slide (0 index)
			directionNav:true, //Next & Prev
			directionNavHide:true, //Only show on hover
			controlNav:true, //1,2,3...
			controlNavThumbs:false, //Use thumbnails for Control Nav
			controlNavThumbsFromRel:false, //Use image rel for thumbs
			controlNavThumbsSearch: '.jpg', //Replace this with...
			controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
			keyboardNav:true, //Use left & right arrows
			pauseOnHover:true, //Stop animation while hovering
			manualAdvance:false, //Force manual transitions
			captionOpacity:0.8, //Universal caption opacity
			beforeChange: function(){},
			afterChange: function(){},
			slideshowEnd: function(){}, //Triggers after all slides have been shown
			lastSlide: function(){}, //Triggers when last slide is shown
			afterLoad: function(){} //Triggers when slider has loaded
		});	
	}	
});

// Studio G
$("img#triggerG").tooltip({
	// each trashcan image works as a trigger
	tip: '#studioG',
	// custom positioning
	position: "none",	
	// move tooltip a little bit to the right
	offset: [10, 10],
	// there is no delay when the mouse is moved away from the trigger
	delay: 0,	
	mousetracking: true,
	onShow: function(){
		$('#sliderG').nivoSlider({
			effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
			slices:1,
			animSpeed:500, //Slide transition speed
			pauseTime:3000,
			startSlide:0, //Set starting Slide (0 index)
			directionNav:true, //Next & Prev
			directionNavHide:true, //Only show on hover
			controlNav:true, //1,2,3...
			controlNavThumbs:false, //Use thumbnails for Control Nav
			controlNavThumbsFromRel:false, //Use image rel for thumbs
			controlNavThumbsSearch: '.jpg', //Replace this with...
			controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
			keyboardNav:true, //Use left & right arrows
			pauseOnHover:true, //Stop animation while hovering
			manualAdvance:false, //Force manual transitions
			captionOpacity:0.8, //Universal caption opacity
			beforeChange: function(){},
			afterChange: function(){},
			slideshowEnd: function(){}, //Triggers after all slides have been shown
			lastSlide: function(){}, //Triggers when last slide is shown
			afterLoad: function(){} //Triggers when slider has loaded
		});	
	}	
});

// Studio H
$("img#triggerH").tooltip({
	// each trashcan image works as a trigger
	tip: '#studioH',
	// custom positioning
	position: "none",	
	// move tooltip a little bit to the right
	offset: [10, 10],
	// there is no delay when the mouse is moved away from the trigger
	delay: 0,	
	mousetracking: true
});

// Studio I
$("img#triggerI").tooltip({
	// each trashcan image works as a trigger
	tip: '#studioI',
	// custom positioning
	position: "none",	
	// move tooltip a little bit to the right
	offset: [10, 10],
	// there is no delay when the mouse is moved away from the trigger
	delay: 0,	
	mousetracking: true
});

// Studio J
$("img#triggerJ").tooltip({
	// each trashcan image works as a trigger
	tip: '#studioJ',
	// custom positioning
	position: "none",	
	// move tooltip a little bit to the right
	offset: [10, 10],
	// there is no delay when the mouse is moved away from the trigger
	delay: 0,	
	mousetracking: true
});

