var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4017098&docid=70160121&x=3639',
		'title': '',
		'imageId': '70160121',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017098&docid=70160120&x=3639',
		'title': '',
		'imageId': '70160120',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017098&docid=70160115&x=3639',
		'title': '',
		'imageId': '70160115',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017098&docid=70160119&x=3639',
		'title': '',
		'imageId': '70160119',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017098&docid=70160117&x=3639',
		'title': '',
		'imageId': '70160117',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017098&docid=70160114&x=3639',
		'title': '',
		'imageId': '70160114',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017098&docid=70160113&x=3639',
		'title': '',
		'imageId': '70160113',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017098&docid=70160118&x=3639',
		'title': '',
		'imageId': '70160118',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017098&docid=70160116&x=3639',
		'title': '',
		'imageId': '70160116',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017098&docid=70160111&x=3639',
		'title': '',
		'imageId': '70160111',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017098&docid=70160112&x=3639',
		'title': '',
		'imageId': '70160112',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4017098';

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