var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3840241&docid=65906549&x=81',
		'title': '',
		'imageId': '65906549',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3840241&docid=65906550&x=81',
		'title': '',
		'imageId': '65906550',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3840241&docid=65906552&x=81',
		'title': '',
		'imageId': '65906552',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3840241&docid=65906551&x=81',
		'title': '',
		'imageId': '65906551',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3840241&docid=65906553&x=81',
		'title': '',
		'imageId': '65906553',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3840241&docid=65906554&x=81',
		'title': '',
		'imageId': '65906554',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3840241&docid=65906555&x=81',
		'title': '',
		'imageId': '65906555',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3840241&docid=65906556&x=81',
		'title': '',
		'imageId': '65906556',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3840241&docid=65906557&x=81',
		'title': '',
		'imageId': '65906557',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3840241&docid=65906558&x=81',
		'title': '',
		'imageId': '65906558',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3840241';

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