var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4017294&docid=70164783&x=4737',
		'title': '',
		'imageId': '70164783',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017294&docid=70164774&x=4737',
		'title': '',
		'imageId': '70164774',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017294&docid=70164780&x=4737',
		'title': '',
		'imageId': '70164780',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017294&docid=70164781&x=4737',
		'title': '',
		'imageId': '70164781',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017294&docid=70164776&x=4737',
		'title': '',
		'imageId': '70164776',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017294&docid=70164778&x=4737',
		'title': '',
		'imageId': '70164778',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017294&docid=70164782&x=4737',
		'title': '',
		'imageId': '70164782',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017294&docid=70164775&x=4737',
		'title': '',
		'imageId': '70164775',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017294&docid=70164777&x=4737',
		'title': '',
		'imageId': '70164777',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017294&docid=70164779&x=4737',
		'title': '',
		'imageId': '70164779',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4017294';

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