var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4005889&docid=69856892&x=2826',
		'title': '',
		'imageId': '69856892',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005889&docid=69856893&x=2826',
		'title': '',
		'imageId': '69856893',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005889&docid=69856894&x=2826',
		'title': '',
		'imageId': '69856894',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005889&docid=69856896&x=2826',
		'title': '',
		'imageId': '69856896',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005889&docid=69856895&x=2826',
		'title': '',
		'imageId': '69856895',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005889&docid=69856897&x=2826',
		'title': '',
		'imageId': '69856897',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005889&docid=69856902&x=2826',
		'title': '',
		'imageId': '69856902',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005889&docid=69856903&x=2826',
		'title': '',
		'imageId': '69856903',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005889&docid=69856911&x=2826',
		'title': '',
		'imageId': '69856911',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4005889&docid=69856906&x=2826',
		'title': '',
		'imageId': '69856906',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4005889';

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