var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3974010&docid=69123596&x=434',
		'title': '',
		'imageId': '69123596',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974010&docid=69123598&x=434',
		'title': '',
		'imageId': '69123598',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974010&docid=69123601&x=434',
		'title': '',
		'imageId': '69123601',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974010&docid=69123599&x=434',
		'title': '',
		'imageId': '69123599',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974010&docid=69123602&x=434',
		'title': '',
		'imageId': '69123602',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974010&docid=69123603&x=434',
		'title': '',
		'imageId': '69123603',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974010&docid=69123605&x=434',
		'title': '',
		'imageId': '69123605',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974010&docid=69123604&x=434',
		'title': '',
		'imageId': '69123604',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974010&docid=69123595&x=434',
		'title': '',
		'imageId': '69123595',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974010&docid=69123600&x=434',
		'title': '',
		'imageId': '69123600',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3974010&docid=69123597&x=434',
		'title': '',
		'imageId': '69123597',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3974010';

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