var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012646&docid=70020786&x=3327',
		'title': '',
		'imageId': '70020786',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012646&docid=70020777&x=3327',
		'title': '',
		'imageId': '70020777',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012646&docid=70020784&x=3327',
		'title': '',
		'imageId': '70020784',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012646&docid=70020782&x=3327',
		'title': '',
		'imageId': '70020782',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012646&docid=70020785&x=3327',
		'title': '',
		'imageId': '70020785',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012646&docid=70020783&x=3327',
		'title': '',
		'imageId': '70020783',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012646&docid=70020779&x=3327',
		'title': '',
		'imageId': '70020779',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012646&docid=70020781&x=3327',
		'title': '',
		'imageId': '70020781',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012646&docid=70020780&x=3327',
		'title': '',
		'imageId': '70020780',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012646&docid=70020778&x=3327',
		'title': '',
		'imageId': '70020778',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012646';

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