var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3954261&docid=68679245&x=123',
		'title': '',
		'imageId': '68679245',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3954261&docid=68679242&x=123',
		'title': '',
		'imageId': '68679242',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3954261&docid=68679243&x=123',
		'title': '',
		'imageId': '68679243',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3954261&docid=68679244&x=123',
		'title': '',
		'imageId': '68679244',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3954261&docid=68679246&x=123',
		'title': '',
		'imageId': '68679246',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3954261&docid=68679247&x=123',
		'title': '',
		'imageId': '68679247',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3954261&docid=68679253&x=123',
		'title': '',
		'imageId': '68679253',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3954261&docid=68679258&x=123',
		'title': '',
		'imageId': '68679258',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3954261&docid=68679259&x=123',
		'title': '',
		'imageId': '68679259',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3954261&docid=68679262&x=123',
		'title': '',
		'imageId': '68679262',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3954261';

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