var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=475568&docid=2596438&x=342',
		'title': '',
		'imageId': '2596438',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475568&docid=2596441&x=342',
		'title': '',
		'imageId': '2596441',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475568&docid=2596444&x=342',
		'title': '',
		'imageId': '2596444',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475568&docid=2596447&x=342',
		'title': '',
		'imageId': '2596447',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475568&docid=2596450&x=342',
		'title': '',
		'imageId': '2596450',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475568&docid=2596453&x=342',
		'title': '',
		'imageId': '2596453',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475568&docid=2596456&x=342',
		'title': '',
		'imageId': '2596456',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475568&docid=2596459&x=342',
		'title': '',
		'imageId': '2596459',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475568&docid=2596462&x=342',
		'title': '',
		'imageId': '2596462',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475568&docid=2596465&x=342',
		'title': '',
		'imageId': '2596465',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=475568&docid=2596468&x=342',
		'title': '',
		'imageId': '2596468',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #475568';

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