var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3866904&docid=66580899&x=1816',
		'title': '',
		'imageId': '66580899',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866904&docid=66580902&x=1816',
		'title': '',
		'imageId': '66580902',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866904&docid=66580903&x=1816',
		'title': '',
		'imageId': '66580903',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866904&docid=66580904&x=1816',
		'title': '',
		'imageId': '66580904',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866904&docid=66580905&x=1816',
		'title': '',
		'imageId': '66580905',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866904&docid=66580909&x=1816',
		'title': '',
		'imageId': '66580909',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866904&docid=66580906&x=1816',
		'title': '',
		'imageId': '66580906',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866904&docid=66580907&x=1816',
		'title': '',
		'imageId': '66580907',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866904&docid=66580908&x=1816',
		'title': '',
		'imageId': '66580908',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866904&docid=66580901&x=1816',
		'title': '',
		'imageId': '66580901',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3866904&docid=66580900&x=1816',
		'title': '',
		'imageId': '66580900',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3866904';

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