	function lightbox() {
		jQuery('#main a img').each(function(index){
		  	
			  var atag = jQuery(this).parent('a');
			  jQuery(atag).css("position","relative");
			  
			  var plusIMG = '<img alt="plus" src="/files/template/img/plus.gif" class="plus">';
			  atag.append(plusIMG);
				
		});
		}

jQuery(document).ready(function(){

  	lightbox();

    $(function() {
    $('a[rel=lightbox]').lightBox({
    	overlayOpacity: 0.6,
    	containerResizeSpeed: 750
       });
    });

        // Accordion
        jQuery(".accordion_start").accordion({ collapsible: true, active: 'ui-state-active', header: ".unterpunkt", autoHeight: false });
        jQuery(".unterpunkt").next().accordion({ collapsible: true, active: 'ui-state-active', header: ".toggler", autoHeight: false });		

  			//hover states on the static widgets
  			jQuery('.unterpunkt').hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); });
      
});

