var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4013222&docid=70033507&x=4436',
		'title': '',
		'imageId': '70033507',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013222&docid=70033501&x=4436',
		'title': '',
		'imageId': '70033501',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013222&docid=70033504&x=4436',
		'title': '',
		'imageId': '70033504',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013222&docid=70033502&x=4436',
		'title': '',
		'imageId': '70033502',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013222&docid=70033508&x=4436',
		'title': '',
		'imageId': '70033508',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013222&docid=70033505&x=4436',
		'title': '',
		'imageId': '70033505',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013222&docid=70033499&x=4436',
		'title': '',
		'imageId': '70033499',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013222&docid=70033500&x=4436',
		'title': '',
		'imageId': '70033500',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013222&docid=70033503&x=4436',
		'title': '',
		'imageId': '70033503',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013222&docid=70033506&x=4436',
		'title': '',
		'imageId': '70033506',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4013222';

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