/**
 * Copyright 2011 - Siesqo
 */
$(document).ready(function()
{
	/*
	 * innerfade headerphotos
	 */
	if($('#headerPhoto').length>0) $('#headerPhoto').cycle({fx:'fade', timeout: 3000, speed: 750});
	 
	/*
	 * Project > innerfade photos 
	 */
	if($('#projectPhotoInnerfade').length>0) $('#projectPhotoInnerfade').cycle({fx:'fade', timeout: 3000, speed: 750});
});

/*
 * HIGHSLIDE GALLERY
 */
//<![CDATA[
// The gallery example on the front page
var galleryOptions = {
	slideshowGroup: 'gallery',
	wrapperClassName: 'dark',
	//outlineType: 'glossy-dark',
	dimmingOpacity: 0.8,
	align: 'center',
	transitions: ['expand', 'crossfade'],
	fadeInOut: true,
	wrapperClassName: 'borderless floating-caption',
	marginLeft: 100,
	marginBottom: 80,
	numberPosition: 'caption'
};
// add control bar
if (hs.addSlideshow) hs.addSlideshow({
	slideshowGroup: 'gallery',
	interval: 5000,
	repeat: true,
	useControls: true,
	overlayOptions: {
		className: 'text-controls',
		position: 'bottom center',
		relativeTo: 'viewport',
		offsetY: -60
	},
	thumbstrip: {
		position: 'bottom center',
		mode: 'horizontal',
		relativeTo: 'viewport'
	}

});
hs.Expander.prototype.onInit = function() {
	hs.marginBottom = (this.slideshowGroup == 'gallery') ? 150 : 15;
}
//]]>
