var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4036019&docid=70617096&x=3543',
		'title': '',
		'imageId': '70617096',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4036019&docid=70617097&x=3543',
		'title': '',
		'imageId': '70617097',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4036019&docid=70617098&x=3543',
		'title': '',
		'imageId': '70617098',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4036019&docid=70617099&x=3543',
		'title': '',
		'imageId': '70617099',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4036019&docid=70617100&x=3543',
		'title': '',
		'imageId': '70617100',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4036019&docid=70617101&x=3543',
		'title': '',
		'imageId': '70617101',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4036019&docid=70617102&x=3543',
		'title': '',
		'imageId': '70617102',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4036019&docid=70617103&x=3543',
		'title': '',
		'imageId': '70617103',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4036019&docid=70617104&x=3543',
		'title': '',
		'imageId': '70617104',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4036019&docid=70617105&x=3543',
		'title': '',
		'imageId': '70617105',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4036019';

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