var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045010&x=551',
		'title': '',
		'imageId': '70045010',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045012&x=551',
		'title': '',
		'imageId': '70045012',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045023&x=551',
		'title': '',
		'imageId': '70045023',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045019&x=551',
		'title': '',
		'imageId': '70045019',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045029&x=551',
		'title': '',
		'imageId': '70045029',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045024&x=551',
		'title': '',
		'imageId': '70045024',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045025&x=551',
		'title': '',
		'imageId': '70045025',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045032&x=551',
		'title': '',
		'imageId': '70045032',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045021&x=551',
		'title': '',
		'imageId': '70045021',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045014&x=551',
		'title': '',
		'imageId': '70045014',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045005&x=551',
		'title': '',
		'imageId': '70045005',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045018&x=551',
		'title': '',
		'imageId': '70045018',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045007&x=551',
		'title': '',
		'imageId': '70045007',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045009&x=551',
		'title': '',
		'imageId': '70045009',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045026&x=551',
		'title': '',
		'imageId': '70045026',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045030&x=551',
		'title': '',
		'imageId': '70045030',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045015&x=551',
		'title': '',
		'imageId': '70045015',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045013&x=551',
		'title': '',
		'imageId': '70045013',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045022&x=551',
		'title': '',
		'imageId': '70045022',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045031&x=551',
		'title': '',
		'imageId': '70045031',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045008&x=551',
		'title': '',
		'imageId': '70045008',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013478&docid=70045003&x=551',
		'title': '',
		'imageId': '70045003',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4013478';

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