var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=471546&docid=2580099&x=3317',
		'title': '',
		'imageId': '2580099',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471546&docid=2580105&x=3317',
		'title': '',
		'imageId': '2580105',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471546&docid=2580111&x=3317',
		'title': '',
		'imageId': '2580111',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471546&docid=2580116&x=3317',
		'title': '',
		'imageId': '2580116',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471546&docid=2580125&x=3317',
		'title': '',
		'imageId': '2580125',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471546&docid=2580130&x=3317',
		'title': '',
		'imageId': '2580130',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471546&docid=2580135&x=3317',
		'title': '',
		'imageId': '2580135',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471546&docid=2580141&x=3317',
		'title': '',
		'imageId': '2580141',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471546&docid=2580144&x=3317',
		'title': '',
		'imageId': '2580144',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471546&docid=2580089&x=3317',
		'title': '',
		'imageId': '2580089',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471546&docid=2580094&x=3317',
		'title': '',
		'imageId': '2580094',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #471546';

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