var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3949420&docid=68572547&x=123',
		'title': '',
		'imageId': '68572547',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949420&docid=68572537&x=123',
		'title': '',
		'imageId': '68572537',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949420&docid=68572540&x=123',
		'title': '',
		'imageId': '68572540',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949420&docid=68572545&x=123',
		'title': '',
		'imageId': '68572545',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949420&docid=68572546&x=123',
		'title': '',
		'imageId': '68572546',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949420&docid=68572542&x=123',
		'title': '',
		'imageId': '68572542',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949420&docid=68572539&x=123',
		'title': '',
		'imageId': '68572539',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949420&docid=68572541&x=123',
		'title': '',
		'imageId': '68572541',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949420&docid=68572544&x=123',
		'title': '',
		'imageId': '68572544',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949420&docid=68572538&x=123',
		'title': '',
		'imageId': '68572538',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3949420';

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