// jquery-1.4.2.min.js
// jquery.cycle.all.min.js

// $ -> jQuery : kein Conflict mit prototype(lightbox 2)

jQuery.noConflict();

jQuery(function() {
    jQuery('#slideshow').after('<div id="slidepager" class="clearfix">').cycle({
        fx: 'fade',
        speed: 500,
        timeout: 6000,
     // autostop: 1,
     // autostopCount: 1,
        pause: true,
        pauseOnPagerHover: true,
        pager:  '#slidepager',
		 // callback fn that creates a thumbnail to use as pager anchor 
    	pagerAnchorBuilder: function(idx, slide) { 
        	return '<li><a href="#"><img src="' + jQuery(slide).find("img").attr("src") + '" width="50" height="50" /></a></li>'; 
		}
    });
});

