var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=471620&docid=2580608&x=315',
		'title': '',
		'imageId': '2580608',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471620&docid=2580614&x=315',
		'title': '',
		'imageId': '2580614',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471620&docid=2580617&x=315',
		'title': '',
		'imageId': '2580617',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471620&docid=2580622&x=315',
		'title': '',
		'imageId': '2580622',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471620&docid=2580626&x=315',
		'title': '',
		'imageId': '2580626',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471620&docid=2580629&x=315',
		'title': '',
		'imageId': '2580629',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471620&docid=2580634&x=315',
		'title': '',
		'imageId': '2580634',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471620&docid=2580637&x=315',
		'title': '',
		'imageId': '2580637',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471620&docid=2580598&x=315',
		'title': '',
		'imageId': '2580598',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=471620&docid=2580605&x=315',
		'title': '',
		'imageId': '2580605',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #471620';

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