function getProducts(iIdArtist, iIdPage){
	$.ajax({
	  url: base_url_index+"/ajax/artist_pagination/"+iIdArtist+"/"+iIdPage,
	  method: 'post',
	  cache: true,
	  success: function(html){
			$("#artist_artwork_ajax").html(html);
						
			curr_col = 1;
			$("#art_list li").each(function(){	
				if( curr_col == 1 ){
					curr_alt = $(this).height();
					//alert($(this).height());
				} else if ( curr_col == 2 ){
					temp_alt = $(this).height();
					
					if( temp_alt > curr_alt ){
						$(this).prev().height(temp_alt);
						curr_alt = temp_alt;
					} else if( temp_alt < curr_alt ){
						$(this).height(curr_alt);
					};  
				} else if ( curr_col = 3 ){
					temp_alt = $(this).height();
					
					if( temp_alt > curr_alt ){
						$(this).prev().height(temp_alt);
						$(this).prev().prev().height(temp_alt);
						curr_alt = temp_alt;
					};
					
					if( temp_alt < curr_alt ){
						$(this).height(curr_alt);
					};
				};
		
				curr_col++;
				
				if ( curr_col > 3 ){
					curr_col = 1;
				};
			});
		
		$.scrollTo( "#artworks", 800, {queue:true} );
	}
	});
}

function resize_list(){
	curr_col = 1;
	
	$("#art_list li").each(function(){	
		if( curr_col == 1 ){
			curr_alt = $(this).height();
			//alert($(this).height());
		} else if ( curr_col == 2 ){
			temp_alt = $(this).height();
			
			if( temp_alt > curr_alt ){
				$(this).prev().height(temp_alt);
				curr_alt = temp_alt;
			} else if( temp_alt < curr_alt ){
				$(this).height(curr_alt);
			};  
		} else if ( curr_col = 3 ){
			temp_alt = $(this).height();
			
			if( temp_alt > curr_alt ){
				$(this).prev().height(temp_alt);
				$(this).prev().prev().height(temp_alt);
				curr_alt = temp_alt;
			};
			
			if( temp_alt < curr_alt ){
				$(this).height(curr_alt);
			};
		};

		curr_col++;
		
		if ( curr_col > 3 ){
			curr_col = 1;
		};
	});	
}
