function gl_show(n)
{

	pic = n
	if(pic_lst[n-1].video)
	{
		$('#view_img').hide();
		$('#video_tag').show();
		
		code =get_flash_code('/flash/video.swf','516','340','opaque','videoPath='+ pic_lst[n-1].video
			+'&titleTxt=' + pic_lst[n-1].name)
		$('#video_tag').html(code);

		var h= jQuery(".bigPicImg").height();
		if(h>340){
		jQuery(".bigPicImg").css("top",(h-340)/2);
		}

	}
	else
	{
		$('#view_img').show();
		$('#view_img').attr('src', pic_lst[n-1].img);
		$('#video_tag').hide();
		$('#video_tag').html('&nbsp;');
		jQuery(".bigPicImg").css("top","auto");
	}

	$('#bug_img').attr('href', big_img + '?big_img='+n)
	$('#smoll_img').attr('href', big_img + '?pic='+n)
	fix_view();
	return false;
}

function prv()
{
	pic--;	if(pic<1) pic = pic_lst.length
	return gl_show(pic);
}

function nxt()
{
	pic++;	if(pic> pic_lst.length) pic = 1;
	return gl_show(pic);
}

function fix_view()
{
	if(pic >= pic_lst.length)$('#ra').hide();else $('#ra').show();
	if(pic == 1)$('#la').hide();else $('#la').show();
}

