var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3975380&docid=69155908&x=123',
		'title': '',
		'imageId': '69155908',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3975380&docid=69155909&x=123',
		'title': '',
		'imageId': '69155909',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3975380&docid=69155910&x=123',
		'title': '',
		'imageId': '69155910',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3975380&docid=69155911&x=123',
		'title': '',
		'imageId': '69155911',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3975380&docid=69155925&x=123',
		'title': '',
		'imageId': '69155925',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3975380&docid=69155915&x=123',
		'title': '',
		'imageId': '69155915',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3975380&docid=69155918&x=123',
		'title': '',
		'imageId': '69155918',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3975380&docid=69155926&x=123',
		'title': '',
		'imageId': '69155926',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3975380&docid=69155907&x=123',
		'title': '',
		'imageId': '69155907',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3975380&docid=69155906&x=123',
		'title': '',
		'imageId': '69155906',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3975380';

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