var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3978726&docid=69228842&x=488',
		'title': '',
		'imageId': '69228842',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978726&docid=69228843&x=488',
		'title': '',
		'imageId': '69228843',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978726&docid=69228844&x=488',
		'title': '',
		'imageId': '69228844',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978726&docid=69228845&x=488',
		'title': '',
		'imageId': '69228845',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978726&docid=69228846&x=488',
		'title': '',
		'imageId': '69228846',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978726&docid=69228847&x=488',
		'title': '',
		'imageId': '69228847',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978726&docid=69228848&x=488',
		'title': '',
		'imageId': '69228848',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978726&docid=69228849&x=488',
		'title': '',
		'imageId': '69228849',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978726&docid=69228850&x=488',
		'title': '',
		'imageId': '69228850',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978726&docid=69228851&x=488',
		'title': '',
		'imageId': '69228851',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3978726';

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