function showInfoArtist(artist_name) {
        //alert(artist_name);
	var res = '';
	jQuery.ajax({
	    async: false,
	    url: '/artists/show_artist_info.php'+'?artist_name='+artist_name,
	    success: function(data) {
		  res = data;
	    }
	});
	return res;
}

function showInfoArtistToHtml(artist_name) {
        //alert(artist_name);
	
	jQuery.ajax({
	    url: '/artists/show_artist_info.php'+'?artist_name='+artist_name,
	    success: function(data) {
		jQuery('#container_artist_info').html(data);
	    }
	});
        
}



function showCategoryForGenre(genreId)
{
        //alert(genreId);
	jQuery('#container_category_for_genre').html('Loading...');	
	jQuery.ajax({
	    url: '/artists/list_category_for_genre.php?genreId='+genreId,
	    success: function(data) {
		jQuery('#container_category_for_genre').html(data);
	    }
	});
}

function showHelloUser() {
    	var wHeight = $(window).height();
    	var wWidth = $(window).width();
    	var y = wHeight / 2 - 30;
    	y = y < 10 ? 10 : y;
    	var x = wWidth / 2 - 180;
    	x = x < 10 ? 10 : x;
    	$('#block_hello_user').css('top', y+'px');
    	$('#block_hello_user').css('left', x+'px');
    	$('#block_hello_user').slideDown(1000).delay(2000).fadeOut(3500);
}

function getNameBrowser() {
 var ua = navigator.userAgent.toLowerCase();
// alert(ua);
 // Žïðåäåëèì Internet Explorer
 if (ua.indexOf("msie") != -1 && ua.indexOf("opera") == -1 && ua.indexOf("webtv") == -1) {
   return "msie"
 }
 // Opera
 if (ua.indexOf("opera") != -1) {
   return "opera"
 }
 // Safari, èñïîëüçóåòñß â MAC OS
 if (ua.indexOf("safari") != -1) {
   return "safari";
 }
 // Chrome
 if (ua.indexOf("chrome") != -1) {
   return "chrome"
 }
 // Gecko = Mozilla + Firefox + Netscape
 if (ua.indexOf("gecko") != -1) {
   return "gecko";
 }
 // Konqueror, èñïîëüçóåòñß â UNIX-ñèñòåìàõ
 if (ua.indexOf("konqueror") != -1) {
   return "konqueror";
 }
 return "unknown";
} 


function showUho() {
    	var xU = 0;
    	var uWidth = $(window).width();
    	if(uWidth > 1600) {
    		xU = uWidth / 2 - 450; 
    	}
    	//alert(xU);
    	$('#uho_left').css('left', xU+'px');
    	$('#uho_right').css('right', xU+'px');
}
  
      

