var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012902&docid=70032299&x=3258',
		'title': '',
		'imageId': '70032299',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012902&docid=70032310&x=3258',
		'title': '',
		'imageId': '70032310',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012902&docid=70032305&x=3258',
		'title': '',
		'imageId': '70032305',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012902&docid=70032302&x=3258',
		'title': '',
		'imageId': '70032302',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012902&docid=70032311&x=3258',
		'title': '',
		'imageId': '70032311',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012902&docid=70032300&x=3258',
		'title': '',
		'imageId': '70032300',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012902&docid=70032306&x=3258',
		'title': '',
		'imageId': '70032306',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012902&docid=70032307&x=3258',
		'title': '',
		'imageId': '70032307',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012902&docid=70032303&x=3258',
		'title': '',
		'imageId': '70032303',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012902&docid=70032308&x=3258',
		'title': '',
		'imageId': '70032308',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012902&docid=70032309&x=3258',
		'title': '',
		'imageId': '70032309',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012902';

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