
	   jQuery(document).ready(
				function(){
					jQuery('#photos').innerfade({
						animationtype: 'fade',
						speed: 750,
						timeout: 5000,
						type: 'random'
						
					});
					jQuery("*").each(function () { 
   if (jQuery(this).children().length == 0) { 
      jQuery(this).text(jQuery(this).text().replace('дин.','din.')); 
   } 
});

			jQuery("a[rel=grupa]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'overlayColor': '#000'
				
				
			});		 

			});

