
var widths = new Array();
var k = 0;

widths[0]='36';
widths[1]='86';
widths[2]='168';
widths[3]='72';
widths[4]='172';
widths[5]='49';

jQuery.noConflict();

jQuery(document).ready(function($){
            
		jQuery("#menus > ul > li").each(function(){
			$(this).css('width',widths[k].toString()+'px');
			k++;
			});
			
		$('.slideshowframe').wrapAll('<div id="frame-slideshow" />');
		$('#frame-slideshow').after('<div id="pager" />').cycle({ 
		    fx:     'fade', 
		    speed:  1000, 
		    timeout: 6000,
		    pager: '#pager',  
		    // callback fn that creates a thumbnail to use as pager anchor 
		    pagerAnchorBuilder: function(idx, slide) { 
		        return '<a href="#"><img src="' + $(slide).find('img').attr('src') + '" width="95" height="55" /></a>';
		    } 
		     });
		$('#pager').css({position:'relative',top:'-69px','z-index':'1000','margin-bottom':'-60px'});
		/*$('#pager a').css({opacity:'0.7'});
		$('#pager a.slideshowframe').css({opacity:'1','border':'1px solid black'});*/
		$('#frame-slideshow .csc-textpic-imagewrap a').attr('rel', 'moodalbox');
		$('#pager').css('background-image', 'url(fileadmin/templates/Img/slideshow_thumbsbar_bg.png)' );

   });