$(document).ready(function(){
	kevgal = function(src, captions){
		var image_count = src.length;
		var this_image = 1;
		if(image_count <= 1){$("#image_counter").hide();};
		$(".count_f").text("1");$(".count_l").text(image_count);
		checklimit = function(){if(this_image == 1){$(".ww").css({marginLeft: "11px"});if($.browser.msie){$(".ww").css({marginLeft: "6px"});};$(".left_arr").hide();}else{$(".ww").css({marginLeft: "0px"});$(".left_arr").show();};if(this_image == image_count){$(".right_arr").hide();}else{$(".right_arr").show();};};
		$(".left_arr").click(function(){this_image = this_image - 1;$("#image_detail_holder #image_detail .artist h2").text( captions[ this_image - 1 ] );$("#image_bgd #image_content img").attr( "src", src[ this_image - 1 ] );$(".count_f").text( this_image );checklimit();});
		$(".right_arr").click(function(){this_image = this_image + 1;$("#image_detail_holder #image_detail .artist h2").text( captions[ this_image - 1 ] );$("#image_bgd #image_content img").attr( "src", src[ this_image - 1 ] );$(".count_f").text( this_image );checklimit();});	
		checklimit();
	};
	kevgal(src, captions);
});
