var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4010450&docid=69970941&x=4921',
		'title': '',
		'imageId': '69970941',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010450&docid=69970935&x=4921',
		'title': '',
		'imageId': '69970935',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010450&docid=69970938&x=4921',
		'title': '',
		'imageId': '69970938',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010450&docid=69970944&x=4921',
		'title': '',
		'imageId': '69970944',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010450&docid=69970888&x=4921',
		'title': '',
		'imageId': '69970888',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010450&docid=69970907&x=4921',
		'title': '',
		'imageId': '69970907',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010450&docid=69970910&x=4921',
		'title': '',
		'imageId': '69970910',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010450&docid=69970914&x=4921',
		'title': '',
		'imageId': '69970914',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010450&docid=69970917&x=4921',
		'title': '',
		'imageId': '69970917',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010450&docid=69970950&x=4921',
		'title': '',
		'imageId': '69970950',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4010450';

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