var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3889012&docid=65655784&x=1549',
		'title': '',
		'imageId': '65655784',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3889012&docid=65655786&x=1549',
		'title': '',
		'imageId': '65655786',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3889012&docid=65655785&x=1549',
		'title': '',
		'imageId': '65655785',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3889012&docid=65655790&x=1549',
		'title': '',
		'imageId': '65655790',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3889012&docid=65655791&x=1549',
		'title': '',
		'imageId': '65655791',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3889012&docid=65655797&x=1549',
		'title': '',
		'imageId': '65655797',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3889012&docid=65655793&x=1549',
		'title': '',
		'imageId': '65655793',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3889012&docid=65655789&x=1549',
		'title': '',
		'imageId': '65655789',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3889012&docid=65655788&x=1549',
		'title': '',
		'imageId': '65655788',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3889012&docid=65655787&x=1549',
		'title': '',
		'imageId': '65655787',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3889012&docid=65655792&x=1549',
		'title': '',
		'imageId': '65655792',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3889012';

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