var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4003187&docid=69789049&x=5310',
		'title': '',
		'imageId': '69789049',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003187&docid=69789050&x=5310',
		'title': '',
		'imageId': '69789050',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003187&docid=69789053&x=5310',
		'title': '',
		'imageId': '69789053',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003187&docid=69789057&x=5310',
		'title': '',
		'imageId': '69789057',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003187&docid=69789058&x=5310',
		'title': '',
		'imageId': '69789058',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003187&docid=69789059&x=5310',
		'title': '',
		'imageId': '69789059',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003187&docid=69789060&x=5310',
		'title': '',
		'imageId': '69789060',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003187&docid=69789062&x=5310',
		'title': '',
		'imageId': '69789062',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003187&docid=69789063&x=5310',
		'title': '',
		'imageId': '69789063',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003187&docid=69789064&x=5310',
		'title': '',
		'imageId': '69789064',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4003187';

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