$(document).ready(function() { //begin jquery

		//Activate FancyBox
			$("div.singleimage a").fancybox({
				'hideOnContentClick': true
			});
			
			$("a.top").click(function() {
				$.scrollTo("#topC", 1500, {offset: {top:120}}, { easing:'easeInOutCubic' });
			});

			$("a.letter").click(function() {
				$.scrollTo("#letterC", 1500, {offset: {top:20}}, { easing:'easeInOutCubic' });
			});

			$("a.history").click(function() {
				$.scrollTo("#historyC", 1500, {offset: {top:20}}, { easing:'easeInOutCubic' });
			});

			$("a.philosophy").click(function() {
				$.scrollTo("#philosophyC", 1500, {offset: {top:20}}, { easing:'easeInOutCubic' });
			});

			$("a.faculty").click(function() {
				$.scrollTo("#facultyC", 1500, {offset: {top:20}}, { easing:'easeInOutCubic' });
			});

			$("a.com1").click(function() {
				$.scrollTo("#com1", 1500, {offset: {top:20}}, { easing:'easeInOutCubic' });
			});

			$("a.com2").click(function() {
				$.scrollTo("#com2", 1500, {offset: {top:20}}, { easing:'easeInOutCubic' });
			});

			$("a.com3").click(function() {
				$.scrollTo("#com3", 1500, {offset: {top:20}}, { easing:'easeInOutCubic' });
			});

			$("a.com4").click(function() {
				$.scrollTo("#com4", 1500, {offset: {top:20}}, { easing:'easeInOutCubic' });
			});

			$("a.com5").click(function() {
				$.scrollTo("#com5", 1500, {offset: {top:20}}, { easing:'easeInOutCubic' });
			});

			$("a.role").click(function() {
				$.scrollTo("#roleC", 1500, {offset: {top:20}}, { easing:'easeInOutCubic' });
			});

			$("a.research").click(function() {
				$.scrollTo("#researchC", 1500, {offset: {top:20}}, { easing:'easeInOutCubic' });
			});

			$("a.contact").click(function() {
				$.scrollTo("#contactC", 1500, {offset: {top:20}}, { easing:'easeInOutCubic' });
			});

			$("a.apply").click(function() {
				$.scrollTo("#applyC", 1500, {offset: {top:20}}, { easing:'easeInOutCubic' });
			});

			$("a.questions").click(function() {
				$.scrollTo("#questionsC", 1500, {offset: {top:20}}, { easing:'easeInOutCubic' });
			});

			$("a.topics").click(function() {
				$.scrollTo("#topicsC", 1500, {offset: {top:20}}, { easing:'easeInOutCubic' });
			});

	
			$("#slideshow").cycle({
				fx: 'fade',
				speed: 1000,
				timeout: 10000,
				pause: 1,
				next: '#barLink'
			});
			
			$("#slide").cycle({
				fx:     'scrollLeft', 
				speed: 300,
				timeout: 0,
				next:   '#next'
			});
			
			$("#next").click(function() {
				$(".purple").fadeIn();
				$(".purplehide").fadeOut();
			});

			$("a#custom_1").fancybox({
				'itemLoadCallback': getGroupItems
			});

			$("a#custom_2, a#custom_3, a#custom_4, a#custom_5, a#custom_6, a#custom_7, a#custom_8").fancybox({
				'zoomSpeedIn':	0, 
				'zoomSpeedOut':	0,
				frameWidth: 586, frameHeight: 395
			});



		}); //end of jquery


		var imageList = [
				{url: "shared/images/event1/NMAN4449.jpg", title: "KIN co-founder, Professor Robert C. Wolcott <br />welcomes KIN delegates to the Annual Summit"},
				{url: "shared/images/event1/NMAN4463.jpg", title: "Chamberlain’s Dave Mack discusses innovation challenges within his industry"},
				{url: "shared/images/event1/NMAN4485.jpg", title: "KIN delegates to take a humorous approach <br />to serious topics in a roundtable atmosphere"},
				{url: "shared/images/event1/NMAN4492.jpg", title: "Toby Redshaw, CIO of UK insurance giant Aviva, <br />describes innovation challenges in practice at Motorola"},
				{url: "shared/images/event1/NMAN4505.jpg", title: "Core Techs’ Nelson Levy responds to Wolcott’s presentation"},
				{url: "shared/images/event1/NMAN4510.jpg", title: "Kraft Foods former Co-CEO, Betsy Holden discusses <br />challenges to driving top-line growth"},
				{url: "shared/images/event1/NMAN4513.jpg", title: "KIN co-founder, Professor Mohan Sawhney (center) <br />and Raytheon’s Alan Landry exchange thoughts"},
				{url: "shared/images/event1/NMAN4532.jpg", title: "KIN delegates network during break"},
				{url: "shared/images/event1/NMAN4584.jpg", title: "PepsiCo’s Albert Manzone engages KIN delegates <br />with his executive perspective"},
				{url: "shared/images/event1/NMAN4621.jpg", title: "Manzone shares PepsiCo’s method of navigating <br />their competitive environment"},
				{url: "shared/images/event1/NMAN4658.jpg", title: "Motorola’s Jim O’Connor engages KIN delegates <br />with his executive perspective"},
				{url: "shared/images/event1/NMAN4705.jpg", title: "LIF’s Blythe McGarvie responds to O’Connor’s presentation"},
				{url: "shared/images/event1/NMAN4733.jpg", title: "KIN delegates openly voice their viewpoints throughout the Annual Summit"},
				{url: "shared/images/event1/NMAN4787.jpg", title: "SC Johnson’s Jennifer Larson speaks with O’Connor <br />following his presentation"},
				{url: "shared/images/event1/NMAN4802.jpg", title: "Sawhney speaks with Jeffrey Ernstoff of Ernstoff Creative. <br />Ernstoff delivered a dynamic dinner presentation."},
				{url: "shared/images/event1/NMAN4917.jpg", title: "Holden leads small group discussion"},
				{url: "shared/images/event1/NMAN4958.jpg", title: "KIN delegates participate in small group break-out sessions"},
				{url: "shared/images/event1/NMAN4967.jpg", title: "Discover Financial Services’ Beth Horowitz shares her perspective with small group"},
				{url: "shared/images/event1/NMAN4978.jpg", title: "Sawhney responds to Horowitz with his <br />perspective from an academic standpoint"},
				{url: "shared/images/event1/NMAN4499.jpg", title: "Wolcott closes Annual Summit with forward-looking closing remarks"}
			];
			
			function getGroupItems(opts) {
			jQuery.each(imageList, function(i, val) {
		        opts.itemArray.push(val);
		    });
		}
