var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016240&docid=70123244&x=3018',
		'title': '',
		'imageId': '70123244',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016240&docid=70123243&x=3018',
		'title': '',
		'imageId': '70123243',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016240&docid=70123245&x=3018',
		'title': '',
		'imageId': '70123245',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016240&docid=70123241&x=3018',
		'title': '',
		'imageId': '70123241',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016240&docid=70123247&x=3018',
		'title': '',
		'imageId': '70123247',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016240&docid=70123242&x=3018',
		'title': '',
		'imageId': '70123242',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016240&docid=70123246&x=3018',
		'title': '',
		'imageId': '70123246',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016240&docid=70123240&x=3018',
		'title': '',
		'imageId': '70123240',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016240';

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";
	})
}
