var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4017201&docid=70163540&x=4445',
		'title': '',
		'imageId': '70163540',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017201&docid=70163534&x=4445',
		'title': '',
		'imageId': '70163534',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017201&docid=70163542&x=4445',
		'title': '',
		'imageId': '70163542',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017201&docid=70163541&x=4445',
		'title': '',
		'imageId': '70163541',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017201&docid=70163535&x=4445',
		'title': '',
		'imageId': '70163535',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017201&docid=70163536&x=4445',
		'title': '',
		'imageId': '70163536',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017201&docid=70163537&x=4445',
		'title': '',
		'imageId': '70163537',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017201&docid=70163538&x=4445',
		'title': '',
		'imageId': '70163538',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017201&docid=70163539&x=4445',
		'title': '',
		'imageId': '70163539',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017201&docid=70163543&x=4445',
		'title': '',
		'imageId': '70163543',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4017201';

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