var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4028094&docid=70405699&x=5351',
		'title': '',
		'imageId': '70405699',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4028094&docid=70405700&x=5351',
		'title': '',
		'imageId': '70405700',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4028094&docid=70405701&x=5351',
		'title': '',
		'imageId': '70405701',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4028094&docid=70405706&x=5351',
		'title': '',
		'imageId': '70405706',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4028094&docid=70405704&x=5351',
		'title': '',
		'imageId': '70405704',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4028094&docid=70405697&x=5351',
		'title': '',
		'imageId': '70405697',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4028094&docid=70405698&x=5351',
		'title': '',
		'imageId': '70405698',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4028094&docid=70405702&x=5351',
		'title': '',
		'imageId': '70405702',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4028094&docid=70405707&x=5351',
		'title': '',
		'imageId': '70405707',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4028094&docid=70405705&x=5351',
		'title': '',
		'imageId': '70405705',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4028094';

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