var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834505&x=1452',
		'title': '',
		'imageId': '69834505',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834508&x=1452',
		'title': '',
		'imageId': '69834508',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834506&x=1452',
		'title': '',
		'imageId': '69834506',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834502&x=1452',
		'title': '',
		'imageId': '69834502',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834509&x=1452',
		'title': '',
		'imageId': '69834509',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834504&x=1452',
		'title': '',
		'imageId': '69834504',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834500&x=1452',
		'title': '',
		'imageId': '69834500',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834501&x=1452',
		'title': '',
		'imageId': '69834501',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834503&x=1452',
		'title': '',
		'imageId': '69834503',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834527&x=1452',
		'title': '',
		'imageId': '69834527',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834528&x=1452',
		'title': '',
		'imageId': '69834528',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834534&x=1452',
		'title': '',
		'imageId': '69834534',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834530&x=1452',
		'title': '',
		'imageId': '69834530',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834532&x=1452',
		'title': '',
		'imageId': '69834532',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834537&x=1452',
		'title': '',
		'imageId': '69834537',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834529&x=1452',
		'title': '',
		'imageId': '69834529',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834533&x=1452',
		'title': '',
		'imageId': '69834533',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834536&x=1452',
		'title': '',
		'imageId': '69834536',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834535&x=1452',
		'title': '',
		'imageId': '69834535',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=69834531&x=1452',
		'title': '',
		'imageId': '69834531',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=59270415&x=1452',
		'title': '',
		'imageId': '59270415',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004885&docid=59270407&x=1452',
		'title': '',
		'imageId': '59270407',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4004885';

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