$(document).ready(function(){
	
	$('#menu-item-522 a').click(function(){
		
		
				window.open("radio.html", "open_window", "menubar=0, toolbar=0, location=0,directories=0, status=0, scrollbars, resizable=0, dependent, width=500, height=1000, left=200, top=50");
				return false;
				
		});					   
			   
	
	$('.menu ul li a:last').css('border-left','none');
	$('.menu ul li a').each(function(index){
			
			$(this).addClass("menu"+index+"");
				 
									 
	});
	
	
	
	// video slider script
	
	var noListsGal = $('.video-slider ul li').size();
	var ulWidthGal = noListsGal * 333; 
	var maxctrGal = noListsGal ; //Math.ceil( noListsGal / 3 );
	var ctrGal = 1;
    $('.video-slider ul').css('width',ulWidthGal);
	$('.video-slider-wrapper .prev').click(function(){
			$('.video-slider-wrapper .next').css({
						'background-position':'0 0', 
						'cursor':'pointer'
						});
			if(ctrGal > 1){
				ctrGal--;
				$('.video-slider ul').animate({'left':'+=333px'},'slow',
						 function(){
								 if( ctrGal == 1 ){
									$('.video-slider-wrapper .prev').css({
											'background-position':'0 -20px', 
											'cursor':'default'
											});
									}
					 });
				}								 
			});
	
	$('.video-slider-wrapper .next').click(function(){
			$('.video-slider-wrapper .prev').css({
							'background-position':'0 0', 
							'cursor':'pointer'
							});
			if( ctrGal < maxctrGal){
				ctrGal++;
				$('.video-slider ul').animate({'left':'-=333px'},'slow',
					function(){
							if( ctrGal == maxctrGal ){
								$('.video-slider-wrapper .next').css({
										'background-position':'0 -20px', 
										'cursor':'default'
										});
																
								}
							
					});
				}								 
			});
	
	
		});
