var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3880436&docid=66888058&x=915',
		'title': '',
		'imageId': '66888058',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880436&docid=66888057&x=915',
		'title': '',
		'imageId': '66888057',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880436&docid=66888059&x=915',
		'title': '',
		'imageId': '66888059',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880436&docid=66888060&x=915',
		'title': '',
		'imageId': '66888060',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880436&docid=66888061&x=915',
		'title': '',
		'imageId': '66888061',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880436&docid=66888062&x=915',
		'title': '',
		'imageId': '66888062',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880436&docid=66888063&x=915',
		'title': '',
		'imageId': '66888063',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880436&docid=66888064&x=915',
		'title': '',
		'imageId': '66888064',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880436&docid=66888066&x=915',
		'title': '',
		'imageId': '66888066',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880436&docid=66888065&x=915',
		'title': '',
		'imageId': '66888065',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3880436';

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