var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3943808&docid=68435789&x=1230',
		'title': '',
		'imageId': '68435789',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3943808&docid=68435799&x=1230',
		'title': '',
		'imageId': '68435799',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3943808&docid=68435794&x=1230',
		'title': '',
		'imageId': '68435794',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3943808&docid=68435791&x=1230',
		'title': '',
		'imageId': '68435791',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3943808&docid=68435790&x=1230',
		'title': '',
		'imageId': '68435790',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3943808&docid=68435793&x=1230',
		'title': '',
		'imageId': '68435793',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3943808&docid=68435792&x=1230',
		'title': '',
		'imageId': '68435792',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3943808&docid=68435798&x=1230',
		'title': '',
		'imageId': '68435798',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3943808&docid=68435795&x=1230',
		'title': '',
		'imageId': '68435795',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3943808&docid=68435797&x=1230',
		'title': '',
		'imageId': '68435797',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3943808&docid=68435796&x=1230',
		'title': '',
		'imageId': '68435796',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3943808';

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