var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4017075&docid=70158395&x=4633',
		'title': '',
		'imageId': '70158395',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017075&docid=70158396&x=4633',
		'title': '',
		'imageId': '70158396',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017075&docid=70158397&x=4633',
		'title': '',
		'imageId': '70158397',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017075&docid=70158398&x=4633',
		'title': '',
		'imageId': '70158398',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017075&docid=70158399&x=4633',
		'title': '',
		'imageId': '70158399',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017075&docid=70158400&x=4633',
		'title': '',
		'imageId': '70158400',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017075&docid=70158401&x=4633',
		'title': '',
		'imageId': '70158401',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017075&docid=70158402&x=4633',
		'title': '',
		'imageId': '70158402',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017075&docid=70158403&x=4633',
		'title': '',
		'imageId': '70158403',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017075&docid=70158404&x=4633',
		'title': '',
		'imageId': '70158404',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4017075';

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