var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016829&docid=70146783&x=2939',
		'title': '',
		'imageId': '70146783',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016829&docid=70146784&x=2939',
		'title': '',
		'imageId': '70146784',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016829&docid=70146785&x=2939',
		'title': '',
		'imageId': '70146785',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016829&docid=70146786&x=2939',
		'title': '',
		'imageId': '70146786',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016829&docid=70146787&x=2939',
		'title': '',
		'imageId': '70146787',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016829&docid=70146796&x=2939',
		'title': '',
		'imageId': '70146796',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016829&docid=70146799&x=2939',
		'title': '',
		'imageId': '70146799',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016829&docid=70146801&x=2939',
		'title': '',
		'imageId': '70146801',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016829&docid=70146803&x=2939',
		'title': '',
		'imageId': '70146803',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016829&docid=70146782&x=2939',
		'title': '',
		'imageId': '70146782',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016829';

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