var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016887&docid=70149885&x=491',
		'title': '',
		'imageId': '70149885',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016887&docid=70149887&x=491',
		'title': '',
		'imageId': '70149887',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016887&docid=70149886&x=491',
		'title': '',
		'imageId': '70149886',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016887&docid=70149888&x=491',
		'title': '',
		'imageId': '70149888',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016887&docid=70149878&x=491',
		'title': '',
		'imageId': '70149878',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016887&docid=70149879&x=491',
		'title': '',
		'imageId': '70149879',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016887&docid=70149883&x=491',
		'title': '',
		'imageId': '70149883',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016887&docid=70149881&x=491',
		'title': '',
		'imageId': '70149881',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016887&docid=70149889&x=491',
		'title': '',
		'imageId': '70149889',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016887&docid=70149884&x=491',
		'title': '',
		'imageId': '70149884',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016887&docid=70149882&x=491',
		'title': '',
		'imageId': '70149882',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016887';

document.body.style.overflow = "hidden";
var closeElement = document.querySelector("#lightbox #close");
var closeLoadingElement = document.querySelector("#lightbox #closeLoading");

if (closeElement) {
	closeElement.addEventListener("click", function() {
		document.body.style.overflow = "auto";
	})
}

if (closeLoadingElement) {
	closeLoadingElement.addEventListener("click", function() {
		document.body.style.overflow = "auto";
	})
}
