	var v_cur = 3;
	var h_cur = 1;
	var auto_ste = true;
	$( function () {
		$('.arrow_vert_up').click(function(){
			
			if (v_cur - 1 < 3)
			{
				$(".slide_content").fadeIn(100).animate({marginTop:"-=20px"},100).animate({marginTop:"+=20px"},100).animate({marginTop:"-=20px"},100)
				.animate({marginTop:"+=20px"},100).animate({marginTop:"-=20px"},100).animate({marginTop:"+=20px"},100);
				return false;
			}
			if (($(".slide_content").css('marginTop').replace('px','')) < 0)
			{
				v_cur--;
				if (v_cur < 3)
				{
					v_cur = $('.slide_content a').size();
					/*$(".slide_content").fadeIn(100).animate({marginTop: (($('.slide_content').height() - (113*3)) * -1) + 'px' },100);*/
					$(".slide_content").fadeIn(100).animate({marginTop:"-=20px"},100).animate({marginTop:"+=20px"},100).animate({marginTop:"-=20px"},100)
					.animate({marginTop:"+=20px"},100).animate({marginTop:"-=20px"},100).animate({marginTop:"+=20px"},100);
					return false;
				}
				$(".slide_content").fadeIn(100).animate({marginTop:"+=113"},1000);
			}
			else
			{
				/*$(".slide_content").fadeIn(100).animate({marginTop: (($('.slide_content').height() - (113*3)) * -1) + 'px' },1000);*/
				$(".slide_content").fadeIn(100).animate({marginTop:"-=20px"},100).animate({marginTop:"+=20px"},100).animate({marginTop:"-=20px"},100)
				.animate({marginTop:"+=20px"},100).animate({marginTop:"-=20px"},100).animate({marginTop:"+=20px"},100);
			}
			return false;
		});
		$('.arrow_vert_down').click(function(){
				
				v_cur++;
				if (v_cur > $('.slide_content a').size())
				{
					v_cur--;
					/*$(".slide_content").fadeIn(100).animate({marginTop:"0px"},1000);*/
					$(".slide_content").fadeIn(100).animate({marginTop:"-=20px"},100).animate({marginTop:"+=20px"},100).animate({marginTop:"-=20px"},100)
					.animate({marginTop:"+=20px"},100).animate({marginTop:"-=20px"},100).animate({marginTop:"+=20px"},100);
					return false;
				}
				$(".slide_content").fadeIn(100).animate({marginTop:"-=113"},500);
			return false;
		});
		
		$('.arraw_left').click(function() {
			
			if (parseInt($(".hor_slide_content").css('marginLeft').replace('px','')) < 0)
			{
				h_cur--;
				if (h_cur < 1)
				{
					h_cur++;
					$(".hor_slide_content").fadeIn(100).animate({marginLeft:"-=20px"},100).animate({marginLeft:"+=20px"},100).animate({marginLeft:"-=20px"},100)
					.animate({marginLeft:"+=20px"},100).animate({marginLeft:"-=20px"},100).animate({marginLeft:"+=20px"},100);
					return false;
				}
					$(".hor_slide_content").fadeIn(100).animate({marginLeft:"+=256"},500);
					$('.girls:eq('+ (h_cur - 1) + ') img:first').click();
			}
			else
			{
				$(".hor_slide_content").fadeIn(100).animate({marginLeft:"-=20px"},100).animate({marginLeft:"+=20px"},100).animate({marginLeft:"-=20px"},100)
				.animate({marginLeft:"+=20px"},100).animate({marginLeft:"-=20px"},100).animate({marginLeft:"+=20px"},100);
			}
			
			return false;
		});
		$('.arraw_right').click(function() {
			
			if (parseInt($(".horslider").width()) + (parseInt($(".hor_slide_content").css('marginLeft').replace('px','')) *-1) + 256 <= $('.hor_slide_content').width())
			{
				h_cur++;
				if (h_cur > $('.hor_slide_item').size())
				{
					h_cur--;
					$(".hor_slide_content").fadeIn(100).animate({marginLeft:"-=20px"},100).animate({marginLeft:"+=20px"},100).animate({marginLeft:"-=20px"},100)
					.animate({marginLeft:"+=20px"},100).animate({marginLeft:"-=20px"},100).animate({marginLeft:"+=20px"},100);
					return false;
				}
				$(".hor_slide_content").fadeIn(100).animate({marginLeft:"-=256"},500);
					$('.girls:eq('+ (h_cur - 1) + ') img:first').click();
			}
			else
			{
				$(".hor_slide_content").fadeIn(100).animate({marginLeft:"-=20px"},100).animate({marginLeft:"+=20px"},100).animate({marginLeft:"-=20px"},100)
				.animate({marginLeft:"+=20px"},100).animate({marginLeft:"-=20px"},100).animate({marginLeft:"+=20px"},100);
			}
			
			return false;
		});

		$('.hor_slide_content').css('width', $('.hor_slide_item').size() * 256);
		$('.slide_content').css('height', $('.slide_content a').size() * 113);

		
		$('.girlsText a').click(function(){
			var targ_href = this.href;
			$('#playlist_container a.playlink').each(function(){
				if (this.href == targ_href)
				{
					$(this).click();
				}
			});
			return false;
		});
		//setTimeout('move_current();', 1000);
	});