var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012049&docid=70006981&x=410',
		'title': '',
		'imageId': '70006981',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012049&docid=70006980&x=410',
		'title': '',
		'imageId': '70006980',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012049&docid=70006982&x=410',
		'title': '',
		'imageId': '70006982',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012049&docid=70006984&x=410',
		'title': '',
		'imageId': '70006984',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012049&docid=70006983&x=410',
		'title': '',
		'imageId': '70006983',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012049&docid=70006979&x=410',
		'title': '',
		'imageId': '70006979',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012049&docid=70006986&x=410',
		'title': '',
		'imageId': '70006986',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012049&docid=70009302&x=410',
		'title': '',
		'imageId': '70009302',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012049&docid=70009299&x=410',
		'title': '',
		'imageId': '70009299',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012049&docid=70009300&x=410',
		'title': '',
		'imageId': '70009300',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012049&docid=70009301&x=410',
		'title': '',
		'imageId': '70009301',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012049';

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