var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=885421&docid=7101227&x=4312',
		'title': '',
		'imageId': '7101227',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=885421&docid=7101236&x=4312',
		'title': '',
		'imageId': '7101236',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=885421&docid=7101248&x=4312',
		'title': '',
		'imageId': '7101248',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=885421&docid=7101239&x=4312',
		'title': '',
		'imageId': '7101239',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=885421&docid=7101242&x=4312',
		'title': '',
		'imageId': '7101242',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=885421&docid=7101245&x=4312',
		'title': '',
		'imageId': '7101245',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=885421&docid=7101230&x=4312',
		'title': '',
		'imageId': '7101230',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=885421&docid=7101233&x=4312',
		'title': '',
		'imageId': '7101233',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=885421&docid=7101255&x=4312',
		'title': '',
		'imageId': '7101255',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=885421&docid=7101251&x=4312',
		'title': '',
		'imageId': '7101251',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=885421&docid=7101224&x=4312',
		'title': '',
		'imageId': '7101224',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #885421';

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