var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012484&docid=70043381&x=2326',
		'title': '',
		'imageId': '70043381',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012484&docid=70043383&x=2326',
		'title': '',
		'imageId': '70043383',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012484&docid=70043380&x=2326',
		'title': '',
		'imageId': '70043380',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012484&docid=70043377&x=2326',
		'title': '',
		'imageId': '70043377',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012484&docid=70043387&x=2326',
		'title': '',
		'imageId': '70043387',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012484&docid=70043382&x=2326',
		'title': '',
		'imageId': '70043382',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012484&docid=70043386&x=2326',
		'title': '',
		'imageId': '70043386',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012484&docid=70043384&x=2326',
		'title': '',
		'imageId': '70043384',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012484&docid=70043385&x=2326',
		'title': '',
		'imageId': '70043385',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012484&docid=70043378&x=2326',
		'title': '',
		'imageId': '70043378',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012484';

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