var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=915701&docid=7297575&x=1928',
		'title': '',
		'imageId': '7297575',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=915701&docid=7297578&x=1928',
		'title': '',
		'imageId': '7297578',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=915701&docid=7297581&x=1928',
		'title': '',
		'imageId': '7297581',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=915701&docid=7297584&x=1928',
		'title': '',
		'imageId': '7297584',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=915701&docid=7297587&x=1928',
		'title': '',
		'imageId': '7297587',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=915701&docid=7297590&x=1928',
		'title': '',
		'imageId': '7297590',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=915701&docid=7297603&x=1928',
		'title': '',
		'imageId': '7297603',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=915701&docid=7297608&x=1928',
		'title': '',
		'imageId': '7297608',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=915701&docid=7297611&x=1928',
		'title': '',
		'imageId': '7297611',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=915701&docid=7297614&x=1928',
		'title': '',
		'imageId': '7297614',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #915701';

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