/*(function($){
	$.fn.scrollUl = function()
	{
		return this.each(function(){
			var _this = this;
			var li_width = ( $('li', _this).innerWidth());
			$($('.left', this).get(0)).click(function(){
				$($('ul', _this).get(0)).stop(true, true);
				var bottom = $($('.scroll-ul-container', _this).get(0)).offset().left - $($('ul', _this).get(0)).offset().left;
				if ( bottom > 0 )
				{
					var move = '+='+li_width+'px';
					if ( ( parseInt($($('ul', _this).get(0)).css('left')) + li_width ) > 0 )
					{
						var height = $('li', _this).innerWidth() + parseInt($(_this).attr('rel'));
						move = '+='+height+'px';
					}
					$($('ul', _this).get(0)).animate({"left": move}, 'fast', 'swing');
				}
				return false;
			});
			$($('.right', this).get(0)).click(function(){
				$($('ul', _this).get(0)).stop(true, true);
				var top = $($('.scroll-ul-container', _this).get(0)).offset().left - $($('ul', _this).get(0)).offset().left;
				var a = top + $($('.scroll-ul-container', _this).get(0)).innerWidth();
				var diff = $($('ul', _this).get(0)).innerWidth() - a ;
				if ( diff > 0 && diff >= $('li', _this).innerWidth() )
				{
					var move = '-='+li_width+'px';
					if ( diff < li_width )
					{
						var width = $('li', _this).innerWidth() + parseInt($(_this).attr('rel'));
						move = '-='+width+'px';
					}
					$($('ul', _this).get(0)).animate({"left": move}, 'fast', 'swing');
					if ( window.work_list !== undefined || window.work_list == [] ) {
						for ( var i = 0; i < 1; i++ )
						{
							if ( work_list.length > 0 )
							{
								var photo = work_list.shift();
								$('.scroll-list').append(''+photo.html+'');
								$('.scroll-list').css('width', parseInt($('.scroll-list').css('width'))+188+'px');
							}
						}
					}
				}
				return false;
			});
		});
	};

	$.fn.doCorner = function(options)
	{
		options = $.extend({
			corn: {}
		}, options);
		if(!$(this).hasClass('rounded'))
		{
			$(this).corner(options.corn).addClass('rounded');
		}
	}
})(jQuery);

$(document).ready(function(){
    $('#header .btn2').doCorner({corn: { tl: { radius: 3 }, tr: { radius: 3 }, bl: { radius: 3 }, br: { radius: 3 }, antiAlias: true}});
    $('#footer').doCorner({corn: { tl: { radius: 10 }, tr: { radius: 10 }, bl: { radius: 0 }, br: { radius: 0 }, antiAlias: true}});
    $('.scroll-ul').scrollUl();

    $('.play-audio').live('click', function(){
		$('.audio-player').hide();
		$('.play-audio').show();
		$('.audio-player', $(this).parent()).show();
		$(this).hide();
		return false;
	});
})

function TrackVote(a, track_id )
{
	$.get($(a).attr('href'), {id: track_id},function(response){
		var html = response;
		$('#vote-form').html('<div class="close" onclick="return closePopup($(this));"></div>' + html);
	});
	return false;
}

function Vote(a)
{
	var id = $('#vote-form').find('#signinchoice_track_id').val();
	var email = $('#vote-form').find('#signinchoice_email').val();
	var password = $('#vote-form').find('#signinchoice_password').val();
	$.post($(a).attr('href'), {'email': email, 'password': password, 'id': id, 'type': 'signin'}, function(response){
		var html = response;
		$('#vote-form').html('<div class="close" onclick="return closePopup($(this));"></div>' + html);
	});
	return false;
}

function VoteCap(a)
{
	var id = $('#vote-form').find('#signinchoice_track_id').val();
	var captcha = $('#vote-form').find('#choicecap_captcha').val();
	$.post($(a).attr('href'), {'captcha': captcha, 'id': id, 'type': 'captcha'}, function(response){
		var html = response;
		$('#vote-form').html('<div class="close" onclick="return closePopup($(this));"></div>' + html);
	});
	return false;
}

function closePopup(_this)
{
	$(_this).parent().hide();
	$(_this).parent().html('<div class="close" onclick="return closePopup($(this));"></div>');
}
*/
function closeSms(_this)
{
	$('#sms-test').hide();
	/*$('.sms-block').css('top', '175px');
	$('.sms-block').css('width', '305px');
	$('.sms-block').css('left', '400px');*/
	$('.sms-block').css('top', '');
	$('.sms-block').css('width', '');
	$('.sms-block').css('left', '');
	$(_this).parent().hide();
}
/*
function showSignIn(a)
{
	$.get($(a).attr('href'), {},function(response){
		var html = response;
		$('#sign-form').html('<div class="close" onclick="return closePopup($(this));"></div>' + html);
		$('#sign-form').show();
	});
	return false;
}

function signIn(a)
{
	var email = $('#signin_email').val();
	var password = $('#signin_password').val();
	$.post($(a).attr('href'), {'email': email, 'password': password},function(response){
		var html = response;
		$('#sign-form').html('<div class="close" onclick="return closePopup($(this));"></div>' + html);
		$('#sign-form').show();
	});
	return false;
}
*/
function showSms(_this)
{
	$('.sms-block').hide();
	$('.sms-block').show();
	return false;
}
function showSms1(_this)
{
	$('.sms-block1').hide().find('span').html(parseInt($(_this).parents('tr').attr('rel')));
	$('.sms-block1').show();
	return false;
}
function showSms2(_this)
{
	$('.sms-block2').hide().find('span').html(parseInt($(_this).parents('tr').attr('rel')));
	$('.sms-block2').show();
	return false;
}
/*
function initChoiceList()
{
	var band_info = $('.choice .band-info');
	$('.choice td.band span').mouseenter(function(){
		$('.info-content img', band_info).attr('src', $(this).attr('u_img')).attr('alt', $(this).attr('u_name'));
		$('span', band_info).html('<strong>'+$(this).attr('u_name')+'</strong><p style="text-align: left; font-size: 10px; text-indent: 0px;">'+$(this).attr('u_desc')+'</p>');
		$(band_info).show().doCorner({corn: {}});
	}).mouseleave(function(){
		$(band_info).hide();
	});
}*/
