var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=665524&docid=4455416&x=043',
		'title': '',
		'imageId': '4455416',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665524&docid=4455419&x=043',
		'title': '',
		'imageId': '4455419',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665524&docid=4455422&x=043',
		'title': '',
		'imageId': '4455422',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665524&docid=4455425&x=043',
		'title': '',
		'imageId': '4455425',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665524&docid=4455428&x=043',
		'title': '',
		'imageId': '4455428',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665524&docid=4455434&x=043',
		'title': '',
		'imageId': '4455434',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665524&docid=4455431&x=043',
		'title': '',
		'imageId': '4455431',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665524&docid=4455458&x=043',
		'title': '',
		'imageId': '4455458',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665524&docid=4455443&x=043',
		'title': '',
		'imageId': '4455443',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665524&docid=4455449&x=043',
		'title': '',
		'imageId': '4455449',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665524&docid=4455452&x=043',
		'title': '',
		'imageId': '4455452',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #665524';

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