var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4008603&docid=69372875&x=2548',
		'title': '',
		'imageId': '69372875',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008603&docid=69372878&x=2548',
		'title': '',
		'imageId': '69372878',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008603&docid=69372876&x=2548',
		'title': '',
		'imageId': '69372876',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008603&docid=69372880&x=2548',
		'title': '',
		'imageId': '69372880',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008603&docid=69373505&x=2548',
		'title': '',
		'imageId': '69373505',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008603&docid=69372882&x=2548',
		'title': '',
		'imageId': '69372882',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008603&docid=69372879&x=2548',
		'title': '',
		'imageId': '69372879',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008603&docid=69372877&x=2548',
		'title': '',
		'imageId': '69372877',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008603&docid=69372881&x=2548',
		'title': '',
		'imageId': '69372881',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008603&docid=69373506&x=2548',
		'title': '',
		'imageId': '69373506',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4008603';

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