$(document).ready(function(){
	if($('.slowfade').length)
		$('.slowfade').hover(function(){
			$(this).stop().animate({'opacity':0}, 'slow');
		},function(){
			$(this).stop().animate({'opacity':1}, 'slow');
		});
	
	var light = new Array();  
	var t = true;
	var k = new Array();
	$('a[rel*=lightbox]').each(function(){
		var t = true;
		for(i = 0; i<light.length; i++)
		{
			if(light[i] == $(this).attr('rel'))
				t = false;
		}
		if(t)
			light.push($(this).attr('rel'));
	});
	for(i = 0; i<light.length; i++)
		$('a[rel='+light[i]+']').lightBox();
	
	$('.opacity').hover(function(){
		$(this).css('opacity', '0.6');
	}, function(){
		$(this).css('opacity', '1');
	});
	
	$('a[rel=lightbx]').lightBox();
	$('a[rel=lightbx2]').lightBox();
});

