/**
 * Visar kommentarer till musik
 */

		function GetAudioComments(audioid)
		{
			commentField = "#audioComments" + audioid;
			loadingField = "#audioCommentLoad" + audioid;
			watchbutton	 = "#button" + audioid;
			closebutton  = "#closebutton" + audioid;	

			randomValue	= Math.random();
			$(".audioComment").hide();

			$('.openbutton').show();
			$(watchbutton).hide();

			$('.closebutton').hide();
			$(closebutton).show();

			$(loadingField).show();
			$(commentField).load("/_data/ajax_getAudioComments.php?audioid=" + audioid + "&random=" + randomValue, "" , ShowAudioComment(commentField, loadingField) );
		}	
		
		function ShowAudioComment(commentField, loadingField)
		{
			$(".audioComment").hide();
			$(commentField).show();
		}

		function hideComments(field)
		{
			commentfield 	= "#audioComments" + field;
			watchbutton		= "#button" + field;
			closebutton		= "#closebutton" + field;	
			$(commentfield).text('');
			$(watchbutton).show();
			$(closebutton).hide();
			
		}


/**
 * Get rates
 */
 
 	function audioVote(audioid, ratevalue)
 	{
		randomValue	= Math.random();
		rateField = "#audioRating" + audioid;
 		$(rateField).load("/_data/ajax_rateAudio.php", {audioid: audioid , ratevalue: ratevalue, randomValue: randomValue}, function(){});
 			
 	}
