var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012757&docid=70023099&x=4553',
		'title': '',
		'imageId': '70023099',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012757&docid=70023096&x=4553',
		'title': '',
		'imageId': '70023096',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012757&docid=70023097&x=4553',
		'title': '',
		'imageId': '70023097',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012757&docid=70023091&x=4553',
		'title': '',
		'imageId': '70023091',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012757&docid=70023093&x=4553',
		'title': '',
		'imageId': '70023093',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012757&docid=70023095&x=4553',
		'title': '',
		'imageId': '70023095',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012757&docid=70023098&x=4553',
		'title': '',
		'imageId': '70023098',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012757&docid=70023100&x=4553',
		'title': '',
		'imageId': '70023100',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012757&docid=70023094&x=4553',
		'title': '',
		'imageId': '70023094',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012757&docid=70023092&x=4553',
		'title': '',
		'imageId': '70023092',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012757';

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