var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4032157&docid=70504052&x=559',
		'title': '',
		'imageId': '70504052',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032157&docid=70504053&x=559',
		'title': '',
		'imageId': '70504053',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032157&docid=70504055&x=559',
		'title': '',
		'imageId': '70504055',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032157&docid=70504056&x=559',
		'title': '',
		'imageId': '70504056',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032157&docid=70504054&x=559',
		'title': '',
		'imageId': '70504054',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032157&docid=70504057&x=559',
		'title': '',
		'imageId': '70504057',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032157&docid=70504061&x=559',
		'title': '',
		'imageId': '70504061',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032157&docid=70504067&x=559',
		'title': '',
		'imageId': '70504067',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032157&docid=70504072&x=559',
		'title': '',
		'imageId': '70504072',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032157&docid=70504065&x=559',
		'title': '',
		'imageId': '70504065',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4032157&docid=70504051&x=559',
		'title': '',
		'imageId': '70504051',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4032157';

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