var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3904183&docid=67508245&x=3317',
		'title': '',
		'imageId': '67508245',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3904183&docid=67508271&x=3317',
		'title': '',
		'imageId': '67508271',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3904183&docid=67508244&x=3317',
		'title': '',
		'imageId': '67508244',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3904183&docid=67508250&x=3317',
		'title': '',
		'imageId': '67508250',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3904183&docid=67508247&x=3317',
		'title': '',
		'imageId': '67508247',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3904183&docid=67508249&x=3317',
		'title': '',
		'imageId': '67508249',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3904183&docid=67508251&x=3317',
		'title': '',
		'imageId': '67508251',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3904183&docid=67508246&x=3317',
		'title': '',
		'imageId': '67508246',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3904183&docid=67508252&x=3317',
		'title': '',
		'imageId': '67508252',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3904183&docid=67508248&x=3317',
		'title': '',
		'imageId': '67508248',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3904183';

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