var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3978938&docid=69234534&x=289',
		'title': '',
		'imageId': '69234534',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978938&docid=69234529&x=289',
		'title': '',
		'imageId': '69234529',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978938&docid=69234530&x=289',
		'title': '',
		'imageId': '69234530',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978938&docid=69234535&x=289',
		'title': '',
		'imageId': '69234535',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978938&docid=69234536&x=289',
		'title': '',
		'imageId': '69234536',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978938&docid=69234528&x=289',
		'title': '',
		'imageId': '69234528',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978938&docid=69234533&x=289',
		'title': '',
		'imageId': '69234533',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978938&docid=69234537&x=289',
		'title': '',
		'imageId': '69234537',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978938&docid=69234532&x=289',
		'title': '',
		'imageId': '69234532',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978938&docid=69234527&x=289',
		'title': '',
		'imageId': '69234527',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978938&docid=69234531&x=289',
		'title': '',
		'imageId': '69234531',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3978938';

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