/*function formatTitle(title, currentArray, currentIndex, currentOpts) {
    return '<div id="box-title"><span><a href="javascript:;" onclick="$.fancybox.close();"><img src="/portfolio/motion/images/closelabel.gif" /></a></span>' + (title && title.length ? '<b>' + title + '</b>' : '' ) + 'Image ' + (currentIndex + 1) + ' of ' + currentArray.length + '</div>';
}
*/jQuery(document).ready(function() {
	
//menu code

	$('.kwicks').kwicks({
		max: 420,
		spacing: 5,
		duration: 1500,
		easing: 'easeOutBounce'
	});
	
//web stuff
	
	$("a#QuickStart").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'height'		:	'60%',
		'width' 		:   '100%'
	});
	$("a#curriculum").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'height'   		:   '100%',
		'width'			:	'975',
	});
	$("a#FreakyDude").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'width' 		:   '100%',
		'height'   		:   350
	});/*	$("a#timeline").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'width' 		:   '75%',
		'height'   		:   1000,
	});*/
	$("a#grid").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'width' 		:   '75%',
		'height'   		:   '100%'
	});
	$("a#ans").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'			:	'iframe',
		'overlayShow'	:	true,
		'width'   		:   880,
		'height'			:	500,

	});$("a#atc").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'			:	'iframe',
		'overlayShow'	:	true,
		'width'   		:   880,
		'height'		:	486,

	});$("a#mobile").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'			:	'iframe',
		'overlayShow'	:	true,
		'width'			:	960,
		'height'		:	560		

	});
	$("a#baubelocity").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'width' 		:   '75%',
		'height'   		:   '75%'
	});
	
//motion graphics	
	
		$("a#teamvideolink").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'			:	'iframe',
		'overlayShow'	:	true,
		'width'			:	960,
		'height'		:	560		
	});
	$("a#citylink").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'			:	'iframe',
		'overlayShow'	:	true,
		'width'			:	960,
		'height'		:	560		

	});
	$("a#elearning").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'width' 		:   984,
		'height'   		:   536,
	});
		$("a#safe").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'width' 		:   1127,
		'height'   		:   468,
	});
		$("a#box").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'width' 		:   704,
		'height'   		:   483,
		'titlePosition' : 'inside'
	});
		$("a#fd1").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'width' 		:   "75%",
		'height'   		:   "100%",
		'titlePosition' : 'inside'
	});
		$("a#fd2").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'width' 		:   720,
		'height'   		:   405,
		'titlePosition' : 'inside'
	});
	
//3D stuff	

	$("a.3dimage").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	false
	});
	
//Illustrations
	
	$("a.grouped_elements").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	false
	});
	
//paintings
	
		$("a#p1").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'width' 		:   584,
		'height'   		:   792,
	});

		$("a#p2").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'width' 		:   800,
		'height'   		:   754,
	});
	
		$("a#p3").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'width' 		:   856,
		'height'   		:   645,
	});
		$("a#p4").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'width' 		:   624,
		'height'   		:   832,
	});
		$("a#p5").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'width' 		:   842,
		'height'   		:   937,
	});
		$("a#p6").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'width' 		:   792,
		'height'   		:   542,
	});
		$("a#p7").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'width' 		:   696,
		'height'   		:   926,
	});

		$("a#p8").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'width' 		:   648,
		'height'   		:   864,
	});
	$("a#p9").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'type'     		:   'iframe',
		'width' 		:   810,
		'height'   		:   601,
	});
});
