jQuery(function($) {
	$('#the-screen .portfolio-item').css({'visibility': 'visible', 'display': 'none'});
	$('#menu ul a').click(function() {
		var href = $(this).attr('href');
		$('#the-screen .portfolio-item').hide();
		$('#the-screen ' + href).show();
		return false;
	});
});

$(document).ready(function(){
	/* Hides by default the project's infos */
	
			$("#creative-mcd, #creative-ford, #creative-itk, #creative-goose, #creative-tone, #creative-duckman, #creative-miggs, #creative-bofa, #creative-shutter, #creative-airnz, #creative-thai, #creative-heroes, #creative-shutterfly, #creative-hp,  #offline-redlever, #offline-avengers").fancybox({
				'width'				: 1024,
				'height'			: 700,
				'autoDimensions'    : false,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'scrolling'         : 'no'
			});
			
			
			$("#offline-sytycd").fancybox();

			$("#web-cbre, #mcdonalds, #web-itk, #video-abc, #web-fishcamp, #web-chris").fancybox({
				'width'				: '75%',
				'height'			: '75%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'scrolling'         : 'no',
				'showNavArrows'     : false
			});
						
			
			$("#web-hrm, #web-reid, #web-rl, #web-sb, #web-sixty, #web-schwartz, #web-crosscut").fancybox({
				'width'				: '75%',
				'height'			: '90%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'scrolling'         : 'auto',
				'showNavArrows'     : false
			});
			
			$("#video-jive").fancybox({
				'width'				: 640,
				'height'			: 368,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'scrolling'         : 'auto',
				'showNavArrows'     : false
			});
			
			$("#video-abc").fancybox({
				'width'				: 1280,
				'height'			: 720,
				'autoScale'			: true,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'scrolling'         : 'no',
				'showNavArrows'     : false
			});
			
			$("#video-jvn, #video-bounce").fancybox({
				'width'				: 720,
				'height'			: 406,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'scrolling'         : 'auto',
				'showNavArrows'     : false
			});
			
			$("#video-gone").fancybox({
				'width'				: 640,
				'height'			: 290,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'scrolling'         : 'auto',
				'showNavArrows'     : false
			});
			
			$("#video-sixty").fancybox({
				'width'				: 600,
				'height'			: 405,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'scrolling'         : 'auto',
				'showNavArrows'     : false
			});
			
			$("#video-bruno").fancybox({
				'width'				: 640,
				'height'			: 320,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'scrolling'         : 'auto',
				'showNavArrows'     : false
			});
			
			$("#video-avengers").fancybox({
				'width'				: 640,
				'height'			: 427,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'scrolling'         : 'auto',
				'showNavArrows'     : false
			});
			
			$("#video-redlever").fancybox({
				'width'				: 640,
				'height'			: 360,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'scrolling'         : 'auto',
				'showNavArrows'     : false
			});
			
			
			$("#offline-cirque").click(function() {
				$.fancybox([
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/cirque/001_Cirque_Splash.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/cirque/002_Cirque_Objective.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/cirque/003_Cirque_WalkOfFame.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/cirque/004_Cirque_Episodes_gs2.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/cirque/005_Cirque_Interactivity.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/cirque/006_Cirque_TriviaGame.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/cirque/007_Cirque_SeriesOverview.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/cirque/008_Cirque_EpisodeExamples.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/cirque/009_Cirque_Interactivity.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/cirque/010_Cirque_Microsite.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/cirque/011_Cirque_Overview.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/cirque/012_Cirque_HowItWorks.jpg',
			
		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
			});
			
			$("#offline-dresscode").click(function() {
				$.fancybox([
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/dresscode/001_DressCode_Splash.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/dresscode/002_DressCode_Overview.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/dresscode/003_DressCode_SampleEpisode.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/dresscode/004_DressCode_PotentialHosts.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/dresscode/005_DressCode_Sponsors.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/dresscode/006_DressCode_SponsorsCont.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/dresscode/007_DressCode_InteractVideo.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/dresscode/008_DressCode_Deliverables.jpg',
			
		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
			});
			
			$("#offline-paramount").click(function() {
				$.fancybox([
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/paramount/001_Paramount_Splash.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/paramount/002_Paramount_Overview.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/paramount/003_Paramount_Overview2.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/paramount/004_Paramount_How.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/paramount/005_Paramount_Movies.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/paramount/006_Paramount_Sponsorship.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/paramount/007_Paramount_Deliverables.jpg',
			
		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
			});
			
			$("#offline-td").click(function() {
				$.fancybox([
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/001_TDvsE_Splash.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/002_TDvsE_Games_slate.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/003_TDvsE_Games1.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/004_TDvsE_Games2.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/005_TDvsE_Social_slate.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/006_TDvsE_Social1.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/007_TDvsE_Social2.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/008_TDvsE_Website_slate.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/009_TDvsE_Website1.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/010_TDvsE_Website2.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/011_TDvsE_Website3.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/012_TDvsE_Offline_slate.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/013_TDvsE_Offline1.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/014_TDvsE_Offline2.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/015_TDvsE_Offline3.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/016_TDvsE_Webisodes_slate.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/017_TDvsE_Webisodes1.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/018_TDvsE_Webisodes2.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/019_TDvsE_Webisodes3.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/020_TDvsE_Webisodes4.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/021_TDvsE_Partnerships_slate.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/td/022_TDvsE_Partnerships.jpg',
					
			
		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
			});
			
			$("#offline-ea").click(function() {
				$.fancybox([
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/ea/desktop-login.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/ea/desktop-apparel.jpg',
					'http://lindseybreeden.com/wp-content/themes/phonolicious/imgs/work/offline/ea/desktop-video.jpg',
					
		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
			});
			
			
	
});
