var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3939857&docid=68364551&x=4935',
		'title': '',
		'imageId': '68364551',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3939857&docid=68364547&x=4935',
		'title': '',
		'imageId': '68364547',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3939857&docid=68364548&x=4935',
		'title': '',
		'imageId': '68364548',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3939857&docid=68364545&x=4935',
		'title': '',
		'imageId': '68364545',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3939857&docid=68364549&x=4935',
		'title': '',
		'imageId': '68364549',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3939857&docid=68364541&x=4935',
		'title': '',
		'imageId': '68364541',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3939857&docid=68364550&x=4935',
		'title': '',
		'imageId': '68364550',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3939857&docid=68364543&x=4935',
		'title': '',
		'imageId': '68364543',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3939857&docid=68364546&x=4935',
		'title': '',
		'imageId': '68364546',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3939857&docid=68364542&x=4935',
		'title': '',
		'imageId': '68364542',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3939857';

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