var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=925221&docid=7406557&x=1312',
		'title': '',
		'imageId': '7406557',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=925221&docid=7406558&x=1312',
		'title': '',
		'imageId': '7406558',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=925221&docid=7406559&x=1312',
		'title': '',
		'imageId': '7406559',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=925221&docid=7406579&x=1312',
		'title': '',
		'imageId': '7406579',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=925221&docid=7406574&x=1312',
		'title': '',
		'imageId': '7406574',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=925221&docid=7406573&x=1312',
		'title': '',
		'imageId': '7406573',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=925221&docid=7406569&x=1312',
		'title': '',
		'imageId': '7406569',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=925221&docid=7406565&x=1312',
		'title': '',
		'imageId': '7406565',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=925221&docid=7406564&x=1312',
		'title': '',
		'imageId': '7406564',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=925221&docid=7406584&x=1312',
		'title': '',
		'imageId': '7406584',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #925221';

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