        $(document).ready(function() {
				
				//Examples of how to assign the ColorBox event to elements
				$("a[href*='.jpg']").colorbox();
				$("a[href*='.gif']").colorbox();
				$("a[href*='.JPG']").colorbox();
				$("a[href*='.GIF']").colorbox();
			
			$("#stepcarousel2 li span").hide();
			
			$("#stepcarousel2 li").each( function() {
				$(this).hover( 
					function () {
						$(this).find("img").animate({
							width: "120px",
    						height: "120px",
							marginLeft: "-10px",
							marginTop: "-10px"
						});
						$(this).find("span").fadeIn("fast");
					}, function () {
						$(this).find("img").animate({
							width: "100px",
    						height: "100px",
							marginLeft: "0px",
							marginTop: "0px"
						});
						$(this).find("span").fadeOut("fast");
					}		
				);
			});
				
			$('#main_slides')
			.before('<ul id="nav">')
            .cycle({
                fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
				delay:  -4000,
                pager:  '#nav',
                pagerEvent: 'click' ,
                pauseOnPagerHover: true ,
                pagerAnchorBuilder: function(idx, slide) { 
                    // return selector string for existing anchor 
                    return '<li><a href="#">&nbsp;</a></li>'; 
                } 
            });

        });
		
		stepcarousel.setup({
				galleryid: 'stepcarousel2', //id of carousel DIV
				beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
				panelclass: 'panel', //class of panel DIVs each holding content
				autostep: {enable:true, moveby:1, pause:5000},
				panelbehavior: {speed:500, wraparound:false, persist:true},
				defaultbuttons: {enable: true, moveby: 1, leftnav: ['/fileadmin/senf/images/butt-left2.gif', -25, 50], rightnav: ['/fileadmin/senf/images/butt-right2.gif', 15, 50]},
			
				statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
				contenttype: ['inline'] //content setting ['inline'] or ['ajax', 'path_to_external_file']
})

