var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3964711&docid=68922845&x=41',
		'title': '',
		'imageId': '68922845',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964711&docid=68922849&x=41',
		'title': '',
		'imageId': '68922849',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964711&docid=68922854&x=41',
		'title': '',
		'imageId': '68922854',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964711&docid=68922857&x=41',
		'title': '',
		'imageId': '68922857',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964711&docid=68922860&x=41',
		'title': '',
		'imageId': '68922860',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964711&docid=68922863&x=41',
		'title': '',
		'imageId': '68922863',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964711&docid=68922866&x=41',
		'title': '',
		'imageId': '68922866',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964711&docid=68922869&x=41',
		'title': '',
		'imageId': '68922869',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964711&docid=68922872&x=41',
		'title': '',
		'imageId': '68922872',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964711&docid=68922875&x=41',
		'title': '',
		'imageId': '68922875',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3964711&docid=68922951&x=41',
		'title': '',
		'imageId': '68922951',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3964711';

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