jQuery(document).ready(function() {
	
	//mainmenu();
	
	/*jQuery('.art_photos').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '200px' }); 
	
	
	jQuery('.art_thumb').click(function() {
	
			var x = jQuery(".right").height();
			//alert(x);
		  
		  my_class = jQuery(this).attr('class');  
		
		  new_src = jQuery(this).attr('src');
		  par1 = jQuery(this).parent();
		  //par1 = jQuery(this).parent().parent();
		  jack = jQuery(par1).find('.art_main');
		  mack = jQuery(par1).find('.first'); 
		  old_src = jQuery(jack).attr('src');
		  
		  jQuery(jack).attr('src',new_src);
		  
		  if(my_class.search(/no_href/i)==-1)
			  jQuery(mack).attr('href',new_src.replace('200,200','800,600'));
		  
		  jQuery(this).attr('src',old_src);
		  
		  var x2 = jQuery(".right").height();
		  //alert(x2);
		  if (x2 < x)
		  	jQuery(".right").height(x);
		  		  
	});*/
	
jQuery('.art_photos').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '200px' }); 
	
	jQuery('.art_thumb').click(function() {
		  
		  new_src = jQuery(this).attr('src');
		  
		  my_id = jQuery(this).attr('id');
		  my_id = my_id.replace('th_','');
		  
		  
		  par1 = jQuery(this).parent();
		  jQuery(par1).find('.art_photos li').hide();
		  jQuery(par1).find('.art_photos li#li_'+my_id).show();
		  		  
	});


	
	jQuery("a.article").fancybox(
			{
				'titleShow'     		: false,
				'easingIn'				: 'easeOutBack',
				'easingOut'				: 'easeInBack',
				'hideOnContentClick'	: false

			}
	);
	
	jQuery("a.youtube").fancybox(
			{	
				'padding'		: 0,
				'type'				: 'iframe',
				'hideOnContentClick': false,
				'autoScale'		: false,
				'width'		: 680,
				'height'		: 495,
				'transitionIn'	: 'none',
				'transitionOut'	: 'none'

			}
	);

	
	

});

function slideSwitch() {
    var $active = jQuery('#slideshow IMG.active');

    if ( $active.length == 0 ) $active = jQuery('#slideshow IMG:last');

    var $next =  $active.next().length ? $active.next()
        : jQuery('#slideshow IMG:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}




	

