
/* looped slider page1 gallery2 */	
	jQuery(document).ready(function(jQuery){
		jQuery("#loopedSlider").loopedSlider();
	        
	});

/* gallery1 page1 */

jQuery(document).ready(function(){
	
	jQuery(".gallery1 ul li a").click(function(){
	
		jQuery(".gallery1 ul li a").removeClass('active');
		jQuery(this).addClass('active');
	
  		var largePath = jQuery(this).attr("href");
  		var txtid = jQuery(this).attr("rel");
  		var txt = jQuery('#'+txtid).html();
  		
  		jQuery("#largeImg").animate({ opacity: "0" }, "middle",function(){
   			 jQuery("#largeImg").attr({ src: largePath})
		})
		
		jQuery("#topmodule .box .wrapper").animate({ opacity: "0" }, "middle",function(){
   			 jQuery("#topmodule .box .wrapper").html( txt );
   		})
		
		
		jQuery("#largeImg").animate({ opacity: "1" }, "slow");
		jQuery("#topmodule .box .wrapper").animate({ opacity: "1" }, "slow");
		
		jQuery();
		
      	return false;
	});
	
//	Unter Fotos im Text den Titel ausgeben
	
	var tmpImgTitle = '';
	
	jQuery(".ce_text img").each( function(index){ 
		if( this.title != '' && this.title != undefined ){
			jQuery(this).wrap('<div class="imgfloater" style="float:'+jQuery(this).css('float')+'; width:'+jQuery(this).css('width')+'"></div>');
			jQuery(this).css('float', 'none');
			jQuery(this).after('<span>' + this.title + '</span>');
		}
	})
   
   jQuery("#container .mod_newslist h2, #Top .mod_newslist  h2:first-child:odd, .ce_tabcontrol_tabs .tabs").wrapInner('<span />');
   jQuery("#main .mod_newslist:odd").after('<div class="clear h10"></div>');
   jQuery("#top10 ul li:odd").css('backgroundColor', '#f6f6f6');
   
   jQuery(".ce_tabcontrol_tabs .tabs").hover( 
	function(){
		jQuery(this).css({ 'color':'#3092C9' }); 
	 },
	function(){
		jQuery(this).css({ 'color':'#666666' });	
	});
	
});


