var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3916724&docid=67815718&x=021',
		'title': '',
		'imageId': '67815718',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3916724&docid=67815717&x=021',
		'title': '',
		'imageId': '67815717',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3916724&docid=67815703&x=021',
		'title': '',
		'imageId': '67815703',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3916724&docid=67815704&x=021',
		'title': '',
		'imageId': '67815704',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3916724&docid=67815705&x=021',
		'title': '',
		'imageId': '67815705',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3916724&docid=67815706&x=021',
		'title': '',
		'imageId': '67815706',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3916724&docid=67815707&x=021',
		'title': '',
		'imageId': '67815707',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3916724&docid=67815715&x=021',
		'title': '',
		'imageId': '67815715',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3916724&docid=67815723&x=021',
		'title': '',
		'imageId': '67815723',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3916724&docid=67815702&x=021',
		'title': '',
		'imageId': '67815702',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3916724';

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