﻿// going to put our diffrent fancy box sections here
// options is transition in, transition out : none, fade, elastic
// Title positin : over, inside, outside
// http://fancybox.net/api
$(document).ready(function() {

    $("a[rel=tableDecor1]").fancybox({
		'transitionIn': 'elastic',
		'transitionOut': 'elastic',
		'titlePosition': 'over',
		'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
	$("a[rel=dfolaunch]").fancybox({
		'transitionIn': 'elastic',
		'transitionOut': 'elastic',
		'titlePosition': 'over',
		'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
	$("a[rel=dfoSalesPod]").fancybox({
		'transitionIn': 'elastic',
		'transitionOut': 'elastic',
		'titlePosition': 'over',
		'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
	$("a[rel=racvchristmas09]").fancybox({
		'transitionIn': 'elastic',
		'transitionOut': 'elastic',
		'titlePosition': 'over',
		'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
	$("a[rel=floralArt]").fancybox({
		'transitionIn': 'elastic',
		'transitionOut': 'elastic',
		'titlePosition': 'over',
		'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
	$("a[rel=smgp]").fancybox({
		'transitionIn': 'elastic',
		'transitionOut': 'elastic',
		'titlePosition': 'over',
		'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
	$("a[rel=smmc]").fancybox({
		'transitionIn': 'elastic',
		'transitionOut': 'elastic',
		'titlePosition': 'over',
		'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
	$("a[rel=rsbuffet]").fancybox({
		'transitionIn': 'elastic',
		'transitionOut': 'elastic',
		'titlePosition': 'over',
		'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
	$("a[rel=camWedding]").fancybox({
		'transitionIn': 'elastic',
		'transitionOut': 'elastic',
		'titlePosition': 'over',
		'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
	$("a[rel=ryeWedding]").fancybox({
		'transitionIn': 'elastic',
		'transitionOut': 'elastic',
		'titlePosition': 'over',
		'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});

});

// Load our nivo farking slider
//http://nivo.dev7studios.com/
//sliceDown
//sliceDownLeft
//sliceUp
//sliceUpLeft
//sliceUpDown
//sliceUpDownLeft
//fold
//fade
//random
$(window).load(function() {
$('#slider').nivoSlider({
effect: 'sliceUpDownLeft',
	slices: 15,
	animSpeed: 1500,
	pauseTime: 3000,
	directionNav: true, //Next & Prev
	directionNavHide: true, //Only show on hover
	controlNav: true, //1,2,3...
	pauseOnHover: true, //Stop animation while hovering
	beforeChange: function() { },
	afterChange: function() { }
});
});