var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4004669&docid=69827316&x=5427',
		'title': '',
		'imageId': '69827316',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004669&docid=69827318&x=5427',
		'title': '',
		'imageId': '69827318',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004669&docid=69827319&x=5427',
		'title': '',
		'imageId': '69827319',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004669&docid=69827320&x=5427',
		'title': '',
		'imageId': '69827320',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004669&docid=69827322&x=5427',
		'title': '',
		'imageId': '69827322',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004669&docid=69827321&x=5427',
		'title': '',
		'imageId': '69827321',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004669&docid=69827323&x=5427',
		'title': '',
		'imageId': '69827323',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004669&docid=69827324&x=5427',
		'title': '',
		'imageId': '69827324',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004669&docid=69827325&x=5427',
		'title': '',
		'imageId': '69827325',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004669&docid=69827326&x=5427',
		'title': '',
		'imageId': '69827326',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4004669';

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