var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3898497&docid=67123423&x=2050',
		'title': '',
		'imageId': '67123423',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3898497&docid=67123424&x=2050',
		'title': '',
		'imageId': '67123424',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3898497&docid=67123426&x=2050',
		'title': '',
		'imageId': '67123426',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3898497&docid=67123428&x=2050',
		'title': '',
		'imageId': '67123428',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3898497&docid=67123430&x=2050',
		'title': '',
		'imageId': '67123430',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3898497&docid=67123427&x=2050',
		'title': '',
		'imageId': '67123427',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3898497&docid=67123429&x=2050',
		'title': '',
		'imageId': '67123429',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3898497&docid=67123431&x=2050',
		'title': '',
		'imageId': '67123431',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3898497&docid=67123432&x=2050',
		'title': '',
		'imageId': '67123432',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3898497&docid=67123425&x=2050',
		'title': '',
		'imageId': '67123425',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3898497';

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