		$(document).ready(function() {
			/*
			*   Examples - images
			*/

			$("#example1").fancybox();

			$("a#example2").fancybox({
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});

			$("a#example3").fancybox({
				'transitionIn'	: 'none',
				'transitionOut'	: 'none'	
			});

			$("a#example4").fancybox({
				'opacity'		: true,
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'none'
			});

			$("a#example5").fancybox();

	$(".example6").fancybox({
		'titlePosition'  : 'over'
	});

			$("a#example7").fancybox({
				'titlePosition'	: 'inside'
			});

			$("a#example8").fancybox({
				'titlePosition'	: 'over'
			});

			$("a[rel=example_group]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});

			/*
			*   Examples - various
			*/

			$("#various1").fancybox({
				'titlePosition'		: 'inside',
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});

			$("#various2").fancybox();
			
	

            $(".fancyYoutube").click(function() {
                 $.fancybox({
                  'padding'             : 0,
                  'autoScale'   : false,
                  'transitionIn'        : 'none',
                  'transitionOut'       : 'none',
                  'title'               : this.title,
                  'width'               : 680,
                  'height'              : 495,
                  'href'                : this.href = this.href.replace(new RegExp("watch\\?v=", "i"), 'v/') + '&autoplay=1',
                  'type'                : 'swf',    // <--add a comma here
                  'swf': {'allowfullscreen':'true', 'wmode':'transparent'} // <-- flashvars here
                  });
                 return false;

            });
			
			    $(".gallery").click(function() {
		$.fancybox([
			{
				'href'	: 'http://www.midtnorskgatebil.com/pics/skyline/215153_10150271928254473_614084472_7640163_2250795_n.jpg',
				'title'	: 'NISSAN SKYLINE GT-S R32'
			},
			{
				'href'	: 'http://www.midtnorskgatebil.com/pics/skyline/216715_10150271930799473_614084472_7640170_6845141_n.jpg',
				'title'	: 'NISSAN SKYLINE GT-S R32'
			},
			{
				'href'	: 'http://www.midtnorskgatebil.com/pics/skyline/262449_10150271927714473_614084472_7640149_1377185_n.jpg',
				'title'	: 'NISSAN SKYLINE GT-S R32'
			},
			{
				'href'	: 'http://www.midtnorskgatebil.com/pics/skyline/284219_10150728098565156_717975155_19919633_6233705_n.jpg',
				'title'	: 'NISSAN SKYLINE GT-S R32'
			},
			{
				'href'	: 'http://www.midtnorskgatebil.com/pics/skyline/DSC_0014.jpg',
				'title'	: 'NISSAN SKYLINE GT-S R32'
			},
			{
				'href'	: 'http://www.midtnorskgatebil.com/pics/skyline/DSC_0016.jpg',
				'title'	: 'NISSAN SKYLINE GT-S R32'
			},
			{
				'href'	: 'http://www.midtnorskgatebil.com/pics/skyline/DSC_0017-(2)65.jpg',
				'title'	: 'NISSAN SKYLINE GT-S R32'
			},
			{
				'href'	: 'http://www.midtnorskgatebil.com/pics/skyline/DSC_0025.jpg',
				'title'	: 'NISSAN SKYLINE GT-S R32'
			},
			{
				'href'	: 'http://www.midtnorskgatebil.com/pics/skyline/DSC_0037.jpg',
				'title'	: 'NISSAN SKYLINE GT-S R32'
			},
			{
				'href'	: 'http://www.midtnorskgatebil.com/pics/skyline/DSC_0041.jpg',
				'title'	: 'NISSAN SKYLINE GT-S R32'
			},
			{
				'href'	: 'http://www.midtnorskgatebil.com/pics/skyline/DSC_0184.jpg',
				'title'	: 'NISSAN SKYLINE GT-S R32'
			},
			{
				'href'	: 'http://www.midtnorskgatebil.com/pics/skyline/vlcsnap-2011-06-18-17h31m09s8.jpg',
				'title'	: 'NISSAN SKYLINE GT-S R32'
			},
			{
				'href'	: 'http://www.midtnorskgatebil.com/pics/skyline/vlcsnap-2011-07-24-20h52m09s183.jpg',
				'title'	: 'NISSAN SKYLINE GT-S R32'
			}
		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
	}); 
	
				    $(".gallery2").click(function() {
		$.fancybox([
			{
				'href'	: 'http://www.sony86.net/aa/design/web_shots/dp1.jpg',
				'title'	: 'WWW.DESTINATIONPARTY.COM AV AAFLOEY DESIGNS'
			},
			{
				'href'	: 'http://www.sony86.net/aa/design/web_shots/dp2.jpg',
				'title'	: 'WWW.DESTINATIONPARTY.COM AV AAFLOEY DESIGNS'
			},
			{
				'href'	: 'http://www.sony86.net/aa/design/web_shots/dp3.jpg',
				'title'	: 'WWW.DESTINATIONPARTY.COM AV AAFLOEY DESIGNS'
			}
		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
	}); 
	
					    $(".gallery3").click(function() {
		$.fancybox([
			{
				'href'	: 'http://www.sony86.net/aa/design/web_shots/aa_skjeftet1.jpg',
				'title'	: 'WWW.AAFLOEYSKJEFTET.COM AV AAFLOEY DESIGNS'
			},
			{
				'href'	: 'http://www.sony86.net/aa/design/web_shots/aa_skjeftet2.jpg',
				'title'	: 'WWW.AAFLOEYSKJEFTET.COM AV AAFLOEY DESIGNS'
			},
			{
				'href'	: 'http://www.sony86.net/aa/design/web_shots/aa_skjeftet3.jpg',
				'title'	: 'WWW.AAFLOEYSKJEFTET.COM AV AAFLOEY DESIGNS'
			}
		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
	}); 
	
						    $(".gallery4").click(function() {
		$.fancybox([
			{
				'href'	: 'http://www.sony86.net/aa/design/logo_shots/dp_logo_big.jpg',
				'title'	: 'DESTINATIONPARTY LOGO AV AAFLOEY DESIGNS'
			}
		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
	}); 
	
							    $(".gallery5").click(function() {
		$.fancybox([
			{
				'href'	: 'http://www.sony86.net/aa/design/logo_shots/raudsand_logo_big2.jpg',
				'title'	: 'UTGANGSPUNKT FOR LOGOEN'
			},
						{
				'href'	: 'http://www.sony86.net/aa/design/logo_shots/raudsand_logo_big.jpg',
				'title'	: 'LOGOEN FERDIG REDIGERT OG VEKTORISERT'
			},
		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
	}); 
	
								    $(".gallery6").click(function() {
		$.fancybox([
			{
				'href'	: 'http://www.sony86.net/aa/design/plakater_shots/pbfest_big.jpg',
				'title'	: 'VERSJON 1 AV PLAKATEN'
			},
						{
				'href'	: 'http://www.sony86.net/aa/design/plakater_shots/pbfest_big2.jpg',
				'title'	: 'VERSJON 2 AV PLAKATEN'
			},
		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
	}); 
	
									    $(".gallery7").click(function() {
		$.fancybox([
			{
				'href'	: 'http://www.sony86.net/aa/design/logo_shots/Reunionlogo.jpg',
				'title'	: 'LOGOEN SOM BLE UTVALGT'
			},
						{
				'href'	: 'http://www.sony86.net/aa/design/logo_shots/reunion_samples.jpg',
				'title'	: 'ALLE FORSLAGENE SOM BLE LAGET'
			},
		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
	}); 
			
			$(".fancyVimeo").click(function() {
                 $.fancybox({
                  'padding'             : 0,
                  'autoScale'   : false,
                  'transitionIn'        : 'none',
                  'transitionOut'       : 'none',
                  'title'               : this.title,
                  'width'               : 680,
                  'height'              : 495,
                  'href'                : this.href = this.href.replace(new RegExp("([0-9])","i"),'moogaloop.swf?clip_id=$1') + '&autoplay=1',
                  'type'                : 'swf',    // <--add a comma here
                  'swf': {'allowfullscreen':'true', 'wmode':'transparent'} // <-- flashvars here
                  });
                 return false;

            });

			$(".various3").fancybox({
				'width'				: '32%',
				'height'			: '55%',
				'autoScale'			: true,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			
			$(".gallery_iframe").fancybox({
				'padding'			: 0,
				'width'				: 1050,
				'height'			: 600,
				'autoScale'			: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'type'				: 'iframe'
			});

			$("#various4").fancybox({
				'padding'			: 0,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});
		});
			
			$(window).load(function() {
				$('#featured').orbit();
			});
