var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4008360&docid=69918147&x=2341',
		'title': '',
		'imageId': '69918147',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008360&docid=69918150&x=2341',
		'title': '',
		'imageId': '69918150',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008360&docid=69918151&x=2341',
		'title': '',
		'imageId': '69918151',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008360&docid=69918152&x=2341',
		'title': '',
		'imageId': '69918152',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008360&docid=69918153&x=2341',
		'title': '',
		'imageId': '69918153',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008360&docid=69918154&x=2341',
		'title': '',
		'imageId': '69918154',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008360&docid=69918155&x=2341',
		'title': '',
		'imageId': '69918155',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008360&docid=69918156&x=2341',
		'title': '',
		'imageId': '69918156',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008360&docid=69918157&x=2341',
		'title': '',
		'imageId': '69918157',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008360&docid=69918158&x=2341',
		'title': '',
		'imageId': '69918158',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008360&docid=69918159&x=2341',
		'title': '',
		'imageId': '69918159',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4008360';

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