var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4017380&docid=70167064&x=77',
		'title': '',
		'imageId': '70167064',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017380&docid=70167062&x=77',
		'title': '',
		'imageId': '70167062',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017380&docid=70167061&x=77',
		'title': '',
		'imageId': '70167061',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017380&docid=70167056&x=77',
		'title': '',
		'imageId': '70167056',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017380&docid=70167065&x=77',
		'title': '',
		'imageId': '70167065',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017380&docid=70167057&x=77',
		'title': '',
		'imageId': '70167057',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017380&docid=70167058&x=77',
		'title': '',
		'imageId': '70167058',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017380&docid=70167059&x=77',
		'title': '',
		'imageId': '70167059',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017380&docid=70167060&x=77',
		'title': '',
		'imageId': '70167060',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017380&docid=70167063&x=77',
		'title': '',
		'imageId': '70167063',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4017380';

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