var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3978481&docid=68375907&x=1037',
		'title': '',
		'imageId': '68375907',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978481&docid=68375904&x=1037',
		'title': '',
		'imageId': '68375904',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978481&docid=68375905&x=1037',
		'title': '',
		'imageId': '68375905',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978481&docid=68375906&x=1037',
		'title': '',
		'imageId': '68375906',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978481&docid=68375908&x=1037',
		'title': '',
		'imageId': '68375908',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978481&docid=68375909&x=1037',
		'title': '',
		'imageId': '68375909',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978481&docid=68375910&x=1037',
		'title': 'Key was turned on for odometer reading only. Vehicle was not running when this photo was taken.',
		'imageId': '68375910',
		'alt' : 'Key was turned on for odometer reading only. Vehicle was not running when this photo was taken.',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3978481';

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