jQuery.noConflict();
(function($){
	$(document).ready(function(){
		if ($('.advertising_block')) {
			if ($('#adblock_1')) {
				$('#adblock_1 li:nth-child(3n)').addClass('last');
			}
			if ($('#adblock_2')) {
				$('#adblock_2 li:nth-child(4n)').addClass('last');
			}
		}
		if ($('#video_list li')) {
			$('#video_list li:nth-child(4n)').addClass('last');
		}
		if ($('#extrathumbs li')) {
			$('#extrathumbs li:nth-child(2n)').addClass('last');
		}
		if ($('#slider')) {
			//$('#slider').anythingSlider();
			$('#slider')
		    .anythingSlider({
		    		autoPlay						: true,
		        // zero time between slide transitions
		        animationTime      : 0,
		        // set this delay to fade out the current slide before animating
		        // set here to match the fade time
		        delayBeforeAnimate : 400
		    })
		    .anythingSliderFx({
					// base FX definitions
					// '.selector' : [ 'effect(s)', 'distance/size', 'time', 'easing' ] - 'time' and 'easing' are optional parameters
					'.panel': [ 'fade' ]
					
					// for more precise control, use the "in" and "out" definitions
					// in = the animation that occurs when you slide "in" to a panel
					,inFx  : {
						'.panel' : { opacity: 1, duration: 400 }
					},
					// out = the animation that occurs when you slide "out" of a panel
					// (it also occurs before the "in" animation) - outFx animation time is 1/2 of inFx time
					outFx : {
						'.panel'     : { opacity: 0, duration: 400 }
					}
					
				});
		}
	});
})(jQuery);
