var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=912978&docid=7261920&x=3913',
		'title': '',
		'imageId': '7261920',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=912978&docid=7261923&x=3913',
		'title': '',
		'imageId': '7261923',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=912978&docid=7261926&x=3913',
		'title': '',
		'imageId': '7261926',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=912978&docid=7261935&x=3913',
		'title': '',
		'imageId': '7261935',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=912978&docid=7261938&x=3913',
		'title': '',
		'imageId': '7261938',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=912978&docid=7261967&x=3913',
		'title': '',
		'imageId': '7261967',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=912978&docid=7261971&x=3913',
		'title': '',
		'imageId': '7261971',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=912978&docid=7261974&x=3913',
		'title': '',
		'imageId': '7261974',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=912978&docid=7261978&x=3913',
		'title': '',
		'imageId': '7261978',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=912978&docid=7261981&x=3913',
		'title': '',
		'imageId': '7261981',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #912978';

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