$(document).ready(function(){
    
   var berlinschool_imageflow = $('#imageflow').imageflow({
       
       /* Configuration variables */
	     reflections : true,
		 reflectionGET: '&bgc=009cec',
         reflection_p:   0,           // Sets the height of the reflection in % of the source image
         focus:          10,          // Sets the numbers of images on each side of the focussed one
         slider_width:   14,          // Sets the px width of the slider div
         images_cursor:  'pointer',   // Sets the cursor type for all images default is 'default'
         slider_cursor:  'default',   // Sets the slider cursor type: try "e-resize" default is 'default'

         /* advanced: modification of the carousel animation */
         //scale_factor:   2.295, // for 80x160           // bigger numbers make the whole animation smaller 2.1756 - 130
         //scale_factor:   2.613, // for 75x150 display of 80x160 pics
         //scale_abs:      100,
         scale_factor: 4.15,
         scale_abs: 100,
         xstep:          70,
         reflection_delta: 0.25,
         
         coverflow_function: 'abs', // sqrt(curved coverflow) or abs(more straight)
         coverflow_function_abs: 302.42, // bigger numbers result in smaller images
         coverflow_function_abs_scale: 0.7
         
   });
   
	$('#pane2').jScrollPane({
		scrollbarWidth : 12,
		showArrows:true
	});
	
	$("a.document").each(function(i) {
		$(this).attr("rel", "facebox");
		$(this).attr("href", "fileadmin/scripts/form.php?doc="+encodeURIComponent($(this).attr('href')));
	});
	
	//$('a[rel*=facebox]').facebox();

	
});
