/* init imageflow */    
domReady(function()
{
	
	var instanceOne = new ImageFlow();
	instanceOne.init({ 
	ImageFlowID: 'TeamImageFlow',       /* id of the ImageFlow container */ 
	aspectRatio:        1.964,          /* Aspect ratio of the ImageFlow container (width divided by height) */
	buttons:            false,          /* Toggle navigation buttons */
	captions:           false,          /* Toggle captions */
	imageCursor:        'default',      /* Cursor type for all images - default is 'default' */
	imageFocusM:        1.0,            /* Multiplicator for the focussed image size in percent */
	imageFocusMax:      4,              /* Max number of images on each side of the focussed one */
	imageScaling:       true,           /* Toggle image scaling */ 
	imagesHeight:       0.67,           /* Height of the images div container in percent */
	imagesM:            1.0,            /* Multiplicator for all images in percent */
	onClick:            function() { teamcontent.location = this.url; },   /* Onclick behaviour */
	opacity:            true,           /* Toggle image opacity */
	opacityArray:       [10,8,6,4,2],   /* Image opacity (range: 0 to 10) first value is for the focussed image */
	percentLandscape:   118,            /* Scale landscape format */
	percentOther:       100,            /* Scale portrait and square format */
	preloadImages:      true,           /* Toggles loading bar (false: requires img attributes height and width) */
	reflections:        false,          /* Toggle reflections */
	reflectionGET:      '',             /* Pass variables via the GET method to the reflect_.php script */
	reflectionP:        0.2,            /* Height of the reflection in percent of the source image */
	reflectionPNG:      false,          /* Toggle reflect2.php or reflect3.php */
	scrollbarP:         0.6,            /* Width of the scrollbar in percent */
	slider:             true,           /* Toggle slider */
	sliderCursor:       'e-resize',     /* Slider cursor type - default is 'default' */
	sliderWidth:        14,             /* Width of the slider in px */
	startID:            4,              /* Glide to this image ID on startup */
	startAnimation:     true,           /* Animate images moving in from the right on startup */
	xStep:              100             /* Step width on the x-axis in px */
	});

});


$(document).ready(function(){
        
        /* init FancyBox */
   	 	$("a.single_1").fancybox(); /* Effect 1 standard */
		$("a.single_2").fancybox({  /* Effect 2 */
			'zoomOpacity'			: true, 
			'overlayShow'			: false,
			'zoomSpeedIn'			: 500,
			'zoomSpeedOut'			: 500
		});
		$("a.single_3").fancybox({  /* Effect 3 */
			'overlayShow'			: false,
			'zoomSpeedIn'			: 600,
			'zoomSpeedOut'			: 500,
			'easingIn'				: 'easeOutBack',
			'easingOut'				: 'easeInBack'
		});
		$("a.group").fancybox({
			'hideOnContentClick': false
		});
		$("a.fancyvideo").fancybox({
			'frameWidth'        : 800,
			'frameHeight'       : 460,
			'hideOnContentClick': false
		});
        $("a.iframe").fancybox({
			'frameWidth'        : 852,
			'frameHeight'       : 150,
			'hideOnContentClick': false
		});
		
});