var bDelIsEnabled = false;
var sLastItem = false;
var iCurAlbumPage = 1;

function openAlbumPage(iAlbumPage)
{
	$('albumpage'+iCurAlbumPage).style.display = 'none';
	$('albumpage'+iAlbumPage).style.display = 'block';

	$('albumau'+iCurAlbumPage).style['padding'] = '2px';
	$('albumau'+iCurAlbumPage).style['border'] = '1px solid #fff';
	$('albumau'+iCurAlbumPage).style['cursor'] = 'pointer';
	$('albumau'+iCurAlbumPage).style['background'] = '#fff';
	$('albumau'+iCurAlbumPage).style.fontWeight = 'normal';
	
	
	$('albumau'+iAlbumPage).style['padding'] = '2px';
	$('albumau'+iAlbumPage).style['border'] = '1px solid #ccc';
	$('albumau'+iAlbumPage).style['background'] = '#eee';
	$('albumau'+iAlbumPage).style['cursor'] = 'pointer';
	$('albumau'+iAlbumPage).style.fontWeight = 'bold';
	
	iCurAlbumPage = iAlbumPage;
	return true;
}

function openDelPic(pid)
{
	$('albumimgdelbox').style.display = 'block';
	$('albumimgdelid').value = pid;
	return true;
}

function closeDelPic()
{
	$('albumimgdelbox').style.display	= 'none';
}

function enableDelPic ()
{
	bDelIsEnabled = true;
	return true;
}