// JavaScript Document
$(document).ready(function() {
	$.ajaxSetup ({  
		cache: false  
	});
});

/*Show the next image in the gallery
*@param id: The id of the image to display
*@param currId: The id of the current image
*@param colId: The id of the current image collection
*@returns void
*/
function showImage(id,currId,colId){
	var url = 'inc/scripts/artist_imgGallery.php';
	//used to clear the cache in IE and ensure that latest results are displayed.
	var d = new Date();
	var time = d.getTime();
	var pars = 'imgId=' + id + '&currId=' + currId + '&colId=' + colId + '&time=' + time;
	var ajax_load = "<img src='images/image-collections/thumbs/default.jpg' alt='loading...' />";  
	
    $("#ajaxspace").load(url,pars);
}

/*Show the image details
*@returns void
*/
function showImageDetails(){
	$("#hiddenDetails").css("display", "block");	
}


/*Hide the image details
*@returns void
*/
function closeImageDetails(){
	$("#hiddenDetails").css("display", "none");
}