var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827492&x=2050',
		'title': '',
		'imageId': '69827492',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827493&x=2050',
		'title': '',
		'imageId': '69827493',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827494&x=2050',
		'title': '',
		'imageId': '69827494',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827495&x=2050',
		'title': '',
		'imageId': '69827495',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827496&x=2050',
		'title': '',
		'imageId': '69827496',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827497&x=2050',
		'title': '',
		'imageId': '69827497',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827498&x=2050',
		'title': '',
		'imageId': '69827498',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827499&x=2050',
		'title': '',
		'imageId': '69827499',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827500&x=2050',
		'title': '',
		'imageId': '69827500',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827501&x=2050',
		'title': '',
		'imageId': '69827501',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827502&x=2050',
		'title': '',
		'imageId': '69827502',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827503&x=2050',
		'title': '',
		'imageId': '69827503',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827504&x=2050',
		'title': '',
		'imageId': '69827504',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827505&x=2050',
		'title': '',
		'imageId': '69827505',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827506&x=2050',
		'title': '',
		'imageId': '69827506',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827507&x=2050',
		'title': '',
		'imageId': '69827507',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827508&x=2050',
		'title': '',
		'imageId': '69827508',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827509&x=2050',
		'title': '',
		'imageId': '69827509',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827510&x=2050',
		'title': '',
		'imageId': '69827510',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827511&x=2050',
		'title': '',
		'imageId': '69827511',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827512&x=2050',
		'title': '',
		'imageId': '69827512',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004682&docid=69827513&x=2050',
		'title': '',
		'imageId': '69827513',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4004682';

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