var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4013002&docid=70028188&x=4931',
		'title': '',
		'imageId': '70028188',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013002&docid=70028190&x=4931',
		'title': '',
		'imageId': '70028190',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013002&docid=70028193&x=4931',
		'title': '',
		'imageId': '70028193',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013002&docid=70028191&x=4931',
		'title': '',
		'imageId': '70028191',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013002&docid=70028195&x=4931',
		'title': '',
		'imageId': '70028195',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013002&docid=70028194&x=4931',
		'title': '',
		'imageId': '70028194',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013002&docid=70028192&x=4931',
		'title': '',
		'imageId': '70028192',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013002&docid=70028196&x=4931',
		'title': '',
		'imageId': '70028196',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013002&docid=70028197&x=4931',
		'title': '',
		'imageId': '70028197',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013002&docid=70028189&x=4931',
		'title': '',
		'imageId': '70028189',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4013002';

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