var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4005160&docid=69842119&x=5456',
		'title': '',
		'imageId': '69842119',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005160&docid=69842117&x=5456',
		'title': '',
		'imageId': '69842117',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005160&docid=69842114&x=5456',
		'title': '',
		'imageId': '69842114',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005160&docid=69842122&x=5456',
		'title': '',
		'imageId': '69842122',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005160&docid=69842116&x=5456',
		'title': '',
		'imageId': '69842116',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005160&docid=69842115&x=5456',
		'title': '',
		'imageId': '69842115',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005160&docid=69842120&x=5456',
		'title': '',
		'imageId': '69842120',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005160&docid=69842123&x=5456',
		'title': '',
		'imageId': '69842123',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005160&docid=69842121&x=5456',
		'title': '',
		'imageId': '69842121',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005160&docid=69842118&x=5456',
		'title': '',
		'imageId': '69842118',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4005160';

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