var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3939156&docid=65707710&x=178',
		'title': '',
		'imageId': '65707710',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3939156&docid=65707719&x=178',
		'title': '',
		'imageId': '65707719',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3939156&docid=65707712&x=178',
		'title': '',
		'imageId': '65707712',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3939156&docid=65707717&x=178',
		'title': '',
		'imageId': '65707717',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3939156&docid=65707718&x=178',
		'title': '',
		'imageId': '65707718',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3939156&docid=65707711&x=178',
		'title': '',
		'imageId': '65707711',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3939156&docid=65707715&x=178',
		'title': '',
		'imageId': '65707715',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3939156&docid=65707714&x=178',
		'title': '',
		'imageId': '65707714',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3939156&docid=65707713&x=178',
		'title': '',
		'imageId': '65707713',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3939156&docid=65707716&x=178',
		'title': '',
		'imageId': '65707716',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3939156';

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