var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3931042&docid=67231527&x=4520',
		'title': '',
		'imageId': '67231527',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3931042&docid=67231528&x=4520',
		'title': '',
		'imageId': '67231528',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3931042&docid=67231529&x=4520',
		'title': '',
		'imageId': '67231529',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3931042&docid=67231530&x=4520',
		'title': '',
		'imageId': '67231530',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3931042&docid=67231531&x=4520',
		'title': '',
		'imageId': '67231531',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3931042&docid=67231532&x=4520',
		'title': '',
		'imageId': '67231532',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3931042&docid=67231533&x=4520',
		'title': '',
		'imageId': '67231533',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3931042&docid=67231538&x=4520',
		'title': '',
		'imageId': '67231538',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3931042&docid=67231539&x=4520',
		'title': '',
		'imageId': '67231539',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3931042&docid=67231540&x=4520',
		'title': '',
		'imageId': '67231540',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3931042&docid=67231542&x=4520',
		'title': '',
		'imageId': '67231542',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3931042&docid=67231534&x=4520',
		'title': '',
		'imageId': '67231534',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3931042';

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