var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016842&docid=70147263&x=5351',
		'title': '',
		'imageId': '70147263',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016842&docid=70147262&x=5351',
		'title': '',
		'imageId': '70147262',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016842&docid=70147265&x=5351',
		'title': '',
		'imageId': '70147265',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016842&docid=70147269&x=5351',
		'title': '',
		'imageId': '70147269',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016842&docid=70147270&x=5351',
		'title': '',
		'imageId': '70147270',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016842&docid=70147273&x=5351',
		'title': '',
		'imageId': '70147273',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016842&docid=70147278&x=5351',
		'title': '',
		'imageId': '70147278',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016842&docid=70147283&x=5351',
		'title': '',
		'imageId': '70147283',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016842&docid=70147279&x=5351',
		'title': '',
		'imageId': '70147279',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016842&docid=70147264&x=5351',
		'title': '',
		'imageId': '70147264',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016842';

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