var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012495&docid=70015859&x=435',
		'title': '',
		'imageId': '70015859',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012495&docid=70015864&x=435',
		'title': '',
		'imageId': '70015864',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012495&docid=70015862&x=435',
		'title': '',
		'imageId': '70015862',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012495&docid=70015861&x=435',
		'title': '',
		'imageId': '70015861',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012495&docid=70015860&x=435',
		'title': '',
		'imageId': '70015860',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012495&docid=70015863&x=435',
		'title': '',
		'imageId': '70015863',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012495&docid=70015858&x=435',
		'title': '',
		'imageId': '70015858',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012495&docid=70015855&x=435',
		'title': '',
		'imageId': '70015855',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012495&docid=70015856&x=435',
		'title': '',
		'imageId': '70015856',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012495&docid=70015857&x=435',
		'title': '',
		'imageId': '70015857',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012495';

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