var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4050557&docid=71123599&x=4931',
		'title': '',
		'imageId': '71123599',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4050557&docid=71123600&x=4931',
		'title': '',
		'imageId': '71123600',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4050557&docid=71123598&x=4931',
		'title': '',
		'imageId': '71123598',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4050557&docid=71123602&x=4931',
		'title': '',
		'imageId': '71123602',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4050557&docid=71123606&x=4931',
		'title': '',
		'imageId': '71123606',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4050557&docid=71123608&x=4931',
		'title': '',
		'imageId': '71123608',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4050557&docid=71123601&x=4931',
		'title': '',
		'imageId': '71123601',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4050557&docid=71123605&x=4931',
		'title': '',
		'imageId': '71123605',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4050557&docid=71123603&x=4931',
		'title': '',
		'imageId': '71123603',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4050557&docid=71123604&x=4931',
		'title': '',
		'imageId': '71123604',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4050557&docid=71123607&x=4931',
		'title': '',
		'imageId': '71123607',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4050557';

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