
(function($) { $(document).ready(function(){
	$( '#fb-130 .csc-textpic-image' ).each( function(index) {
		$( this ).css({
			'left': (index*20)+'px'
		});
	});
	$( '#fb-130 .csc-textpic-image img' ).each( function(index) {
		$( this ).css({
			'opacity': 1/(index+1)
		});
	});
	$($( '#fb-130 .csc-textpic-image' ).get().reverse()).each( function(index) {
		$( this ).css({
			'z-index': index
		});
	});
	$( '#fb-130 .csc-textpic-image' ).mouseover( function(){
		var cur = $( '#fb-130 .csc-textpic-image' ).index(this);
		$( this ).css({
			'z-index': 99
		});
		$( 'img', this ).css({
			'opacity': 1
		});
		$($( '#fb-130 .csc-textpic-image:gt('+cur+')' ).get().reverse()).each( function(idx) {
			$( this ).css({
				'z-index': idx
			});
			$( 'img', this ).css({
				'opacity': 1/($( '#fb-130 .csc-textpic-image:gt('+cur+')' ).length-idx+1)
			});
		});
		$( '#fb-130 .csc-textpic-image:lt('+cur+')' ).each( function(idx) {
			$( this ).css({
				'z-index': idx
			});
			$( 'img', this ).css({
				'opacity': 1/($( '#fb-130 .csc-textpic-image:lt('+cur+')' ).length-idx+1)
			});
		});
	});
});})(jQuery);

