var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3964259&docid=68914011&x=3950',
		'title': '',
		'imageId': '68914011',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964259&docid=68914005&x=3950',
		'title': '',
		'imageId': '68914005',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964259&docid=68914006&x=3950',
		'title': '',
		'imageId': '68914006',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964259&docid=68914008&x=3950',
		'title': '',
		'imageId': '68914008',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964259&docid=68914002&x=3950',
		'title': '',
		'imageId': '68914002',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964259&docid=68914003&x=3950',
		'title': '',
		'imageId': '68914003',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964259&docid=68914004&x=3950',
		'title': '',
		'imageId': '68914004',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964259&docid=68914009&x=3950',
		'title': '',
		'imageId': '68914009',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964259&docid=68914007&x=3950',
		'title': '',
		'imageId': '68914007',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964259&docid=68914010&x=3950',
		'title': '',
		'imageId': '68914010',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964259&docid=68912761&x=3950',
		'title': '',
		'imageId': '68912761',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3964259';

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