var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=916437&docid=7306778&x=3819',
		'title': '',
		'imageId': '7306778',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=916437&docid=7306781&x=3819',
		'title': '',
		'imageId': '7306781',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=916437&docid=7306784&x=3819',
		'title': '',
		'imageId': '7306784',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=916437&docid=7306787&x=3819',
		'title': '',
		'imageId': '7306787',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=916437&docid=7306790&x=3819',
		'title': '',
		'imageId': '7306790',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=916437&docid=7306795&x=3819',
		'title': '',
		'imageId': '7306795',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=916437&docid=7306798&x=3819',
		'title': '',
		'imageId': '7306798',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=916437&docid=7306801&x=3819',
		'title': '',
		'imageId': '7306801',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=916437&docid=7306804&x=3819',
		'title': '',
		'imageId': '7306804',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=916437&docid=7306807&x=3819',
		'title': '',
		'imageId': '7306807',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #916437';

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